agentleFS
jmylchreestjmylchreest/aide/skills/review/SKILL.md

review

Skill19 starsChanged 3 months agoMITView on GitHub

Code review and security audit, including conformance against recorded decisions

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 157 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Load the decisions: - Call decision_list. It is authoritative: live, and complete with Details and References.

    line 90
  2. Very specific:

    Inspect changed files: - Read the diff and identify areas needing surrounding context.

    line 97
  3. Very specific:

    Use code_outline when unfamiliar large-file structure would help locate that context.

    line 98
  4. Distinctive:

    Read relevant code: - Read the functions/sections needed for detailed review, using known ranges or symbol reads.

    line 99
  5. Very specific:

    Search for context: - Use code_search, code_references, and Grep:

    line 101
  6. Distinctive:

    Run static analysis: - Use lsp_diagnostics, ast_grep if available

    line 106
  7. Distinctive:

    Document findings: - Use severity levels

    line 107
  8. Distinctive:

    Scope: Default to the changed code — the diff, or the files the user named.

    line 115
  9. Very specific:

    Evidence is required, including for a pass: Every ✅ must cite what produced it — the Grep pattern you ran, the code_references call, the …

    line 133
  10. Distinctive:

    Use these tools during review:

    line 163
  11. Distinctive:

    Ambiguous scope: - Ask user to clarify what code to review

    line 244
  12. Distinctive:

    Read critical sections: - Read flagged areas and enough surrounding code to evaluate their behavior

    line 273
  13. Very specific:

    Check for related code: - Use code_search and code_references to find callers/callees

    line 274
  14. Distinctive:

    Verify test coverage: - Check if tests exist for critical paths

    line 275

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

Code Review Mode

Recommended model tier: smart (opus) - this skill requires complex reasoning

Comprehensive code review covering quality, security, and maintainability.

Review Checklist

Decision Conformance

Recorded decisions are this project's binding architectural commitments. Check them first — a conformance violation outranks any style or quality issue below.

  • Called decision_list (or noted the fallback) before reading any code
  • Every changed file checked against every decision that could apply to it
  • Every ✅ backed by a cited check, not by inspection alone
  • Every decision on its own line, including the ones that do not apply — no bulk dismissals
  • "Decisions loaded: N" counted, not estimated, and matching the number of lines
  • No decision violated by the change under review
  • Change does not extend a pre-existing violation
  • Where a decision seems wrong rather than the code, that is stated explicitly

Code Quality

  • Clear naming (variables, functions, classes)
  • Single responsibility (functions do one thing)
  • DRY (no unnecessary duplication)
  • Appropriate abstraction level
  • Error handling coverage
  • Edge cases considered

Security (OWASP Top 10)

  • Input validation (no injection vulnerabilities)
  • Authentication checks (routes protected)
  • Authorization (proper access control)
  • Sensitive data handling (no secrets in code)
  • SQL/NoSQL injection prevention
  • XSS prevention (output encoding)
  • CSRF protection
  • Secure dependencies (no known vulnerabilities)

Maintainability

  • Code is readable without comments
  • Comments explain "why" not "what"
  • Consistent with codebase patterns
  • Tests cover critical paths
  • No dead code

Performance

  • No N+1 queries
  • Appropriate caching
  • No memory leaks
  • Efficient algorithms

Context-Efficient Reading

Choose retrieval from the review evidence already available. Inspect the diff and known ranges directly; read full files when they are small or most contents are relevant. Use navigation tools when they resolve missing context, since extra rounds can outweigh smaller responses:

  • code_outline -- Collapsed skeleton with signatures and line ranges. Useful for navigating unfamiliar large files.
  • code_symbols -- Quick symbol list when you only need names and kinds.
  • code_search / code_references -- Find symbol definitions or callers across the codebase.
  • Read with offset/limit -- Read known ranges from the diff, search results, or an outline.
  • code_read_symbol -- Read known symbols; batch several names with symbols (up to 10).
  • Grep -- Find patterns in code content (loops, queries, string literals) that the index doesn't cover.

