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.
What this skill does
# 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)
1. **Read Plan**: Load and parse the plan file
2. **Execute Steps**: Implement each step sequentially
- Read relevant files
- Make code changes (Edit/Write)
- Run tests when appropriate
- Report progress
3. **Commit Points**: Ask user about commits at logical points
4. **Follow-up**: Offer test generation and documentation
## Stack Execution Process (Graphite Mode)
When executing in stack mode, follow this workflow:
### Phase 1: Plan Analysis
1. **Read entire plan** to understand full scope
2. **Identify logical chunks** that can be reviewed independently
3. **Present stack plan** to user for approval:
```yaml
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:
```bash
# 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
```bash
# 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](../../shared/graphite-stack-execution.md).
## Execution Rules
### For Each Step
1. Read files listed in the step
2. Implement changes using Edit (existing) or Write (new)
3. Follow the plan's approach
4. Validate changes work
5. Report clear progress
### Error Handling
- Report errors clearly with the full error output and context
- Read the full error output, identify the root cause, and attempt a targeted fix
- Ask user for guidance if two fix attempts fail
- 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:
```yaml
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:
>
> 1. Generate tests for the new code?
> 2. Update documentation?
> 3. Create a pull request?
> 4. 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:
>
> 1. PR #1: `feat(scope): description` - [URL]
> 2. 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:
1. 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](execution-guide.md)
- **Graphite stack execution**: [graphite-stack-execution.md](../../shared/graphite-stack-execution.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.