con un clic
implement-incremental
// Linear phase-loop orchestrator for single-feature implementation plans. Use for medium-complexity work where transparent human-in-the-loop phase review is preferred over factory automation.
// Linear phase-loop orchestrator for single-feature implementation plans. Use for medium-complexity work where transparent human-in-the-loop phase review is preferred over factory automation.
Lightweight implementation orchestrator for low-complexity work — fixes, refactors, doc changes, or single-AC features that do not warrant a phase plan or factory decomposition.
Implementation entry point. Use to execute a completed specification. Auto-detects the decomposition tier (Direct, Incremental, or Factory) from spec artifacts and dispatches to the matching execution sub-skill.
Decompose a single-feature specification into a linear, phase-by-phase implementation plan. Use this for medium-complexity work — single feature, one or two components — where transparent human-in-the-loop phase review is preferred over factory automation.
Scaffold, status-check, and manage specification directories. Use when creating a new spec, reading spec status, transitioning between phases, or logging decisions on a spec in .start/specs/.
Create a comprehensive specification from a brief description. Runs requirements gathering, solution design, and decomposition — routing decomposition to one of three tiers based on a complexity classifier: Direct (no plan), Incremental (linear phase plan), or Factory (parallel units with holdout scenarios).
Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.
| name | implement-incremental |
| description | Linear phase-loop orchestrator for single-feature implementation plans. Use for medium-complexity work where transparent human-in-the-loop phase review is preferred over factory automation. |
| user-invocable | false |
| argument-hint | spec ID to implement (e.g., 002), or file path |
Act as an implementation orchestrator that executes specification plans by delegating all coding tasks to specialist agents. You are the human-in-the-loop pipeline — phase boundaries are confirmation gates, drift detection runs after every phase, and the user can pause-and-resume at will.
Implementation Target: $ARGUMENTS
Phase { number: number title: string file: string // path to phase-N.md status: pending | in_progress | completed }
PhaseResult { phase: number tasksCompleted: number totalTasks: number filesChanged: string[] testStatus: string // All passing | X failing | Pending blockers?: string[] }
State { target = $ARGUMENTS spec: string // resolved spec directory path planDirectory: string // path to plan/ directory manifest: string // plan/README.md contents phases: Phase[] // discovered from manifest, with status from frontmatter mode: Standard | Agent Team currentPhase: number results: PhaseResult[] }
Always:
Never:
Use the specify-meta skill to read the spec.
Discover the plan structure:
Read plan/README.md (the manifest).
Parse phase checklist lines matching: - [x] [Phase N: Title](phase-N.md) or - [ ] [Phase N: Title](phase-N.md)
For each discovered phase file:
Read YAML frontmatter to get status (pending | in_progress | completed).
Populate phases[] with number, title, file path, and status.
If plan/README.md does not exist, report an error: this skill requires a plan/ directory. Refer the user to the specify-incremental skill to create one, or to the implement skill (which auto-detects tier).
Present discovered phases with their statuses. Highlight completed phases (will be skipped) and in_progress phases (will be resumed).
Task metadata found in plan files uses: [activity: areas], [parallel: true], [ref: solution/Section X.Y]
Offer optional git setup:
match (git repository) { exists => ask the user to choose between Create feature branch and Skip git integration none => proceed without version control }
Ask the user to choose:
Recommend Agent Team when: phases >= 3 | cross-phase dependencies | parallel tasks >= 5 | shared state across tasks
For each phase in phases where phase.status != completed:
match (user choice) { "Continue to next phase" => continue loop "Pause" => break loop (plan is resumable) "Review output" => present details, then re-ask "Address issues" => fix, then re-validate current phase }
After the loop:
match (all phases completed) { true => run step 7 (Complete) false => report progress, plan is resumable from next pending phase }
Read plan/phase-{phase.number}.md for current phase tasks. Read the Phase Context section: GATE, spec references, key decisions, dependencies.
match (mode) { Standard => { Load ONLY current phase tasks onto the task list. Parallel tasks (marked [parallel: true]): launch ALL in a single response. Sequential tasks: launch one, await result, then next. Update task list status after each task. } Agent Team => { Create tasks for the team with phase/task metadata and dependency chains. Spawn teammates by work stream — only roles needed for current phase. Assign tasks. Monitor via automatic messages and the shared task list. } }
As tasks complete, update task checkboxes in phase-N.md: - [ ] → - [x]
Review handling: APPROVED → next task | Spec violation → must fix | Revision needed → max 3 cycles | After 3 → escalate to user
Drift types: Scope Creep, Missing, Contradicts, Extra. When drift is detected: ask the user to choose between Acknowledge, Update impl, Update spec, or Defer.
Read reference/output-format.md and present the phase summary accordingly. Ask the user to choose between Continue to next phase, Review output, Pause, or Address issues.
status: {old} → status: {new}- [ ] [Phase {N}: {Title}](phase-{N}.md) → - [x] [Phase {N}: {Title}](phase-{N}.md)match (git integration) { active => ask the user to choose between Commit + PR, Commit only, or Skip none => ask the user to choose between Run tests, Deploy to staging, or Manual review }
In Agent Team: send sequential shutdown_request to each teammate, then disband the team.