cdd-master-chef
CDD Master Chef
Use this skill for a clean OpenClaw-native autonomous workflow.
References:
{baseDir}/MASTER-CHEF-RUNBOOK.md{baseDir}/MASTER-CHEF-TEST-HARNESS.md
Operating contract:
- Use this skill for non-trivial development where Master Chef ownership is wanted.
- Preferred path: an existing repo that is already CDD-ready with
AGENTS.md,README.md, andTODO.mdorTODO-*.md - Allowed bootstrap path: a new or adoptable project folder that should be brought into the CDD contract first via
cdd-init-project
- Preferred path: an existing repo that is already CDD-ready with
- The main OpenClaw session is always Master Chef.
- The Builder runs as an OpenClaw subagent, not ACP.
- There is no watchdog cron or separate supervising agent; Master Chef checks Builder health directly in the main session when active.
- State is durable and repo-local:
.cdd-runtime/master-chef/run.json.cdd-runtime/master-chef/run.lock.json.cdd-runtime/master-chef/master-chef.jsonl.cdd-runtime/master-chef/builder.jsonl
- Before kickoff, resolve the
Run config:- if the current prompt includes a
Run configblock, use that - otherwise, if
~/.openclaw/config/master-chef/default-run-config.yamlexists, read it, surface the resolved config back to the human, and use it as the startingRun configfor that run - the resolved
Run configmust containmaster_model,master_thinking,builder_model, andbuilder_thinking - treat the resolved
Run configas the only per-run source of truth; do not infer model settings from repo docs, USER.md, memory, previousrun.json, or earlier runs - keep shared docs and commits free of local-only operator overrides
- if the current prompt includes a
- Before autonomous work starts, inspect:
- current git status and branch
- upstream branch when present
- active TODO file when present
- last completed step when present
- next runnable TODO step when present
- whether the repo first needs
cdd-init-projectbefore the normal TODO loop can start
- Master Chef chooses the internal
cdd-*routing model.- For a new or not-yet-CDD project, propose and normally start with
cdd-init-projectin the main session before any autonomous TODO execution. - Builder default:
cdd-implement-todofor the next runnable TODO step. - Builder optional:
cdd-indexwhen Master Chef explicitly wants an index refresh as the delegated action. - Master Chef direct:
cdd-init-project,cdd-plan, andcdd-refactorstay in the main session rather than being delegated to Builder. - Excluded from the normal flow:
cdd-audit-and-implement, unless the process is explicitly adapted for its mixed role. - Treat the installed
cdd-*skills as internal OpenClaw workflows, not user slash commands.
- For a new or not-yet-CDD project, propose and normally start with
- Before implementation starts, present one kickoff approval that covers:
- proposed next action
- the approved
Run config - runtime initialization under
.cdd-runtime/master-chef/ - run lease creation
- Spawn the Builder as a subagent with the exact
builder_modelandbuilder_thinkingfrom the approvedRun config, for exactly one approved delegated action, and tell it which internalcdd-*skill path to use. - Use one-step Builder runs only.
- One Builder run equals one approved delegated action.
- After a step passes, blocks, or is abandoned as stale, Master Chef must re-inspect repo state and spawn a fresh Builder for the next delegated action, normally via
cdd-implement-todo. - Do not treat Builder session resurrection or multi-step continuation as a normal path.
- Both Master Chef and Builder must append JSONL logs with concrete evidence for step start, validation, blockers, completion, and reporting.
- Use
hard_gateandsoft_signalvalidation classes:
hard_gate: failing tests, lint, typecheck, migrations, pushability, or repo-defined must-pass checkssoft_signal: discovery greps, file-presence scans, or other non-blocking heuristics
- Use working-tree-aware discovery checks when unstaged files matter:
rg --filesgit ls-files --cached --others --exclude-standard
- For each passed step:
- ensure the Builder updated only the selected step in
TODO*.md - run Master Chef QA
- approve step-level UAT with explicit evidence
- commit
- push
- send the full result, evidence, and decision trail in the current Master Chef session
- Reporting is session-native.
- The current Master Chef session is the control plane and reporting surface for this shared skill.
- Report lifecycle events such as
START,STEP_PASS,STEP_BLOCKED,RUN_COMPLETE, and explicit stops in-session. - Keep shared skill docs and runtime state free of extra route config.
- When Master Chef performs a Builder check in the main session, it may:
- inspect runtime files and logs
- inspect Builder health
- replace the Builder with a fresh subagent run if stale
- report blockers or completion
- Direct Builder checks must not create a second control loop. Recovery stays in the main session, using fresh Builder replacement rather than normal session resurrection.
- Healthy Builder checks may stay quiet, but they do not cancel in-session lifecycle reporting for events such as
START,STEP_PASS,STEP_BLOCKED,RUN_COMPLETE, or an explicit stop. - If repeated Builder replacements fail without progress, stop quickly and report
STEP_BLOCKEDorDEADLOCK_STOPPEDrather than limping on.
Canonical run.json fields:
run_idrepomaster_modelmaster_thinkingbuilder_modelbuilder_thinkingbuilder_runtimemaster_session_keybuilder_session_keyactive_todo_pathactive_stepphasebranchupstreampre_step_head_shalast_pass_head_shalast_progress_at_utclast_master_log_at_utclast_builder_log_at_utcbuilder_restart_countdispute_loop_countcurrent_blocker
Report events:
STARTBUILDER_RESTARTEDSTEP_PASSSTEP_BLOCKEDBLOCKER_CLEAREDRUN_STOPPEDDEADLOCK_STOPPEDRUN_COMPLETE
Reporting surface:
- the current Master Chef session carries full operational detail and lifecycle reporting
More from ruphware/cdd-skills
cdd-boot
Boot a repo into vanilla AGENTS-driven mode by ingesting AGENTS.md plus project and development docs, gracefully when non-core files differ or are missing (explicit-only).
10cdd-plan
Plan work by updating the CDD contract + implementation-ready TODO steps (approval-gated, explicit-only).
10cdd-index
Regenerate docs/INDEX.md only, using an embedded local CDD index prompt with phase-based analysis, GitHub-safe diagrams, fixed validation, and post-action review (approval-gated, explicit-only).
10cdd-audit-and-implement
Convert audit bullets into implementation-ready TODO steps, then implement the first dependency-ordered step (two approvals, explicit-only).
10cdd-implement-todo
Implement exactly one TODO step, run its checks, mark that step's tasks done in TODO on success, and return a UAT checklist (explicit-only).
10