agentleFS
osmonteroosmontero/opencode-skills/skills/executing-plans/SKILL.md

executing-plans

Skill14 starsChanged 4 months agoMITView on GitHub

Use when you have a written implementation plan to execute in the current session with review checkpoints, and subagents are unavailable or the tasks are too coupled to delegate

153 other projects use a version of this, 6 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

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 146 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a todo for each:

    line 29
  2. Distinctive:

    REQUIRED SUB-SKILL: Use using-git-worktrees before starting.

    line 41
  3. Distinctive:

    Read the whole plan before writing any code.

    line 54
  4. Distinctive:

    Run the verification the step specifies and read the output

    line 87
  5. Distinctive:

    Commit as the plan directs

    line 88
  6. Distinctive:

    After each batch, report and pause:

    line 97
  7. Distinctive:

    Never silently deviate: Every deviation is reported at the next checkpoint, however small.

    line 130
  8. Distinctive:

    If verification fails repeatedly: stop and use systematic-debugging.

    line 144
  9. Distinctive:

    Before handing off, REQUIRED SUB-SKILL: use verifying-before-completion.

    line 148
  10. Very specific:

    REQUIRED SUB-SKILL: Use finishing-a-development-branch to verify tests, present the merge/PR/keep/discard options, and clean up.

    line 161
  11. Distinctive:

    Batching all commits at the end: No revertible checkpoints, and an unreviewable diff.

    line 171

“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

Overview

Load the plan, review it critically, execute in batches with checkpoints, verify, and hand off.

Announce at start: "I'm using the executing-plans skill to implement this plan."

Prefer subagent-driven-development when you can. Fresh context per task and staged review (spec, quality, and security for security-relevant tasks) produce measurably better results than inline execution. Use this skill when subagents are unavailable, when tasks are too tightly coupled to isolate, or when the plan is small enough that dispatch overhead exceeds the benefit.

The Iron Law

NO EXECUTION WITHOUT A CRITICAL REVIEW OF THE PLAN FIRST

Executing a flawed plan faithfully produces a flawed implementation efficiently. The review is not a formality — it is the only point where a bad plan costs minutes instead of hours.

Started executing without reviewing? Stop and review now. It is cheaper at task 2 than at task 9.

Checklist

Create a todo for each:

  1. Verify the workspace — isolated branch or worktree, clean baseline
  2. Load and review the plan critically — raise concerns before starting
  3. Build the todo list — one entry per task
  4. Execute in batches — 2-3 tasks, then checkpoint
  5. Verify at each checkpoint — run the actual commands
  6. Final verification — full suite, plan coverage check
  7. Hand off — finishing-a-development-branch

Step 1: Verify the Workspace

REQUIRED SUB-SKILL: Use using-git-worktrees before starting.

Never begin implementation on main/master without explicit consent. Check first:

git branch --show-current
git status --porcelain    # must be clean before starting

A dirty tree means you cannot tell your changes from pre-existing ones at review time.

Step 2: Review the Plan Critically

Read the whole plan before writing any code. Check for:

CheckRed flag
Placeholders"TBD", "add error handling", "write tests for the above", "similar to Task 3"
Type consistencyclearLayers() in Task 3, clearFullLayers() in Task 7
Undefined referencesA task uses a type or function no task defines
File pathsPaths that do not exist and no task creates
VerificationSteps with no command, or commands with no expected output
OrderingTask 5 depends on something Task 8 builds
ScopeMultiple independent subsystems that should have been separate plans

If you find issues: raise all of them at once, before starting. Do not fix the plan silently and do not discover them one at a time across the session.

Reviewed the plan. Three issues before I start:

1. Task 4 calls `validateToken()` — no task defines it. Task 2 defines
   `verifyToken()`. Same function, or a gap?
2. Task 6 modifies `src/auth/session.ts:40-58`; that file is 22 lines.
   The line range is stale.
3. Tasks 8-11 cover the notifications subsystem, independent of auth.
   Split into a second plan?

Step 3: Execute in Batches

Work 2-3 tasks at a time, then checkpoint. Batching keeps momentum without letting errors compound across nine tasks.

