agentleFS
alexcollinsalexcollins/skills/skills/build/SKILL.md

build

Skill1 starsChanged 2 months agoMITView on GitHub

Build a phase of a plan, an issue or a described change test-first: one failing test at an agreed seam, the least code that passes it, repeat; typecheck as you go; mark the phase Built in its PLAN.md; review the diff; commit. Runs independent phases in parallel when the agent can. Use when the user asks to build or implement a phase, a plan, a ticket or a feature, or to work test-first (TDD, red-green).

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, finances 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.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • GerardoRdz96Skill

    finances

    Use when Gera talks about his money — logging an expense ("I spent X on Y"), checking where he stands this pay-period, closing a period, planning debt payoff, onboarding his financial picture, or asking for budgeting/finance opinions. Servy's financial brain. Triggers — "I spent", "log this expense", "where am I this period", "close the period", "how's my budget", "debt plan", "should I pay off", "finances onboard", "/finances".

    Also in 3 projects that use this

  • uac-opsSkill

    secure

    Threat-model the product, run an OWASP-style pass, and lock down secrets before going live. Use when COMPANY.md Stage is secure, or the user says "security review", "is this secure", "threat model", "secrets", "auth review", or "OWASP".

    Also in 3 projects that use this

  • cpiprintSkill

    favicon

    Generate favicons from a source image

    Also in 3 projects that use this

  • madeehahassanSkill

    Go-Live

    Pre-launch checklist. Use before making any app public, sharing a link externally, or announcing a product launch. Adapts to Claude Code, claude.ai, and Cowork.

    Also in 3 projects that use this

  • ORBWEVASkill

    retention

    Customer retention and lifecycle skill. Use when user needs lifecycle email sequences, NPS/CSAT survey design, cohort analysis, or churn reduction strategies. Triggers on "retention", "lifecycle email", "NPS", "CSAT", "customer success", "onboarding emails", "win-back", or /retain commands.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 166 edited versions we read keep these.

  • 10

    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:

    Write one test at an agreed seam for the next behaviour.

    line 32
  2. Distinctive:

    Write the least code that makes it pass.

    line 34
  3. Distinctive:

    Run the typecheck and that test file.

    line 35
  4. Distinctive:

    Write the tests one at a time, not all up front: a batch written before the code tests what you imagined, not what you learned building it.

    line 42
  5. Distinctive:

    Update the plan in the same change: the phase marked Built., the Status line moved on, and anything learned along the way added — a …

    line 51
  6. Very specific:

    Run diff-review from where you started.

    line 53
  7. Distinctive:

    Commit to the current branch: what changed and why, in the project's commit style.

    line 55
  8. Distinctive:

    When asked for a pull request, the body carries three things: the smallest picture that makes the change clear (a sentence, a table, a …

    line 58
  9. Distinctive:

    When phases don't depend on each other and the agent can run subagents in separate worktrees:

    line 64
  10. Distinctive:

    Create an integration branch.

    line 66
  11. Distinctive:

    Start one subagent per ready phase, each on its own branch cut from the integration branch, each running this skill for its phase.

    line 67
  12. Very specific:

    When none are left, run one diff-review over the integration branch, fix in one pass, and clean up the worktrees.

    line 71

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

Build

Before the first line

  1. Know the work. A phase in docs/<feature>/PLAN.md, an issue (fetch it and say its title), or what the conversation agreed. If it could mean two things, ask once.
  2. Know the seams. They're in the plan. With no plan, propose them — the public interfaces the tests will go through, one line each on what they catch — and confirm before writing a test.
  3. Know the checks. Find the typecheck, single-test, full-suite and lint commands in the project's scripts and CI, and run them once. Failures that were there before you started aren't yours to fix; note them so they don't get blamed on this change.

The loop

Red, then green, one behaviour at a time:

  1. Write one test at an agreed seam for the next behaviour. Run it and watch it fail for the reason you expect.
  2. Write the least code that makes it pass. Nothing for a test that doesn't exist yet.
  3. Run the typecheck and that test file. Next behaviour.

What makes a test worth keeping is in references/tests.md. The short form: it goes through the public interface and survives a rewrite of everything behind it; its expected value comes from somewhere independent of the code (a literal, a worked example, the spec); and it mocks only what the project doesn't own — the network, third parties, time, randomness.

Write the tests one at a time, not all up front: a batch written before the code tests what you imagined, not what you learned building it. Refactoring waits until the behaviour is green.

Work with no seam to test at — a visual change, config, copy — still gets checked: run it, look at it, screenshot it, and say how it was verified.

Finish

  1. Full suite, typecheck and lint, once.
  2. Update the plan in the same change: the phase marked Built., the Status line moved on, and anything learned along the way added — a decision, a "Not built, on purpose".
  3. Run diff-review from where you started. Fix what it finds; where a finding is a judgement call, make the call and say which way you went.
  4. Commit to the current branch: what changed and why, in the project's commit style. Push or open a pull request only when asked.

When asked for a pull request, the body carries three things: the smallest picture that makes the change clear (a sentence, a table, a screenshot), evidence that it works (before and after, test output), and the risk — whether it can be undone easily, and what breaks if it's wrong.

Several phases at once

When phases don't depend on each other and the agent can run subagents in separate worktrees:

  1. Create an integration branch.
  2. Start one subagent per ready phase, each on its own branch cut from the integration branch, each running this skill for its phase. Brief them with pointers — the plan's path and the phase number — not pasted content.
  3. As each finishes, merge it into the integration branch and start the phases it unblocked.
  4. When none are left, run one diff-review over the integration branch, fix in one pass, and clean up the worktrees.

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.