Implement feature

From leonvanzyl/agentic-coding-starter-kit · View interactive version

Implement feature is an AI agent skill from the GitHub repository leonvanzyl/agentic-coding-starter-kit. Orchestrate parallel implementation of a feature specification by dispatching coder agents wave-by-wave with code review gates between waves. Use this skill when the user says "implement this feature", "start implementing", "run the spec", "execute the plan", "continue implementing", or wants to beg

How to use this skill

Skill file

Implement Feature

Orchestrate the parallel implementation of a feature specification by dispatching coder agents wave-by-wave. This skill reads a spec folder (created by create-spec), identifies the next wave of parallelizable work, spawns coder agents for each task, and runs a code review gate before moving to the next wave.

The orchestrator never writes code itself. Its job is to:

  1. Parse the spec and determine what to do next
  2. Give each coder agent exactly the context it needs
  3. Verify the results via code review
  4. Manage the fix loop if review finds issues
  5. Track progress and commit completed waves

Prerequisites

A specs/{feature}/ directory containing:

This structure is produced by the create-spec skill. If the user doesn't have a spec folder, suggest they create one first.

Orchestration

Step 1: Load the Spec

  1. Read specs/{feature}/README.md
  2. Read specs/{feature}/requirements.md
  3. Parse the Task Status section in the README — look at the checkboxes:
  1. Determine the current wave: the first wave that has any incomplete tasks
  2. If all tasks in all waves are complete, report "All tasks complete!" and stop

This makes the skill resumable — if invoked on a partially completed spec, it picks up exactly where it left off.

Step 2: Process Each Wave

For each wave starting from the current one, execute Steps 3 through 8 below, then advance to the next wave.

Step 3: Prepare Wave Tasks

  1. Read all incomplete task files for this wave from the tasks/ subfolder
  2. Check for file overlaps: scan the "Files to Create" and "Files to Modify" sections across all tasks in this wave. If any file appears in more than one task, warn the user:

```

Warning: File overlap detected in Wave {N}:

Options:

1. Proceed anyway (risk of conflicts)

2. Run these tasks sequentially instead of in parallel

```

Wait for the user's decision before proceeding.

Step 4: Dispatch Coder Agents

For each task in the wave, spawn a coder agent using the Agent tool with subagent_type: "coder". Spawn all agents for the wave in a single message so they run in parallel.

Read references/coder-prompt-template.md and construct each agent's prompt by filling in:

The coder agents should NOT commit their changes — the orchestrator handles commits after review.

Step 5: Collect Results

Wait for all coder agents in the wave to complete. Each agent should report:

If any agent fails (returns an error or crashes), note the failure and continue with the remaining results. Report the failure to the user after the wave.

Step 6: Code Review Gate

Spawn a single review agent using the Agent tool with subagent_type: "code-review".

Read references/review-prompt-template.md and construct the review prompt by filling in:

The review agent should:

  1. Run lint and typecheck
  2. Verify acceptance criteria from each task file
  3. Check that files integrate correctly (imports resolve, types match)
  4. Check for security issues and code quality
  5. Return a structured verdict: PASS or FAIL with specific issues

Step 7: Fix Loop

If the review returns FAIL:

  1. Parse the issues from the review (file paths, descriptions, suggested fixes)
  2. Group issues by the task they most closely relate to (match file paths against each task's "Files to Create/Modify")
  3. For each group, spawn a coder agent with a fix prompt. Read references/fix-prompt-template.md and fill in:
  1. After fix agents complete, re-run the review (Step 6)

Cap at 3 review cycles per wave. If the third review still fails, stop and report to the user:

Wave {N} review failed after 3 cycles. Outstanding issues:
{list of remaining issues}

Options:
1. Fix these manually and re-run /implement-feature
2. Proceed to the next wave anyway
3. Stop here

Step 8: Complete the Wave

After the wave passes review (or the user chooses to proceed):

  1. Update task files: for each completed task, change the Status field from pending to complete
  2. Update README.md: change - [ ] to - [x] for each completed task
  3. Commit the wave:

```

git add -A

git commit -m "feat({feature}): complete wave {N} — {brief summary}"

```

  1. Report wave completion:

```

Wave {N} of {total} complete.

Tasks completed:

Review: PASS

Commit: {hash}

Next: Wave {N+1} has {count} tasks ready for parallel execution.

```

Step 9: Final Integration Review

After all waves are complete:

  1. Run lint and typecheck one final time
  2. Spawn a code-review agent to review the full scope of changes (all files modified across all waves)
  3. Report the final status:
Feature "{feature}" implementation complete.

Waves completed: {N}/{N}
Total tasks: {T}

Verification:
- Lint: {PASS/FAIL}
- Typecheck: {PASS/FAIL}
- Integration review: {PASS/FAIL with notes}

Next steps:
- Review the changes
- Push and create a PR when ready

Error Handling

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.