agentleFS
MorningStar0709MorningStar0709/trae-agent-enhancements/skills/executing-plans/SKILL.md

executing-plans

Skill17 starsChanged 7 months agoMITView on GitHub

Use when you need to execute a written implementation plan in the current conversation with review checkpoints, including Chinese requests such as “按这个计划执行”“照计划做”“逐任务推进”. It is especially suitable after writing-plans or when the environment does not support implementation-capable subagents. Do not use when requirements are still unclear, no written plan exists, or subagent-driven-development is a better fit for mostly independent tasks.

  • Deletes or force-pushes

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 9 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

  • xfstudioSkill

    upstash-qstash

    Upstash QStash expert for serverless message queues, scheduled jobs, and reliable HTTP-based task delivery without managing infrastructure. Use when: qstash, upstash queue, serverless cron, scheduled http, message queue serverless.

    Also in 5 projects that use this

  • xfstudioSkill

    team-composition-analysis

    This skill should be used when the user asks to "plan team

    Also in 5 projects that use this

  • AtilaMedeirosSkill

    calendly-automation

    Automate Calendly scheduling, event management, invitee tracking, availability checks, and organization administration via Rube MCP (Composio). Always search tools first for current schemas.

    Also in 4 projects that use this

  • AtilaMedeirosSkill

    gmail-automation

    Automate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments. Always search tools first for current schemas.

    Also in 4 projects that use this

  • +1 more from Leodorareluctant259
  • +2 more from xfstudio
  • +2 more from AtilaMedeiros

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. 1 is common, 17 are distinctive, and 8 are very specific to this project.

  • 1

    Common

    Most of the 180 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    No written plan exists yet.

    line 21
  2. Very specific:

    No written plan: Do not start execution; suggest using writing-plans instead.

    line 37
  3. Distinctive:

    Read the plan and perform a critical review.

    line 50
  4. Very specific:

    If the plan is executable, create a TodoWrite list and advance task by task.

    line 51
  5. Distinctive:

    If any step is blocked, prioritize reporting the block reason and suggested actions.

    line 55
  6. Distinctive:

    Read the plan file.

    line 59
  7. Common:

    If there are concerns: raise them with your human partner before starting.

    line 61
  8. Very specific:

    If there are no concerns: create a TodoWrite list and continue.

    line 62
  9. Very specific:

    Mark as In Progress: Update TodoWrite.

    line 84
  10. Distinctive:

    Validate: Run required tests or checks.

    line 87
  11. Distinctive:

    Commit: If required, commit changes after each task, referencing the task number in the commit message.

    line 88
  12. Very specific:

    Mark as Completed: Update TodoWrite.

    line 89
  13. Distinctive:

    If previous implementations have issues, fix them before continuing.

    line 93
  14. Very specific:

    Only one task can be in_progress at a time.

    line 96
  15. Distinctive:

    Write actual validation results at the end of each task, not just "Validated".

    line 97
  16. Distinctive:

    Do not mark a task as completed if it requires user confirmation to continue.

    line 98
  17. Distinctive:

    If the plan conflicts with actual implementation conditions, stop and return to "Step 1: Load and Review Plan" if necessary.

    line 99
  18. Distinctive:

    Stop current progress and report immediately (do not guess) when:

    line 103
  19. Distinctive:

    Rollback Needed: If a completed task introduced an issue, do not attempt to "fix forward" blindly.

    line 116
  20. Distinctive:

    If no commits exist, use git checkout .

    line 121
  21. Distinctive:

    After all tasks are completed and validated:

    line 125
  22. Very specific:

    If the user requested commits, use available commit processes (prefer git-commit if available, else standard git) after verification passes.

    line 128
  23. Distinctive:

    If the user did not request commits, do not arbitrarily add wrap-up processes.

    line 129
  24. Distinctive:

    Plan Missing/Unreadable: Stop execution, report path issue.

    line 133
  25. Distinctive:

    User Did Not Request Commit: Do not automatically upgrade "Execution Complete" to "Commit Complete".

    line 138
  26. Distinctive:

    Use this fixed skeleton:

    line 151

“Common” is measured: kept by at least 6 in 10 of the 180 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, execute all tasks sequentially, and report upon completion.

Use This Skill

  • A written implementation plan exists and needs to be executed sequentially in the current conversation.
  • You want to maintain the rhythm of TodoWrite, staged reviews, and stopping for confirmation when blocked.
  • The current environment lacks reliable implementation-capable subagents, or tasks are tightly coupled, making them unsuitable for independent subagents.

Do Not Use

  • Requirements are still unclear and solutions are undecided; use brainstorming first.
  • No written plan exists yet; use writing-plans first or draft a plan in the current conversation.
  • The current environment supports implementation-capable subagents and tasks are mostly independent; subagent-driven-development is a better fit.

Input Contract

Required inputs:

  • A readable written implementation plan that outlines tasks, steps, validation requirements, and completion criteria.

Optional but highly recommended inputs:

  • Plan file path.
  • Current branch or workspace context.
  • Whether the user requires commits.
  • Key dependencies, environment constraints, or external services involved in the plan.
  • Context Payload from upstream skill (e.g., writing-plans, systematic-debugging): When handed off from an upstream skill, read the [Context Payload] block from the conversation. It preserves architecture decisions, ruled-out paths, and residual risks that are not captured in the plan file itself. If present, treat it as supplementary context during the review phase — especially the Ruled Out and Residual Risk fields.

Missing input handling:

  • No written plan: Do not start execution; suggest using writing-plans instead.
  • Plan readable but key info missing: Point out the gaps first, then decide if partial progress is possible.
  • Environment better suited for subagent-driven-development: Explicitly state the reason and suggest switching instead of proceeding blindly.

