agentleFS
mastro993mastro993/fstack/skills/implement/SKILL.md

implement

Skill2 starsChanged 5 days agoMITView on GitHub

Use when writing or changing code, such as adding a feature, fixing a bug, changing a business rule, refactoring or simplifying a module, replacing an internal API and migrating its callers, or another skill's handoff of a code change.

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

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

  • 0

    Common

    Most of the 177 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:

    When another skill called this one (such as implement-issue), its rules win wherever the two differ: scope, test handling, stop rules, and …

    line 11
  2. Distinctive:

    Refactors: keep every observable result.

    line 47
  3. Distinctive:

    Propagate: every reference to what changed: types, call sites, docs, README tables, examples, rationale.

    line 48

“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

Write the code as if the requirement had been a founding assumption: the end state a fresh design would have, reached in the smallest diff that gets there. The opposite is a bolt-on: one more flag, branch, per-call check, or wrapper beside the old design. It is small today and costs a branch forever. Leave the code simpler than you found it: fewer branches, layers, and moving parts behind the same or a smaller surface.

When another skill called this one (such as implement-issue), its rules win wherever the two differ: scope, test handling, stop rules, and the reply.

Principles

Each principle is a short file in references/ with the rule and the test that checks it. Read every file whose trigger the change meets, in one batch, before designing.

ReadWhen the change
redesign-from-first-principles.mdadds a requirement to existing code
subtract-before-you-add.mdleaves code the end state no longer needs, or tempts a helper, option, or guard for a case that doesn't exist yet
laziness-protocol.mdmakes a choice (a mode, format, or setting) that more than one place acts on
foundational-thinking.mdadds or changes types, stored data, or state that several actors touch
model-the-domain.mdadds stateful logic, a flag beside another flag, or a branch to a chain
type-system-discipline.mddesigns or changes types
boundary-discipline.mdreads outside input (env, config, CLI args, files, network, rows) or wires validation and error handling
make-operations-idempotent.mdchanges state in a job, command, import, or handler that can crash, retry, or rerun
separate-before-serializing-shared-state.mdhas concurrent workers, processes, or branches writing the same file, key, or object
migrate-callers-then-delete-legacy-apis.mdreplaces an internal API, helper, or module
outcome-oriented-execution.mdis a rewrite or migration planned in several steps
build-the-lever.mdis more than a couple of obvious edits: repeated edits, a data fix, an analysis, or a claim no test proves
test-behavior-not-implementation.mdwrites, changes, or keeps a test
minimize-reader-load.mdadds or moves code a reader must trace (every change, for step 3)

1. Design the end state

Read the code the change touches and its callers, and run the project's checks once so you know what already fails. The checks are the ones the project already has (its test, typecheck, lint, and build scripts or CI steps); a kind it lacks is reported as not run, never installed or borrowed for the occasion. Then decide, before editing, what the code would look like had this requirement been there from the start, following the principles you read.

When the end state changes something outside the repo is known to rely on (a public API, a CLI, a schema or file format another program reads), ask before building: the bolt-on, the redesign, the cost of each, your recommendation first. With no one to answer, take the option that keeps outside callers working and say so. State only this code reads (its own files and caches, and what its docs say about them) is the code's to change; say how what is already on disk carries over.

Done when you can state the end state in a few lines: its types, where parsing happens, what replaces what, what gets deleted, and which work gets a lever.

2. Build

Reach the end state in single-purpose steps, behavior and structure apart, in this order: delete what nothing uses, lay the shared shape (types, schema, the boundary parse, test fakes), build on it, and delete what it replaced last. After each step, run the narrowest check that covers it (the one test file, typecheck or lint on the touched files).

  • Behavior changes go test-first: a failing test through the public interface with the expected value taken from the requirement, then the code. Follow the test-driven-development skill when the user or a calling skill asks for it.
  • Refactors keep every observable result. A test that breaks while behavior holds was pinned to internals: rewrite it through the public interface and report it.
  • Propagate every reference to what changed: types, call sites, docs, README tables, examples, rationale.

Done when the end state stands: every caller moved, every listed deletion made, every reference propagated, and each lever built.

3. Check

Rerun the checks on the final tree and match or beat the first run; when no check exercises a changed command, job, or server, run it once. Read the whole diff once as a new reader would, against the tests in the principles you read, and fix what you find.

Done when the checks match or beat the first run and the diff passes each principle's test.

Report

Reply in this shape, dropping empty lines:

<what changed, one line>
End state: <one sentence: the shape, where parsing happens, what replaces what>
Removed: <what you deleted>
Levers: <each tool beyond the tests: what it did or proved, kept or deleted>
Verified: <checks and results, against the first run>
Decisions · Follow-ups: <each>

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.