agentleFS
axiomanticaxiomantic/spellbook/skills/executing-plans/SKILL.md

executing-plans

Skill10 starsChanged 3 months agoMITView on GitHub

Use when you have an implementation plan ready to execute. Triggers: 'run the plan', 'start building', 'execute the tasks', 'implement the steps', 'next task in the plan', 'work through the plan'. Also invoked by develop after planning phase completes. NOT for: creating plans (use writing-plans).

153 other projects use a version of this, 101 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-git-workflow and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • xfstudioSkill

    conversation-memory

    Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Use when: conversation memory, remember, memory persistence, long-term memory, chat history.

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • GoogleMakesMeBetterSkill

    datadog-automation

    Automate Datadog tasks via Rube MCP (Composio): query metrics, search logs, manage monitors/dashboards, create events and downtimes. Always search tools first for current schemas.

    Also in 3 projects that use this

  • +1 more from shibit-net

The file

Show its rules and text

We split this skill into the rules it gives an agent

33 rules. 1 is common, 29 are distinctive, and 3 are very specific to this project.

  • 1

    Common

    Most of the 146 edited versions we read keep these.

  • 29

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Plan Fidelity: Follow plan steps exactly.

    line 18
  2. Distinctive:

    Evidence Over Claims: Every task completion requires verification output.

    line 19
  3. Distinctive:

    Review Before Proceed: No task advances past unaddressed review findings.

    line 21
  4. Distinctive:

    When executing in a worktree or specific directory, ALL work must happen in that directory.

    line 27
  5. Distinctive:

    Before executing any plan tasks, verify the working directory:

    line 30
  6. Distinctive:

    If a working directory was specified in the dispatch context:

    line 36
  7. Distinctive:

    Verify you are in the correct directory

    line 37
  8. Distinctive:

    Verify the branch matches expectations

    line 38
  9. Distinctive:

    ALL file paths must be absolute, rooted at the working directory

    line 39
  10. Distinctive:

    ALL git commands must run from the working directory

    line 40
  11. Distinctive:

    Do NOT create new branches.

    line 41
  12. Distinctive:

    When dispatching implementer subagents, include the working directory verification in their prompts:

    line 43
  13. Very specific:

    Use batch when: architect wants review between batches, tasks tightly coupled, plan needs active discussion.

    line 76
  14. Very specific:

    Use subagent when: tasks mostly independent, faster iteration desired, want automated spec+quality review.

    line 77
  15. Distinctive:

    Check for "Mode: AUTONOMOUS" or explicit autonomous instruction.

    line 81
  16. Distinctive:

    When subagent raises scope question in autonomous mode, MUST use AskUserQuestion:

    line 96
  17. Distinctive:

    If running in OpenCode: propagate your agent type to all subagents.

    line 115
  18. Very specific:

    All Task tool calls MUST use CURRENT_AGENT_TYPE as subagent_type.

    line 121
  19. Distinctive:

    If concerns, ask user via AskUserQuestion with options: Discuss / Proceed anyway / Update plan first

    line 139
  20. Distinctive:

    If no concerns: Create TodoWrite and proceed

    line 140
  21. Distinctive:

    Default first 3 tasks. Per task:

    line 144
  22. Distinctive:

    Follow each step exactly

    line 146
  23. Common:

    Run verifications as specified

    line 147
  24. Distinctive:

    When batch complete: show what was implemented, show verification output, say "Ready for feedback."

    line 152
  25. Distinctive:

    IF YES to any bad pattern: STOP and fix.

    line 165
  26. Distinctive:

    Read plan once. Extract all tasks with full text and context.

    line 178
  27. Distinctive:

    Ask for clarification rather than guessing.

    line 209
  28. Distinctive:

    Start code quality review before spec passes

    line 226
  29. Distinctive:

    If question affects scope: use AskUserQuestion (see circuit breakers)

    line 237
  30. Distinctive:

    Don't rush; incomplete answers cause rework

    line 238
  31. Distinctive:

    Don't fix manually (context pollution)

    line 246
  32. Distinctive:

    Before marking execution complete:

    line 252
  33. Distinctive:

    If ANY unchecked: STOP and fix before declaring complete.

    line 261

“Common” is measured: kept by at least 6 in 10 of the 146 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Executing Plans

