bonfire:code
Execute the frozen code handoff. Spawns coder/evaluator agents per implementation unit. Cannot invent product meaning.
by ZB-ur★ 40 GitHub stars
Install bonfire:code in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Core invariant: if the coder needs to ask what the product means, reenter /bonfire:plan.
Throughout this process, bonfire means node $HOME/.claude/bonfire/bin/bonfire-tools.cjs.
</execution_context>
Entry Check
Read state.json:
- If
pending_reentryexists: abort with "pending reentry to /bonfire:. Please resolve first." - Verify
pipeline_stage == "code"andstage-j.status == "passed" - Otherwise abort: "Please complete /bonfire:plan first"
- If
Read
.bonfire/plan/compile-output.json:- Verify
handoff.code_ready == true - Otherwise abort: "handoff code_ready=false"
- Verify
Initialize code steps:
bonfire state-init-code-steps bonfire state-begin-run --run-id run-<timestamp>
Unit Execution Loop
For each unit in handoff.implementation_units (dependency order from execution_manifest):
Set iteration = 0, max_iterations = 5, feedback = null
Loop start:
iteration += 1 bonfire state-step --step unit-N --status runningSpawn bonfire-coder:
Agent({ subagent_type: "bonfire-coder", prompt: "Unit definition: <unit JSON> Handoff: @.bonfire/plan/compile-output.json#handoff Preflight: @.bonfire/plan/compile-output.json#code_preflight Feedback: <previous evaluator issues or null> @$HOME/.claude/bonfire/references/code-playbook.md" })Move manifest:
runs/<run-id>/unit-N-manifest.jsonSpawn bonfire-evaluator:
Agent({ subagent_type: "bonfire-evaluator", prompt: "Unit definition: <unit JSON> Manifest: @.bonfire/runs/<run-id>/unit-N-manifest.json Frozen decisions: @.bonfire/plan/compile-output.json#handoff.frozen_product_decisions Snapshot: @.bonfire/truth-surface/constraint-ledger-snapshot.json @$HOME/.claude/bonfire/references/code-playbook.md" })Move verdict:
runs/<run-id>/unit-N-verdict.jsonVerdict routing:
PASS:
- Git commit (unit-granularity atomic commit)
- Write
runs/<run-id>/unit-N-pass.json state-step --step unit-N --status passedpreflight-update --field current_focus --value "unit-(N+1)"preflight-update --field progress --unit unit-N --status passed- → next unit
FAIL + conflict_type != null (constraint violated):
- Write
runs/<run-id>/unit-N-reentry.json state-pending-reentry --conflict-type <type> --from unit-N --reason <text>log-agent --event failed --agent bonfire-evaluator --step unit-N- Output: "Frozen constraint violated (<conflict_type>). Reentry needed. Please execute /bonfire:plan"
- HALT — skill terminates
FAIL + conflict_type == null + iteration < max_iterations:
- feedback = verdict.issues
log-agent --event failed --agent bonfire-evaluator --step unit-N- → loop start (retry with feedback)
FAIL + conflict_type == null + iteration >= max_iterations:
state-step --step unit-N --status awaiting_user- Output: "unit-N failed after 5 iterations. Please intervene."
- HALT — skill pauses
Completion
- All units passed:
- Run global
verification_commandsfrom handoff - Run
browser_checksif applicable - Write
runs/<run-id>/code-run.json state-complete-run --run-id <id> --verdict pending_achieve- Render:
bonfire render --run <run-id> --note code-run - Output: "/code complete. Please execute /bonfire:achieve"
- Run global
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the bonfire:code skill do?
Execute the frozen code handoff. Spawns coder/evaluator agents per implementation unit. Cannot invent product meaning.
How do I install the bonfire:code skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the bonfire:code skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…