code-review

A code-review agent that examines diffs, commits, pull requests, or changed files for material defects. A pull request is a proposed set of changes submitted for review before merging.

In plain words
What is it for?
Use it to review code changes and report prioritized findings with exact code references.
Why use it?
It focuses review on bugs, security problems, data loss, crashes, and incorrect behavior instead of style or minor design concerns.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mystilleef/spae-framework/code-review
Any agent
npx skills add mystilleef/spae-framework --skill code-review
Clone the repo
git clone --depth 1 https://github.com/mystilleef/spae-framework

Made for: Claude Code, Codex.

Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.02084
Opus 5 $0.00006 $0.01042
Sonnet 5 $0.00002 $0.00417
Haiku 4.5 $0.00001 $0.00208

Measured 2d ago against content hash 94f32ce53ef3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

code-review scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore-start -->
skills/code-review/SKILL.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 222 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 222 lines · 12 tokens per session scan C 94f32ce53ef3

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository mystilleef/spae-framework (1 stars, last pushed 28d ago), licensed MIT. It adds 12 tokens to every session and 2,084 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

exploit-xss

Cross-site scripting (XSS) vulnerability detection and exploitation. Supports reflected XSS, stored XSS, DOM-based XSS, and blind XSS testing. Use this skill when user mentions XSS, cross-site scripting, script injection, or needs to test JavaScript injection in parameters, forms, headers, or DOM sources.

crazyMarky/pentest-skills · 71 tokens

results-storage

SQLite-based persistent storage and reporting system for penetration testing results. Use this skill when user needs to store scan results, query vulnerabilities, generate reports, or manage pentest data across sessions.

crazyMarky/pentest-skills · 40 tokens

exploit-sqli

SQL injection detection and exploitation using sqlmap, manual techniques, and custom payloads. Use this skill when user needs to test for SQL injection vulnerabilities, extract database information, or exploit SQLi in parameters, headers, or cookies.

crazyMarky/pentest-skills · 51 tokens

recon-dir-scan

Directory and file enumeration using ffuf, gobuster, dirsearch, and feroxbuster. Use this skill when user needs to discover hidden directories, enumerate files, find backup files, or map application structure through path fuzzing.

crazyMarky/pentest-skills · 52 tokens

recon-fingerprint

Web fingerprinting and WAF detection using wafw00f, whatweb, nuclei, and httpx. Use this skill when user needs to identify web technologies, detect WAF/CDN, analyze server headers, or fingerprint web applications and frameworks.

crazyMarky/pentest-skills · 55 tokens

recon-subdomain

Subdomain enumeration and DNS reconnaissance using subfinder, amass, dnsx, and other tools. Use this skill when user needs to discover subdomains, perform DNS enumeration, gather DNS records, or find hidden subdomains of a target domain.

crazyMarky/pentest-skills · 54 tokens