agentleFS
berekvolgyipeterberekvolgyipeter/dotclaude/skills/implement/SKILL.md

implement

Skill2 starsChanged 8 days agoMITView on GitHub

Implement a plan, a change settled in the conversation, or a short instruction test-first — load the context, sequence the work, build via the tdd red-green loop, test, review, and verify against the goal. Use for a change that warrants a review and a final check against its goal; for a single behavior or bug, use tdd.

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 53 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 109 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 107 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 51 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 198 projects that use this

  • RoentekSkill

    loop-me

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

    Also in 58 projects that use this

  • +1 more from google

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read ~/.claude/shared/meet-the-user.md and follow it whenever you ask the user something or report to them.

    line 15
  2. Distinctive:

    Use the first that applies:

    line 19
  3. Distinctive:

    If there is no input at all, ask what to build and stop.

    line 25
  4. Distinctive:

    If the plan has an Origin line, read the design docs it links — they hold the goal and what was set aside.

    line 37
  5. Very specific:

    Read ~/.claude/shared/planning-context.md and follow its Glossary and ADRs and Rules sections.

    line 38
  6. Distinctive:

    Create a TodoWrite list: one item per behavior at a tested seam, one per change for the rest.

    line 57
  7. Distinctive:

    Stuck: When two fixes for the same failing check have not worked, stop patching: name the assumption both relied on and check it.

    line 67
  8. Distinctive:

    Mismatch: When the code contradicts the plan or the settled input, size the mismatch:

    line 69
  9. Very specific:

    Run the full test suite — the test command, or for none the project's documented runner (pytest, npm test, cargo test, etc.).

    line 79
  10. Very specific:

    Run the linter — the lint command, or for none the documented lint, format and type-check commands — and fix every error.

    line 80
  11. Distinctive:

    When the project has neither a test runner nor a linter, record that and carry it into the report.

    line 83
  12. Distinctive:

    no argument: the uncommitted changes against the last commit.

    line 92

“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

Build the change below in code.

<request> $ARGUMENTS </request>

Read ~/.claude/shared/meet-the-user.md and follow it whenever you ask the user something or report to them.

1. Pick the Input

Use the first that applies:

  1. A plan — a plan file, or a change folder holding one, named in the request. When the folder holds one plan per repo, build only the one the request names; if it names none, ask which before anything else, since nothing can start without it. Work inside that plan's repo: test, lint and review all run there. Follow its Requirements and Module Map, and whichever of Before You Start, Output Structure, Phases, Key Decisions, Testing Strategy, Deferred to Implementation and Out of Scope it includes. The user confirmed its interfaces (Module Map) and the seams and behaviors to test (Testing Strategy) while it was written: treat those as approved and don't ask again. When the plan's Execution Record has entries but no Complete entry, an earlier run was cut short: read the record and the changes against the base (from Before You Start, else the branch's merge-base with the default branch), work out what is already built, and continue from there rather than starting over.
  2. The conversation — a change discussed and settled in this session. Build from it; don't re-interview the user for what you already have.
  3. The request alone — a short instruction.

If there is no input at all, ask what to build and stop.

Size a bare instruction before building: scan the area it touches, then pick its route. Whether behavior changes decides it, not the file count.

  • Trivial — no behavior change (a typo, a rename, config that changes no behavior). Build it directly without asking anything, run step 5, and report as in step 7; skip the todo list, tdd and the review.
  • Large — cross-cutting, architectural decisions, or touching auth, payments or migrations. Recommend planning it with write-plan first, in the opening message at the end of step 2; if the user chooses to plan, stop there.
  • Anything between — go on as below.

Name the goal — what the user wants to be true once the work ships. Take it from the plan's Goal section or the conversation. Every later check is against it.

2. Load

  • If the plan has an Origin line, read the design docs it links — they hold the goal and what was set aside.
  • Read ~/.claude/shared/planning-context.md and follow its Glossary and ADRs and Rules sections.
  • Explore the codebase: the modules and interfaces the change touches — a plan names each module's folder but no file paths, so map it onto the real files — and the existing tests and patterns to mirror, starting with the prior art a plan names.
  • Fetch the documentation URLs a plan references, and research further if the context is still not enough to start.

