agentleFS
fbsmna-coderfbsmna-coder/karpathy-pro-max/skills/hostile-self-review/SKILL.md

hostile-self-review

Skill0 starsChanged 8 months agoMITView on GitHub

Review your own diff as a skeptic before declaring done. Use after implementing any non-trivial change to catch bugs, scope creep, hidden assumptions, and overclaims that you would otherwise ship.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    After any non-trivial change, before reporting completion.

    line 13
  2. Distinctive:

    Read your own diff with this question in mind: "If a peer reviewer wanted to reject this PR, what would they correctly point at?"

    line 17
  3. Distinctive:

    If the list is empty after honest review, write "Self-review found no concerns" — but only after going through the checklist.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Hostile Self-Review

The default failure mode after writing code is declaring it done. The agent has just spent N tool calls building it, is invested in the outcome, and pattern-matches "I wrote the code → task complete." This skill inserts a deliberate skeptical pass before that declaration.

When to apply

After any non-trivial change, before reporting completion. "Non-trivial" = anything beyond a typo, a one-line config change, or a comment edit.

How to apply

Read your own diff with this question in mind: "If a peer reviewer wanted to reject this PR, what would they correctly point at?"

Find at least 3 real concerns. If you cannot find 3, you did not look hard enough — re-read with these prompts:

The skeptic's checklist

  1. Did I actually solve the stated problem, or a related one? Re-read the original request. Compare to what shipped. Are they the same?
  2. What edge case did I not handle? Empty input. Maximum input. Concurrent calls. The unhappy path. Be specific — name the case.
  3. What did I assume that I did not verify? "I assumed the API returns ISO timestamps" — did you check? "I assumed the column exists" — did you grep the schema?
  4. What did I touch that wasn't in scope? Reformatting, renaming, adjacent edits. List them. Either revert or justify each.
  5. Where did I claim something works without evidence? "Should now handle X correctly" — show the test, the curl, the screenshot. If you can't show it, you didn't verify it.
  6. What would break if my change is wrong? Blast radius: just this function? The whole request path? Production data? User-facing behavior?

Output format

End your work with:

## Self-review

Concerns I found:
1. <concern> — <action: fixed / accepted with reason / left for user>
2. ...
3. ...

Verified: <list of concrete checks performed>
Not verified (and why): <list>

If the list is empty after honest review, write "Self-review found no concerns" — but only after going through the checklist.

Anti-pattern

Theatrical self-review: listing fake concerns to look thorough ("I should add more comments"). Real concerns are uncomfortable. If your self-review is comfortable, it isn't real.

Why this matters more than external review

External review happens after you've shipped. Self-review happens before. The cost of catching the bug is one minute of re-reading vs. one rollback + one fix + one redeploy.

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.