agentleFS
0x2E0x2E/dev-skills/skills/executing-plans/SKILL.md

executing-plans

Skill1 starsChanged 5 months agoMITView on GitHub

Use after planning — execute tasks serially per milestone, dispatching implementer subagents, with checkpoint reviews between milestones.

153 other projects use a version of this.

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

19 rules. 0 are common, 14 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 146 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, you must have:

    line 12
  2. Distinctive:

    Before starting execution, determine the commit strategy to avoid accumulating an uncommitted blob of changes:

    line 17
  3. Distinctive:

    If not a git repo: Ask the user: "This is not a git repository.

    line 21
  4. Distinctive:

    If is a git repo, check whether this is a git worktree:

    line 23
  5. Distinctive:

    Before dispatching the first task, scan the plan once.

    line 37
  6. Very specific:

    If a task fails verification after 3 fix attempts, invoke systematic-debugging to diagnose the root cause before further retries.

    line 50
  7. Distinctive:

    When an implementer subagent returns:

    line 89
  8. Distinctive:

    After each milestone and after all milestones complete, dispatch two-stage reviewing-code.

    line 100
  9. Distinctive:

    If reviewing-code reports issues, dispatch an implementer to fix them, then re-run reviewing-code.

    line 107
  10. Very specific:

    After the final global review passes, invoke analyzing-over-engineering to check the implementation for over-engineering.

    line 111
  11. Very specific:

    If no findings, proceed to Final Verification.

    line 113
  12. Distinctive:

    After the final global review passes, run the full verification suite before claiming completion:

    line 117
  13. Distinctive:

    Run the full suite: tests, lint, and build

    line 119
  14. Distinctive:

    If all pass: implementation is complete.

    line 120
  15. Distinctive:

    If any fail: dispatch a fix subagent with the specific failure output.

    line 121
  16. Distinctive:

    Run the failing verification command to confirm the fix

    line 123
  17. Very specific:

    If still failing after 3 fix cycles: invoke systematic-debugging to diagnose the root cause.

    line 126
  18. Distinctive:

    After final verification passes, report completion to the user with a summary of what was implemented and the verification results.

    line 130
  19. Very specific:

    After final verification passes and completion is reported, invoke the finishing-work skill immediately.

    line 134

“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

Execute the implementation plan by dispatching implementer subagents for each task, running checkpoint reviews between milestones, and a final global review.

Preconditions

Before starting, you must have:

  1. Planning output — milestone-grouped task list with dependency annotations and execution strategy (mode + TDD per task)

Git Environment Check

Before starting execution, determine the commit strategy to avoid accumulating an uncommitted blob of changes:

  1. Is this a git repository? Check: git rev-parse --git-dir 2>/dev/null
  2. If not a git repo: Ask the user: "This is not a git repository. Do you want me to initialize one and commit as we go?"
  3. If is a git repo, check whether this is a git worktree:
    • test -f .git && echo "worktree" (worktrees have .git as a file, not a directory)
  4. Commit strategy:

    EnvironmentStrategy
    Git worktreeRequire a commit after each task completes. The implementer subagent must stage and commit their changes before returning. If a milestone groups multiple tasks, also commit after the milestone.
    Main branch (regular repo)Ask the user: "You are on main. Should I create a feature branch and commit as we go, or proceed without commits?"
    Feature branch (regular repo, not worktree)Ask the user: "Should I commit after each task, after each milestone, or do you prefer to commit yourself?"
    Not a git repoFollow user's answer from step 2.

Plan Pre-flight

