create-agentic-app 1.1.54 → 1.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/template/.agents/skills/checkpoint/SKILL.md +75 -0
  3. package/template/.agents/skills/create-spec/SKILL.md +132 -0
  4. package/template/.agents/skills/create-spec/references/action-required-template.md +53 -0
  5. package/template/.agents/skills/create-spec/references/readme-template.md +53 -0
  6. package/template/.agents/skills/create-spec/references/requirements-template.md +54 -0
  7. package/template/.agents/skills/create-spec/references/task-template.md +79 -0
  8. package/template/.agents/skills/implement-feature/SKILL.md +189 -0
  9. package/template/.agents/skills/implement-feature/references/coder-prompt-template.md +46 -0
  10. package/template/.agents/skills/implement-feature/references/fix-prompt-template.md +38 -0
  11. package/template/.agents/skills/implement-feature/references/review-prompt-template.md +50 -0
  12. package/template/.agents/skills/review-pr/SKILL.md +97 -0
  13. package/template/.claude/skills/checkpoint/SKILL.md +75 -0
  14. package/template/.claude/skills/create-spec/SKILL.md +132 -0
  15. package/template/.claude/skills/create-spec/references/action-required-template.md +53 -0
  16. package/template/.claude/skills/create-spec/references/readme-template.md +53 -0
  17. package/template/.claude/skills/create-spec/references/requirements-template.md +54 -0
  18. package/template/.claude/skills/create-spec/references/task-template.md +79 -0
  19. package/template/.claude/skills/implement-feature/SKILL.md +189 -0
  20. package/template/.claude/skills/implement-feature/references/coder-prompt-template.md +46 -0
  21. package/template/.claude/skills/implement-feature/references/fix-prompt-template.md +38 -0
  22. package/template/.claude/skills/implement-feature/references/review-prompt-template.md +50 -0
  23. package/template/.claude/skills/review-pr/SKILL.md +97 -0
  24. package/template/AGENTS.md +4 -0
  25. package/template/.claude/commands/checkpoint.md +0 -37
  26. package/template/.claude/commands/continue-feature.md +0 -425
  27. package/template/.claude/commands/create-spec.md +0 -180
  28. package/template/.claude/commands/review-pr.md +0 -54
  29. package/template/.cursor/rules/project-rules.mdc +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-agentic-app",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "description": "Scaffold a new agentic AI application with Next.js, Better Auth, and AI SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: checkpoint
