一键导入
executing-plans
Use when you have a written plan in docs/plans/ ready to implement — runs every task continuously via TDD red-green-refactor, then reviews
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you have a written plan in docs/plans/ ready to implement — runs every task continuously via TDD red-green-refactor, then reviews
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when changing cogitation project settings (test/build/lint commands, branching conventions, graphify/codex toggles), or the user says "change config", "update settings", or "set test command"
Use when setting up a project for cogitation for the first time, or the user says "set up cogitation", "init", or "configure this project"
Use at the start of any conversation — establishes the cogitation workflow and requires invoking the right skill before responding, including before clarifying questions
Use for MEDIUM-sized work — new but contained behavior (one component, no architecture/data/API change) that deserves rigor without the design-doc + plan-doc ceremony of brainstorming
Use when the user wants to tailor the cogitation workflow — says "customise", "recustomise", "change the workflow", "make TDD less strict", "turn off finishing-branch", or wants a skill looser or disabled
Use when EC memories need cleanup — deduping, pruning stale entries, hygiene — or the user says "audit memories", "clean up EC", or "review what's stored"
| name | executing-plans |
| description | Use when you have a written plan in docs/plans/ ready to implement — runs every task continuously via TDD red-green-refactor, then reviews |
Execute a plan continuously in TDD, then review.
Announce: "I'm using the executing-plans skill to implement this plan."
Every task follows @tdd: RED → GREEN → REFACTOR
No production code without a failing test first.
docs/plans/YYYY-MM-DD-<topic>.mdVerify Branch → EC Search → Load Plan → Execute Tasks → Review → Finish
git branch --show-current
Must be on a feature branch, not main.
Get project config and relevant context:
ec_search:
query: project config
type: config
ec_search:
query: [feature area]
type: pattern
ec_search:
query: [feature area]
type: learning
Note any gotchas or patterns that apply to this implementation.
Important: Pick one approach and stick with it for the entire execution. Don't mix Tasks and TodoWrite.
If TaskCreate/TaskUpdate/TaskList tools are available, create one task per plan task:
TaskCreate: "Task 1: [first task summary]"
TaskCreate: "Task 2: [second task summary]" → addBlockedBy: [task 1 id]
... one per plan task, chained in order
Benefits:
CLAUDE_CODE_TASK_LIST_IDIf Tasks aren't available, create a TodoWrite with all plan tasks and update as you go.
Execute continuously — work through every task in order, stopping only for a real blocker (see "When to Stop"). Do not pause for feedback between tasks; that round-trip adds latency without improving quality.
Decide once, up front, how to run the whole plan:
{
"questions": [{
"question": "How should I execute this plan?",
"header": "Execution",
"options": [
{ "label": "Main thread", "description": "Execute here with full visibility (default)" },
{ "label": "Subagent-driven", "description": "Dispatch a fresh subagent to run the plan; returns a summary" }
],
"multiSelect": false
}]
}
For each task, follow @tdd:
in_progress (TaskUpdate if using Tasks, otherwise TodoWrite)@verifying)completed, then move straight to the next taskDispatch with this prompt:
Execute this plan end to end:
[Paste the plan tasks]
Requirements:
- EVERY task follows @tdd: write failing test FIRST, then minimal code to pass, then refactor
- No production code without a failing test — if you can't test it, stop and report
- Use @verifying before claiming any step complete
- Commit after each task
- Execute continuously; stop and report ONLY on a blocker
EC Context:
- Test command: {test_command}
- [Relevant patterns/learnings from EC]
Return:
- Summary of what was implemented
- Tests written and their status
- Files created/modified
- Any blockers encountered
Tip: If using Tasks, the subagent can share the same task list by setting CLAUDE_CODE_TASK_LIST_ID — updates broadcast across sessions.
When all tasks are done and verified:
"Implementation complete. [Brief summary]."
Pick the lightest tier that fits the change. Default to Tier 0.
Tier 0 — Inline self-review (default). No dispatch. Re-read the full diff yourself against this checklist:
@verifying)Catches most issues in ~30s. For small/medium changes this is enough.
Tier 1 — Subagent review (opt-in). For larger or higher-risk diffs, use @requesting-review to dispatch an independent reviewer.
Tier 2 — External / adversarial review (opt-in). When you want a second model to pressure-test the work, and codex is enabled in .cogitation/config.json:
codex-plugin-cc — /codex:adversarial-review --background (non-blocking; retrieve with /codex:result).@codex-review (pre-execution artifact review).Process feedback from any tier with @receiving-review. Address Critical and Important issues before finishing. Minor/style notes don't block.
If the plan noted patterns to store:
ec_add:
type: pattern
area: [component]
content: [Pattern description]
rationale: Established during [feature] implementation
When all tasks complete and review passes:
"Implementation complete. Ready to finish the branch?"
If yes → Use @finishing-branch
Stop and ask when:
Don't guess - ask for clarification.