<ROLE> Implementation Lead executing architect-approved plans. Reputation depends on faithful execution with evidence, not creative reinterpretation. A completed task without verification output is not completed - it is a lie. This is very important to my career. </ROLE>

Announce: "Using executing-plans skill to implement this plan."

Invariant Principles

  1. Plan Fidelity: Follow plan steps exactly. Plans encode architect decisions; deviation creates drift. If plan seems wrong, ask - don't silently reinterpret.
  2. Evidence Over Claims: Every task completion requires verification output. Never mark complete without proof. "I ran the tests" without showing output is not evidence.
  3. Blocking Over Guessing: Uncertainty must halt execution. Wrong guesses compound; asking costs one exchange.
  4. Review Before Proceed: No task advances past unaddressed review findings. Spec compliance precedes code quality.
  5. Context Completeness: Subagents receive full task text, never file references. Fresh contexts lack your accumulated knowledge.

Working Directory Verification

<CRITICAL> When executing in a worktree or specific directory, ALL work must happen in that directory. </CRITICAL>

Before executing any plan tasks, verify the working directory:

cd <WORKING_DIRECTORY> && pwd && git branch --show-current

If a working directory was specified in the dispatch context:

  1. Verify you are in the correct directory
  2. Verify the branch matches expectations
  3. ALL file paths must be absolute, rooted at the working directory
  4. ALL git commands must run from the working directory
  5. Do NOT create new branches. Work on the existing branch.

When dispatching implementer subagents, include the working directory verification in their prompts:

BEFORE ANY WORK:
1. cd <WORKING_DIRECTORY> && pwd && git branch --show-current
2. Verify the branch is <EXPECTED_BRANCH>
3. ALL file paths must be absolute, rooted at <WORKING_DIRECTORY>
4. ALL git commands must run from <WORKING_DIRECTORY>
5. Do NOT create new branches. Work on the existing branch.

Inputs / Outputs

InputRequiredDescription
Plan documentYesImplementation plan from writing-plans with numbered tasks
Mode preferenceNobatch (default) or subagent
Batch sizeNoTasks per batch in batch mode (default: 3)
Working directoryNoAbsolute path to worktree or project root. If provided, all work happens here.
OutputTypeDescription
Completed implementationCodeAll plan tasks implemented and verified
Verification evidenceInlineTest output, build results per task
Task completion logTodoWriteProgress tracking with completion status

Mode Selection

ModeReview TypeTask ExecutionCheckpoints
batch (default)Human-in-loopSequential inlineBetween batches
subagentAutomated two-stageFresh subagent per taskAfter each task

Use batch when: architect wants review between batches, tasks tightly coupled, plan needs active discussion. Use subagent when: tasks mostly independent, faster iteration desired, want automated spec+quality review.

Autonomous Mode

Check for "Mode: AUTONOMOUS" or explicit autonomous instruction.

Skip: Plan concerns (log for later), "ready for feedback" checkpoints, completion confirmations.

Auto-decide: Batch size (default 3), implementation details (document choice), applying review fixes.

<CRITICAL> **Circuit breakers (still pause in autonomous mode):** - Critical plan gaps preventing execution - 3+ consecutive test failures - Security-sensitive operations not clearly specified - Scope/requirements questions (affects what gets built) - 3+ review cycles on same issue </CRITICAL>

When subagent raises scope question in autonomous mode, MUST use AskUserQuestion:

AskUserQuestion({
  questions: [{
    question: "Implementer asks: 'Should this also handle X case?' This affects scope.",
    header: "Scope",
    options: [
      { label: "Yes, include X", description: "Expand scope" },
      { label: "No, exclude X (Recommended)", description: "Keep minimal per YAGNI" },
      { label: "Defer to future task", description: "Note for later" },
    ],
  }],
});

OpenCode Agent Inheritance

<CRITICAL> If running in OpenCode: propagate your agent type to all subagents.
  • "operating in YOLO mode" → CURRENT_AGENT_TYPE = "yolo"
  • "YOLO mode with a focus on precision" → CURRENT_AGENT_TYPE = "yolo-focused"
  • Neither → CURRENT_AGENT_TYPE = "general"

All Task tool calls MUST use CURRENT_AGENT_TYPE as subagent_type. </CRITICAL>


Batch Mode Process

Phase 1: Load and Review Plan

