agentleFS
musahyderrmusahyderr/mainseat/.claude/skills/self-check/SKILL.md

self-check

Skill1 starsChanged 14 days agoMITView on GitHub

Prove a change works with the narrowest test; debug failures.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 4

    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. Very specific:

    Run the narrowest proof first: the test for the code you touched, or the exact command that showed the bug.

    line 9
  2. Distinctive:

    If the project has a linter or type checker, run it on the changed files only.

    line 12
  3. Distinctive:

    Read the first error, not the last.

    line 17
  4. Distinctive:

    If not, it may be an existing problem: say so instead of "fixing" unrelated code.

    line 19
  5. Distinctive:

    Never say "done" or "fixed" without a passing check, or say clearly that it is unverified and why.

    line 28

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

self-check

After every change

  1. Run the narrowest proof first: the test for the code you touched, or the exact command that showed the bug. Then the project's full test command if it is quick (see Run tests in CLAUDE.md).
  2. If the project has a linter or type checker, run it on the changed files only.
  3. Re-read your diff once, looking for: typos, unhandled errors, leftover debug prints, files changed by accident, secrets.

When something fails

  1. Read the first error, not the last. Copy its shortest decisive line.
  2. Cross-check: does the error point at code you changed? Check that line first. If not, it may be an existing problem: say so instead of "fixing" unrelated code.
  3. Fix only what the error shows. Re-run the same proof.
  4. Two failed attempts → stop guessing. Hand it to the debugger agent with the error line, the command, and what you tried.
  5. Debugger can't find it either → ask the user, or for a design-level problem use big-decision. Never loop on the same fix.

Report

checked: <command> -> pass | fail (<error line>), one line per check. Never say "done" or "fixed" without a passing check, or say clearly that it is unverified and why.

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.