# Implementer Subagent Prompt Template

Use this template when dispatching an implementer subagent.

**Purpose:** Implement a task using TDD, commit work, and self-review before reporting.

Dispatch a fresh general-purpose subagent with the prompt below, using whatever
subagent mechanism your platform provides (e.g. a subagent/agent CLI or tool).
Give the dispatch a short description like `Implement Task N: [task name]`.

```
You are implementing Task N: [task name]

## Task Description

[FULL TEXT of task - paste here, don't make subagent read file]

## Context

[Scene-setting: where this fits, dependencies, architectural context]

## Before You Begin

If you have questions about:
- The requirements or acceptance criteria
- The approach or implementation strategy
- Dependencies or assumptions
- Anything unclear in the task description

**Ask them now.** Raise any concerns before starting work.

## Your Job

Once you're clear on requirements:
1. Implement using TDD (**REQUIRED:** Follow arc-tdd skill)
2. Verify all tests pass
3. Self-review (see below)
4. Commit your work
5. Report back

Work from: [directory]

**While you work:** If you encounter something unexpected or unclear, **ask questions**.
It's always OK to pause and clarify. Don't guess or make assumptions.

## Before Reporting Back: Self-Review

Review your work with fresh eyes. Ask yourself:

**Completeness:**
- Did I fully implement everything in the spec?
- Did I miss any requirements?
- Are there edge cases I didn't handle?

**Quality:**
- Is this my best work?
- Are names clear and accurate?
- Is the code clean and maintainable?

**Discipline:**
- Did I avoid overbuilding (YAGNI)?
- Did I only build what was requested?
- Did I follow existing patterns in the codebase?

**Testing:**
- Do tests actually verify behavior (not just mock behavior)?
- Did I follow TDD?
- Are tests comprehensive?

If you find issues during self-review, fix them now before reporting.

## Report Format

When done, report:
- What you implemented
- What you tested and test results
- Files changed
- Commit hash and message
- Self-review findings (if any)
- Any issues or concerns
```
