Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bartsoj/COMMAND_SPEC.md
Produce a deep per-command design specification for a single command in a command-line application — argument-parsing rules beyond CLI_IA's grammar, stdin/stdout/stderr composition, every output mode's shape, table and block layout in human mode, interactive choreography (prompts, progress, pager) across the three-mode rule, signal handling (SIGINT/SIGTERM/SIGHUP/SIGPIPE), per-failure cleanup and recovery hints, capability degradation across color and Unicode tiers, and idempotency / re-run sema
Passed 16 of 22 test cases with the skill, and 8 of 22 without it.
and 10 more in the full report
9 fixed7 passed either way5 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
In `network-tool ping`, all architectural ambiguities and design decisions have been resolved and incorporated into previous sections. What exact text should be placed under Section 12 Open Questions?
| Checked | Without skill | With skill |
|---|---|---|
| Places the exact string All questions resolved in Section 12 when all design ambiguities are settled. | Missed | Passed |
The instructions your model reads when the skill loads.
Produce a COMMAND_SPEC.md that serves as the single source of truth for one command's deep composition rules: how arguments parse beyond the grammar declared in CLI_IA, how stdin / stdout / stderr compose under each output mode, how human-mode tables and blocks lay out using DESIGN.md tokens, how interactive prompts and progress and pager choreograph across the three-mode rule, how the four primary POSIX signals are handled, how each failure listed in CLI_IA's matrix is detected and cleaned up and recovered from, and how the rendering degrades across terminal capability tiers. The defining claim — and the definition of "done" — is that an implementing agent reading CLI_IA's per-command blueprint plus DESIGN.md's terminal style tokens plus this COMMAND_SPEC can compose the command exactly as designed across all output modes and capability tiers, without inventing parsing rules, output shapes, prompt choreography, signal-cleanup steps, or capability-degradation rules.
COMMAND_SPEC is the rarest of the per-item leaf specs in the framework — most CLI commands are simple enough that the inline blueprint at CLI_IA.md is sufficient. Use this skill only for commands that exceed the inline form: dense interactive prompts, materially different shapes across --json / --quiet / human modes, intricate flag interactions, non-trivial signal handling, multi-stage progress reporting, or extensive failure-recovery semantics. Most projects will have few or zero COMMAND_SPEC files.
The commonest violation is to overlap with CLI_IA. CLI_IA owns identity — that the command exists, its grammar, its global flags by reference, its primary outcome, its failure-matrix summary, its exit-code taxonomy, its use-case traceability. COMMAND_SPEC owns composition — the parsing rules beyond the grammar, the output composition beyond the contract, the interactive choreography beyond the surface name, the signal handling beyond the failure-row name, the capability degradation beyond the tier names. When COMMAND_SPEC restates CLI_IA, the two documents drift; cite by reference instead.
tool repo push) or an assigned ID. The skill produces one COMMAND_SPEC per command identifier.cli-commands/<cmd-id>/COMMAND_SPEC.md (optional, auto-discovered — only if refining) — read fully; preserve every resolved open question, every assigned mode shape, every cleanup step already specified. Re-run citations against the current CLI_IA and DESIGN — do not assume stale tokens or exit-code IDs are still valid.Read-set size: CLI_IA's full target-command blueprint plus the surrounding policy sections (grammar, globals, exit codes, capability) and DESIGN.md when present are always read; sibling COMMAND_SPECs are read only when CLI_IA's flow entries name them.
The output file is conventionally placed at cli-commands/<cmd-id>/COMMAND_SPEC.md in the consuming project, where <cmd-id> is the stable identifier from CLI_IA.
COMMAND_SPEC is opt-in and is the rarest of the per-item specs in the framework. Do not create one for a command unless at least one of the following holds:
If none of the above holds, do not produce a COMMAND_SPEC. Stay with CLI_IA's inline blueprint. Most commands fall into this category.
test cases passed, vs 8 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.