Reference implementation
Markdown command contract
First word: resume
Extract: feature number
Route: first missing artifact
Portable and easy to inspect. Correctness depends on the model following the contract.
Primitive 03 / Command
A command turns a human invocation into a known workflow entry. It parses intent, validates the minimum inputs, selects a mode, and transfers control to the role that owns the conversation.
a user-facing routing contract—not a miniature agent
Try the three real /feature modes to see how the same entrance reaches different stages.
Enter Stage 1 · DiscoveryThe command stops routing. The orchestrator now owns workflow state and user interaction.
01 / Real anatomy
The reference /feature command contains five surfaces. Select each one to see which responsibility it owns—and where ownership must stop.
02 / Honest boundary
The reference commands are executable instructions for an AI environment. Their routing rules are explicit, but still interpreted by a model unless a wrapper validates them.
Reference implementation
First word: resume
Extract: feature number
Route: first missing artifact
Portable and easy to inspect. Correctness depends on the model following the contract.
Hardened implementation
mode = parse(argv)
require_feature!(number)
stage = first_missing(files)
Use code when an input, path, enum, or transition has one correct answer.
Port the workflow grammar first. Then move every mechanically verifiable rule from command prose into the host language’s CLI, task runner, or orchestration code.
03 / Command families
The repository exposes several entrances. Their surfaces differ, but each gives the user a stable verb and transfers control to a named owner.
Starts a full feature, skips discovery with a brief, or resumes at the first missing artifact.
Seeds the first report, then keeps the interview in the main conversation.
Reads open GitHub issues, ICP files, and dependencies to propose—not silently impose—a build order.
Audits actual project patterns before establishing AGENTS.md, TODO structure, and conventions.
Interviews the user to write or refresh one persona's Ideal Customer Profile. Supports more than one file—a marketplace's buyer and seller, say—so /roadmap judges backlog items against a specific persona, not an average.
Audits the codebase and regenerates the README and domain docs to reflect current state, rather than trusting a hand-written pass to stay accurate as the code moves on.
/bug and /request route to the same intake agent—same identity, same interview flow, only the label and destination differ. It is the cleanest proof on this page that a command is a doorway, not a role: two entrances, one bounded judgment behind both.
04 / Conversation topology
A command decides where the work begins. Whether a role runs here or as a subagent depends on continuity—not status or complexity.
/feature resume 001The role must ask follow-ups, secure approval, preserve user context, or coordinate multiple turns.
The role has bounded inputs, one output, independent judgment, and a clean stopping point.
Spawning the orchestrator would isolate the very conversation state it exists to coordinate. The command adopts it in place; the orchestrator spawns the specialists beneath it.
05 / Responsibility split
No design or implementation decisions.
No specialist work hidden inside orchestration.
No workflow control beyond its own handoff.
Make deterministic
Leave interpretive
06 / Failure modes
/feature designs, builds, and reviews./feature parses mode, prepares input, adopts orchestrator.An entrance should not contain the organization behind it.
/feature maybe continue that thing/feature resume 001Stable syntax makes workflows teachable and automatable.
Invalid path? Guess what the user meant.Unreadable path → report error and stop.Do not spend probabilistic judgment on a mechanical failure.
07 / Portable template
Start with supported invocations, mode selection, validation, and the ownership transfer. If the command still makes domain decisions after handoff, its boundary is too broad.
Inspect the source commands---
name: <Command name>
description: <When to use it + exact usage>
---
# <Command> entry
Arguments: [ARGUMENT]
## Supported invocations
- /<verb> <description>
- /<verb> <mode> <identifier>
## 1. Parse mode
Match only: <allowed mode words>.
Reject: <invalid combinations>.
## 2. Validate inputs
- Require <identifier format>.
- Verify <path or prerequisite>.
- Stop with <actionable error> if invalid.
## 3. Prepare context
Normalize <raw input> into <known shape>.
## 4. Transfer ownership
Adopt or launch <coordinator> at <entry stage>.
Preserve the main conversation when user interaction
or multi-turn state is required.
## Cannot
- Make domain decisions
- Perform the specialist's work
- Continue after ownership transfer