agentleFS
ntorgantorga/agent-starter-kit/skills/code-quality-review/SKILL.md

code-quality-review

Skill146 starsChanged 3 months agoMITView on GitHub

Reviews code and plans against the project's coding rules.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-cve-sweep, fastapi-route-change and 5 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.
  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

  • berntpoppSkill

    fastapi-route-change

    Use when adding, renaming, or modifying this backend's FastAPI routes, dependencies, middleware, or response behavior.

    Also in 5 projects that use this

  • IgorGanapolskySkill

    ci-failure-triage

    Triage a CI / PR check failure by READING the failure body before forming any hypothesis. Triggered whenever a required check is red, a PR is BLOCKED, a merge won't land, or you're about to call a failure "transient", "flaky", "stale", or "orphaned". Prevents dismissing a real failure (e.g. real CodeQL security alerts) as noise.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    release-readiness

    Complete ODIN release documentation and validation checks before declaring user-visible work complete, preparing a release, or opening the Release-to-main pull request.

    Also in 5 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

  • +2 more from berntpopp

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Initialize the progress file: Create .memory/reviews/review-quality-<timestamp>.md:

    line 15
  2. Distinctive:

    MUST violation → always Blocker.

    line 42
  3. Distinctive:

    SHOULD violation without visible justification → Blocker.

    line 43
  4. Distinctive:

    SHOULD violation with documented justification → Warning.

    line 44
  5. Distinctive:

    Walk the work against every rule and classify findings: Check each statement in each loaded rule file against the changed code or plan.

    line 50
  6. Very specific:

    After reviewing each changed file, update the progress file: mark the file as [x] with finding counts, add findings under ## Findings:

    line 55
  7. Very specific:

    Add style findings to the progress file under each file's section.

    line 74
  8. Distinctive:

    Never flag a SHOULD deviation as a blocker when justification is documented.

    line 82
  9. Distinctive:

    Never invent rules. If an issue does not trace back to a loaded rule file, it is a Note at most, not a Warning or Blocker.

    line 83
  10. Distinctive:

    If a pattern match is ambiguous, skip it rather than rationalizing it into a finding.

    line 84
  11. Distinctive:

    Never flag line length in template or markup files (templ, HTML, JSX, Vue SFCs, etc.).

    line 85
  12. Distinctive:

    Never flag test proof issues — whether a test verifies behavior or skip markers.

    line 86

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

Purpose

A code review without a checklist drifts toward gut feeling — the reviewer catches what they notice and misses what they don't. This skill turns the project's coding rules into a repeatable procedure. It tells the reviewer what to inspect and in what order.

Procedure

  1. Initialize the progress file. Create .memory/reviews/review-quality-<timestamp>.md:

    # Quality Review Progress
    
    ## Status
    - Last updated: <timestamp>
    - Overall: In Progress
    
    ## Phases
    - [ ] 1. Collect applicable rules
    - [ ] 2. Walk work against rules
    - [ ] 3. Verify style proximity
    - [ ] 4. Dedup findings
    
    ## Files
    - [ ] <path>
    - [ ] <path>
    
    ## Findings
  2. Collect the applicable rules. Load all files from rules/code/. Also load any applicable rules (e.g., rules/git.md). Classify each rule's statements by RFC language:

    • MUST / MUST NOT / SHALL / SHALL NOT — violations are always Blockers. No exceptions.
    • SHOULD / SHOULD NOT — violations require justification visible in the code (a comment earned under rules/code/general.md § Comments, a design note, or a .context.md entry). If the justification is clear, it is a Warning. If absent or unclear, it is a Blocker.

    Language-to-severity mapping:

    • MUST violation → always Blocker.
    • SHOULD violation without visible justification → Blocker.
    • SHOULD violation with documented justification → Warning.

    If the codebase uses a specific language with a dedicated rule file, include that file. If the language has no dedicated file, apply only rules/code/general.md. One pass-routing exception — severity rules are unchanged: the behavior-over-implementation rule in rules/code/general.md § Testing is a test-proof question — hand it to the coherence pass per the Guardrails; do not classify it here.

    Mark phase 1 as [x] in the progress file.

  3. Walk the work against every rule and classify findings. Check each statement in each loaded rule file against the changed code or plan. Do not skip or paraphrase rules — the rules are the source of truth. Classify each issue found:

    • Blocker — MUST violation, unjustified SHOULD violation, readability violation (cryptic code is always a blocker). Must be fixed.
    • Warning — justified SHOULD deviation, minor inconsistency. Should be addressed.
    • Note — style suggestion beyond what rules mandate. No action required.

    After reviewing each changed file, update the progress file: mark the file as [x] with finding counts, add findings under ## Findings:

    ### <file-path>
    
    **Blockers:**
    - <file>:<line> — <what violates which rule>. (rule: <rule-file-name>)
    
    **Warnings:**
    - <file>:<line> — <what violates which rule>. (rule: <rule-file-name>)
    
    **Notes:**
    - <file>:<line> — <observation>

    Mark the file as reviewed. Move to the next file only after the progress file is saved. Mark phase 2 as [x] when all files are reviewed.

  4. Verify style proximity. For each changed file, run ls on its directory. Read one or two sibling files — pick those most similar in function to the changed code. Compare the changed code against the siblings. Flag any structural or pattern mismatch as a Warning. The Coder's self-review is not evidence — verify independently.

    Add style findings to the progress file under each file's section. Mark phase 3 as [x].

  5. Dedup findings. Review all findings in the progress file. If a style proximity finding overlaps with a rule-based finding (e.g., both caught the same naming issue — one as style mismatch, one as rule violation), keep the rule-based finding and remove the style duplicate. The rule finding has a specific rule reference; the style finding is redundant.

    Mark phase 4 as [x] and set Overall to Complete. If review is interrupted, the progress file shows which phases were completed.

Guardrails

  • Never flag a SHOULD deviation as a blocker when justification is documented. SHOULD is guidance, not law — documented justification earns a warning, not a veto.
  • Never invent rules. If an issue does not trace back to a loaded rule file, it is a Note at most, not a Warning or Blocker.
  • If a pattern match is ambiguous, skip it rather than rationalizing it into a finding.
  • Never flag line length in template or markup files (templ, HTML, JSX, Vue SFCs, etc.). A single tag or attribute list often cannot be split without harming readability — the line-length rule exempts these. Apply the limit to surrounding logic code, not to the markup.
  • Never flag test proof issues — whether a test verifies behavior or skip markers. Those are coherence questions. Test style issues land here through the rules: naming, table-driven cases, setup placement, file independence mechanics (rules/code/general.md § Testing).

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.