agentleFS
jamestexasjamestexas/agents/skills/implement/SKILL.md

implement

Skill2 starsChanged 6 months agoApache-2.0View on GitHub

Deterministic end-to-end implementation orchestrator. Use when building net-new code or a fix that should follow the full pipeline — decompose → research → TDD loop → self-review gate → structural review. Thin: it SEQUENCES existing skills (problem-decomposer/work-scope, feature-impl, superpowers/test-driven-development, self-audit, test-fidelity, taskfile-ci-parity, structural-pr-review) in a fixed order with rigid gates; it does not re-derive them. Mirror of structural-pr-review for the build side.

  • Commits and pushes

191 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 43 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 91 projects that use this

  • RoentekSkill

    loop-me

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

    Also in 50 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 88 projects that use this

  • ryotaroh180105Skill

    claude-handoff

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

    Also in 42 projects that use this

  • GoogleSkill

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

  • +3 more from google

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create one TodoWrite item per phase at the start.

    line 32
  2. Very specific:

    If the input is an aspiration/capability → invoke problem-decomposer.

    line 40
  3. Distinctive:

    Conventions: Before committing, check each new file against the conventions P1 named — type visibility, error wrapping, test/fake patterns, …

    line 69

“Common” is measured: kept by at least 6 in 10 of the 171 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 — implementation orchestrator

A fixed-sequence chain for implementing one unit of work (a feature or a fix) with the same determinism structural-pr-review brings to the review side. Ad-hoc implementation anchors on whatever the author noticed first; this chain guarantees the same evidence shape every time: decompose (P0) → research (P1) → TDD loop (P2) → self-review gate (P3) → structural review (P4) → close (P5).

