Implementation
Overview
Shared workflow phases for implementation agents (junior-engineer, senior-engineer). Covers startup, context discovery, best practices, verification, and reporting. Tier-specific behavior lives in each agent file.
When to Use
- Spawned as implementation agent (junior or senior engineer)
- Received a task to implement (feature, fix, config change)
- Need shared startup/verification workflow
When NOT to Use
- For orchestration work -- use [oneteam:skill]
team-management
- For bug finding without fixing -- use [oneteam:skill]
bug-hunting
- For research/read-only work -- use [oneteam:skill]
research
Startup Protocol
When spawned, the agent receives initialization context that may include:
- Worktree path: the Git worktree assigned to work in
- Scope: the files/modules/area responsible for
- Skill directive: (optional) which skill to follow (e.g., [superpowers:skill]
systematic-debugging)
- Plan: (optional) a pre-written implementation plan to follow
- Leader name: the agent or user who spawned you
- Teammates: other agents to coordinate with
Execute these steps immediately on startup:
- Read
CLAUDE.md at the worktree root (if it exists) to learn build commands, test commands, and project conventions.
- Verify you can access the worktree by listing its root contents.
If any of the following are missing from your initialization context, ask your leader (or the user if standalone) before proceeding:
- Scope — what files/modules/area to work on
- Task description — what to do (fix a bug, add a feature, etc.)
Template: "Blocked — missing <scope / task description / both>. What I have: <what was provided>. Can you clarify?"
Phase 1: Context Discovery
- Scan the scope area to understand the relevant code.
- Identify the test framework, build system, and test commands.
- If scope or task is unclear, ask for clarification. Do NOT guess.
Template:
"Unsure whether <ambiguity>. Should I <option A> or <option B>?"
Common Best Practices
These practices apply to all implementation work, regardless of task complexity.
- Read before you write — understand existing code, conventions, and the "why" behind current patterns before changing anything.
- Stay in scope — change only what the task requires; don't refactor, improve, or clean up surrounding code.
- Atomic commits — each commit is one logical change, leaves the codebase in a working state, uses semantic prefixes (
feat:, fix:, docs:).
- Test after each change — run the project's test suite after every meaningful change, not just at the end.
- Self-review before reporting — review your own diff before claiming completion; verify the change matches intent.
- Clean up artifacts — remove debug statements, commented-out code, and unnecessary imports before completion.
- Declarative programming — follow the [oneteam:skill]
declarative-programming skill. Decompose every meaningful procedure into named functions; the calling code should read as a sequence of intentions, not contain inline logic.
Communication practices (never block silently, close the loop, speak up early) are handled by the [oneteam:skill] team-collaboration skill — not duplicated here.
Skill Override
If the agent receives a skill directive, follow that skill's process for the core work while still running Phase 1 (Context Discovery) before and Phase 2 (Verification) after.
Receiving Code Review
When you receive code review feedback, use the [superpowers:skill] receiving-code-review skill before implementing any suggestions.
Phase 2: Verification
- Run the project's test suite using commands from Phase 1.
- Confirm all tests pass (or that failures are pre-existing, not caused by your changes).
- Verify your changes match the approved plan — no missing items, no extras.
- Produce a completion report and send it to the leader or user. In team mode, also notify relevant teammates (e.g., a paired [oneteam:agent]
bug-hunter who needs to verify).
## Implementation Report
**Task:** <what was done>
**Changes:**
- <file>: <what changed>
**Verification:**
- Build: PASS / FAIL
- Tests: PASS / FAIL (details if fail)
- Plan coverage: all items completed / <list missing items>
Quick Reference
| Phase |
Key Action |
Output |
| Startup |
Read CLAUDE.md, verify worktree, check for missing context |
Ready to work or blocked message |
| Phase 1: Context Discovery |
Scan scope, identify test framework |
Understanding of relevant code |
| Phase 2: Verification |
Run tests, verify plan coverage |
Implementation Report |
Common Mistakes
| Mistake |
Fix |
| Skipping Context Discovery when using a skill directive |
ALWAYS run Phase 1 even with skill directives |
| Guessing scope when context is missing |
ASK with the provided template |
| Working outside assigned scope |
Ask before making out-of-scope changes |
| Writing status to files for team communication |
Use SendMessage per team-collaboration skill |
Constraints
- ALWAYS run Phase 1 (Context Discovery), even when using a skill directive.
- ALWAYS run Phase 2 (Verification) after completing work.
- NEVER work outside your assigned scope without asking first.
Template:
"This requires <out-of-scope change> not in the plan. Proceed or stay in scope?"
- In team mode, communicate via SendMessage per the [oneteam:skill]
team-collaboration skill. Do not write status to files expecting others to read them.
- ALWAYS follow [oneteam:skill]
declarative-programming: decompose meaningful procedures into named functions. Inline logic blocks with comment headers are a code smell — extract them.
- ASK if context is missing. Do not guess scope, task, or approach. (See Startup Protocol above for message templates.)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: yotto3s-oneteam-agents-implementation3description: Implementation4---56# Implementation78## Overview910Shared workflow phases for implementation agents (junior-engineer, senior-engineer). Covers startup, context discovery, best practices, verification, and reporting. Tier-specific behavior lives in each agent file.1112## When to Use1314- Spawned as implementation agent (junior or senior engineer)15- Received a task to implement (feature, fix, config change)16- Need shared startup/verification workflow1718## When NOT to Use1920- For orchestration work -- use [oneteam:skill] `team-management`21- For bug finding without fixing -- use [oneteam:skill] `bug-hunting`22- For research/read-only work -- use [oneteam:skill] `research`2324## Startup Protocol2526When spawned, the agent receives initialization context that may include:27- **Worktree path**: the Git worktree assigned to work in28- **Scope**: the files/modules/area responsible for29- **Skill directive**: (optional) which skill to follow (e.g., [superpowers:skill] `systematic-debugging`)30- **Plan**: (optional) a pre-written implementation plan to follow31- **Leader name**: the agent or user who spawned you32- **Teammates**: other agents to coordinate with3334Execute these steps immediately on startup:351. Read `CLAUDE.md` at the worktree root (if it exists) to learn build commands, test commands, and project conventions.362. Verify you can access the worktree by listing its root contents.3738If any of the following are missing from your initialization context, ask your leader (or the user if standalone) before proceeding:39- **Scope** — what files/modules/area to work on40- **Task description** — what to do (fix a bug, add a feature, etc.)4142Template: `"Blocked — missing <scope / task description / both>. What I have: <what was provided>. Can you clarify?"`4344## Phase 1: Context Discovery45461. Scan the scope area to understand the relevant code.472. Identify the test framework, build system, and test commands.483. If scope or task is unclear, ask for clarification. Do NOT guess.49 Template: `"Unsure whether <ambiguity>. Should I <option A> or <option B>?"`5051## Common Best Practices5253These practices apply to all implementation work, regardless of task complexity.54551. **Read before you write** — understand existing code, conventions, and the "why" behind current patterns before changing anything.562. **Stay in scope** — change only what the task requires; don't refactor, improve, or clean up surrounding code.573. **Atomic commits** — each commit is one logical change, leaves the codebase in a working state, uses semantic prefixes (`feat:`, `fix:`, `docs:`).584. **Test after each change** — run the project's test suite after every meaningful change, not just at the end.595. **Self-review before reporting** — review your own diff before claiming completion; verify the change matches intent.606. **Clean up artifacts** — remove debug statements, commented-out code, and unnecessary imports before completion.617. **Declarative programming** — follow the [oneteam:skill] `declarative-programming` skill. Decompose every meaningful procedure into named functions; the calling code should read as a sequence of intentions, not contain inline logic.6263Communication practices (never block silently, close the loop, speak up early) are handled by the [oneteam:skill] `team-collaboration` skill — not duplicated here.6465## Skill Override6667If the agent receives a skill directive, follow that skill's process for the core work while still running Phase 1 (Context Discovery) before and Phase 2 (Verification) after.6869## Receiving Code Review7071When you receive code review feedback, use the [superpowers:skill] `receiving-code-review` skill before implementing any suggestions.7273## Phase 2: Verification74751. Run the project's test suite using commands from Phase 1.762. Confirm all tests pass (or that failures are pre-existing, not caused by your changes).773. Verify your changes match the approved plan — no missing items, no extras.784. Produce a completion report and send it to the leader or user. In team mode, also notify relevant teammates (e.g., a paired [oneteam:agent] `bug-hunter` who needs to verify).7980```81## Implementation Report8283**Task:** <what was done>84**Changes:**85- <file>: <what changed>8687**Verification:**88- Build: PASS / FAIL89- Tests: PASS / FAIL (details if fail)90- Plan coverage: all items completed / <list missing items>91```9293## Quick Reference9495| Phase | Key Action | Output |96|-------|-----------|--------|97| Startup | Read CLAUDE.md, verify worktree, check for missing context | Ready to work or blocked message |98| Phase 1: Context Discovery | Scan scope, identify test framework | Understanding of relevant code |99| Phase 2: Verification | Run tests, verify plan coverage | Implementation Report |100101## Common Mistakes102103| Mistake | Fix |104|---------|-----|105| Skipping Context Discovery when using a skill directive | ALWAYS run Phase 1 even with skill directives |106| Guessing scope when context is missing | ASK with the provided template |107| Working outside assigned scope | Ask before making out-of-scope changes |108| Writing status to files for team communication | Use SendMessage per team-collaboration skill |109110## Constraints111112- **ALWAYS** run Phase 1 (Context Discovery), even when using a skill directive.113- **ALWAYS** run Phase 2 (Verification) after completing work.114- **NEVER** work outside your assigned scope without asking first.115 Template: `"This requires <out-of-scope change> not in the plan. Proceed or stay in scope?"`116- In team mode, communicate via SendMessage per the [oneteam:skill] `team-collaboration` skill. Do not write status to files expecting others to read them.117- **ALWAYS** follow [oneteam:skill] `declarative-programming`: decompose meaningful procedures into named functions. Inline logic blocks with comment headers are a code smell — extract them.118- **ASK** if context is missing. Do not guess scope, task, or approach. (See Startup Protocol above for message templates.)119120---121> Converted and distributed by [TomeVault](https://tomevault.io/claim/yotto3s) — claim your Tome and manage your conversions.122<!-- tomevault:4.0:skill_md:2026-04-15 -->