agentleFS
mhyllemhylle/claude-skills-collection/skills/implement-plan/SKILL.md

implement-plan

Skill20 starsChanged 35 days agoMITView on GitHub

Orchestrate the execution of complete implementation plans, delegating each phase to implement-phase skill. This skill manages the full plan lifecycle including phase sequencing, user confirmation between phases, and overall progress tracking. Triggers on "implement the plan", "execute the implementation plan", or when given a path to a plan file.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, describe-pr and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 4 projects that use this

  • parcadeiSkill

    describe-pr

    Generate comprehensive PR descriptions following repository templates

    Also in 4 projects that use this

  • joshuaalpuertoSkill

    research-codebase

    Conducts structured research across a codebase to answer questions about architecture, components, and data flow. Use when investigating how code works, where functionality lives, or how systems interact. Decomposes questions, runs parallel investigations, synthesizes findings with file:line references, and produces persistent research documents.

    Also in 4 projects that use this

  • JetBrainsSkill

    review-plan

    Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.

    Also in 5 projects that use this

  • JetBrainsSkill

    fix-bug

    End-to-end bug fix workflow for the Exposed project. Accepts a GitHub issue (#NUMBER), YouTrack issue (EXPOSED-NUMBER), or YouTrack URL (https://youtrack.jetbrains.com/issue/EXPOSED-NUMBER). Fetches the issue, creates a failing reproducer test, commits on a new branch, implements the fix, validates, and opens a PR. Use this skill whenever the user wants to fix a bug from an issue tracker, mentions a EXPOSED issue number, or references a GitHub issue to fix.

    Also in 3 projects that use this

  • NVIDIASkill

    review-code

    Review a code repository for concrete issues in correctness, robustness, security, maintainability, tests, and integration. Use for repository-wide or focused code review where practical engineering judgment and strict scope control matter.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check what supporting infrastructure exists.

    line 57
  2. Distinctive:

    Wait for user confirmation to begin.

    line 87
  3. Very specific:

    Update task status to completed

    line 136
  4. Distinctive:

    Wait for user confirmation before next phase

    line 139
  5. Distinctive:

    Do not automatically retry the whole phase — implement-phase already retried internally

    line 143
  6. Distinctive:

    Wait for user decision

    line 148
  7. Distinctive:

    After each phase completes:

    line 158
  8. Distinctive:

    When tasks already exist for this plan:

    line 182
  9. Distinctive:

    Call TaskList to see current state

    line 184
  10. Distinctive:

    After all phases complete:

    line 202
  11. Distinctive:

    Not every plan needs full ceremony:

    line 225

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Implement Plan

<!-- contents: generated by tests/skill_structure.py --write; edit headings, not this block -->

Contents

  • Your Role: Orchestrator
  • Getting Started
    • 1. Locate and Read the Plan
    • 2. Assess the Environment
    • 3. Check or Create Progress Tracking
    • 4. Confirm Before Starting
  • Phase Execution
    • Announce
    • Run implement-phase
    • Handle Results
    • Confirm Between Phases
  • Resuming Interrupted Work
  • Final Completion
  • Adapting to Plan Size
  • Key Principles
  • Skill Dependencies
  • Reference

Reference files (open one when a step points to it):

  • references/plan-format.md: Implementation Plan Format Reference
<!-- /contents -->

Orchestrate complete implementation plans by sequencing phases and running each one through the implement-phase skill, in this session. Read a plan, track progress, and coordinate phase-by-phase execution with user confirmation between phases.

Your Role: Orchestrator

This session coordinates — it does not implement. All code writing, testing, and file creation is done by the subagents that implement-phase spawns. When you invoke implement-phase, its procedure loads into this same session, which becomes the phase lead; the lead still hands the actual work to subagents.

Why this separation matters:

  • Context preservation — This session retains the full plan context across all phases. Implementation work would fill the context with code details and lose sight of the overall plan.
  • Clean error boundaries — Implementation failures are isolated within the subagents. The orchestrator stays clean and can reason about recovery without being entangled in failing code.
  • Parallelization — implement-phase runs multiple tasks concurrently within a phase.

In practice: use Read/Glob to understand context, Skill to invoke implement-phase, and Task tools to track progress. Do not use Write/Edit/NotebookEdit; if you are about to, run implement-phase's procedure instead, which spawns subagents for the work.

This holds whenever the Agent tool is available. A user's "foreground", "no background agents" or "don't poll" is about how this session waits for agents, not about who writes the code; only an explicit "write the code yourself in this session" overrides the rule, so ask when unsure.

Getting Started

1. Locate and Read the Plan

Find the plan file (common locations: docs/plans/, thoughts/plans/, or the user-specified path). Read the entire plan — full context is essential for sequencing phases correctly.

2. Assess the Environment

Check what supporting infrastructure exists. Not all projects have all of these — adapt accordingly:

CheckIf presentIf absent
Task tools progressResume from first incomplete phaseStart from Phase 1
ADR directory (docs/decisions/)Pass to implement-phase for complianceSay so in the phase context; implement-phase's ADR step expects docs/decisions/INDEX.md
Prompt files (docs/prompts/phase-*.md)Pass matching prompt to implement-phaseimplement-phase uses plan directly

3. Check or Create Progress Tracking

TaskList → Look for tasks matching "Phase N:" pattern

If tasks exist with some completed:
  → Resume from first non-completed task
  → Show progress summary

If no tasks exist:
  → Create one task per phase with sequential dependencies
  → Start from Phase 1

4. Confirm Before Starting

Present a brief summary before executing:

  • Plan name and total phases
  • Current progress (if resuming)
  • Which phase executes first
  • Notable dependencies or prerequisites

Wait for user confirmation to begin.

Phase Execution

Announce

Briefly state what's about to happen:

======================================
STARTING PHASE [N]: [Phase Name]
======================================

Objectives: [1-2 sentences]
Dependencies: [Previous phase status]

Running implement-phase...

Run implement-phase

Mark the phase's task in_progress, then invoke the skill:

Skill(skill="implement-phase"): Execute Phase [N] of the implementation plan.

Context:
- Plan: [plan file path]
- Phase: [N] ([Phase Name])
- Task ID: [from TaskList, if available]
- Prompt: [prompt file path if discovered, otherwise "None"]
- Previous Phase Status: [Complete/N/A]

Execute all quality gates and end with the PHASE_RESULT block.

Optional parameters to pass through when specified in the plan:

  • TDD Mode, Coverage Threshold — from plan metadata
  • Skip Steps — if specific quality gates should be skipped

Its procedure loads into this session, which then acts as the phase lead through Steps 1–8; nothing comes back from elsewhere, so continue from the PHASE_RESULT block that ends Step 8.

Its agents report asynchronously, so this session ends turns while it waits for them. That is the phase still in progress, not the phase ending: each report resumes the phase, which runs on until Step 8.

Handle Results

The PHASE_RESULT block that ends each phase has one of three statuses:

COMPLETE — All quality gates passed.

  1. Update task status to completed
  2. Present results summary
  3. Note any manual verification items (rare — implement-phase handles most verification)
  4. Wait for user confirmation before next phase

FAILED — Quality gates could not be satisfied after internal retries.

  1. Present failure details and what was attempted
  2. Do not automatically retry the whole phase — implement-phase already retried internally
  3. Offer options:
    • Fix and retry — User provides guidance, re-run the phase
    • Skip — Mark as skipped, note the risk, continue (user's call)
    • Abort — Stop plan execution
  4. Wait for user decision

BLOCKED — During a phase, implement-phase asks the user about a blocker itself, since it runs in this session, and resumes the blocked step after the answer. A PHASE_RESULT with status: BLOCKED only ends a phase when no one could be asked (an unattended run). When you see one:

  1. Present the blocker with full context
  2. Include options from implement-phase plus your recommendation
  3. Wait for user decision
  4. On resolution, resume from the blocked step (not from Phase 1)

Confirm Between Phases

After each phase completes:

======================================
PHASE [N] COMPLETE: [Phase Name]
======================================

Results:
  Implementation: [files created/modified]
  Verification: [build/test/lint status]
  Code Review: [status]
  ADR Compliance: [status]

[Manual verification items, if any]

Progress: [N]/[total] phases complete
Next: Phase [N+1] — [Name]

Ready to proceed?
======================================

Resuming Interrupted Work

When tasks already exist for this plan:

  1. Call TaskList to see current state
  2. Find the first non-completed task
  3. Spot-check that previous work exists (verify a few key files from completed phases)
  4. Present resume summary and continue
Resuming: [Plan Name]

  Phase 1: [Name] — completed
  Phase 2: [Name] — completed
  Phase 3: [Name] — resuming here
  Phase 4: [Name] — pending

Continuing from Phase 3...

Final Completion

After all phases complete:

======================================
PLAN COMPLETE: [Plan Name]
======================================

Summary:
  Phases Completed: [N]/[N]
  Files Created: [count]
  Files Modified: [count]
  Tests Added: [count]

Quality Gates: All passed across all phases

Final Verification:
  [Remaining manual items, if any — often none]

======================================

Adapting to Plan Size

Not every plan needs full ceremony:

Plan SizeApproach
1-2 phasesBrief announcements, compact status
3-5 phasesStandard flow with summaries
6+ phasesFull tracking, progress percentages

The implement-phase pipeline is the same regardless — this adaptation is about how much orchestration scaffolding this skill adds around it.

Key Principles

  1. Delegate, don't implement — All code work flows through the subagents implement-phase spawns
  2. Confirm between phases — Give the user a chance to review, adjust, or abort
  3. Trust the PHASE_RESULT block — Act on the block that ends each phase
  4. Surface problems clearly — Present failures and blockers with context and options
  5. Degrade gracefully — Missing prompts or task history should not block execution
  6. Resume cleanly — Task tools let work survive session restarts

Skill Dependencies

implement-plan
    └── implement-phase (required, runs in this session)
            ├── verification-loop (required)
            ├── devflow:code-review (required)
            └── adr (required for compliance)

Reference

See references/plan-format.md for:

  • Standard plan structure and formatting
  • Exit condition templates by project type (Node.js, Python, Go, Rust, Java)
  • Phase organization and sizing guidelines

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.