agentleFS
int2t05int2t05/engineering-skills/skills/04-develop/implement/SKILL.md

implement

Skill3 starsChanged 4 months agoMITView on GitHub

Use when implementing the work described by a spec or tickets — drives TDD within each slice, runs typechecks and tests regularly, and closes with code-review before committing. Also covers lightweight changes (small edits, mechanical renames, project scaffolding) that don't need a full spec. Triggers on "implement", "build this", "code the feature", "实现", "编码", "改这个配置", "重命名", "搭项目骨架" — also when user says "改一下这个" / "加个功能". Not for pure test-driven exploration with no spec (use tdd).

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

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the failing test first (red), then the code (green), then refactor.

    line 37
  2. Distinctive:

    Run the typecheck and the affected test file(s) after each slice.

    line 44
  3. Distinctive:

    After all slices: run the full test suite once: Not per slice — once, at the end.

    line 60

“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

Execute the work described by a spec or tickets in thin vertical slices. Each slice cuts a complete path through every layer (schema, API, UI, tests) and lands green. Drive TDD within each slice; verify framework-specific patterns against official docs; subject non-trivial decisions to a fresh-context doubt cycle before they stand.

When to use

  • Implementing work described by a spec, plan, or set of tickets.
  • Multi-file changes that should land one vertical slice at a time.
  • Framework-specific code where current docs determine correct patterns.
  • High-stakes or unfamiliar code where correctness matters more than speed.
  • Lightweight changes that don't need a spec — small config edits, mechanical renames/moves, project scaffolding (see references/lightweight-changes.md).

Not for: changes needing design decisions (use spec); system architecture (use architecture); pure test-driven exploration or bugfix-via-test with no spec — red-green-refactor as the whole task (use tdd). Have a spec and want slice-by-slice implementation? That stays here, with TDD driven within each slice.

Steps

  1. Read the spec or tickets. Orient on what "done" means. Note any pre-agreed TDD seams — integration points where tests must exist before code lands. If versions are missing or ambiguous, ask; the version determines which patterns are correct.
  2. Slice the work vertically. One demoable end-to-end path per slice, sized to a single fresh context. Keep it compilable between slices. Wide refactors (one mechanical change fanning across the codebase) are the exception — sequence them as expand–contract, never force them into a tracer bullet.
  3. For each slice, implement via TDD at the seams:
    • Write the failing test first (red), then the code (green), then refactor.
    • For framework-specific code: detect the stack and exact versions from the dependency file; fetch the relevant official docs page (not the homepage); follow the documented pattern and cite the source URL in a code comment. Flag anything you cannot verify as UNVERIFIED. When docs conflict with existing code, surface the conflict — don't silently pick one. See references/source-verification.md.
    • Run the typecheck and the affected test file(s) after each slice. Don't repeat a command on unchanged code — it adds no information.
  4. Run a doubt cycle for non-trivial decisions. A decision is non-trivial when it introduces branching logic, crosses a module boundary, asserts a property the type system can't verify (thread safety, idempotence, ordering), or has irreversible blast radius (production deploy, data migration, public API change). Name the claim, extract the artifact + contract (not your reasoning), spawn a fresh-context adversarial reviewer, reconcile each finding against the artifact text, and stop on trivial findings / 3 cycles / user override. See references/doubt-cycle.md.
  5. Commit the slice with a descriptive message. Each slice is independently revertable. Don't mix concerns — feature, refactor, and config changes go in separate commits (see §9, behavior-preserving change discipline, in engineering-principles.md).
  6. After all slices: run the full test suite once. Not per slice — once, at the end. If it fails, localize with the debugging skill; don't re-run blind.
  7. Run /code-review on the diff. Address blocking findings before committing final state.
  8. Commit final state to the current branch (if not already committed per slice).

Verify

  • Full test suite passes.
  • Typecheck clean.
  • /code-review returned no blocking findings.
  • Framework-specific patterns carry source citations (or explicit UNVERIFIED flags); no deprecated APIs used.
  • Non-trivial decisions survived at least one fresh-context doubt cycle.
  • Work committed to the current branch.

References

  • ${CLAUDE_PLUGIN_ROOT}/references/engineering-principles.md — discipline shared by every skill.
  • ${CLAUDE_PLUGIN_ROOT}/references/clean-code.md — code-quality bar for the implementation.
  • references/source-verification.md — source hierarchy, citation rules, retrieval safety.
  • references/doubt-cycle.md — the five-step doubt cycle and cross-model escalation.
  • references/lightweight-changes.md — small edits, renames, scaffolding that don't need a spec

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.