一键导入
executing-plans
Use when you have a written implementation plan file to execute - dispatches subagents for implementation and reviews to prevent context pollution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you have a written implementation plan file to execute - dispatches subagents for implementation and reviews to prevent context pollution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating a Jira ticket to plan upcoming work. Guides ticket drafting with clear structure, self-contained context, and testable acceptance criteria, then creates the ticket via the available Jira/Atlassian broker tool.
Use when reviewing a pull request, branch, commit range, working tree diff, plan, document, or other coherent unit of work across correctness, security, codebase alignment, code quality, test quality, performance, and simplicity.
Use when the user asks to create or polish a standalone HTML artifact such as an HTML report, interactive explainer, visual plan, dashboard, slide deck, diagram, prototype, or throwaway HTML tool.
Use when debugging bugs, failures, exceptions, flaky behavior, regressions, or performance problems where the cause is not already proven.
Use when the user asks to build web components, pages, or applications that need distinctive, production-grade frontend interfaces with high design quality
Reference skill for browser automation: web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
| name | executing-plans |
| description | Use when you have a written implementation plan file to execute - dispatches subagents for implementation and reviews to prevent context pollution |
Execute implementation plans by dispatching subagents for each phase: implementation, spec review, and code quality review. The main context only orchestrates while subagents do the heavy lifting, preventing context pollution that degrades model quality.
Core principle: Subagent per phase + controller orchestration = preserved model quality throughout long execution runs.
Announce at start: "I'm using the executing-plans skill to implement this plan."
For each task triplet (Implement → Spec Review → Code Review):
1. Mark "Implement" in_progress
2. Dispatch implementer subagent with full task text
3. Implementer implements, tests, commits, self-reviews
4. Parse implementer report, capture agent ID and commit SHA
5. Mark "Implement" complete
6. Mark "Spec Review" in_progress
7. Dispatch spec reviewer subagent
8. If APPROVED → mark "Spec Review" complete
If ISSUES → resume implementer to fix, re-dispatch spec reviewer
9. Mark "Code Review" in_progress
10. Dispatch code quality reviewer subagent
11. If APPROVED → mark "Code Review" complete
If ISSUES → resume implementer to fix, re-dispatch code reviewer
12. Proceed to next triplet (now unblocked)
After all triplets:
Use verifying-work
Initialize task tracking:
TaskList
AskUserQuestion to ask:AskUserQuestion(
questions: [{
question: "Found existing tasks for this plan. How would you like to proceed?",
header: "Resume",
multiSelect: false,
options: [
{ label: "Continue (Recommended)", description: "Resume from first incomplete task" },
{ label: "Start fresh", description: "Start new session for clean execution" }
]
}]
)
Parse the plan document and create a task triplet for each task:
For each Task N in the plan:
Create Implementation task:
TaskCreate:
subject: "Task N: Implement [Component Name]"
description: |
[Copy task content from plan: Files, Steps, Acceptance Criteria]
activeForm: "Implementing [Component Name]"
Create Spec Review task:
TaskCreate:
subject: "Task N: Spec Review"
description: |
Review implementation of Task N for spec compliance.
Verify all requirements are met, nothing extra added.
Use spec-reviewer-prompt.md template.
activeForm: "Reviewing spec compliance for [Component Name]"
Create Code Review task:
TaskCreate:
subject: "Task N: Code Review"
description: |
Review implementation of Task N for code quality.
Check tests, error handling, maintainability.
Use code-quality-reviewer-prompt.md template.
activeForm: "Reviewing code quality for [Component Name]"
After all tasks created, set blocking relationships:
# Within each triplet:
TaskUpdate:
taskId: [spec-review-id]
addBlockedBy: [implement-id]
TaskUpdate:
taskId: [code-review-id]
addBlockedBy: [spec-review-id]
# Between triplets (Task N+1 blocked by Task N's code review):
TaskUpdate:
taskId: [task-N+1-implement-id]
addBlockedBy: [task-N-code-review-id]
This creates the execution chain:
Implement 1 → Spec Review 1 → Code Review 1 → Implement 2 → Spec Review 2 → ...
For each task triplet in order:
Mark in progress:
TaskUpdate:
taskId: [implement-task-id]
status: in_progress
This triggers the CLI spinner showing the task's activeForm.
Dispatch implementer subagent:
Use prompt template at ./implementer-prompt.md. Fill in:
Task tool (general-purpose):
model: sonnet
description: "Implement Task N: [task name]"
prompt: [filled template from implementer-prompt.md]
Parse implementer report:
Extract from subagent output:
implementer_agent_id: The agent ID returned by Task tool (for resumption)commit_sha: The commit SHA from the reportbase_sha: Commit before this task (HEAD~1 at dispatch time)Mark complete:
TaskUpdate:
taskId: [implement-task-id]
status: completed
Mark in progress:
TaskUpdate:
taskId: [spec-review-task-id]
status: in_progress
Dispatch spec reviewer subagent:
Use prompt template at ./spec-reviewer-prompt.md. Fill in task requirements and implementation summary.
Parse subagent output:
APPROVED: → mark spec review completeISSUES: → resume implementer to fix, re-dispatch spec reviewerFix/re-review loop:
Resume implementer subagent with fix instructions:
Task tool (general-purpose):
resume: [implementer_agent_id]
prompt: |
The spec reviewer found issues:
[ISSUES from reviewer output]
Fix these issues, run tests, amend commit, report back.
Parse response for new commit SHA
Re-dispatch spec reviewer
Repeat until APPROVED
Mark complete (only after APPROVED):
TaskUpdate:
taskId: [spec-review-task-id]
status: completed
Mark in progress:
TaskUpdate:
taskId: [code-review-task-id]
status: in_progress
Dispatch code quality reviewer subagent:
Use prompt template at ./code-quality-reviewer-prompt.md. The code-reviewer subagent uses the template at ./code-reviewer-template.md.
Fill in:
Parse subagent output:
APPROVED: → mark code review completeAPPROVED_WITH_MINOR: → mark complete, note minor issuesISSUES: → resume implementer to fix, re-dispatch code reviewerFix/re-review loop (for critical/important issues):
Resume implementer subagent with fix instructions:
Task tool (general-purpose):
resume: [implementer_agent_id]
prompt: |
The code quality reviewer found issues:
[ISSUES from reviewer output]
Fix these issues, run tests, amend commit, report back.
Parse response for new commit SHA
Re-dispatch code reviewer
Repeat until APPROVED or APPROVED_WITH_MINOR
Mark complete:
TaskUpdate:
taskId: [code-review-task-id]
status: completed
Proceed to next triplet.
After all tasks complete:
REQUIRED SUB-SKILL: Use Skill(verifying-work)
STOP executing immediately when:
Ask for clarification rather than guessing.
./implementer-prompt.md - Dispatch implementer subagent (includes fix prompt)./spec-reviewer-prompt.md - Verify implementation matches spec./code-quality-reviewer-prompt.md - Verify implementation is well-built./code-reviewer-template.md - Full template for code-reviewer subagentImplementation → Spec Review → Code Quality Review
↓ ↓
"Did we build "Did we build
the right it well?"
thing?"
Never skip spec review. Code quality review on wrong code is wasted effort.
Never skip code quality review. Spec-compliant code can still be buggy or unmaintainable.
Never:
Always:
Required skills:
Used by:
activeForm field shows in the CLI spinner during in_progress status