Before dispatching the first task, scan the plan once. Catch problems that are cheap to find now and expensive to hit mid-run:

  • Internal conflicts — a task contradicts a Global Constraint, or two tasks specify incompatible interfaces ([produces]/[consumes] don't line up).
  • Defective asks — something the plan asks for that a reviewer would flag (e.g., a task adds a dependency the Global Constraints forbid).
  • Broken dependencies — a task's [depends on] points to nothing, or the ordering is impossible.
  • Missing acceptance — a task with no testable success condition.

Raise everything found at once to the user. Fix the plan (or get an explicit decision) before starting — do not begin execution and stumble into a conflict partway through. If the scan is clean, proceed.

Scheduling Rules

Execute milestones serially. For each milestone, execute tasks serially. Run verifying-completion after each task, reviewing-code after each milestone, and final reviewing-code after all milestones. Never dispatch multiple implementer subagents in parallel.

If a task fails verification after 3 fix attempts, invoke systematic-debugging to diagnose the root cause before further retries. Do not keep retrying without root cause analysis.

Implementer Subagent Prompt

Craft the implementer prompt with these elements:

## Task
{task description with full context from plan}

## Relevant Context
{summary of the design/spec this task implements}
{paths to relevant existing files}
{codebase conventions or patterns to follow}

## Acceptance Criteria
- {criterion 1}
- {criterion 2}

## TDD Instructions (if enabled)
{Include the test-driven-development skill instructions: red → green → refactor cycle}

## Commit Instructions (if enabled by git environment check)
{If commits are required: Stage all changed files, write a concise commit message summarizing the task, and commit before returning. Follow the existing commit message convention (check `git log --oneline` for the repo's style).}

## Output Requirements
- Complete the implementation
- Run verification (tests, lint, build)
- Commit changes (if required)
- Return: summary of changes + issues encountered + verification result + commit SHA (if committed)

Prompt Crafting Principles

  • Essential context upfront: subagent receives task description, design context, file paths, and acceptance criteria. It does NOT need to read the full plan/spec.
  • Self-gather for details: the subagent should read source files, explore the codebase, and look up conventions on its own as needed. The parent does not need to pre-package every file.

Handling Implementer Status

When an implementer subagent returns:

StatusAction
DoneProceed to verifying-completion
Needs contextProvide the missing info (or point to the file to read) and re-dispatch. Do not pre-read and summarize unless the subagent explicitly needs interpretation
BlockedThe plan should have resolved all blockers. If genuinely blocked by an unforeseen issue, assess and resolve — provide more context, break the task down, or adjust the approach. Do not escalate to human.
Concerns raisedRead concerns, address if critical, otherwise note and proceed

Review Gates

After each milestone and after all milestones complete, dispatch two-stage reviewing-code. The only difference between checkpoint and final review is scope:

GateScope
Checkpoint (per milestone)Diff between milestone's first and last commit
Final global (all milestones)Diff between feature branch HEAD and base branch

If reviewing-code reports issues, dispatch an implementer to fix them, then re-run reviewing-code. Proceed to the next milestone (checkpoint) or to final verification (final) only after reviewing-code passes.

Over-Engineering Check

After the final global review passes, invoke analyzing-over-engineering to check the implementation for over-engineering.

If no findings, proceed to Final Verification. If findings are presented, the user selects which to act on per the skill's process, then invoke planning for the selected findings.

Final Verification

After the final global review passes, run the full verification suite before claiming completion:

  1. Run the full suite: tests, lint, and build
  2. If all pass: implementation is complete. Report the results to the user.
  3. If any fail: dispatch a fix subagent with the specific failure output. The fix subagent must:
    • Understand and fix the root cause of the failure
    • Run the failing verification command to confirm the fix
    • Return a summary of changes and the verification result
  4. Re-run the full verification suite after the fix.
  5. If still failing after 3 fix cycles: invoke systematic-debugging to diagnose the root cause. Do not continue retrying without root cause analysis. After debugging, re-dispatch the implementer with the root cause findings.

Complete

After final verification passes, report completion to the user with a summary of what was implemented and the verification results.

Next Step

After final verification passes and completion is reported, invoke the finishing-work skill immediately. This skill handles the integration decision: merge, PR, keep, or discard. Do NOT skip this step — the workflow is not complete until the branch is integrated or explicitly set aside.

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.