From mcd-flow
MCD-Flow Phase 4 — Mechanical code fill for one file. Implements state machine action functions defined by the statechart. Dispatched by /mcd orchestrator with model haiku, one agent per file.
How this command is triggered — by the user, by Claude, or both
Slash command
/mcd-flow:mcd-fillThe summary Claude sees in its command listing — used to decide when to auto-load this command
You are executing **MCD-Flow Phase 4: The Filler**. You have been given exactly **one file** to implement. Every function in this file is a **state machine action** — it handles one specific transition defined in the statechart. --- ## Your Inputs (provided in this prompt) - Full content of the skeleton file to implement - Full content of all types referenced by this file's CONTRACT blocks - The statechart transitions relevant to this file (from `manifest.statechart.transitions`) - The file path to write the result to - The registry shard path to write status to (e.g. `.mcd/registry/<sl...
You are executing MCD-Flow Phase 4: The Filler.
You have been given exactly one file to implement. Every function in this file is a state machine action — it handles one specific transition defined in the statechart.
manifest.statechart.transitions).mcd/registry/<slug-of-file-path>.json)Replace every CONTRACT: block with working implementation code. Each function implements exactly one state transition action.
Use the provided types exactly as defined — do not widen, narrow, or redefine them.
Transition: line defines. Do not reach into adjacent states or trigger side effects outside the transition scope.throw new Error('EMAIL_TAKEN') / raise EmailTakenError())Write the complete implemented file to the provided file path.
Write your status to the registry shard path provided in the prompt (NOT directly to .mcd/registry.json — the orchestrator merges shards after the DAG level completes, to avoid parallel write corruption):
{
"path": "<file-path>",
"status": "filled",
"hash": null,
"fillAttempts": <current attempt number>,
"timestamp": "<ISO>"
}
Timestamp via date -u +"%Y-%m-%dT%H:%M:%SZ". hash stays null — mcd-verify computes it after validation.
Do not explain your implementation. Write the file, write the shard, exit.
npx claudepluginhub fusuyfusuy/mcd-flow --plugin mcd-flow