3
+ description: >
4
+ Create a comprehensive checkpoint commit with detailed analysis of all changes. Use this skill
5
+ when the user says "checkpoint", "commit everything", "save my progress", "create a commit",
6
+ or wants to stage and commit all current changes with a well-crafted message. Also use when
7
+ the user says "/checkpoint" or asks to snapshot current work. This skill stages all changes
8
+ and creates a descriptive commit — it does not push.
9
+ ---
10
+
11
+ # Checkpoint Commit
12
+
13
+ Create a comprehensive checkpoint commit that captures all current changes with a detailed, well-structured commit message.
14
+
15
+ ## Instructions
16
+
17
+ ### Step 1: Analyze Changes
18
+
19
+ Run these commands to understand the full picture:
20
+
21
+ 1. `git status` — see all tracked and untracked files
22
+ 2. `git diff` — see detailed changes in tracked files
23
+ 3. `git diff --cached` — see already-staged changes
24
+ 4. `git log -5 --oneline` — understand this repo's commit message style
25
+
26
+ ### Step 2: Stage Everything
27
+
28
+ Stage all changes — tracked modifications, deletions, and new untracked files:
29
+
30
+ ```bash
31
+ git add -A
32
+ ```
33
+
34
+ ### Step 3: Craft the Commit Message
35
+
36
+ Write a commit message following the project's existing conventions (observed from `git log`). Structure:
37
+
38
+ - **First line**: clear, concise summary in imperative mood (50-72 chars)
39
+ - Use conventional commit prefixes where the project uses them: `feat:`, `fix:`, `refactor:`, `docs:`, `chore:`, etc.
40
+ - **Body** (separated by blank line): detailed description including:
41
+ - What changes were made (key modifications)
42
+ - Why these changes were made (purpose/motivation)
43
+ - Important technical details or decisions
44
+ - Breaking changes or migration notes if applicable
45
+ - **Footer**: co-author attribution
46
+
47
+ ### Step 4: Commit
48
+
49
+ Create the commit using a heredoc for proper formatting:
50
+
51
+ ```bash
52
+ git commit -m "$(cat <<'EOF'
53
+ {first line}
54
+
55
+ {body}
56
+
57
+ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
58
+ EOF
59
+ )"
60
+ ```
61
+
62
+ ### Step 5: Report
63
+
64
+ Display:
65
+ - The commit hash and message summary
66
+ - Files changed count
67
+ - Insertions/deletions summary
68
+
69
+ ## Important
70
+
71
+ - Stage and commit everything — do not skip files unless they are clearly sensitive (`.env`, credentials)
72
+ - If the repo has no git history, run `git init` first
73
+ - Make the commit message descriptive enough that someone reading `git log` understands what was accomplished
74
+ - Follow the project's existing commit conventions (check the log first)
75
+ - Do not push — only commit locally
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: create-spec
3
+ description: >
4
+ Create a structured feature specification with self-contained task files organized into
5
+ parallel execution waves. Use this skill when the user says "create a spec", "plan this feature",
6
+ "write up an implementation plan", "break this into tasks", or after any planning conversation
7
+ where the user wants to capture decisions as actionable spec files. Also use when the user
8
+ says "/create-spec" or wants to decompose a feature into work items that agents can implement
9
+ independently. This skill produces local spec files under specs/{feature}/ — no GitHub integration.
10
+ ---
11
+
12
+ # Create Feature Specification
13
+
14
+ Transform a planning conversation into a structured spec folder that enables parallel agent implementation. The spec breaks a feature into self-contained task files — each one detailed enough that a coder agent can pick it up cold and implement it without reading anything else.
15
+
16
+ The key insight: implementation plans that live in a single file are either too large for a context window or too shallow for independent execution. By splitting into one file per task with full context in each, we enable multiple agents to work in parallel while keeping each agent's context focused.
17
+
18
+ ## When to Use
19
+
20
+ - After a planning conversation where requirements and technical details have been discussed
21
+ - When the user asks to create a spec, plan a feature, or break work into tasks
22
+ - When the user wants to prepare work for parallel agent implementation
23
+
24
+ ## Instructions
25
+
26
+ ### Step 1: Gather Requirements
27
+
28
+ If the conversation already contains planning context (requirements discussed, technical decisions made, architecture outlined), extract all of it. Review the entire conversation to ensure nothing is lost — the spec is the single source of truth, and anything not captured here disappears.
29
+
30
+ If no planning conversation exists, interview the user:
31
+ - What does this feature do and why does it matter?
32
+ - What are the acceptance criteria?
33
+ - What technical constraints or decisions have been made?
34
+ - What files, APIs, schemas, or patterns are involved?
35
+
36
+ ### Step 2: Name the Feature
37
+
38
+ Choose a kebab-case name that clearly identifies the feature (e.g., `add-user-auth`, `migrate-to-postgres`, `dashboard-redesign`). This becomes the folder name under `specs/`.
39
+
40
+ ### Step 3: Decompose into Tasks
41
+
42
+ Break the implementation into atomic tasks. Each task should:
43
+ - Be completable in a single coding session by one agent
44
+ - Have a clear, specific scope (one concern per task)
45
+ - Produce working, testable code when complete
46
+ - Not overlap in files modified with other tasks in the same wave
47
+
48
+ Think carefully about granularity. Too coarse and agents can't work in parallel. Too fine and the overhead of context-switching between tasks dominates. A good task typically creates or modifies 1-5 files around a single concern.
49
+
50
+ Do NOT include testing tasks (unit tests, e2e tests) unless the user explicitly asks for them.
51
+
52
+ ### Step 4: Build the Dependency Graph
53
+
54
+ For each task, identify:
55
+ - **What it depends on**: which tasks must complete before this one can start
56
+ - **What depends on it**: which tasks are blocked until this one finishes
57
+
58
+ Tasks with no dependencies form Wave 1. Tasks whose dependencies are all in Wave 1 form Wave 2. And so on. All tasks within a wave can execute in parallel.
59
+
60
+ When assigning waves, verify that tasks within the same wave do not modify overlapping files. If two tasks in the same wave would touch the same file, move one to a later wave — parallel agents on the same branch cannot safely modify the same file.
61
+
62
+ ### Step 5: Create the Spec Folder
63
+
64
+ Create the following structure at `specs/{feature-name}/`:
65
+
66
+ ```
67
+ specs/{feature-name}/
68
+ ├── README.md
69
+ ├── requirements.md
70
+ ├── action-required.md
71
+ └── tasks/
72
+ ���── task-01-{name}.md
73
+ ├── task-02-{name}.md
74
+ └── ...
75
+ ```
76
+
77
+ Read the templates in `references/` before writing each file:
78
+ - `references/readme-template.md` — for the README (dependency graph, wave table, status tracking)
79
+ - `references/task-template.md` — for each task file (self-contained with all context)
80
+ - `references/requirements-template.md` ��� for the requirements document
81
+ - `references/action-required-template.md` — for manual human steps
82
+
83
+ Task files are numbered with zero-padded two-digit prefixes in topological order: Wave 1 tasks first, then Wave 2, etc. Within a wave, order is arbitrary but stable.
84
+
85
+ ### Step 6: Write Self-Contained Task Files
86
+
87
+ This is the most important step. Each task file is the **only thing** a coder agent will read before implementing. It must contain everything the agent needs:
88
+
89
+ - **Description**: what to build and why it matters in context
90
+ - **Dependency context**: what prior tasks produce that this task needs (summarized in prose, not just filenames). The agent should not need to read other task files.
91
+ - **Technical details**: CLI commands, code snippets, schemas, file paths, env vars, API endpoints — every implementation-specific detail from the planning conversation
92
+ - **Files to create/modify**: explicit list with purpose for each
93
+ - **Acceptance criteria**: specific, verifiable conditions
94
+
95
+ Review each task file with fresh eyes: could an agent who has never seen the planning conversation implement this correctly using only this file? If not, add what's missing.
96
+
97
+ ### Step 7: Extract Manual Actions
98
+
99
+ Identify any steps that require human action (account creation, API key setup, DNS configuration, environment variables, third-party service registration, etc.). Write these to `action-required.md` grouped by timing (Before/During/After implementation). If none exist, note "No manual steps required."
100
+
101
+ ### Step 8: Report to User
102
+
103
+ After creating the spec, display:
104
+
105
+ ```
106
+ Feature specification created at specs/{feature-name}/
107
+
108
+ Files created:
109
+ - README.md (dependency graph, {N} waves, {T} tasks)
110
+ - requirements.md
111
+ - action-required.md
112
+ - tasks/ ({T} task files)
113
+
114
+ Wave breakdown:
115
+ - Wave 1: {count} tasks (parallel) — {brief description}
116
+ - Wave 2: {count} tasks (parallel) — {brief description}
117
+ - ...
118
+
119
+ Next steps:
120
+ 1. Review action-required.md for tasks you need to complete manually
121
+ 2. Review the requirements and task files
122
+ 3. Use /implement-feature to start parallel implementation
123
+ ```
124
+
125
+ ## Critical Rules
126
+
127
+ - Every task file must be fully self-contained — this is the entire point of the spec structure. A coder agent reading only that file must know exactly what to do.
128
+ - Capture ALL technical details from the planning conversation. The spec is the single source of truth — CLI commands, schemas, code snippets, file paths, env vars, API endpoints. Anything not captured here is lost.
129
+ - Tasks within the same wave must not modify overlapping files. Parallel agents on the same branch cannot safely touch the same files.
130
+ - Keep tasks atomic — one concern per task. If a task has more than 5-7 files to modify, consider splitting it.
131
+ - Do not create testing tasks unless the user explicitly asks for them.
132
+ - Number task files in topological order (wave 1 first, then wave 2, etc.) for easy scanning.
@@ -0,0 +1,53 @@
1
+ # Action Required Template
2
+
3
+ Use this structure for the action-required.md at the root of each spec folder. This file captures manual steps that require human action and cannot be automated by agents.
4
+
5
+ ## Template (when manual steps exist)
6
+
7
+ ```markdown
8
+ # Action Required: {Feature Name}
9
+
10
+ Manual steps that must be completed by a human. These cannot be automated.
11
+
12
+ ## Before Implementation
13
+
14
+ - [ ] **{Action}** — {Brief reason why this is needed}
15
+ - [ ] **{Action}** — {Brief reason}
16
+
17
+ ## During Implementation
18
+
19
+ - [ ] **{Action}** — {Brief reason}
20
+
21
+ ## After Implementation
22
+
23
+ - [ ] **{Action}** — {Brief reason}
24
+
25
+ ---
26
+
27
+ > These tasks are also referenced in context within the relevant task files.
28
+ ```
29
+
30
+ ## Template (when no manual steps exist)
31
+
32
+ ```markdown
33
+ # Action Required: {Feature Name}
34
+
35
+ No manual steps required for this feature. All tasks can be implemented automatically.
36
+ ```
37
+
38
+ ## Common Manual Steps
39
+
40
+ - Account creation (third-party services, OAuth apps)
41
+ - API key generation and setup
42
+ - Environment variable configuration
43
+ - DNS or domain settings
44
+ - Billing or subscription setup
45
+ - Third-party service registration (webhooks, integrations)
46
+ - Certificate provisioning
47
+ - Access permissions or IAM roles
48
+
49
+ ## Key Points
50
+
51
+ - Group actions by timing: before, during, and after implementation. This helps the user know when they need to act.
52
+ - Keep descriptions brief — one line explaining what to do and why.
53
+ - Also reference these manual steps in the relevant task files so agents know to pause or skip that part.
@@ -0,0 +1,53 @@
1
+ # README Template
2
+
3
+ Use this structure for the README.md at the root of each spec folder. The README serves as the orchestration index — the `implement-feature` skill reads it to determine wave order, task assignments, and completion status.
4
+
5
+ ## Template
6
+
7
+ ```markdown
8
+ # {Feature Name}
9
+
10
+ ## Overview
11
+
12
+ {One paragraph summary of what the feature does and why it exists.}
13
+
14
+ ## Quick Links
15
+
16
+ - [Requirements](./requirements.md) — full requirements and acceptance criteria
17
+ - [Action Required](./action-required.md) — manual steps needing human action
18
+
19
+ ## Dependency Graph
20
+
21
+ ​```mermaid
22
+ graph TD
23
+ task-01-name["01: Task Title"]
24
+ task-02-name["02: Task Title"]
25
+ task-03-name["03: Task Title"]
26
+ task-01-name --> task-03-name
27
+ task-02-name --> task-03-name
28
+ ​```
29
+
30
+ ## Waves
31
+
32
+ | Wave | Tasks | Description |
33
+ |------|-------|-------------|
34
+ | 1 | task-01, task-02 | {Brief description of what this wave accomplishes} |
35
+ | 2 | task-03 | {Brief description} |
36
+
37
+ ## Task Status
38
+
39
+ ### Wave 1
40
+ - [ ] [task-01-{name}](./tasks/task-01-{name}.md) — {One-line title}
41
+ - [ ] [task-02-{name}](./tasks/task-02-{name}.md) — {One-line title}
42
+
43
+ ### Wave 2
44
+ - [ ] [task-03-{name}](./tasks/task-03-{name}.md) — {One-line title}
45
+ ```
46
+
47
+ ## Key Points
48
+
49
+ - The **Dependency Graph** uses Mermaid syntax (widely rendered in GitHub, VS Code, etc.). Each node shows the task number and title for quick reference.
50
+ - The **Waves** table provides a scannable overview of what runs in parallel.
51
+ - The **Task Status** section uses markdown checkboxes that the `implement-feature` skill updates as tasks complete. The orchestrator parses these to determine which wave to resume from.
52
+ - Links to task files use relative paths pointing into the `tasks/` subfolder.
53
+ - Tasks without dependencies have no incoming arrows in the graph — these form Wave 1.
@@ -0,0 +1,54 @@
1
+ # Requirements Template
2
+
3
+ Use this structure for the requirements.md at the root of each spec folder.
4
+
5
+ ## Template
6
+
7
+ ```markdown
8
+ # Requirements: {Feature Name}
9
+
10
+ ## Summary
11
+
12
+ {What the feature does and why it exists — 2-3 paragraphs covering the problem, the solution, and the expected outcome.}
13
+
14
+ ## Goals
15
+
16
+ - {Goal 1}
17
+ - {Goal 2}
18
+ - {Goal 3}
19
+
20
+ ## Non-Goals
21
+
22
+ {Explicitly out of scope — things that might seem related but are not part of this feature.}
23
+
24
+ - {Non-goal 1}
25
+ - {Non-goal 2}
26
+
27
+ ## Acceptance Criteria
28
+
29
+ {High-level criteria for the entire feature. Individual task files have their own granular criteria.}
30
+
31
+ - [ ] {Criterion 1}
32
+ - [ ] {Criterion 2}
33
+ - [ ] {Criterion 3}
34
+
35
+ ## Assumptions
36
+
37
+ {Things assumed to be true that could affect implementation if they turn out to be false.}
38
+
39
+ - {Assumption 1}
40
+ - {Assumption 2}
41
+
42
+ ## Technical Constraints
43
+
44
+ {Architecture decisions, technology choices, or constraints that affect all tasks.}
45
+
46
+ - {Constraint 1}
47
+ - {Constraint 2}
48
+ ```
49
+
50
+ ## Key Points
51
+
52
+ - The requirements doc provides **overall feature context** that each coder agent receives alongside its task file. Keep it focused on the "what" and "why" — individual task files handle the "how."
53
+ - Non-goals are important: they prevent agents from over-building. If search functionality is out of scope, say so — otherwise a well-meaning agent might add it.
54
+ - Acceptance criteria here are feature-level (the whole thing works end-to-end). Task-level criteria live in each task file.
@@ -0,0 +1,79 @@
1
+ # Task File Template
2
+
3
+ Use this structure for each task file in the `tasks/` subfolder. Each task file must be **fully self-contained** — a coder agent reading only this file should know exactly what to implement, why, and how.
4
+
5
+ ## Template
6
+
7
+ ```markdown
8
+ # Task {nn}: {Title}
9
+
10
+ ## Status
11
+
12
+ pending
13
+
14
+ ## Wave
15
+
16
+ {N}
17
+
18
+ ## Description
19
+
20
+ {2-5 sentences describing what this task accomplishes and why it matters in the context of the overall feature. Include enough context that an agent unfamiliar with the planning conversation understands the purpose.}
21
+
22
+ ## Dependencies
23
+
24
+ **Depends on:** {Comma-separated list of task filenames, or "None (Wave 1)"}
25
+ **Blocks:** {Comma-separated list of task filenames, or "None"}
26
+
27
+ **Context from dependencies:** {Prose summary of what the dependency tasks produce that this task needs. For example: "task-01-setup-database.md creates the PostgreSQL schema with users and sessions tables. This task builds the API routes that query those tables." This is what makes each file self-contained — the agent does not need to read other task files to understand its inputs.}
28
+
29
+ ## Files to Create
30
+
31
+ - `path/to/new-file.ts` — {Brief purpose}
32
+ - `path/to/another-file.ts` — {Brief purpose}
33
+
34
+ ## Files to Modify
35
+
36
+ - `path/to/existing-file.ts` — {What changes and why}
37
+
38
+ ## Technical Details
39
+
40
+ {All implementation-specific details from the planning conversation. This section is the single source of truth. Include:}
41
+
42
+ ### Implementation Steps
43
+
44
+ 1. {Step-by-step instructions with enough detail for independent implementation}
45
+ 2. {Include CLI commands where relevant: `pnpm add package-name`}
46
+ 3. {Include code snippets for non-obvious patterns}
47
+
48
+ ### Code Snippets
49
+
50
+ {Key type definitions, schemas, configuration blocks, or patterns that the implementer needs. Use fenced code blocks with language tags.}
51
+
52
+ ### Environment Variables
53
+
54
+ {If applicable:}
55
+ - `VAR_NAME` — {Purpose and example value}
56
+
57
+ ### API Endpoints
58
+
59
+ {If applicable:}
60
+ - `METHOD /path` — {Request/response shape}
61
+
62
+ ## Acceptance Criteria
63
+
64
+ - [ ] {Criterion 1 — specific and verifiable}
65
+ - [ ] {Criterion 2}
66
+ - [ ] {Criterion 3}
67
+
68
+ ## Notes
69
+
70
+ {Any additional context, edge cases, warnings, or architectural decisions relevant to this task. Omit this section if there's nothing to add.}
71
+ ```
72
+
73
+ ## Key Points
74
+
75
+ - The **Status** field is updated by the `implement-feature` skill: `pending` → `in-progress` → `complete`.
76
+ - The **Dependencies** section includes prose context (not just filenames) so the agent understands its inputs without reading other files. This is the most important part of making task files self-contained.
77
+ - **Files to Create** and **Files to Modify** make the task's scope explicit. Tasks in the same wave should not overlap on these lists.
78
+ - **Technical Details** captures everything from the planning conversation — CLI commands, schemas, code snippets, file paths, env vars, API endpoints. If it was discussed during planning and is relevant to this task, it belongs here.
79
+ - **Acceptance Criteria** should be specific enough that completion can be verified objectively (by a code review agent or a human).
@@ -0,0 +1,189 @@
1
+ ---
2
+ name: implement-feature
3
+ description: >
4
+ Orchestrate parallel implementation of a feature specification by dispatching coder agents
5
+ wave-by-wave with code review gates between waves. Use this skill when the user says
6
+ "implement this feature", "start implementing", "run the spec", "execute the plan",
7
+ "continue implementing", or wants to begin coding a previously planned feature from a
8
+ specs/{feature}/ folder. Also use when the user says "/implement-feature" or drags a spec
9
+ folder into the conversation and asks to implement it. This skill does NOT write code itself —
10
+ it orchestrates coder subagents that work in parallel.
11
+ ---
12
+
13
+ # Implement Feature
14
+
15
+ 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.
16
+
17
+ The orchestrator never writes code itself. Its job is to:
18
+ 1. Parse the spec and determine what to do next
19
+ 2. Give each coder agent exactly the context it needs
20
+ 3. Verify the results via code review
21
+ 4. Manage the fix loop if review finds issues
22
+ 5. Track progress and commit completed waves
23
+
24
+ ## Prerequisites
25
+
26
+ A `specs/{feature}/` directory containing:
27
+ - `README.md` with wave assignments and task status checkboxes
28
+ - `requirements.md` with feature context
29
+ - `tasks/task-{nn}-*.md` files (one per task, self-contained)
30
+
31
+ This structure is produced by the `create-spec` skill. If the user doesn't have a spec folder, suggest they create one first.
32
+
33
+ ## Orchestration
34
+
35
+ ### Step 1: Load the Spec
36
+
37
+ 1. Read `specs/{feature}/README.md`
38
+ 2. Read `specs/{feature}/requirements.md`
39
+ 3. Parse the **Task Status** section in the README — look at the checkboxes:
40
+ - `- [x]` = completed task (skip)
41
+ - `- [ ]` = pending task (include)
42
+ 4. Determine the **current wave**: the first wave that has any incomplete tasks
43
+ 5. If all tasks in all waves are complete, report "All tasks complete!" and stop
44
+
45
+ This makes the skill **resumable** — if invoked on a partially completed spec, it picks up exactly where it left off.
46
+
47
+ ### Step 2: Process Each Wave
48
+
49
+ For each wave starting from the current one, execute Steps 3 through 8 below, then advance to the next wave.
50
+
51
+ ### Step 3: Prepare Wave Tasks
52
+
53
+ 1. Read all incomplete task files for this wave from the `tasks/` subfolder
54
+ 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:
55
+
56
+ ```
57
+ Warning: File overlap detected in Wave {N}:
58
+ - {file-path} is modified by both task-{nn} and task-{mm}
59
+
60
+ Options:
61
+ 1. Proceed anyway (risk of conflicts)
62
+ 2. Run these tasks sequentially instead of in parallel
63
+ ```
64
+
65
+ Wait for the user's decision before proceeding.
66
+
67
+ ### Step 4: Dispatch Coder Agents
68
+
69
+ 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.
70
+
71
+ Read `references/coder-prompt-template.md` and construct each agent's prompt by filling in:
72
+ - **{requirements}**: full text of `requirements.md`
73
+ - **{completed_tasks_summary}**: for each previously completed task, a one-paragraph summary of what was implemented and what files were created/modified (extract from the task file's Description section plus any completion notes)
74
+ - **{task_content}**: full text of the task file being assigned
75
+
76
+ The coder agents should NOT commit their changes — the orchestrator handles commits after review.
77
+
78
+ ### Step 5: Collect Results
79
+
80
+ Wait for all coder agents in the wave to complete. Each agent should report:
81
+ - Files created
82
+ - Files modified
83
+ - A summary of what was implemented
84
+
85
+ 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.
86
+
87
+ ### Step 6: Code Review Gate
88
+
89
+ Spawn a single review agent using the `Agent` tool with `subagent_type: "code-review"`.
90
+
91
+ Read `references/review-prompt-template.md` and construct the review prompt by filling in:
92
+ - **{wave_number}**: current wave number
93
+ - **{requirements}**: full text of `requirements.md`
94
+ - **{task_summaries}**: for each task in this wave, the task title and the coder agent's completion summary
95
+ - **{verification_commands}**: the project's lint and typecheck commands (e.g., `pnpm lint && pnpm typecheck`)
96
+
97
+ The review agent should:
98
+ 1. Run lint and typecheck
99
+ 2. Verify acceptance criteria from each task file
100
+ 3. Check that files integrate correctly (imports resolve, types match)
101
+ 4. Check for security issues and code quality
102
+ 5. Return a structured verdict: **PASS** or **FAIL** with specific issues
103
+
104
+ ### Step 7: Fix Loop
105
+
106
+ If the review returns **FAIL**:
107
+
108
+ 1. Parse the issues from the review (file paths, descriptions, suggested fixes)
109
+ 2. Group issues by the task they most closely relate to (match file paths against each task's "Files to Create/Modify")
110
+ 3. For each group, spawn a coder agent with a fix prompt. Read `references/fix-prompt-template.md` and fill in:
111
+ - **{issues}**: the specific issues for this task group
112
+ - **{task_content}**: the original task file for context
113
+ 4. After fix agents complete, re-run the review (Step 6)
114
+
115
+ **Cap at 3 review cycles per wave.** If the third review still fails, stop and report to the user:
116
+
117
+ ```
118
+ Wave {N} review failed after 3 cycles. Outstanding issues:
119
+ {list of remaining issues}
120
+
121
+ Options:
122
+ 1. Fix these manually and re-run /implement-feature
123
+ 2. Proceed to the next wave anyway
124
+ 3. Stop here
125
+ ```
126
+
127
+ ### Step 8: Complete the Wave
128
+
129
+ After the wave passes review (or the user chooses to proceed):
130
+
131
+ 1. **Update task files**: for each completed task, change the Status field from `pending` to `complete`
132
+ 2. **Update README.md**: change `- [ ]` to `- [x]` for each completed task
133
+ 3. **Commit the wave**:
134
+ ```
135
+ git add -A
136
+ git commit -m "feat({feature}): complete wave {N} — {brief summary}"
137
+ ```
138
+ 4. **Report wave completion**:
139
+ ```
140
+ Wave {N} of {total} complete.
141
+
142
+ Tasks completed:
143
+ - task-{nn}-{name}: {one-line summary}
144
+ - task-{mm}-{name}: {one-line summary}
145
+
146
+ Review: PASS
147
+ Commit: {hash}
148
+
149
+ Next: Wave {N+1} has {count} tasks ready for parallel execution.
150
+ ```
151
+
152
+ ### Step 9: Final Integration Review
153
+
154
+ After all waves are complete:
155
+
156
+ 1. Run lint and typecheck one final time
157
+ 2. Spawn a code-review agent to review the full scope of changes (all files modified across all waves)
158
+ 3. Report the final status:
159
+
160
+ ```
161
+ Feature "{feature}" implementation complete.
162
+
163
+ Waves completed: {N}/{N}
164
+ Total tasks: {T}
165
+
166
+ Verification:
167
+ - Lint: {PASS/FAIL}
168
+ - Typecheck: {PASS/FAIL}
169
+ - Integration review: {PASS/FAIL with notes}
170
+
171
+ Next steps:
172
+ - Review the changes
173
+ - Push and create a PR when ready
174
+ ```
175
+
176
+ ## Error Handling
177
+
178
+ - **Coder agent failure**: mark the task as failed, report to user, continue with remaining tasks in the wave. The review step will catch integration issues.
179
+ - **Lint/typecheck failure after fix attempts**: report the specific errors and ask the user whether to commit anyway or fix manually.
180
+ - **All tasks already complete**: report completion and stop.
181
+ - **Missing spec folder**: ask the user to provide the feature name or suggest creating a spec with `create-spec`.
182
+
183
+ ## Key Principles
184
+
185
+ - **The orchestrator does not write code.** Its job is dispatch, review, and progress tracking. All implementation happens in coder subagents.
186
+ - **Each coder agent gets exactly one task.** This keeps each agent's context focused and manageable.
187
+ - **Completed task summaries are brief.** One paragraph per task — not the full file contents. This keeps coder agent prompts from growing unbounded as waves progress.
188
+ - **The review gate is non-negotiable.** Every wave gets reviewed before commit. This catches integration issues early rather than letting them compound across waves.
189
+ - **Progress is tracked in the spec files.** README checkboxes and task file status fields are the source of truth. This makes the skill resumable across sessions.