一键导入
executing
Dispatch one fresh subagent per plan task inside a per-task git worktree. Capture diff and tool output; never carry state across dispatches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dispatch one fresh subagent per plan task inside a per-task git worktree. Capture diff and tool output; never carry state across dispatches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
On verify or judge fail, append a non-null lesson to the Ledger and re-queue the task. Null lessons are refused; the task escalates instead.
Author a machine-readable contract before execution. Produces anvil/contract.yml with four verification-level slots per criterion and Ledger-sourced counter-examples.
Decompose a confirmed contract into an atomic task DAG with wave ordering. Every task cites one or more contract criterion ids.
Bootstrap loader for the DG-Anvil plugin. Enumerates the five primitives, seven skills, five commands, and the core loop. Loaded at session-start.
Meta-skill governing every change to any skill file. Requires a RED-then-GREEN subagent pressure transcript before a skill change is accepted.
Dispatch the Court on evidence-only inputs (contract + diff + verify output + confidence). The Court is not a persona; it is a structured adjudicator.
| name | executing |
| description | Dispatch one fresh subagent per plan task inside a per-task git worktree. Capture diff and tool output; never carry state across dispatches. |
This skill dispatches one subagent per plan task, inside a per-task git worktree. Every subagent receives the task record and the contract inlined; the orchestrator reads only the captured diff and the captured tool-output. It does not read implementer narration. State never carries across dispatches; every briefing is composed from the parsed contract and parsed plan.
Invoking the Anvil CLI: the CLI is cli/anvil.js inside the plugin directory, NOT on PATH. Every anvil invocation below means node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js".
Invoked by the orchestrator for each plan task once the task's wave unlocks. Not invoked by user prompts. Every task gets its own fresh subagent and its own worktree; two tasks never share a subagent or a worktree.
The orchestrator dispatches a subagent per task via the Task tool and then lands the work via the plugin's CLI. The orchestrator NEVER invokes git, Write, Edit, MultiEdit, or NotebookEdit directly during this loop. Every production-code edit happens inside the task worktree via the dispatched subagent; every git operation happens via the anvil merge-task / anvil reset-task subcommands.
anvil/contract.yml and the confirmed anvil/plan.yml.node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" run --task <id>. This subcommand force-cleans any stale worktree or branch for the same task id before creating the new one; a prior failed run does not block retry.Task tool. The subagent works ONLY inside the worktree path returned by step 2. Every tool call's raw output is captured to <worktreePath>/anvil/tool-output.jsonl. The diff is captured to <worktreePath>/anvil/diff.patch.node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" verify --worktree <path> --contract anvil/contract.yml to run the four-level probe.allGreen is true: invoke node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" merge-task --task <id>. This commits pending changes in the worktree, merges the branch back with --no-ff, removes the worktree, and deletes the branch. The orchestrator never runs git commit, git merge, git stash, or any other git command itself.judging. Do NOT attempt to commit, merge, or edit files outside the worktree. If the Court calls for reset, dispatch resetting (which appends a lesson and re-queues the task). If the run is stuck, call node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" reset-task --task <id> to tear down the worktree/branch before the next try.verifying skill. The orchestrator never reads the captured files itself; only verifying reads them.Reject the following shortcuts:
If any of these conditions obtain, the dispatch is rejected:
Write, Edit, MultiEdit, NotebookEdit, or bash git commands itself to modify paths outside the task worktree or outside anvil/. The pre-tool-use hook blocks these edits during an active run with E_HOOK_BLOCKED; treat the block as structural, not advisory (failure-taxonomy row 19: Ghost code).git merge, git stash, git commit, manual conflict resolution) instead of calling anvil merge-task or anvil reset-task. The plugin owns the worktree lifecycle; the orchestrator composes only.Check each dispatch with:
node "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" run --task <id> exits 0 on success or non-zero with a structured {error, code, details} on stderr.<worktreePath>/anvil/diff.patch exists; is non-empty iff the task produced any change; is the entire diff captured as-is.<worktreePath>/anvil/tool-output.jsonl exists; each line is a valid JSON record matching the closed tool-output schema.anvil/state.json contains no key whose value is a free-form string from the subagent's narration.