agentleFS
wrg32786wrg32786/aigent-os/skills/self-review/SKILL.md

Self-Review

Skill25 starsChanged 8 days agoMITView on GitHub

Spawn a reviewer with specific verification questions. Use when reviewing code changes over 30 lines, across files, in hot paths or prompts, or with uncertainty.

51 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 4 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 4 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 4 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 4 projects that use this

  • OpenAISkill

    idea-generation

    Use when triaging public-equity idea candidates. Do not use for final trade recommendations, pitches, memos, or models.

    Also in 3 projects that use this

  • sunnyclinches44Skill

    explain

    Explains code using real-world analogies and ASCII diagrams

    Also in 5 projects that use this

  • +6 more from lingzhi227

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 4

    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:

    Run an explicit second-pair-of-eyes pass on non-trivial work before declaring done.

    line 8
  2. Distinctive:

    If skipping, say so explicitly: "Skipping self-review — N-line trivial fix." Don't silently bypass.

    line 26
  3. Distinctive:

    Use the Agent tool with a code-reviewer subagent_type (or equivalent).

    line 82
  4. Distinctive:

    After review completes, append to your delivery message:

    line 95

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

Run an explicit second-pair-of-eyes pass on non-trivial work before declaring done. Quality of review depends on quality of question.

When to RUN self-review

  • More than ~30 lines OR multi-file change
  • Hot path (many requests flow through this code)
  • Subtle interactions with code you might have missed
  • Prompt or output affecting user-visible content
  • Code not worked in recently (mental model might be stale)
  • Any genuine uncertainty after writing the change

When to SKIP self-review

  • One-line edit, mechanical fix, obvious diff
  • Pure rename or move with no logic change
  • Code just written with full context, low blast radius
  • Cost-benefit doesn't justify (review takes longer than the fix did)

If skipping, say so explicitly: "Skipping self-review — N-line trivial fix." Don't silently bypass.

How to execute

Step 1 — Set context (3-5 lines max)

State, in plain language:

  • The bug / feature / what was asked
  • The cause (what was actually wrong)
  • The fix (what was actually changed)

Step 2 — List specific changes

- path/to/file_one.ts:L123-L145 — replaced regex with structured parser
- path/to/file_two.ts:L56 — added null guard for empty corpus
- path/to/config.json — bumped diversity_threshold 0.6 → 0.75

Step 3 — Ask 4-6 specific verification questions

Bad asks (do not produce useful answers):

  • "Is this good?"
  • "Does this look right?"
  • "Any issues?"
  • "Did I miss anything?"

Good asks (concrete, falsifiable, named):

  • "Does the new keyword order ever cause a wrong branch in routeRequest?"
  • "Does the diversity rule reach the model in the same prompt as the recent-titles list?"
  • "Is the early return at line 47 still bypassing this check?"
  • "If recent_titles is empty (first run), does the sort comparator return stable output?"
  • "Does the schema migration handle the existing 12K null rows or only new inserts?"

Each question must:

  • Reference a specific file:line or function name
  • State the failure mode you're worried about
  • Be answerable yes/no after a focused read

Step 4 — Ask explicitly about edge cases, regressions, missed interactions

"Edge cases I'm uncertain about:
- What happens when input X is empty?
- Does this break callers Y and Z that I didn't read?
- Any regression on the prior fix from PR #N?"

Step 5 — Request severity ratings + line references

"Please rate findings as HIGH / MEDIUM / LOW with concrete line references."

Step 6 — Spawn the reviewer subagent

Use the Agent tool with a code-reviewer subagent_type (or equivalent). Pass the full context block (steps 1-5) as the prompt. Set model to whatever is appropriate for the review depth.

Step 7 — Process findings

  • HIGH severity → fix before declaring done
  • MEDIUM severity → fix unless you have a specific reason not to. If skipping, document why.
  • LOW severity → judgment call. Often fold into a follow-up note.
  • Reviewer misread → trust your own reading, but re-verify before dismissing. A misread is a signal the code might need clarity.

The reviewer is a second pair of eyes, not an authority. Evaluate every suggestion. Blindly applying every note is as bad as ignoring them all.

Output format

After review completes, append to your delivery message:

**Self-review:** {APPROVED — severity X} / {N findings applied} / {N deferred — listed below}
- {finding} → {fix applied OR reason deferred}

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.