For reviews spanning many files, consider using Task sub-agents (explore type) which run in their own context and return summaries.

Review Process

  1. Load the decisions - Call decision_list. It is authoritative: live, and complete with Details and References. The "Project Decisions" block in session context is a convenience copy — a snapshot taken at session start that omits Details and References and goes stale the moment a decision changes, so it is a fallback when the tool is unavailable, never the source you check against. Use decision_get for one decision's full text when the list entry is not enough to judge conformance. See "Decision Conformance Pass" below for how to check them.
  2. Inspect changed files - Read the diff and identify areas needing surrounding context. Use code_outline when unfamiliar large-file structure would help locate that context.
  3. Read relevant code - Read the functions/sections needed for detailed review, using known ranges or symbol reads. Read a full file when its size or the review scope warrants it.
  4. Search for context - Use code_search, code_references, and Grep:
    • code_search — Find related function/class/type definitions by name
    • code_references — Find all callers/usages of a modified symbol (exact name match)
    • Grep — Find code patterns in bodies (error handling, SQL queries, security-sensitive calls)
  5. Check integration - How does it fit the larger system?
  6. Run static analysis - Use lsp_diagnostics, ast_grep if available
  7. Document findings - Use severity levels

Decision Conformance Pass

This is the part of the review that no static analyzer can do for you. assess-findings grades findings the analyzers already produced; this pass reads the code and looks for violations nothing flagged.

Scope. Default to the changed code — the diff, or the files the user named. Say which scope you used. Only sweep the whole repo when the user asks for it; a full sweep is slow and mostly re-reports known debt.

Method. For each decision, work out what would falsify it, then go looking for that:

Decision shapeHow to check it
Bans a mechanism ("no bash in runtime paths")Grep for the mechanism across the reviewed scope
Requires a boundary ("plugin code must not import daemon internals")code_references on the target symbols, or Grep the import lines
Requires a property of all code ("must be reachable from real call paths")findings_list analyzer=deadcode include_accepted=true for the scope, then confirm by reading. Accepted findings are hidden by default, and an acceptance predating the decision is exactly what you are looking for
Mandates a library or approach ("use go-git, not shelling out to git")Grep for the banned alternative and for the required one
Constrains a platform or runtimeRead the changed code for platform-specific assumptions

A decision whose text gives you nothing falsifiable is not checkable here. Say so plainly rather than inventing a check — and mention it to the user, because a decision that cannot be checked is a decision that cannot be enforced.

Evidence is required, including for a pass. Every ✅ must cite what produced it — the Grep pattern you ran, the code_references call, the findings_list filter, or the specific lines you read. "Looks fine" is not a check, and a conformance block full of uncited ticks is worse than no block at all: it reports assurance you did not earn.

Every decision gets its own line. Report all of them, individually, with a reason — including the ones that do not apply. Never collapse several into a category dismissal ("the remaining N are out of scope"): a bulk ➖ is the same evasion as an uncited ✅, and it is how a decision that did apply gets swept up with the ones that did not. A ➖ still needs its own evidence — the path check or grep that shows the diff does not touch what the decision governs. Grouping several decisions under one shared piece of evidence is fine when the evidence genuinely covers them all (one path check disposing of every survey-* decision, say), as long as each still has its own line naming it.

State the count and make it match. "Decisions loaded: N" must equal the number of lines below it. Count them; do not estimate.

A hidden finding is not an absent one. Any findings_* call made to discharge a decision must pass include_accepted=true; the default hides accepted findings, so a single earlier acceptance turns every later review into a cited, confident, wrong ✅ — the exact failure the evidence rule above exists to prevent. When an accepted finding is decision-linked, report the acceptance rather than passing over it: it may predate the decision, and nothing re-examines it otherwise.

Reporting. A confirmed violation is 🔴 Critical regardless of how small the code change is, and must name the decision topic. If the code looks right and the decision looks wrong or stale, say that instead of forcing a violation — recommend /decide on that topic.

MCP Tools