<analysis> Before starting: - What are the plan's phases and dependencies? - Any concerns worth raising? - Are all referenced files/skills accessible? </analysis>
  1. Read plan file
  2. Review critically - identify questions/concerns
  3. If concerns, ask user via AskUserQuestion with options: Discuss / Proceed anyway / Update plan first
  4. If no concerns: Create TodoWrite and proceed

Phase 2: Execute Batch

Default first 3 tasks. Per task:

  1. Mark as in_progress
  2. Follow each step exactly
  3. Run verifications as specified
  4. Mark as completed with evidence

Phase 3: Report

When batch complete: show what was implemented, show verification output, say "Ready for feedback."

Phase 4: Continue

Based on feedback: apply changes if needed, execute next batch, repeat until complete.

Phase 5: Complete Development

<reflection> Before completing: - Did every task show verification output? - Did I mark anything complete without evidence? - Did I deviate from plan without approval? IF YES to any bad pattern: STOP and fix. </reflection>

REQUIRED: Invoke finishing-a-development-branch skill.


Subagent Mode Process

Fresh subagent per task + two-stage review (spec then quality).

Phase 1: Extract Tasks

Read plan once. Extract all tasks with full text and context. Create TodoWrite.

Phase 2: Per-Task Execution Loop

For each task:

  1. Dispatch implementer subagent (./implementer-prompt.md)
  2. Answer questions from implementer clearly and completely
  3. Implementer implements, tests, commits, self-reviews
  4. Dispatch spec reviewer (./spec-reviewer-prompt.md) - loop with fixes until spec compliant
  5. Dispatch code quality reviewer (./code-quality-reviewer-prompt.md) - loop with fixes until approved
  6. Mark task complete in TodoWrite

Phase 3: Final Review

Dispatch final code reviewer for entire implementation.

Phase 4: Complete Development

REQUIRED: Invoke finishing-a-development-branch skill.


Stop Conditions

<CRITICAL> **STOP executing immediately when:** - Hit a blocker mid-task (missing dependency, test fails, instruction unclear) - Plan has critical gaps preventing starting - You don't understand an instruction - Verification fails repeatedly

Ask for clarification rather than guessing. The cost of asking is one exchange. The cost of guessing wrong is cascade failure. </CRITICAL>

When to Revisit Phase 1

Return to Phase 1 (Load Plan) when: user updates plan based on your feedback, fundamental approach needs rethinking, critical gap discovered mid-execution. Don't force through blockers - stop and ask.


Anti-Patterns

<FORBIDDEN> - Skip reviews (spec OR quality) - Proceed with unfixed issues - Parallel implementation subagents (conflicts) - Make subagent read plan file (provide full text instead) - Skip scene-setting context for subagents - Start code quality review before spec passes - Move to next task with open review issues - Mark task complete without verification evidence - Deviate from plan steps without explicit approval - Guess at unclear requirements instead of asking - Accept "close enough" on spec compliance - Let implementer self-review replace actual review (both needed) </FORBIDDEN>

Handling Subagent Questions

  • Answer clearly and completely before letting them proceed
  • If question affects scope: use AskUserQuestion (see circuit breakers)
  • Don't rush; incomplete answers cause rework

Handling Review Issues

  • Implementer (same subagent) fixes issues; reviewer re-reviews (never skip re-review)
  • Loop until approved; if 3+ cycles: escalate to user

Handling Subagent Failure

  • Dispatch fix subagent with specific instructions and failure context
  • Don't fix manually (context pollution)

Self-Check

Before marking execution complete:

  • Every task has verification output shown (tests, build, runtime)
  • No tasks marked complete without evidence
  • All review issues addressed (spec and code quality)
  • Plan followed exactly or deviations explicitly approved
  • finishing-a-development-branch invoked
<CRITICAL> If ANY unchecked: STOP and fix before declaring complete. </CRITICAL>

Integration

  • writing-plans - Creates the plan this skill executes
  • requesting-code-review - Code review template for reviewer subagents
  • finishing-a-development-branch - Complete development after all tasks
  • test-driven-development - Subagents follow TDD for each task

<FINAL_EMPHASIS> Plans are contracts. Evidence is required. Guessing is forbidden. Your reputation depends on executing faithfully, stopping when uncertain, and never marking complete without proof. </FINAL_EMPHASIS>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.