agentleFS
pdparchitectpdparchitect/noodle/.agents/skills/test-first-changes/SKILL.md

test-first-changes

Skill259 starsChanged 35 days agoApache-2.0View on GitHub

Test-first procedure for every behaviour change in Noodle. Use before fixing a bug, changing how code behaves, or acting on a diagnosis made by reading the code; covers the failing test, the fix, the two runs to report, and the CI-safety constraints on tests.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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:

    Do not change behaviour on the strength of reading the code.

    line 8
  2. Distinctive:

    Write a test that exercises the specific code and fails because of the problem.

    line 10
  3. Distinctive:

    Run it and see it fail.

    line 11
  4. Distinctive:

    Run the same test and see it pass.

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Behaviour changes are test-first

Do not change behaviour on the strength of reading the code.

  1. Write a test that exercises the specific code and fails because of the problem.
  2. Run it and see it fail.
  3. Make the change.
  4. Run the same test and see it pass.
  5. Report both runs.

A suspected cause that no test can reproduce is still a hypothesis; say so instead of changing code.

Tests must not depend on a harness account, a model, the network or timing, so that they also pass in CI.

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.