mcpField
R
reviewing-code

reviewing-code

github.com/narumirunaTesting & quality1743 installsUpdated 1w ago
Repository

About reviewing-code

reviewing-code is a code-review skill for evaluating requested changes without expanding into a full codebase audit. It traces relevant behavior and contracts, checks a security baseline, and prioritizes verified, actionable findings.

Key features

  1. 01Focused change review
  2. 02Trace callers and contracts
  3. 03Correctness and reliability checks
  4. 04Security baseline review
  5. 05Evidence-based findings

Use cases

  1. 01Reviewing a pull request diff
  2. 02Checking edge cases in changed behavior
  3. 03Assessing relevant security risks

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/narumiruna/skills --skill reviewing-code

After installing, type/reviewing-codein Claude Code to confirm it loaded.

Details

From the project README

Reviewing Code

Review the requested change, not the entire codebase. Treat the task as read-only unless fixes are requested. Keep this as an ordinary code review with a security baseline; when security is the primary objective or acceptance criterion, use auditing-code-security instead of expanding this workflow into a full security audit.

Workflow

  1. Determine the exact target and comparison base from the request and repository or PR context. Use the target branch's merge base; do not assume main. State broader file-audit scope when no diff is involved.
  2. Infer intended behavior from the request, issue/PR context, tests, docs, and surrounding code. Label material assumptions.
  3. Trace changed behavior through relevant callers, contracts, state, errors, and downstream consumers. Report issues introduced, worsened, or made reachable by the change; separate directly relevant pre-existing problems.
  4. Check, where plausible:
    • correctness, boundaries, state transitions, retries, concurrency, partial failure, and cleanup
    • where repeated work without progress stops, and its worst-case time, resources, cost, and side effects
    • interfaces, schemas, migrations, jobs, caches, feature flags, permissions, and configuration
    • security baseline: affected assets and trust boundaries; authn/authz and tenant or object ownership; source-to-sink validation and injection; secrets, logging, and sensitive data; dependency and configuration exposure
    • repeated work, I/O, queries, blocking, leaks, and expected scale
    • tests for changed behavior and concrete error paths; maintainability only where it creates real cost or risk
  5. Run focused checks when feasible. Passing checks support but do not prove correctness.
  6. Stop after the relevant diff, directly affected contracts/callers, and focused evidence are covered. Distinguish confirmed findings, inferred risks, and unverified areas.

When fixes are requested, confirm the finding first, then use hardening-code-paths for bounded edge-case or failure-mode work. Do not hand off speculative or preference-only comments. Use auditing-code-security first when a security alert needs threat-focused reachability analysis. Return to review the resulting diff and evidence.

Findings

Lead with confirmed findings ordered by severity:

  • Critical: severe security impact, data loss, or widespread production failure.
  • Major: important correctness, reliability, security, or maintainability risk that should block merge.
  • Minor: real, low-risk defect worth correcting.

Each finding needs a file/line when available, concrete trigger, impact, and actionable fix. Omit nits unless requested. If no finding survives verification, say so and name meaningful residual risk or unavailable checks.

Give a merge verdict only for a PR/MR or explicit mergeability request: Approve, Approve with minor comments, Request changes, or Needs more context.

Comments

Markdown supported