Agent skill
execute-plan
Execute implementation plans step-by-step. Use when user says "execute the plan", "implement the plan we created", "start building based on the plan", "go ahead and implement it", "proceed with the implementation", "execute as a stack", "create a PR stack while implementing", "implement with one PR per step", or references a plan file and wants to begin coding.
Install this agent skill to your Project
npx add-skill https://github.com/Uniswap/ai-toolkit/tree/next/packages/plugins/development-planning/skills/execute-plan
SKILL.md
Plan Executor
Execute implementation plans by reading the plan file and implementing each step directly with progress tracking. Supports both single PR (default) and Graphite PR stack execution modes.
When to Activate
- User says "execute the plan" or "implement the plan"
- User references a plan file and wants to start
- User says "go ahead" or "proceed" after planning
- User wants to implement what was planned
- Following approval of a reviewed plan
Stack Mode Triggers
Activate stack execution mode when user says:
- "execute as a stack" or "implement as a PR stack"
- "create a PR stack while implementing"
- "one PR per step" or "one PR per section"
- "use Graphite stack" or "stack the PRs"
Execution Modes
Single PR Mode (Default)
Implements all steps, commits at logical points, creates one PR at the end.
Stack Mode (Graphite)
Creates a separate PR for each logical chunk during execution. Use when:
- Plan has 3+ distinct logical sections
- Changes span multiple concerns (types → impl → tests)
- Total change set would be >500 lines
- Incremental review is desired
Quick Process (Single PR Mode)
- Read Plan: Load and parse the plan file
- Execute Steps: Implement each step sequentially
- Read relevant files
- Make code changes (Edit/Write)
- Run tests when appropriate
- Report progress
- Commit Points: Ask user about commits at logical points
- Follow-up: Offer test generation and documentation
Stack Execution Process (Graphite Mode)
When executing in stack mode, follow this workflow:
Phase 1: Plan Analysis
- Read entire plan to understand full scope
- Identify logical chunks that can be reviewed independently
- Present stack plan to user for approval:
stack_plan:
pr_count: N
prs:
- pr: 1
branch: '<username>/<feature>-types'
title: 'feat(<scope>): add types and interfaces'
steps: [1, 2]
- pr: 2
branch: '<username>/<feature>-impl'
title: 'feat(<scope>): implement core functionality'
steps: [3, 4]
depends_on: [1]
Phase 2: Execute with Stack Creation
For each PR in the stack:
# 1. Create stack entry (timeout: 180000)
gt create -m "<type>(<scope>): <description>" --no-verify
# 2. Implement assigned steps
# ... make changes, stage files ...
# 3. Validate (use your project's linting/typecheck commands)
# 4. Finalize PR (timeout: 180000)
git add <specific-files>
CLAUDE_CODE=1 gt modify --no-verify
gt submit
Phase 3: Submit Full Stack
# Submit entire stack when complete (timeout: 180000)
gt submit --stack
Stack Boundaries
Good PR boundaries:
| PR | Content | Rationale |
|---|---|---|
| 1 | Types/Interfaces | Foundation with no dependencies |
| 2 | Core Implementation | Uses types, provides functionality |
| 3 | Integration/Glue | Connects to app |
| 4 | Tests | Validates implementation |
For comprehensive stack execution guidance, see graphite-stack-execution.md.
Execution Rules
For Each Step
- Read files listed in the step
- Implement changes using Edit (existing) or Write (new)
- Follow the plan's approach
- Validate changes work
- Report clear progress
Error Handling
- Report errors clearly with context
- Attempt to understand and resolve
- Ask user for guidance if blocked
- Continue with other steps when possible
Commits
Always ask user before committing:
- After completing cohesive changes
- When step or group finishes
- Before major new section
- Use clear messages referencing the plan
Output Format
After execution, provide summary:
plan_executed: [path]
steps_completed: [N]
steps_failed: [N]
files_modified: [list]
files_created: [list]
commits_created: [list]
status: completed | partial | failed
next_steps: [remaining work]
Follow-up Actions
Single PR Mode
After implementation, ask:
"Implementation complete. Would you like me to:
- Generate tests for the new code?
- Update documentation?
- Create a pull request?
- All of the above?"
- Tests: Delegate to test-writer-agent
- Docs: Delegate to documentation-agent
- PR: Delegate to pr-creator-agent (commits changes with conventional commit format, creates PR)
Stack Mode
After stack execution, provide summary:
"Stack execution complete. Created N PRs:
- PR #1:
feat(scope): description- [URL]- PR #2:
feat(scope): description- [URL] ...All PRs are linked in a Graphite stack. Reviewers can review bottom-up. Would you like me to generate tests or documentation for any of the PRs?"
Workflow Integration
This is Step 4 of the implementation workflow:
- Explore → 2. Plan → 3. Review → 4. Execute (this) → 5. PR Creation
After execution completes, the pr-creator-agent handles step 5 (PR creation) within this same plugin.
Detailed Reference
- Execution strategies and error recovery: execution-guide.md
- Graphite stack execution: graphite-stack-execution.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
review-plan
Review implementation plans for completeness and feasibility. Use when user says "review this plan before I start", "is this implementation plan complete", "check if this plan aligns with our patterns", "give me feedback on my implementation strategy", or "validate this plan before we execute it".
plan-implementation
Create implementation plans for features and changes. Use when user says "plan how to implement user authentication", "how should I add dark mode to the app", "what's the best way to refactor the database layer", "create a plan for migrating to the new API", or "I need to implement [feature] - help me plan it out".
generate-commit-message
Generate well-structured git commit messages. Use when user says "generate commit message", "write a commit", "what should my commit message be", "create commit message for these changes", or needs help crafting conventional commit messages.
plan-swarm
Refine plans through multi-agent expert discussion. Use when user says "get multiple expert opinions on this plan", "I want different perspectives on this approach", "have the agents discuss this strategy", "refine the plan through collaborative review", or "what would different specialists think about this design".
create-pr
Create or update pull requests with conventional commits. Use when user says "create a PR for these changes", "submit this for review", "open a pull request", "push these changes and create a PR", "I'm ready to submit this work", or "create PR and link to issue
implement-spec
Orchestrate implementation of spec-workflow tasks. Use when user says "implement the spec", "execute spec tasks", "run the spec workflow", "implement spec-name tasks", or needs to coordinate agent execution for spec-workflow documents.
Didn't find tool you were looking for?