agentleFS
aloiloraloilor/lean-coding-agent/skills/implement/SKILL.md

implement

Skill7 starsChanged 47 days agoMITView on GitHub

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.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 49 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 105 projects that use this

  • richard12511Skill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 49 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 57 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 103 projects that use this

  • GoogleSkill

    to-tickets

    Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in one file per ticket locally, or native blocking links on a real tracker.

    Also in 188 projects that use this

  • +1 more from google

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the supplied approved plan, incident report, issue, or direct request before editing.

    line 12
  2. Distinctive:

    Stop when a required input or approval is missing, the contract conflicts with the repository, or implementation would expand scope.

    line 18
  3. Very specific:

    Use the tdd skill for behavioral changes, regression fixes, test strategy, and verification.

    line 22
  4. Very specific:

    Use the refactor skill for behavior-preserving restructuring.

    line 23
  5. Distinctive:

    Never reach green by weakening, skipping, or deleting a valid test.

    line 32
  6. Distinctive:

    Keep every edit tied to the approved contract or verification need.

    line 33
  7. Distinctive:

    Keep externally observable behavior unchanged unless the user approved otherwise.

    line 41
  8. Distinctive:

    Create missing in-scope developer documentation or update documentation made stale by a refactor.

    line 42
  9. Distinctive:

    Treat API shapes, status codes, errors, auth, pagination, and compatibility as client contracts.

    line 43
  10. Distinctive:

    Run the narrowest meaningful checks first, then broaden for shared behavior, APIs, persistence, auth, security, or user-facing workflows.

    line 48
  11. Distinctive:

    If a required check cannot run, state why and use the strongest available substitute.

    line 49
  12. Very specific:

    Read the supplied .agents/code-reviews/review_YYYYMMDD_<name>_pass_N.md and treat its concrete findings as the fix-pass scope.

    line 66
  13. Distinctive:

    Add tests for behavioral, security-sensitive, or regression-prone fixes and rerun the narrowest relevant verification.

    line 68
  14. Distinctive:

    Update the implementation report, touched files, verification, and resolved findings, then return control to the workflow for another …

    line 69

“Common” is measured: kept by at least 6 in 10 of the 177 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.