agentleFS
quruhao4800quruhao4800/agent-workflow/skills/workflow/executing-plans/SKILL.md

executing-plans

Skill1 starsChanged 6 months agoMITView on GitHub

Use when you have a written implementation plan to execute in a separate session with review checkpoints

189 other projects use a version of this, 86 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions 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.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • 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 20 projects that use this

  • allanninalSkill

    algorand-vulnerability-scanner

    Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL/PyTeal). (project, gitignored)

    Also in 4 projects that use this

  • allanninalSkill

    cairo-vulnerability-scanner

    Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects. (project, gitignored)

    Also in 4 projects that use this

  • farslabSkill

    aws-agentic-ai

    AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore service including Gateway, Runtime, Memory, Identity, Code Interpreter, Browser, Observability, Agent Registry, or Evaluations. Covers agent deployment, MCP tool integration, credential management, agent discovery, governance workflows, and automated quality assessment. Essential when user mentions AgentCore, agent runtime, agent registry, agent evaluation, MCP gateway, deploy agent, register MCP server, discover agents, evaluate agent quality, agent credentials, or wants to build, deploy, catalog, or monitor AI agents on AWS.

    Also in 3 projects that use this

  • +3 more from Leodorareluctant259
  • +1 more from allanninal

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read 03-implementation-plan.md.

    line 19
  2. Distinctive:

    Search for rules files in this order:

    line 38
  3. Distinctive:

    Read all found files.

    line 44
  4. Distinctive:

    If no rules files are found: note it and continue without a checklist.

    line 58
  5. Distinctive:

    Read these files in the same feature folder:

    line 64
  6. Very specific:

    Check Depends on — all listed tasks must be completed before starting.

    line 86
  7. Distinctive:

    Follow plan steps exactly based on task type:

    line 88
  8. Very specific:

    Before marking complete, verify every DoD item from 03-implementation-plan.md:

    line 92
  9. Distinctive:

    When something unexpected is encountered during task execution (design assumption wrong, file missing, interface different from spec):

    line 105
  10. Distinctive:

    Never make silent design decisions that affect scope, contracts, or other tasks.

    line 115
  11. Distinctive:

    If a new request, adjustment, or optimization appears during execution:

    line 119
  12. Very specific:

    If scope change: add CR-### in 05-change-log.md, update 01-requirements.md.

    line 122
  13. Very specific:

    If design change only: add DR-### in 05-change-log.md, update 02-design.md.

    line 123
  14. Very specific:

    Update 03-implementation-plan.md tasks/statuses.

    line 124
  15. Very specific:

    Update impacted checklist items in 04-verification.md.

    line 125
  16. Distinctive:

    No coding is allowed for unmapped requirements.

    line 128
  17. Very specific:

    After all tasks in the batch are complete, scan every file changed in this batch against the AUTO_CHECK checklist from Step 0.

    line 132
  18. Very specific:

    Do not ask the user about AUTO_FIX items individually — fix them silently and list what was fixed in the batch report.

    line 141
  19. Distinctive:

    If the Step 0 checklist is empty (no rules files found), skip this sweep.

    line 143
  20. Distinctive:

    Stop and escalate when:

    line 179

“Common” is measured: kept by at least 6 in 10 of the 178 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

Prerequisites

From skillMust already existIf missing
writing-plans02-design.md with Status: ApprovedReturn to writing-plans Phase 1 — do not implement against unapproved design
writing-plans03-implementation-plan.md with at least one pending taskReturn to writing-plans Phase 2
writing-plans04-verification.md skeleton initializedInitialize it now using the template in writing-plans
writing-plans99-mistake-log.mdInitialize as empty file if absent

Execution Mode Selection (MANDATORY — before anything else)

Read 03-implementation-plan.md. Count tasks by status and estimate per-task file impact from the Files / Impact field.

ConditionDecision
Pending tasks ≤ 8 AND every task touches ≤ 5 files✅ Continue with executing-plans (this skill)
Pending tasks > 8 OR any task touches > 5 files🔄 Switch to agent-workflow:subagent-driven-development

Announce: "Mode: executing-plans — N pending tasks, max M files per task." or "Switching to subagent-driven-development — reason: [N tasks / task X touches M files]."

Why this matters: executing-plans runs entirely in the main context. As tasks accumulate, context grows and output quality drops. subagent-driven-development gives each task a fresh context, preventing contamination across tasks. For small plans (≤8 tasks), executing-plans avoids the per-subagent token overhead of cold-starting multiple agents.

Overview

Load plan artifacts, execute tasks in batches, and stop immediately when requirements drift.

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