Two non-negotiables:

  1. The human does the human-facing actions. This skill STOPS before git push, before opening a PR, before posting any review/reply. It prepares and verifies; the human pushes and posts. (gitsign keyless enforces this — the final signature is the author's.)
  2. Rigid gates emit artifacts. P0 and P3 do not "complete" until their required artifact exists. A phase cannot start until the prior gate's artifact is present. Everything else is FLEXIBLE within bounded exit conditions.

Arguments

$ARGUMENTS — a problem statement, a ticket ID, or a filed bead id. If empty, ask for one before proceeding.

Determinism contract

  • Phases run in order P0→P5. No reordering.
  • Each phase names the EXACT skill/command it invokes. No "use appropriate tooling."
  • RIGID phases (P0, P3) produce a gating artifact named below; the next phase asserts it exists.
  • FLEXIBLE phases (P1, P2) iterate, but each has an explicit EXIT CONDITION — not a fixed step count.
  • Create one TodoWrite item per phase at the start; a phase is not checked off until its gate/exit condition is met.

P0 — SCOPE → bead specs (RIGID · gate: filed beads exist)

Decompose the work into dispatchable units and FILE them, closing the bead→implement bridge that the decomposition skills stop short of.

  1. If the input is an aspiration/capability → invoke problem-decomposer. If it is a ticket/feature to cut into PR-sized units → invoke work-scope. (Both emit specs and deliberately DO NOT file.)
  2. File each emitted leaf/unit with rsry_bead_create — carry its file scope + a falsifiable acceptance criterion (a runnable command or a named test). Link with rsry_bead_link where dependent.
  3. Checkpoint commit (jj/git) so the decomposition is durable before code starts.

GATE: rsry_list_beads shows the filed beads with acceptance criteria. Do not enter P1 until they exist. If the work is a one-line fix (no decomposition warranted), file ONE bead and say so — the gate is "a bead exists," not "many."

P1 — RESEARCH (FLEXIBLE · exit: research doc exists)

Discover the patterns the code must follow before writing it.

  1. Invoke feature-impl Phase 0 (research): dispatch an Explore agent (thoroughness "very thorough") to find 2–3 reference implementations of the same KIND of thing, extract their conventions (type visibility, error wrapping, test/fake patterns, logging, config, safety), and search for reusable utilities (flag cross-module internal/ duplication).

EXIT: a research summary naming the reference impls + the conventions to follow. Skip only for a mechanical/derived change with an obvious single pattern — and say so.

P2 — IMPLEMENT (FLEXIBLE, per bead · exit: task ci green + committed)

For each bead, in dependency order:

  1. Test first. Invoke superpowers/test-driven-development: write the failing test, watch it fail. Then the mutation check — with the implementation in place, revert the load-bearing line and confirm the test goes red (proves the test isn't vacuous). Restore.
  2. Loop to green. Run task ci if the module exposes it (see taskfile-ci-parity) — it is both language-agnostic and the thing CI actually runs, so prefer it wherever it exists. Otherwise fall back to the repo's own build/lint/test quadruplet on the touched packages. Typical shapes, but use what the repo actually defines:

    LanguageFallback quadruplet
    Gogo build ./... && go vet ./... && go test ./... && golangci-lint run
    Rustcargo check && cargo clippy && cargo test
    Pythonuv run ruff check && uv run ruff format --check && uv run pytest
    TypeScriptpnpm build && pnpm lint && pnpm test

    Iterate until green, and re-run the cheap half (build / typecheck) after every edit — it catches unused imports and signature drift early, while they are still one edit from their cause.

  3. Conventions. Before committing, check each new file against the conventions P1 named — type visibility, error wrapping, test/fake patterns, logging, config, safety. Step 2's linter catches the mechanical half; this step is the half it cannot.
  4. Commit. Foreground gitsign commit, EXPLICIT staged paths (never git add -A), eyeball git diff --cached --name-only first. Small commits, one logical change each.
  5. Comment progress on the bead (rsry_bead_comment).

EXIT (per bead): task ci/quadruplet green AND the change committed with the mutation check recorded.

P3 — SELF-REVIEW GATE (RIGID · gate: self-audit + test-fidelity clean)

The pre-review gate the process does informally but never as a skill. Run BEFORE tagging any reviewer.

  1. taskfile-ci-parity — confirm local == CI by construction (every check is a Taskfile target CI also invokes), so "green locally" means green in CI.
  2. self-audit — dead struct fields, rotting comments, duplicate types, scope drift; dispatches an adversarial agent for design flaws.
  3. test-fidelity — for every new test: can it fail? does it exercise the real path? any dead axis? (Where the repo documents its testing-double conventions, read them for any double on a fast/slow decision path.)
  4. Fix findings as NEW commits (never amend a pushed commit). Re-run the P2 exit gate.

GATE: self-audit + test-fidelity report clean (or every finding has a NEW fix commit). Do not enter P4 until clean.

P4 — REVIEW (in-session · depth adapts to PR shape)

Invoke structural-pr-review on the branch (local, posts nothing). Its own classifier decides depth: mechanical/derived → run the falsifier; feature/behavioral → the adversarial lens dispatch (type-driven-correctness, security-auditor, dataflow-driven-troubleshooting, and a contract-conformance pass — verify every emitted value + doc/contract promise against the code). Produce the falsifiable matrix + verdict. Verify every agent claim against the code yourself before trusting it.

P5 — CLOSE (rigid · then STOP)

  1. rsry_bead_close each bead — only after its change is committed AND its acceptance criterion passes. Do not close incomplete beads; comment what remains instead.
  2. Prepare the human hand-off: the exact git commit -S (if any staging remains), the push command, and — if a PR/reply is next — a DRAFT body. Before drafting any human-facing prose, run the de-claudify pass: strip re-narration of code the author wrote, rule-of-three enumeration where one clause suffices, reflexive praise adjectives, showing-my-work verbs as prose, and hedge stacking.

STOP. The human runs the push, opens the PR, posts the review. This skill never does.


Phase discipline (summary)

PhaseRigidityGate / exit artifact
P0 scopeRIGIDfiled beads with acceptance criteria (rsry_list_beads)
P1 researchFLEXIBLEresearch summary (reference impls + conventions)
P2 implementFLEXIBLE, per beadtask ci green + committed + mutation check recorded
P3 self-reviewRIGIDself-audit + test-fidelity clean (or fix commits)
P4 reviewshape-adaptivefalsifiable matrix + verdict
P5 closeRIGIDbeads closed; human hand-off prepared; STOP

Why a fixed sequence?

Same rationale as structural-pr-review: a deterministic chain guarantees the same evidence shape every run — decomposition (P0) → pattern-grounding (P1) → mutation-proven code (P2) → the self-review gate that catches what a compiler won't (P3) → structure-aware review (P4). The skills it calls each carry their own discipline; this skill's only job is the sequence and the gates, not re-deriving them.

Cross-references

structural-pr-review (the review-side mirror), problem-decomposer / work-scope (P0 inputs), feature-impl (P1 research), superpowers/test-driven-development (P2), taskfile-ci-parity (P2/P3), self-audit / test-fidelity (P3). Process invariants (foreground commits + explicit staging, no-deferred-work, interactive-not-autonomous, walk-commits-forward) are enforced inside the flexible phases per the author's standing preferences.

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.

Reviews can't be read right now.

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.