agentleFS
mystilleefmystilleef/spae-framework/skills/code-review/SKILL.md

code-review

Skill1 starsChanged 4 months agoMITView on GitHub

Find bugs and potential issues in code changes.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing 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.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Commit or PR scope: the commit message(s) or PR title and description.

    line 50
  2. Very specific:

    Read relevant project documentation (AGENTS.md, ORIENT.md, DESIGN.md), nearby code, and tests for grounding.

    line 69
  3. Very specific:

    VERIFY passes. Use | block scalars for multi-line suggestion and excerpt fields.

    line 119
  4. Distinctive:

    Verify findings against AGENTS.md before reporting.

    line 140
  5. Very specific:

    Default to PHASE_CAP (7) phases as a single named constant—never scatter phase-count literals across the workflow.

    line 141
  6. Distinctive:

    No finding without direct code evidence.

    line 148
  7. Distinctive:

    No praise, broad commentary, or unrelated cleanup requests.

    line 149
  8. Distinctive:

    No large raw tool output; summarize diagnostics.

    line 150
  9. Distinctive:

    Don't change project source files during review.

    line 151
  10. Distinctive:

    Don't flag: missing comments/docs, performance micro-optimizations without evidence the path runs hot, hypothetical inputs (unless the diff …

    line 152
  11. Very specific:

    Run VERIFY, PERSIST, and REPORT once, after the phase sweep—never per phase.

    line 156
  12. Distinctive:

    Don't speculate about code outside the diff.

    line 163
  13. Very specific:

    When a stack context block arrives (for example, Stack: Python 3.12, asyncio), apply its language-specific severity adjustments—it takes …

    line 168
  14. Very specific:

    Every suppressed_findings entry cites qualifying intent evidence—never a general or vague rationale.

    line 179
  15. Very specific:

    If findings or suppressed findings exist: code-review-report.yaml written and conforms to references/report-schema.json.

    line 181
  16. Distinctive:

    Keep prose terse while ensuring clarity.

    line 192
  17. Distinctive:

    Use lists and sub-lists over paragraphs and long sentences.

    line 195

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

When to use

  • Reviewing diffs, commits, PRs, or changed files before merge.
  • Auditing generated code or refactors for regressions.

Goal

Conduct a skeptical, evidence-based review that flags only material defects—incorrect behavior, data loss, security vulnerabilities, or crashes. Return prioritized findings with exact code citations.

Scope

In scope:

  • Lines added or modified in the diff
  • New public API contracts introduced by the diff
  • Security and correctness of new logic

Out of scope:

  • Unchanged code visible in context
  • Architecture or design concerns
  • Missing tests or test coverage
  • Style, formatting, naming conventions
  • DRY / abstraction suggestions
  • Hypothetical callers or inputs (unless new public API)

Input

Determine scope from the first available source:

  • Files or folders provided by the user.
  • Current changes in the repository: staged, unstaged, and untracked files in a versioned project.

Abort with a clear message if no scope detected.

Gather intent grounding matching the resolved scope:

  • Commit or PR scope: the commit message(s) or PR title and description.
  • Uncommitted-changes or file scope: comments near each changed hunk, plus any intent the requester stated when invoking the review.

Workflow

  1. GATE—Identify changed files and diff boundaries; abort if no scope. Delete code-review-report.yaml from the project root if present.
  2. ORIENT—Read references/code-review-guide.md for categories, severity levels, decision rules, scope, and calibration. Read references/report-schema.json as the output contract. Anchor to review goal; name what the review won't change.
    • Ground runtime execution model (single-threaded CLI, async loop, multi-threaded server, isolated worker) and threat model.
    • Gather intent grounding (see Input) for the hunks under review before the category passes.
  3. ACT—Execute:
    • Read relevant project documentation (AGENTS.md, ORIENT.md, DESIGN.md), nearby code, and tests for grounding.
    • Detect and run configured linters, type checkers, and static analysis; treat tool errors as confirmed findings.
    • Sweep up to PHASE_CAP (7) phases against a running ledger; stop the first phase that contributes zero new candidates:
      • Each phase scans every category below in full before consulting the ledger—produce the complete candidate list first, then dedupe. Skipping already-covered ground before scanning defeats the sweep.
      • Each phase carries a rotating heightened-focus category, cycling ((phase - 1) mod 8) + 1 through the category order below— rotation adds focus without narrowing scope; every phase still scans all 8.
      • Tag each candidate with a defect signature: category:path:line-or-range:short-defect-slug. Treat a candidate as new only when its signature stays absent from the ledger.
      • Append new candidates to the ledger after each phase.
    • Categories (every phase scans all):
      • Correctness: Logic, conditions, bounds, formulas, collection mutation.
      • Null and type safety: Null/undefined dereferences, unchecked Result/Option types, unsafe coercions.
      • Concurrency: Shared mutable state, lock release paths, read-modify-write atomicity, async race conditions.
      • Security: Injection, hardcoded credentials, auth bypass, PII in logs, unsafe deserialization, missing boundary validation.
      • Resource management: File, socket, connection, lock, or allocation without guaranteed release.
      • Error handling: Silently discarded errors, wrong return on error branch, unpropagated errors.
      • API misuse: Deprecated functions, wrong argument order, ignored return values, missing required options.
      • Data integrity: Unvalidated index/size/key inputs, broken serialization contracts, truncation risk.
  4. VERIFY—Run once, after the phase sweep completes—never per phase. Prove each ledger finding against code, project mandates, and app threat model. Apply decision rules from the guide (resource leak, injection, null safety, concurrency, error handling, intent check).
    • Drop speculative, out-of-scope, or unexploitable theoretical findings from active findings.
    • Route findings lacking concrete exploit paths or carrying qualifying intent evidence to suppressed_findings citing the missing trigger scenario—never emit them in findings.
  5. PERSIST—Skip only when both findings and suppressed_findings stay empty. Otherwise write code-review-report.yaml to the project root conforming to references/report-schema.json; omit the suppressed_findings key entirely when empty. Write once, after VERIFY passes. Use | block scalars for multi-line suggestion and excerpt fields.
  6. REPORT—Sort findings by severity. Emit the result following the result directives and result template.

