Skip to content

API Reference parrot.sdd.scripts.spec_tools

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.scripts.spec_tools

View source

Helpers behind /sdd-spec's design-research and intake sub-flows (FEAT-633 Q1 residual).

Replaces the inline python -c blocks of the shipped /sdd-spec and /sdd-task commands so a foreign repository needs no interpreter on PATH: TASK-4088 moves this module into parrot.sdd.scripts and TASK-4089 rewrites the invocations to parrot sdd run spec_tools …. Every failure goes to stderr with exit code 1 so the shell || SKIP_REASON=… / $(…) consumers around each call keep working unchanged.

Attribute BRIEF_INPUTS

Type: tuple[str, ...]

Attribute DEFAULT_PROMPT

Attribute DEFAULT_SCHEMA

Function build_parser

Build the argparse CLI with one sub-command per retired inline block.

build_parser() -> argparse.ArgumentParser

Returns: argparse.ArgumentParser

Function cmd_check_path

Exit 0 iff path resolves to root or somewhere inside it. Prints nothing.

cmd_check_path(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_commit_intake

Stamp an intake intake.json with its feature id and phase: committed.

cmd_commit_intake(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_existing_feature_id

Print the feature id a slug already owns, or an empty line; always exit 0.

cmd_existing_feature_id(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_init_run

Write <dir>/run.json describing the codex design-research run.

cmd_init_run(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_render_brief

Render <dir>/brief.md from the prompt template and the six <name>.txt inputs.

cmd_render_brief(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_stamp_run

Add started_at / ended_at / exit_code to an existing <dir>/run.json.

cmd_stamp_run(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Function cmd_validate_suggestions

Validate <dir>/suggestions.json against the design-research schema.

cmd_validate_suggestions(a: argparse.Namespace) -> int

Parameter Type Default Description
a argparse.Namespace

Returns: int

Alias existing_feature_id

Re-exported from parrot.sdd.scripts.reserve_ids.existing_feature_id.

Function main

CLI entry point.

main(argv: list[str] | None = None) -> int

Parameter Type Default Description
argv list[str] | None None

Returns: int

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally