implement

Execute implementation plan step-by-step

Best use case

implement is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Execute implementation plan step-by-step

Teams using implement should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/implement/SKILL.md --create-dirs "https://raw.githubusercontent.com/stevengonsalvez/agents-in-a-box/main/toolkit/packages/skills/implement/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/implement/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How implement Compares

Feature / AgentimplementStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Execute implementation plan step-by-step

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Implement Plan

You are tasked with implementing an approved technical plan from `plans/`. These plans contain phases with specific changes and success criteria.

<!-- recall:begin -->

## Step 0: Prior-art check (RECOMMENDED)

Before implementing, recall prior learnings from the global knowledge base so we don't re-learn or re-decide something already captured:

```bash
uv run "{{HOME_TOOL_DIR}}/skills/recall/scripts/recall.py" \
  "<QUERY>" \
  --limit 5 --format markdown
```

**Query construction for `/implement`**: the plan's current phase name + touched module names (e.g. `"auth middleware session token storage"`). Skip if the calling /plan already ran recall and surfaced findings..

**What to do with results:**

- If a returned learning names a constraint, anti-pattern, or prior decision directly relevant to the task — surface it to the user BEFORE proceeding with this skill's main flow.
- If nothing relevant returns — proceed silently, no need to mention the check.
- Never block on recall failure. Empty output / non-zero exit is expected when the KB is absent or the subprocess errors — treat it as "no prior art found", not as an error.

<!-- recall:end -->

## Getting Started

When given a plan path:
- Read the plan completely and check for any existing checkmarks (- [x])
- Read the original requirements and all files mentioned in the plan
- **Read files fully** - never use limit/offset parameters, you need complete context
- Think deeply about how the pieces fit together
- Create a todo list to track your progress
- Start implementing if you understand what needs to be done

## Execution Mode Detection

After reading the plan, check for wave metadata:

1. **Scan all `## Phase` sections** for `<!-- wave:` comments
2. **If wave metadata found** -> enter Wave Execution Mode
3. **If no wave metadata** -> enter Sequential Execution Mode (current behavior)

## Wave Execution Mode

Execute phases grouped by wave number:

### For each wave (Wave 1, Wave 2, ...):

**Single-phase wave**: Execute inline (same as sequential -- avoids spawn overhead).

**Multi-phase wave**: Spawn parallel Task agents:

```
For each phase in this wave, spawn:

Task(
  prompt: "Implement Phase {N}: {title}

  Plan: {plan_path}
  Phase: {N} only

  Read the plan and implement ONLY Phase {N}.
  Follow Changes Required exactly.
  Run Success Criteria checks.
  Update plan checkboxes when done.

  Files you own (ONLY modify these): {files from wave comment}

  Report: what was implemented, tests passing, any deviations.",

  subagent_type: "general-purpose"
)
```

**Wait for ALL agents** in the wave before starting next wave.

**On failure**: Stop and report:
```
Wave {N} execution:
  Succeeded: Phase {X}, Phase {Y}
  Failed: Phase {Z} -- {reason}

Options:
1. Retry failed phase only
2. Continue to next wave (skip failed)
3. Fall back to sequential for remaining phases
```

**After each wave**: Verify no file ownership conflicts via `git diff --name-only`.

## Sequential Execution Mode

If no plan path provided, ask for one.

## Implementation Philosophy

Plans are carefully designed, but reality can be messy. Your job is to:
- Follow the plan's intent while adapting to what you find
- Implement each phase fully before moving to the next
- Verify your work makes sense in the broader codebase context
- Update checkboxes in the plan as you complete sections

When things don't match the plan exactly, think about why and communicate clearly. The plan is your guide, but your judgment matters too.

If you encounter a mismatch:
- STOP and think deeply about why the plan can't be followed
- Present the issue clearly:
  ```
  Issue in Phase [N]:
  Expected: [what the plan says]
  Found: [actual situation]
  Why this matters: [explanation]

  How should I proceed?
  ```

## Implementation Steps

### Phase-by-Phase Execution

For each phase in the plan:

1. **Understand the Phase**:
   - Read the phase overview and success criteria
   - Identify all files that need changes
   - Understand the dependencies between changes

2. **Implement Changes**:
   - Make the specified code changes
   - Follow the existing code style and conventions
   - Add necessary imports and dependencies
   - Ensure changes are consistent across files

3. **Verify as You Go**:
   - After implementing a component, run relevant tests
   - Fix any issues before proceeding
   - Don't let errors accumulate

4. **Update Progress**:
   - Check off completed items in the plan using Edit
   - Update your TodoWrite list
   - Document any deviations from the plan

5. **Update project state** (if `.planning/` exists):
   - After completing each phase: Update `.planning/STATE.md` with progress
   - Record deviations in `.planning/phases/{phase}/SUMMARY.md` if it exists
   - Mark completed requirements in `.planning/REQUIREMENTS.md`

### Verification Approach

After implementing a phase:
- Run the automated success criteria checks
- 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

Don't let verification interrupt your flow - batch it at natural stopping points.

### Checkpoint Handling

When you encounter a checkpoint marker in the plan:

**`[CHECKPOINT:human-verify]`**:
1. Present what was built and verification steps
2. Wait for user approval
3. On "approved": continue to next phase
4. On issues reported: fix and re-present

**`[CHECKPOINT:decision]`**:
1. Present the options with trade-offs from the plan
2. Wait for user to choose
3. Document the decision in plan file
4. Continue with chosen path

**`[CHECKPOINT:human-action]`**:
1. Clearly state what the user needs to do
2. Wait for confirmation that it's done
3. Verify the action took effect (if possible)
4. Continue implementation

**Automation-first rule**: Before creating any checkpoint, verify Claude cannot perform the action itself via CLI, API, or file operations. Checkpoints verify after automation, never replace it.

### Testing Strategy

Follow the plan's testing strategy:
- Write unit tests for new functionality
- Update existing tests affected by changes
- Run integration tests to verify end-to-end behavior
- Document any manual testing performed

## Handling Issues

### When Something Doesn't Work

1. **First, verify your understanding**:
   - Re-read the relevant part of the plan
   - Check if you've missed a dependency
   - Look for related code that might provide context

2. **Debug systematically**:
   - Use logging to understand what's happening
   - Check error messages carefully
   - Verify assumptions about data flow

3. **If stuck, document and ask**:
   - Clearly describe what you expected
   - Show what actually happened
   - Explain what you've tried
   - Ask for specific guidance

### When the Codebase Has Changed

If the codebase has evolved since the plan was written:
- Document the differences you've found
- Propose adaptations that maintain the plan's intent
- Get confirmation before proceeding with major changes

## 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

## Best Practices

1. **Maintain Forward Momentum**:
   - Complete one thing fully before starting another
   - Don't leave partially implemented features
   - Fix issues as you encounter them

2. **Communicate Progress**:
   - Update the plan document with checkmarks
   - Use TodoWrite to track detailed progress
   - Report completion of major milestones

3. **Quality Over Speed**:
   - Ensure each change is correct and tested
   - Follow existing patterns and conventions
   - Don't skip verification steps

4. **Document Deviations**:
   - If you need to deviate from the plan, document why
   - Propose alternatives that achieve the same goal
   - Get approval for significant changes

## Completion Checklist

Before considering implementation complete:

- [ ] All phases implemented
- [ ] All automated tests passing
- [ ] Manual verification completed
- [ ] Plan document updated with all checkmarks
- [ ] Any deviations documented
- [ ] Code follows project conventions
- [ ] No TODO comments left unresolved
- [ ] Performance considerations addressed

Remember: You're implementing a solution, not just checking boxes. Keep the end goal in mind and maintain forward momentum.

Related Skills

workflow

8
from stevengonsalvez/agents-in-a-box

Guide through structured delivery workflow with plan, implement, validate phases

webapp-testing

8
from stevengonsalvez/agents-in-a-box

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

validate

8
from stevengonsalvez/agents-in-a-box

Verify implementation against specifications

ui-ux-pro-max

8
from stevengonsalvez/agents-in-a-box

UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, Astro, Nuxt, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

tui-style-guide

8
from stevengonsalvez/agents-in-a-box

TUI style guide for consistent terminal interface design

token-usage

8
from stevengonsalvez/agents-in-a-box

Show Claude Code token usage across sessions — daily, weekly, per-project, and per-session breakdowns. Parses {{HOME_TOOL_DIR}}/projects/**/*.jsonl for consumption data. Use when the user asks about token usage, costs, how many tokens were used, session statistics, or wants a usage report.

tmux-status

8
from stevengonsalvez/agents-in-a-box

Show status of all tmux sessions including dev environments, spawned agents, and running processes

tmux-monitor

8
from stevengonsalvez/agents-in-a-box

Monitor and report status of all tmux sessions including dev environments, spawned agents, and running processes. Uses tmuxwatch for enhanced visibility.

tmux-message

8
from stevengonsalvez/agents-in-a-box

Reliable peer-to-peer message delivery to other Claude Code instances via tmux send-keys. Use as a fallback when claude-peers MCP send_message fails to surface in the receiver's inbox (delivered server-side but receiver never picks it up — observed behaviour). Also use when sending a directive to a known Claude Code TUI session by tmux session name or fuzzy hint, or when injecting a multi-line directive into a peer's prompt and submitting it. Trigger phrases — "claude-peers fallback", "tmux send-keys", "send to peer via tmux", "inject directive", "deliver to nanoclaw/hermes peer", "peer message". Tmux-only — won't reach peers running outside tmux.

test-driven-development

8
from stevengonsalvez/agents-in-a-box

Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.

test-ainb

8
from stevengonsalvez/agents-in-a-box

Run tests for the ainb (agents-in-a-box) Rust workspace via a 5-layer strategy — unit, insta snapshot, mock-plugin compositing, real-plugin spawn, vhs recording. Wraps cargo + insta + vhs into one CLI. Use when Stevie says "/test-ainb", "test ainb", "run ainb tests", "snapshot <component>", "regenerate vhs tapes", or any phrasing about validating ainb test layers. The skill autodetects which ainb-tui worktree the cwd sits in and dispatches to scripts/run.sh.

sync-learnings

8
from stevengonsalvez/agents-in-a-box

Sync user-level agent config changes back to toolkit repository (works for Claude, Codex, Copilot)