For each task:

  1. Mark in_progress
  2. Follow the steps exactly — the plan's granularity is deliberate
  3. Run the verification the step specifies and read the output
  4. Commit as the plan directs
  5. Mark completed

Follow the plan's steps exactly means writing the failing test first when the plan says to, and running it to watch it fail before implementing. Skipping the "run it and see it fail" step is the most common way plan execution silently degrades — see test-driven-development.

Do not batch commits. Committing per task is what makes a checkpoint reviewable and a mistake revertible.

Step 4: Checkpoint

After each batch, report and pause:

Tasks 1-3 complete.

- Task 1: token verification — 6 tests, all passing
- Task 2: session store — 4 tests, all passing
- Task 3: middleware wiring — 3 tests, all passing

Full suite: 47 passed, 0 failed.
Deviation: Task 2 specified a Map; used a WeakMap so sessions are
garbage-collected with their request objects. Behavior is identical.

Continue with tasks 4-6?

Checkpoints report evidence, not confidence — actual command output, not "should be working." See verifying-before-completion.

Optionally dispatch a reviewer at each checkpoint — see requesting-code-review. If the batch touched security-relevant code, dispatch the security-reviewer and treat Critical or High findings as blocking.

Step 5: Handling Deviations

Plans meet reality. Classify what happens next:

SituationDo
Step's code has a typo/obvious small errorFix it, note it at the checkpoint
Step's approach works but a better one existsFollow the plan. Note the alternative. Do not unilaterally improve.
Step is impossible as writtenStop. Report why. Propose an alternative. Wait.
Step's assumption about the codebase is wrongStop. The plan needs updating, not working around.
A task turns out unnecessaryStop and ask — do not silently skip
You discover an unrelated bugNote it. Do not fix it. Scope creep in execution is how plans lose their meaning.

Never silently deviate. Every deviation is reported at the next checkpoint, however small.

When to Stop and Ask

STOP immediately when:

  • A blocker appears — missing dependency, environment problem, failing baseline
  • An instruction is genuinely unclear
  • The same verification fails twice
  • The plan's assumptions about the codebase turn out to be wrong
  • Implementing a step would require restructuring code the plan did not anticipate

Ask rather than guess. A wrong guess at task 3 corrupts every task after it.

If verification fails repeatedly: stop and use systematic-debugging. Do not attempt fix after fix — three failed fixes means the problem is not where you think it is.

Step 6: Final Verification

Before handing off, REQUIRED SUB-SKILL: use verifying-before-completion.

  • Every task in the plan is checked off
  • Full test suite run in this message — output read, 0 failures
  • Linter and build run clean
  • Re-read the plan's goal: does the implementation deliver it?
  • Every deviation reported to the user
  • git status clean; every change committed

Plan coverage check: walk the plan's requirements and point to the code implementing each. A passing test suite proves the tests pass, not that the plan was fulfilled.

Step 7: Hand Off

REQUIRED SUB-SKILL: Use finishing-a-development-branch to verify tests, present the merge/PR/keep/discard options, and clean up.

Common Mistakes

Executing before reviewing. The plan's flaws get faithfully implemented.

Skipping "watch it fail". The plan says run the test and see it fail. Skipping it means you never learn whether the test tests anything.

Silent deviation. The implementation drifts from the plan and nobody knows until review.

Batching all commits at the end. No revertible checkpoints, and an unreviewable diff.

Forcing through a blocker. Three fixes deep on a step that was wrong to begin with.

"While I'm here" changes. Unrelated refactoring during execution makes the diff unreviewable and the deviation invisible.

Claiming completion from memory. "All tests passed earlier" is not verification. Run them now.

Integration

Required workflow skills:

  • using-git-worktrees — REQUIRED: isolated workspace before starting
  • writing-plans — creates the plan this skill executes
  • test-driven-development — how to execute the test-first steps correctly
  • verifying-before-completion — REQUIRED before any completion claim
  • finishing-a-development-branch — REQUIRED: complete development after all tasks

When things go wrong:

  • systematic-debugging — verification failing repeatedly
  • receiving-code-review — acting on checkpoint review feedback

Alternative:

  • subagent-driven-development — preferred when subagents are available

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.