Step 0: Load Project Rules

  1. Search for rules files in this order:
    • rules/**/*.md
    • .claude/rules/**/*.md
    • docs/rules/**/*.md
    • CLAUDE.md, AGENTS.md (project root)
  2. Read all found files.
  3. Extract two separate checklists from the loaded content:
    • MUST_CHECK: rules under ## Mandatory sections — objective, verifiable, block task completion if violated
    • SHOULD_CHECK: rules under ## Recommended sections — flag in report but do not block completion
    • SKIP: principles without a clear pass/fail test (e.g., "prefer clarity", "keep it simple")
  4. Enforcement:
    • MUST_CHECK violation → task cannot be marked completed; fix before proceeding
    • SHOULD_CHECK violation → record in batch report as flagged item; task may still complete
  5. Output a compact summary:

    "Loaded N rules files. Extracted X MUST_CHECK items, Y SHOULD_CHECK items."

    If no rules files are found: note it and continue without a checklist.

This checklist is used in every task DoD and the Post-Batch Rules Sweep.

Step 1: Load And Review Plan Set

Read these files in the same feature folder:

  • 01-requirements.md
  • 02-design.md
  • 03-implementation-plan.md
  • 04-verification.md
  • 05-change-log.md
  • 99-mistake-log.md
  • 06-research-notes.md (if present)

Before coding:

  1. Confirm every active task maps to REQ-###.
  2. Confirm all open CR-### and DR-### items are represented in tasks.
  3. Raise gaps before execution.

Step 2: Execute Batch

Default batch size: first 3 pending tasks.

For each task:

  1. Check Depends on — all listed tasks must be completed before starting. If not, skip and report blocked.
  2. Mark task in_progress.
  3. Follow plan steps exactly based on task type:
    • code-task: apply agent-workflow:test-driven-development (write failing test → verify failure → implement → verify pass)
    • migration-task: write forward + rollback scripts, verify both
    • config-task: verify affected environments, document change
  4. Before marking complete, verify every DoD item from 03-implementation-plan.md:
    • All tests pass; coverage meets targets
    • No TODO / debug / temporary code left
    • Naming follows project rules
    • Error handling complete
    • All callers in Impact handled
    • 04-verification.md evidence updated
    • Commit message: type(scope): one-line summary
    • Rules compliance: check changed files against AUTO_CHECK items from Step 0 checklist; fix violations before marking complete
  5. Mark task completed.

Unexpected Situation Protocol (MANDATORY)

When something unexpected is encountered during task execution (design assumption wrong, file missing, interface different from spec):

Decision rule:

SituationAction
Affects interface, data model, or other tasksSTOP. Report to user. Open DR-### in 05-change-log.md. Do not proceed until user confirms revised design.
Affects current task internals onlyMay adapt. Note in commit message: adjusted X because Y. No DR-### needed.
Unclear which category appliesDefault to STOP. Ask the user.

Never make silent design decisions that affect scope, contracts, or other tasks.

Plan Drift Gate (MANDATORY)

If a new request, adjustment, or optimization appears during execution:

  1. Stop implementation immediately.
  2. If scope change: add CR-### in 05-change-log.md, update 01-requirements.md. If design change only: add DR-### in 05-change-log.md, update 02-design.md.
  3. Update 03-implementation-plan.md tasks/statuses.
  4. Update impacted checklist items in 04-verification.md.
  5. Resume execution only after 2-5 are complete.

No coding is allowed for unmapped requirements.

Post-Batch Rules Sweep (MANDATORY before Step 3)

After all tasks in the batch are complete, scan every file changed in this batch against the AUTO_CHECK checklist from Step 0.

Decision table per violation:

Violation typeAction
Objective, no ambiguity (wrong naming, missing annotation, forbidden import)AUTO_FIX: fix immediately, note in report
Requires judgment (unclear which rule applies, trade-off involved)NEEDS_DECISION: collect and present to user as a numbered list

Do not ask the user about AUTO_FIX items individually — fix them silently and list what was fixed in the batch report.

If the Step 0 checklist is empty (no rules files found), skip this sweep.

Step 3: Report Batch

After each batch:

  • Show completed tasks
  • Show verification evidence summary
  • List AUTO_FIX rules corrections applied (if any)
  • List NEEDS_DECISION rules findings as a numbered batch (if any) — wait for user response before next batch
  • List any open CR-###
  • Re-state the AUTO_CHECK checklist (compact form) so rules stay in context near-top for the next batch
  • Say: "Ready for feedback."

Step 4: Continue

Based on feedback:

  • Apply plan updates if needed
  • Execute next batch
  • Repeat until all required tasks are complete

Step 5: Completion Gate

Before branch-finishing workflow:

  • unmapped_req = 0
  • open_cr = 0
  • pending_recheck = 0

Then announce and invoke:

  • agent-workflow:finishing-a-development-branch

When To Stop And Ask For Help

Stop and escalate when:

  • Plan gaps block execution
  • Verification repeatedly fails
  • Dependencies/instructions are unclear
  • Requirement drift cannot be safely mapped

Integration

  • REQUIRED: agent-workflow:writing-plans
  • REQUIRED: agent-workflow:finishing-a-development-branch

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.