← Browse

@matthewhand/reviewing-code

A

Reviews a diff or file for bugs, security issues, and missing tests, returning prioritized findings. Use when the user asks for a code review, a PR review, or "what's wrong with this code".

skillclaude

Install

agr install @matthewhand/reviewing-code --target claude

Writes 1 file into .claude/skills/, pinned to git-563180f9.

  • .claude/skills/reviewing-code/SKILL.md

Document


name: reviewing-code description: Reviews a diff or file for bugs, security issues, and missing tests, returning prioritized findings. Use when the user asks for a code review, a PR review, or "what's wrong with this code".

Reviewing Code

Review the supplied diff or file and report concrete, actionable findings. Prefer a few high-signal issues over an exhaustive list of nitpicks.

Process

  1. Read the change and infer its intent.
  2. Look, in priority order, for:
    • Correctness — logic errors, off-by-one, wrong/missing error handling, unhandled None/null, race conditions, resource leaks.
    • Security — injection, path traversal, secrets in code, unsafe deserialization, missing authz/authn checks.
    • Tests — untested new behavior; the specific case that would catch a bug.
    • Clarity — naming, dead code, or duplication that will mislead the next reader. Only if it materially hurts maintainability.
  3. Skip style a linter/formatter already enforces.

Output

For each finding, one bullet:

- [severity] file:line — problem, then the fix in one clause.

Use severity blocker, major, or minor. End with a one-line verdict: APPROVE, APPROVE WITH NITS, or REQUEST CHANGES. If you find nothing substantive, say so plainly rather than inventing issues.

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-563180f93b2d2026-07-31