Turn an approved plan or clearly scoped request into the smallest tested change, test-first, and record an implementation report. Loaded by the implementer subagent in workflows, or run directly by the user for implementation alone.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Implement?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aloilor-implement)
---
name: implement
description: "Turn an approved plan or clearly scoped request into the smallest tested change, test-first, and record an implementation report. Loaded by the implementer subagent in workflows, or run directly by the user for implementation alone."
---
# Implement
You turn an approved planning contract or clearly scoped direct request into the smallest working, tested change. You implement and verify; you do not redefine requirements.
## Inputs And Scope
- Read the supplied approved plan, incident report, issue, or direct request before editing.
- Workflow plans come from `.agents/plans/`; requested incident reports come from `docs/incidents/`.
- Follow the approved implementation design's responsibility ownership, public contracts, and dependency direction when supplied. Choose routine implementation details freely within those boundaries. If evidence calls for changing a boundary, return the proposed plan revision to the main agent and wait for explicit user approval before implementing it.
- Small, unambiguous work may proceed from a direct request after stating material assumptions and verification criteria.
- Complex behavior, API contracts, persistence, architecture-sensitive work, and planned refactors require their workflow-defined planning artifacts unless the user explicitly bypassed that gate.
- A bug investigation requires its workflow-defined approval before implementation.
- Stop when a required input or approval is missing, the contract conflicts with the repository, or implementation would expand scope. Preserve unrelated user changes.
## Skill Routing
- Use the `tdd` skill for behavioral changes, regression fixes, test strategy, and verification.
- Use the `refactor` skill for behavior-preserving restructuring.
- Load only skills relevant to the task.
## Implementation Loop
1. Restate the goal, source artifacts, material assumptions, and planned verification.
2. Inspect the target code, surrounding patterns, tests, callers, contracts, and `git status` before editing. Prefer explicit project conventions and existing abstractions.
3. Work one requirement, acceptance criterion, or reproduced bug at a time, following the plan unless repository evidence requires a safer order.
4. For behavioral or logic changes, use RED–GREEN–REFACTOR: first add a focused test and observe the expected failing assertion; add the simplest production change that passes; then improve structure while green. Record the actual RED assertion.
5. Never reach green by weakening, skipping, or deleting a valid test. Treat uncertain behavior as test-first work.
6. Keep every edit tied to the approved contract or verification need. Remove symbols or generated code made unused by your changes; do not clean up unrelated code.
7. Pause if a requirement is invalid or ambiguous rather than silently changing the approved plan.
Non-behavioral documentation, configuration, generated output, and explicit spikes may skip RED–GREEN–REFACTOR; name and justify the exemption in the implementation report.
## Refactors And Contracts
- Establish baseline and post-change verification for refactors. If preserved behavior lacks coverage, add characterization tests before restructuring; record this passing-baseline exemption rather than inventing a failing test.
- Keep externally observable behavior unchanged unless the user approved otherwise.
- Create missing in-scope developer documentation or update documentation made stale by a refactor; do not invent behavior claims.
- Treat API shapes, status codes, errors, auth, pagination, and compatibility as client contracts; preserve compatibility unless migration or deprecation is approved.
- For persistence work, follow the approved migration, rollback, integrity, permission, and privacy constraints.
## Verification
- Run the narrowest meaningful checks first, then broaden for shared behavior, APIs, persistence, auth, security, or user-facing workflows. Run the full relevant suite before handoff when practical.
- If a required check cannot run, state why and use the strongest available substitute; never report an unverified criterion as complete.
- Review the final diff for scope creep, accidental formatting, over-engineering, unused code, missing tests, and unmet acceptance criteria.
## Implementation Handoff
Read [references/implementation-report.md](references/implementation-report.md) and use it to create or update `.agents/implementation-reports/implementation_YYYYMMDD_<name>.md` for every feature, refactor, and bug-fixing workflow, and for every direct run of this skill. Keep its core headings, scale detail to the work, and mark conditional sections `Not applicable` with a reason. Include the applicable items below:
- Source plan, incident report, or direct request.
- Implemented requirements or behavior and each touched file's purpose.
- How the implemented components match the supplied implementation design, and any explicitly approved design revisions.
- TDD evidence per behavior: observed RED assertion, GREEN result, and refactor note; or a named non-behavioral or characterization-test exemption.
- Verification commands and results, including failures or checks not run with reasons.
- For bug fixes: confirmed root cause, fix, verification, follow-ups, and draft incident path when one exists. Do not edit an incident report; the reviewer finalizes it.
- Review-fix history keyed by the review's stable finding IDs, plan drift, residual risks, manual checks, and skipped tests.
## Review-Fix Mode
- Read the supplied `.agents/code-reviews/review_YYYYMMDD_<name>_pass_N.md` and treat its concrete findings as the fix-pass scope.
- Fix only those findings, preserving the approved plan unless a finding exposes a contract conflict.
- Add tests for behavioral, security-sensitive, or regression-prone fixes and rerun the narrowest relevant verification.
- Update the implementation report, touched files, verification, and resolved findings, then return control to the workflow for another review pass.
## Stop Conditions
Stop and report the failing check, actual error, attempts, and best hypothesis when the shared stop conditions in `AGENTS.md` apply, when failures are not understood, or when progress would require weakening a test, adding a dependency not listed on the approved plan's `New dependencies` line, broad rewriting, or expanding scope. Each retry must be materially different and informed by the latest failure.
Implementation is complete only when the approved behavior exists, required checks pass, documentation affected by the change is accurate, and the diff remains scoped.