Validation Assets:

  • evals: evals/evals.json
  • examples: examples/input.md, examples/output.md

Execution Protocol

Execute in the following order without skipping steps:

  1. Confirm the current request is genuinely "execute existing plan".
  2. Read the plan and perform a critical review.
  3. If the plan is executable, create a TodoWrite list and advance task by task.
  4. Validate and record results immediately after each task is executed.
  5. Output a fixed execution report once all tasks are completed.

If any step is blocked, prioritize reporting the block reason and suggested actions. Do not pretend the execution succeeded.

Step 1: Load and Review Plan

  1. Read the plan file.
  2. Critically review: identify any issues or concerns in the plan.
  3. If there are concerns: raise them with your human partner before starting.
  4. If there are no concerns: create a TodoWrite list and continue.

Focus during review:

  • Are there missing dependencies between steps? (e.g., A depends on B, but B is scheduled after A)
  • Are validation conditions clear? ("Confirm it works" is not enough; "Run npm test and all pass" is clear)
  • Are there implicit environment assumptions? (Node version, database connection, API keys)

Review Output Structure:

执行前审查已完成。

**计划路径:** `<plan-path>`
**审查结论:** `可执行` | `需澄清`
**发现的问题:**
- [若无问题,请写 "- 无"]
**建议的操作:**
- [若无问题,请写 "- 继续执行"]

Step 2: Execute Tasks

For each task:

  1. Mark as In Progress: Update TodoWrite.
  2. Understand Goal: Re-read the task description and clarify completion criteria.
  3. Implement: Strictly follow the plan steps (the plan already contains sub-steps).
  4. Validate: Run required tests or checks.
  5. Commit: If required, commit changes after each task, referencing the task number in the commit message.
  6. Mark as Completed: Update TodoWrite.

Batch Review Checkpoints:

  • Pause and review after every 3 tasks: Is the overall direction still correct? Have we deviated from the plan?
  • If previous implementations have issues, fix them before continuing. Do not carry problems forward.

Task Progression Rules:

  • Only one task can be in_progress at a time.
  • Write actual validation results at the end of each task, not just "Validated".
  • Do not mark a task as completed if it requires user confirmation to continue.
  • If the plan conflicts with actual implementation conditions, stop and return to "Step 1: Load and Review Plan" if necessary.

Step 3: Block and Fallback Rules

Stop current progress and report immediately (do not guess) when:

  • Missing dependencies, environments, credentials, or external services.
  • Tests fail and the cause is unconfirmed.
  • Instructions or acceptance criteria are unclear.
  • Plan conflicts with actual implementation conditions.
  • The same validation fails more than twice consecutively.

Handling:

  • Implementation Bug: Fix and re-run validation.
  • Test Issue: Fix the test and explain the reason.
  • Plan Gap or Sequence Error: Return to Step 1 to re-review the plan.
  • Missing Dependency: Report the missing item, affected tasks, and suggested remedy.
  • Fundamental Deviation Required: Explain the deviation, reason, and impact first. Do not adjust without permission.
  • Rollback Needed: If a completed task introduced an issue, do not attempt to "fix forward" blindly. Reset to the last known-good checkpoint using git:
    git log --oneline -5
    git reset --hard <last-known-good-commit>
    If no commits exist, use git checkout . to discard uncommitted changes, then re-verify the task scope before proceeding.

Step 4: Complete Development

After all tasks are completed and validated:

  • Route to verification-before-completion to independently verify evidence before claiming done.
  • Summarize completion status, validation results, and any plan deviations.
  • If the user requested commits, use available commit processes (prefer git-commit if available, else standard git) after verification passes.
  • If the user did not request commits, do not arbitrarily add wrap-up processes.

Failure Handling

  • Plan Missing/Unreadable: Stop execution, report path issue.
  • Validation Conditions Missing: Review and ask for clarification, do not assume.
  • Missing Dependency During Task: Pause and explain missing item, affected tasks, suggested remedy.
  • Validation Fails >2 Times: Enter blocked state, report attempted fixes.
  • Current Branch Unsuitable: Explain risk, do not implement on main/master without permission.
  • User Did Not Request Commit: Do not automatically upgrade "Execution Complete" to "Commit Complete".

Output Contract

The final output must contain at least:

  • Original Intent
  • Plan path
  • Review conclusion
  • Task completion status
  • Validation results
  • Plan deviations
  • Next step suggestions

Use this fixed skeleton:

执行已完成。

**原始意图:** `<original-intent>`
**计划路径:** `<plan-path>`
**执行结论:** `全部完成` | `部分完成` | `遇到阻塞`
**任务进度:** `<已完成>/<总数>`

**已完成的任务:**
- [任务编号 + 结果]

**验证结果:**
- [测试 / 代码检查 / 构建 / 手动检查]

**计划偏离:**
- [若无偏离,请写 "- 无"]

**阻塞或风险:**
- [若无阻塞,请写 "- 无"]

**下一步:**
- [如果要求提交代码,说明提交路径;否则,等待指示]

如果执行未完全结束,请勿使用“执行已完成。”来掩饰状态;应使用 部分完成 或 遇到阻塞,并明确说明剩余任务和阻塞条件。

Integration

  • writing-plans: Upstream — the plan is generated by writing-plans before executing-plans begins.
  • brainstorming: Upstream — when requirements are not yet clarified, brainstorming must precede plan generation.
  • subagent-driven-development: Alternative downstream — when tasks are mostly independent and the environment supports implementation subagents, subagent-driven-development is preferred over sequential execution.
  • verification-before-completion: Downstream — after execution, verify evidence before claiming done. Must run before git-commit.
  • git-commit: Downstream — after validation passes through verification-before-completion, commit the completed work. Do not reverse the order.

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.