agentleFS
Adit-Jain-srmAdit-Jain-srm/skill-forge/skills/self-review/SKILL.md

self-review

Skill2 starsChanged 6 months agoMITView on GitHub

After every code change, automatically review your own work before presenting it. Catches bugs, style issues, and missed requirements BEFORE the user sees them. Use when implementing features, fixing bugs, refactoring, or any code modification. Auto-triggers on code changes. Reduces back-and-forth by catching issues first-pass.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use latex-formatting, novelty-assessment 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.
  • lingzhi227Skill

    latex-formatting

    Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.

    Also in 3 projects that use this

  • lingzhi227Skill

    novelty-assessment

    Assess research idea novelty through systematic literature search. Multi-round search-evaluate loops with harsh critic persona. Binary novel/not-novel decision with justification. Use before committing to a research direction.

    Also in 3 projects that use this

  • michaelboedingSkill

    slide-generation

    Use this skill to create presentation slides from structured content. Triggers: "create slides", "generate presentation", "make powerpoint", "create pptx", "build slides", "presentation from content", "slide deck", "slides for" Outputs: PPTX files, Markdown slides, or HTML presentations. Used by: pitch-deck-agent, market-researcher-agent, and other agents needing slides.

    Also in 3 projects that use this

  • BlockSkill

    github-research

    Search GitHub issues, PRs, and code using the gh CLI.

    Also in 3 projects that use this

  • juanlurgSkill

    paper-to-code

    Reads a research paper and generates an implementation notebook with equations, code, and a toy example. Use when the user wants to implement a paper, convert a paper to code, or reproduce a paper's algorithm.

    Also in 3 projects that use this

  • ZanderRussSkill

    literature-review

    Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).

    Also in 3 projects that use this

  • +4 more from lingzhi227

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 6

    Distinctive

    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 writing or modifying code, review it yourself BEFORE presenting to the user.

    line 16
  2. Distinctive:

    If you find an issue during self-review: fix it silently.

    line 41
  3. Distinctive:

    Don't announce "I'm now reviewing my code" (just do it, silently)

    line 47
  4. Distinctive:

    Don't present code then say "wait, let me fix something" (review BEFORE presenting)

    line 48
  5. Distinctive:

    Don't skip review because "it's a small change" (small changes have bugs too)

    line 49
  6. Distinctive:

    Don't review only the lines you changed (check surrounding context)

    line 50

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

Overview

Catch your own bugs, style issues, and missed requirements BEFORE presenting code. The user should never see your first draft.

Process

After writing or modifying code, review it yourself BEFORE presenting to the user.

Persistence

ACTIVE EVERY CODE CHANGE. Not a one-time thing. Every edit, every file, every commit-worthy change gets self-reviewed. Off only when user says "skip review" or "just do it".

The Review (run mentally, fix inline)

For each file you just modified:

1. RE-READ what you wrote (don't trust your memory of what you intended)
2. CHECK: Does this actually solve what was asked? (not a related thing, THE thing)
3. BUGS: Off-by-one? Null/undefined? Race condition? Unclosed resource?
4. EDGE CASES: Empty input? Very large input? Unicode? Concurrent access?
5. CONSISTENCY: Matches existing code style? Same naming conventions? Same patterns?
6. IMPORTS: Everything imported? Nothing unused? Circular dependency?
7. TYPES: Type-safe? No `any` where there shouldn't be? Generics correct?
8. ERROR HANDLING: What can throw? Is it caught? Is the error message useful?
9. TESTS: If tests exist, did I break any? Should I add one for this change?
10. SECURITY: User input validated? SQL injection? XSS? Auth checks?

Fix Before Showing

If you find an issue during self-review: fix it silently. Don't tell the user "I found a bug in my code." Just fix it. Present clean work.

The user should never see your first draft. They should see your REVIEWED draft.

What NOT to do

  • Don't announce "I'm now reviewing my code" (just do it, silently)
  • Don't present code then say "wait, let me fix something" (review BEFORE presenting)
  • Don't skip review because "it's a small change" (small changes have bugs too)
  • Don't review only the lines you changed (check surrounding context)

Depth Levels

Change SizeReview Depth
1-5 linesQuick scan: bugs, types, imports
5-50 linesFull checklist above
50+ linesFull checklist + architecture fit + test impact

Common Mistakes

  • Announcing "I'm reviewing my code now" (just do it silently, present clean results)
  • Reviewing only your changed lines without checking surrounding context
  • Treating small changes as exempt ("one-line changes can't break things" — they can)
  • Using any types or skipping error handling because "it's just a quick fix"

Example (self-review catching a bug)

// What you wrote:
const user = await db.users.findOne({ email });
return user.name;

// Self-review catches:
// - What if user is null? (findOne returns null for no match)
// - No error handling on db call

// What you present (after silent fix):
const user = await db.users.findOne({ email });
if (!user) throw new NotFoundError(`No user with email: ${email}`);
return user.name;

The user never sees the first version. They get the reviewed version.

Why This Matters

Without self-review: agent presents code → user finds bug → agent fixes → user finds another → cycle wastes time.

With self-review: agent catches own bugs → presents clean code → user accepts first time → trust builds.

The difference between a junior dev (shows first draft) and a senior dev (shows reviewed work).

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.