Use these tools during review:

  • mcp__plugin_aide_aide__code_outline - Navigate unfamiliar large files with signatures and line ranges when needed
  • mcp__plugin_aide_aide__code_search - Find symbols related to changes (e.g., code_search query="getUserById")
  • mcp__plugin_aide_aide__code_symbols - List all symbols in a file being reviewed
  • mcp__plugin_aide_aide__code_references - Find all callers/usages of a modified symbol
  • mcp__plugin_aide_aide__decision_list - Load first. The authoritative list of recorded decisions — current, and including Details and References
  • mcp__plugin_aide_aide__decision_get - Full text of one decision by topic, including rationale
  • mcp__plugin_aide_aide__memory_search - Check for related past learnings, gotchas, or issues
  • mcp__plugin_aide_aide__findings_search - Search static analysis findings (complexity, secrets, clones) related to changed code
  • mcp__plugin_aide_aide__findings_list - List findings filtered by file, severity, or analyzer
  • mcp__plugin_aide_aide__findings_stats - Overview of finding counts by analyzer and severity

Output Format

## Code Review: [Feature/PR Name]

### Summary

[1-2 sentence overview]

### Decision Conformance

Scope checked: [diff / named files / whole repo]
Decisions loaded: N

- ✅ `<topic>` — conforms — checked by: [grep pattern / tool call / lines read]
- ❌ `<topic>` — violated at `file:line`: [what the code does vs what the decision requires]
- ➖ `<topic>` — n/a: [the path check or grep showing the diff does not touch what it governs]
- ➖ `<topic>` — not checkable: [nothing falsifiable in the decision text as written]

One line per decision, no exceptions — the list length must equal "Decisions loaded".
Decisions sharing one piece of evidence still get one line each.

(State "no decisions recorded" if `decision_list` returns none.)

### Findings

#### 🔴 Critical (must fix)

- **[Issue]** `file:line`
  - Problem: [description]
  - Fix: [recommendation]

#### 🟡 Warning (should fix)

- **[Issue]** `file:line`
  - Problem: [description]
  - Fix: [recommendation]

#### 🔵 Suggestion (consider)

- **[Issue]** `file:line`
  - Suggestion: [recommendation]

### Security Notes

- [Any security-specific observations]

### Verdict

[ ] ✅ Approve
[ ] ⚠️ Approve with comments
[ ] ❌ Request changes

Severity Guide

LevelCriteria
CriticalSecurity vulnerability, data loss risk, crash, recorded decision violated
WarningBug potential, maintainability issue, performance
SuggestionStyle, minor improvement, optional

Failure Handling

If unable to complete review:

  1. Missing files - Report which files could not be read
  2. Ambiguous scope - Ask user to clarify what code to review
  3. Large changeset - Break into smaller chunks, review systematically
  4. No decisions recorded - decision_list returns none; skip the conformance pass, say so in the report, and continue with the rest of the review. Never invent decisions
  5. decision_list unavailable - Fall back to the injected "Project Decisions" block and say in the report that you used it, since it omits Details and References and may predate a decision changed this session. If neither is available, report the conformance pass as not run rather than passing it

Reporting blockers:

## Review Status: Incomplete

### Blockers

- Could not access: `path/to/file.ts` (permission denied)
- Missing context: Need to understand `AuthService` implementation

### Partial Findings

[Include any findings from files that were reviewed]

Verification Criteria

A complete code review must:

  1. Inspect all changed files - Examine every file in the diff/scope
  2. Read critical sections - Read flagged areas and enough surrounding code to evaluate their behavior
  3. Check for related code - Use code_search and code_references to find callers/callees
  4. Verify test coverage - Check if tests exist for critical paths
  5. Document all findings - Even if no issues found, state that explicitly

Checklist before submitting review:

  • All files in diff/scope have been examined
  • Critical functions/sections and necessary context read in detail
  • Related symbols searched (callers, implementations)
  • Security checklist evaluated
  • Findings documented with file:line references
  • Verdict provided with clear reasoning

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.