agentleFS
vasuag09vasuag09/harness-claude/skills/implement/SKILL.md

implement

Skill2 starsChanged 6 months agoMITView on GitHub

Execute a plan via test-driven development — write tests first, then minimal code, phase by phase. Use after /plan (and /architect if needed) to write the actual feature. Delegates to the harness-claude:tdd-guide agent.

193 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.
  • loulanyueSkill

    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 17 projects that use this

  • AWSSkill

    ask-matt

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

    Also in 36 projects that use this

  • AWSSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

    Also in 75 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 12 projects that use this

  • qwlabsSkill

    claude-handoff

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

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

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

    Also in 22 projects that use this

  • +5 more from aws

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep files modular and lean (<800 lines), immutable patterns, inputs validated.

    line 21
  2. Distinctive:

    After each phase, confirm its exit check (test green, build clean) before moving on.

    line 32
  3. Very specific:

    If the build breaks and the fix is non-obvious, hand off to /harness-claude:build-fix.

    line 33
  4. Very specific:

    All phases complete, tests written-first and green, build/types/lint clean.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 175 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 it, test-first

Goal: turn the plan into working, tested, clean code — one phase at a time.

Do this

  1. Branch first (non-trivial work). Apply branch-at-first-write (rules/git.md): not a git repo → skip silently; already on a non-default branch → stay there; on the default branch (main/master/develop, or what git symbolic-ref refs/remotes/origin/HEAD resolves to) → create claude/feat-<slug> (slug from .claude/STATE.md) before the first file edit. Never commit or push — that stays gated behind the user's explicit ask.
  2. Take the plan's tasks in order — read .claude/planning/<slug>/PLAN.md if present (slug in .claude/STATE.md) so a fresh-context executor works from the file, not the conversation. For each task/phase:
    • Delegate to harness-claude:tdd-guide (or run TDD inline): write a failing test against an acceptance criterion (RED) → minimum code to pass (GREEN) → refactor.
    • Keep files modular and lean (<800 lines), immutable patterns, inputs validated.
    • Let the format/typecheck hooks run; fix what they flag immediately.
  3. Parallel-fan-out checkpoint — evaluate before editing, don't skip. Before you start editing a phase serially, count the files it will write. If it spans 3+ independent files with disjoint write-sets and no dependency between them (the plan may already flag this phase as a /harness-claude:orchestrate candidate), you must surface the fan-out option: name the file split and propose /harness-claude:orchestrate, then let the user choose before proceeding. Surfacing the offer is mandatory whenever the trigger fires — that is the only path by which parallel mode ever gets used; what stays opt-in is acting on it — never silently start a multi-agent run (it spawns workers and costs more tokens). If the trigger doesn't fire, note that in one line and edit serially.
  4. After each phase, confirm its exit check (test green, build clean) before moving on.
  5. If the build breaks and the fix is non-obvious, hand off to /harness-claude:build-fix.
  6. Stay inside the plan. If reality diverges from it, stop, update the plan, then resume — don't silently improvise scope.

Token discipline

Delegate search/exploration and isolated edits to cheaper models; keep the orchestrator focused on integration. Compact at phase boundaries, not mid-phase.

Common rationalizations (don't accept these from yourself)

ExcuseReality
"I'll write the tests after the code works"Tests written after mirror the implementation, not the criterion. RED first, or it isn't TDD.
"This phase is too small to test"Small phases grow. The test is the phase's exit check — without it, "done" is an opinion.
"The plan is close enough; I'll adjust as I go"Silent divergence is how scope creeps. Stop, patch the plan, resume.
"Branching is overhead for this"A branch is one command and fully reversible; un-picking mixed work on the default branch is neither.
"Fan-out doesn't apply here" (without counting)Count the write-set first. Skipping the count is how the offer never fires.

Red flags — stop and re-check

  • Code exists for which no test was ever RED.
  • You're editing a file the plan never named.
  • A hook flagged something and you deferred it "until the end".
  • You're three phases in with no green checkpoint between them.

State

On completion, patch .claude/STATE.md: phase: implement, status: done, next_skill: /review.

Exit criterion

All phases complete, tests written-first and green, build/types/lint clean. Then proceed to the Verify phase (/harness-claude:review).

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.