Directives

  • Cite each finding with a quoted excerpt and path:line.
  • Rank findings: Critical, High, Medium, Low, Nit.
    • Emit Nit only when trivially co-located with a higher-severity finding.
  • Verdict: Request Changes (any confirmed, practically exploitable Critical/High) · Comment (Medium/Low only) · Approve (no findings). Derive verdict from findings only—suppressed_findings never shifts it.
  • Filter candidate findings against the app threat model, KISS, and YAGNI; reject defensive bloat, ungrounded guardrails, and theoretical non-exploits.
  • Mark uncertainty explicitly: "Context may change this finding, but…"
  • Suggest targeted, scope-appropriate fixes; don't rewrite the patch.
  • Omit empty categories and "none found" sections.
  • Verify findings against AGENTS.md before reporting.
  • Default to PHASE_CAP (7) phases as a single named constant—never scatter phase-count literals across the workflow.
  • Surface phases run in the result Actions list (for example, ran 3/7 phases, stopped on saturation).

Constraints

  • No finding without direct code evidence.
  • No praise, broad commentary, or unrelated cleanup requests.
  • No large raw tool output; summarize diagnostics.
  • Don't change project source files during review.
  • Don't flag: missing comments/docs, performance micro-optimizations without evidence the path runs hot, hypothetical inputs (unless the diff introduces a new public-facing API), or theoretical vulnerabilities outside the app threat model.
  • Run VERIFY, PERSIST, and REPORT once, after the phase sweep—never per phase.

Calibration

  • Precision over recall—one high-confidence Critical beats five speculative Mediums.
  • Don't speculate about code outside the diff.
  • Note ambiguous intent in the finding rather than assuming defect.
  • Flag the defect; don't editorialize about the author or decision.
  • Language-specific idioms inform findings—don't flag idiomatic use as incorrect.
  • When a stack context block arrives (for example, Stack: Python 3.12, asyncio), apply its language-specific severity adjustments—it takes precedence.

Verification

  • Static analysis output checked when available and practical.
  • Findings map to diff or file excerpts and line references.
  • Severity reflects user impact or exploitability.
  • Suggestions describe concrete changes.
  • Report matches workspace mandates.
  • Every suppressed_findings entry cites qualifying intent evidence—never a general or vague rationale.
  • If findings or suppressed findings exist: code-review-report.yaml written and conforms to references/report-schema.json.
  • Ledger dedup keys off the defect signature (category:path:line-or-range:slug)—no phase counts a finding new without a fresh signature.
  • Phase sweep halts on the first zero-new-finding phase, or at PHASE_CAP (7), whichever comes first.

Result directives

  • Minimum words. Maximum signal.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions and summaries into terse bullet points.
  • Use lists and sub-lists over paragraphs and long sentences.
  • Omit inapplicable fields.
  • Emit the result template as live markdown—never in a code fence.
  • Output nothing outside the template.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of actions taken]
- **Files**:
  - [Terse list of affected files]
- **Findings**:
  - [Terse list of notable findings]
- **Resolutions**:
  - [Terse list of recommended fixes to findings]
- **Summary**:
  - [Terse list summarizing outcome]

> **Code Review Status** • `[scope]`
> **Result**: [Issues Found | No Issues | Failed]
> **Impact**: [Terse impact statement]
<!-- prettier-ignore-end -->

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.