Now settle everything the input leaves open in one opening message, so the rest of the run needs no answers:

  • for a large instruction, whether to plan it first;
  • the goal, confirmed in one line, when it comes from a bare instruction or the conversation left it vague;
  • when no seams are agreed yet (by a plan's Testing Strategy or in the conversation), the seams to test — each with a one-line note on what it catches and what it misses — and the main behaviors there, which the tdd skill would otherwise ask mid-build.

Once answered, treat them as approved, as with a plan. With nothing left open, ask nothing.

3. Sequence

ULTRATHINK about dependencies and order:

  • Set up what Before You Start asks for (branch, base) first.
  • With Phases, work phase by phase, leaving the system working after each; within a phase, order the modules so each builds on what it depends on — no backtracking. Where the dependencies leave a choice, take the riskiest work first, so a wrong assumption surfaces before much is built on it.
  • For each seam to test, list the behaviors to drive out, smallest first.
  • Create a TodoWrite list: one item per behavior at a tested seam, one per change for the rest.

4. Build

Invoke the tdd skill and drive each seam to test through its red-green loop, one behavior at a time. Build the rest directly. Throughout, mirror the existing tests and patterns rather than inventing new ones, and run the type checker and the test files you touched regularly; the full suite runs in step 5. A seam that appears mid-build — a module nobody agreed to test — gets no test now: build it and record it as an untested seam, with the test you recommend.

Scope. Build only what was asked. Add a guard, retry, fallback, option or abstraction that neither the plan nor the request names only when leaving it out lets real harm through, or when adding it later would be expensive — stored data or its format, a public interface, money, security. Record each one you weigh and leave out as considered, not built. When you replace code whose callers are all in this repo, update the callers and delete the old version rather than keeping it as a wrapper.

Side effects. Before marking a todo complete, trace what the change touches beyond its own files: callbacks, middleware, observers and hooks up to two levels out, and any other entry point that already exposes the changed behavior. Read the code, not the docs. What worked through those paths must still work, so run or update the tests that cover them. When no test goes through the real chain rather than mocks, and the chain is not a seam the user agreed to test, record the gap rather than writing an unagreed test. A change that touches none of them passes at once.

Stuck. When two fixes for the same failing check have not worked, stop patching: name the assumption both relied on and check it. If a third fails, treat it as a large mismatch.

Mismatch. When the code contradicts the plan or the settled input, size the mismatch:

  • Small — a renamed function, a missing helper, an extra parameter. Adapt, and record it as a deviation.
  • Large — it would change the goal, an agreed interface, a Key Decision or the scope. Stop and ask the user before going on: say what you found and recommend an answer.

Record. Record each call you make for the user the moment you make it — a deviation, the answer to a deferred item, a skipped review finding, something considered and not built, a finished phase — as <what> — <why> — <cost if wrong>: in the plan's Execution Record when there is a plan, otherwise in a list for the final report. The cost line tells the user which calls to double-check; with a plan, writing it straight away also keeps the record if the session is cut short.

5. Test and Lint

  • Get the commands with bash ~/.claude/scripts/check-commands.sh <repo root>: a lint: and a test: line, each with the command to run or none.
  • Run the full test suite — the test command, or for none the project's documented runner (pytest, npm test, cargo test, etc.). Fix failures by fixing code, never by weakening or deleting tests.
  • Run the linter — the lint command, or for none the documented lint, format and type-check commands — and fix every error.
  • Re-run until both pass clean.
  • A failure that also happens without your change is pre-existing: record it and leave it alone. Check it at the base in a separate worktree, or by confirming it touches nothing you changed — never stash, reset or switch branches, since the uncommitted work is the user's to review. The one exception is the review's git stash create snapshot: it only records the work and leaves the working tree and index untouched.
  • When the project has neither a test runner nor a linter, record that and carry it into the report.

6. Review

Review in at most two rounds, so the review cannot loop.

  1. First round. Invoke the review-changes skill with the repo's root, then the first argument that applies, so phases already committed are included, and wait for its findings — it runs in the background:
    • since <base> with the base from Before You Start;
    • since <merge-base> — the branch's merge-base with the default branch — when earlier phases of this plan are already committed;
    • no argument: the uncommitted changes against the last commit.
  2. Fix. Judge each finding against the goal and the plan. Fix every bug that holds up, taking the snapshot review-changes describes first. A judgement call you may skip — record it with a one-line reason. Then repeat step 5.
  3. Second round — only when the first round brought fixes. Invoke review-changes with <root> since <snapshot>. Fix and repeat step 5 as in the first round, then stop reviewing: record every finding still open for the final report.

7. Verify and Report

  • Re-read the goal first and confirm the result reaches it; then confirm every requirement is met and nothing out of scope crept in.
  • Confirm each agreed behavior is covered by a test at its seam.
  • Confirm each item the plan deferred to implementation got an answer.
  • With a plan, close its Execution Record with a Complete entry: the final test and lint results, and whether the goal is reached.
  • Report to the user whether the goal is reached, any untested seams with their recommended tests, the review findings still open after the second round, the other recorded calls with the costliest-if-wrong first, and anything left for them to do. End the report with "Run validate next" — it checks the change against its goal independently and runs it for real.

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.