agentleFS
bkraad47bkraad47/ramen/skills/iterate/SKILL.md

iterate

Skill4 starsChanged 27 days agoBSD-3-ClauseView on GitHub

Fix a bug or change behavior in Ramen through a reproduce-fix-verify loop, TDD, against the current state snapshot. Use when asked to fix, change, debug, or implement something in this codebase, not just to run the existing tests (see skills/test/).

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use writing-for-agents, retro and 4 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.
  • MicrosoftSkill

    writing-for-agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    Also in 3 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read facts/STATE.md (what exists now) and the relevant section of docs/CONTRACTS.md (what correct behavior is specified to be).

    line 16
  2. Very specific:

    Reproduce: Write the smallest test that captures the issue, in the component it belongs to (node-rs/src/.../tests, runtime-py/tests/, …

    line 19
  3. Distinctive:

    If you cannot make it fail, the issue may already be fixed (check git log for the area first) or may need a different reproduction than …

    line 22
  4. Very specific:

    Verify: Run the full test suite for every component you touched (skills/test/SKILL.md's Steps 2–4).

    line 27
  5. Distinctive:

    If something unrelated now fails, stop — do not paper over it — and report what broke.

    line 28
  6. Very specific:

    Update facts/STATE.md if the fix changes what's true about the system (a new capability, a changed default, a newly-supported backend) — …

    line 31
  7. Distinctive:

    Never mark something "fixed" on the strength of manual testing alone — a test must exist that would catch a regression.

    line 46
  8. Very specific:

    Never touch docs/CONTRACTS.md to make a fix match the spec instead of matching the spec to the fix, unless the task explicitly asks for a …

    line 48
  9. Distinctive:

    Stop and ask a human after three reproduce-fix-verify rounds on the same issue rather than continuing to guess.

    line 51

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

Iterate on Ramen

A fix-verify loop any coding agent can run: write a failing test first, make it pass, confirm nothing else broke, write down why. No agent-specific tooling required.

Inputs

  • The issue to fix, in plain language (a bug report, a desired behavior change, a failing CI run).
  • A working tree of this repo. skills/test/SKILL.md's Inputs (same toolchain requirements).

Steps

  1. Read facts/STATE.md (what exists now) and the relevant section of docs/CONTRACTS.md (what correct behavior is specified to be). If the issue contradicts the contract, that is a decision for a human — stop and ask rather than silently picking a side.
  2. Reproduce. Write the smallest test that captures the issue, in the component it belongs to (node-rs/src/.../tests, runtime-py/tests/, console/tests/, or tests/ for cross-component behavior). Run it and confirm it fails for the reason you expect — not for an unrelated setup problem. If you cannot make it fail, the issue may already be fixed (check git log for the area first) or may need a different reproduction than first assumed; say which before proceeding.
  3. Fix. Make the smallest change that makes the new test pass without weakening or deleting any existing test. Prefer fixing the root cause over adding a special case; if the true fix is large, say so and propose the smaller version explicitly rather than silently doing a partial fix.
  4. Verify. Run the full test suite for every component you touched (skills/test/SKILL.md's Steps 2–4). If something unrelated now fails, stop — do not paper over it — and report what broke; fixing a second, unrelated defect in the same pass is a judgment call for whoever asked for the change, not something to do silently.
  5. Update facts/STATE.md if the fix changes what's true about the system (a new capability, a changed default, a newly-supported backend) — keep it short, this is a snapshot, not a changelog.
  6. Report what changed, why (the root cause, not just the symptom), which tests prove it, and what (if anything) is still open.

Validate

(hand this section, verbatim, to a second agent or a fresh review pass)

  • V1 A test exists that fails on the code from before the fix and passes on the code after it (check this by looking at the diff, not by trusting the report).
  • V2 skills/test/SKILL.md's Validate section passes in full, not just for the component that changed.
  • V3 The fix's root cause is stated in the PR/commit message, not just a description of the symptom.
  • V4 No existing test was weakened (a tightened assertion loosened, a case removed, a skip added) to make the suite pass.

Boundaries

  • Never mark something "fixed" on the strength of manual testing alone — a test must exist that would catch a regression.
  • Never touch docs/CONTRACTS.md to make a fix match the spec instead of matching the spec to the fix, unless the task explicitly asks for a contract change — that is a binding document and a PR reviewer's call, not an implementation detail.
  • Stop and ask a human after three reproduce-fix-verify rounds on the same issue rather than continuing to guess.

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.