implement-plan
Implement technical plans from thoughts/shared/plans with verification
What this skill does
<!-- SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2024 humanlayer Authors (original)
SPDX-FileCopyrightText: 2025 Jorge Castro (modifications) -->
# Implement Plan
You are tasked with implementing an approved technical plan from `thoughts/shared/plans/`. These plans contain phases with specific changes and success criteria.
## Getting Started
When given a plan path:
- Read the plan completely and check for any existing checkmarks (- [x])
- Read the original ticket if referenced
- Create a todo list to track your progress (one item per phase)
- Then follow the Phase Cycle below for each phase
**Do NOT read source or test files mentioned in the plan.** The delegated skills will read them. Your role is orchestrator: you understand the plan's structure and delegate execution. If you read the implementation files, you will be tempted to implement directly — that defeats the purpose of this skill.
If no plan path provided, ask for one.
## Your Role: Orchestrator
Your job is to coordinate, not to implement on your own initiative:
- Understand what each phase needs to accomplish
- Delegate implementation to `/stepwise-core:tdd` — let it decide what to write and when
- Delegate quality checks to `/stepwise-core:bugmagnet` and `/stepwise-core:test-desiderata`
- Run verification commands and update progress
You may edit files when a delegated skill instructs you to. What you must not do is decide on your own to write code, add tests, or modify source files.
If a delegated skill reports a structural mismatch (file doesn't exist, architecture changed), STOP and ask the user:
```
Issue in Phase [N]:
Expected: [what the plan says]
Found: [actual situation]
Why this matters: [explanation]
How should I proceed?
```
## Phase Cycle
For **each phase** in the plan, follow this cycle in order:
### Step 1 — Delegate to TDD skill
Invoke `/stepwise-core:tdd` using the `Skill` tool. Pass it:
- The phase description (copy the relevant section from the plan)
- The file paths that need to be created or modified
- The success criteria for this phase
Example argument: "Implement Phase 2 from the plan: Add TodoUpdate model to models.py. Files: src/todo_api/models.py, tests/test_models.py. Success: make test passes."
TDD will read the files, write failing tests, implement, and refactor. Wait for it to complete before proceeding to Step 2.
### Step 2 — Delegate to BugMagnet skill
**Do not analyze bugs yourself.** Invoke `/stepwise-core:bugmagnet` using the `Skill` tool on each file modified in this phase. Wait for it to complete before presenting results to the user.
After bugmagnet completes, **pause and ask the user**:
```
BugMagnet results for Phase [N]:
[List findings from bugmagnet]
Which of these would you like me to implement?
(Reply with your selection, or "none" to skip — then say "continue" when ready to move to test quality analysis.)
```
Wait for the user to say "continue" before proceeding to Step 3.
### Step 3 — Delegate to Test Desiderata skill
**Do not analyze test quality yourself.** Invoke `/stepwise-core:test-desiderata` using the `Skill` tool on the test files for this phase. Wait for it to complete before presenting results to the user.
After test-desiderata completes, **pause and ask the user**:
```
Test Desiderata results for Phase [N]:
[List improvement suggestions]
Which of these would you like me to apply?
```
Wait for the user's selection before proceeding.
### Step 4 — Verify and Advance
- Run all automated success criteria checks (usually `make check test` covers everything)
- Fix any issues before proceeding
- Update your progress in both the plan and your todos
- Check off completed items in the plan file itself using Edit
**Pause for manual verification ONLY if the plan has a "Manual Verification" section:**
- If no manual verification → Continue to next phase immediately
- If manual verification exists → Pause and inform the human:
```
Phase [N] Complete - Ready for Manual Verification
Automated verification passed:
- [List automated checks that passed]
Please perform manual verification:
- [List manual verification items from the plan]
Let me know when complete so I can proceed to Phase [N+1].
```
**If instructed to execute multiple phases consecutively**: skip only the Step 4 manual verification pauses. Always keep the Step 2 (bugmagnet) and Step 3 (test-desiderata) pauses. Those require user decisions that shape the implementation.
Do not check off manual verification items until the user confirms completion.
## If You Get Stuck
When a delegated skill fails or reports issues:
- Present the problem to the user with context from the skill's output
- Consider if the codebase has evolved since the plan was written
- Ask for guidance before retrying
Do not attempt to fix issues by reading source files and implementing directly — re-invoke the skill with adjusted instructions.
## Resuming Work
If the plan has existing checkmarks:
- Trust that completed work is done
- Pick up from the first unchecked item
- Verify previous work only if something seems off
Remember: You're implementing a solution, not just checking boxes. Keep the end goal in mind and maintain forward momentum.
## Completion
When all phases are complete:
1. **Run final verification**:
```bash
make check test # Or project-specific command
```
2. **Update the plan file**:
- Ensure all checkboxes are marked
- Note any deviations from the original plan
3. **Inform the user**:
```
Implementation complete for: [Plan Name]
All phases implemented and verified:
- [List key accomplishments]
Next steps in the workflow:
- Use `/stepwise-core:validate-plan thoughts/shared/plans/[filename].md` to verify completeness
- Use `/stepwise-git:commit` to create git commits for the changes
Tip: Use `/clear` to free up context before validation
```
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.