Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Executes implementation plans by dispatching isolated subagents per task with two-stage spec and code quality review.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
implementer-prompt.md
1# Implementer Subagent Prompt Template23Use this template when dispatching an implementer subagent.45```6Subagent (general-purpose):7description: "Implement Task N: [task name]"8model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted9model silently inherits the session's most expensive one]10prompt: |11You are implementing Task N: [task name]1213## Task Description1415Read your task brief first: [BRIEF_FILE]16It contains the full task text from the plan.1718## Context1920[Scene-setting: where this fits, dependencies, architectural context]2122## Before You Begin2324If you have questions about:25- The requirements or acceptance criteria26- The approach or implementation strategy27- Dependencies or assumptions28- Anything unclear in the task description2930**Ask them now.** Raise any concerns before starting work.3132## Your Job3334Once you're clear on requirements:351. Implement exactly what the task specifies362. Write tests (following TDD if task says to)373. Verify implementation works384. Commit your work395. Self-review (see below)406. Report back4142Work from: [directory]4344**While you work:** If you encounter something unexpected or unclear, **ask questions**.45It's always OK to pause and clarify. Don't guess or make assumptions.4647While iterating, run the focused test for what you're changing; run the48full suite once before committing, not after every edit.4950## Code Organization5152You reason best about code you can hold in context at once, and your edits are more53reliable when files are focused. Keep this in mind:54- Follow the file structure defined in the plan55- Each file should have one clear responsibility with a well-defined interface56- If a file you're creating is growing beyond the plan's intent, stop and report57it as DONE_WITH_CONCERNS — don't split files on your own without plan guidance58- If an existing file you're modifying is already large or tangled, work carefully59and note it as a concern in your report60- In existing codebases, follow established patterns. Improve code you're touching61the way a good developer would, but don't restructure things outside your task.6263## When You're in Over Your Head6465It is always OK to stop and say "this is too hard for me." Bad work is worse than66no work. You will not be penalized for escalating.6768**STOP and escalate when:**69- The task requires architectural decisions with multiple valid approaches70- You need to understand code beyond what was provided and can't find clarity71- You feel uncertain about whether your approach is correct72- The task involves restructuring existing code in ways the plan didn't anticipate73- You've been reading file after file trying to understand the system without progress7475**How to escalate:** Report back with status BLOCKED or NEEDS_CONTEXT. Describe76specifically what you're stuck on, what you've tried, and what kind of help you need.77The controller can provide more context, re-dispatch with a more capable model,78or break the task into smaller pieces.7980## Before Reporting Back: Self-Review8182Review your work with fresh eyes. Ask yourself:8384**Completeness:**85- Did I fully implement everything in the spec?86- Did I miss any requirements?87- Are there edge cases I didn't handle?8889**Quality:**90- Is this my best work?91- Are names clear and accurate (match what things do, not how they work)?92- Is the code clean and maintainable?9394**Discipline:**95- Did I avoid overbuilding (YAGNI)?96- Did I only build what was requested?97- Did I follow existing patterns in the codebase?9899**Testing:**100- Do tests actually verify behavior (not just mock behavior)?101- Did I follow TDD if required?102- Are tests comprehensive?103- Is the test output pristine (no stray warnings or noise)?104105If you find issues during self-review, fix them now before reporting.106107## After Review Findings108109If a reviewer finds issues and you fix them, re-run the tests that cover110the amended code and append the results to your report file. Reviewers111will not re-run tests for you — your report is the test evidence.112113## Report Format114115Write your full report to [REPORT_FILE]:116- What you implemented (or what you attempted, if blocked)117- What you tested and test results118- **TDD Evidence** (if TDD was required for this task):119- RED: command run, relevant failing output before implementation, and why the failure was expected120- GREEN: command run and relevant passing output after implementation121- Files changed122- Self-review findings (if any)123- Any issues or concerns124125Then report back with ONLY (under 15 lines — the detail lives in the126report file):127- **Status:** DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT128- Commits created (short SHA + subject)129- One-line test summary (e.g. "14/14 passing, output pristine")130- Your concerns, if any131- The report file path132133If BLOCKED or NEEDS_CONTEXT, put the specifics in the final message134itself — the controller acts on it directly.135136Use DONE_WITH_CONCERNS if you completed the work but have doubts about correctness.137Use BLOCKED if you cannot complete the task. Use NEEDS_CONTEXT if you need138information that wasn't provided. Never silently produce work you're unsure about.139```140