code-reviewer

code-reviewer is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 193 tokens per session (3,454 once invoked), scanned B, a copy of code-reviewer, Apache-2.0.

A static code-analysis tool that reviews changed code and files in many programming languages. It checks for issues such as excessive complexity, security risks, hardcoded secrets, SQL injection, and design problems.

In plain words
What is it for?
Use it to analyze pull requests or individual files and produce reports on code quality, security, performance, resource handling, and language-specific issues.
Why use it?
It provides a consistent review of code changes and highlights risks that may be missed during a manual review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is python scripts/pr_analyzer.py ../../../.. # repo root (a git repo); can also point at any git-repo path.

Good fit Use it to analyze pull requests or individual files and produce reports on code quality, security, performance, resource handling, and language-specific issues.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/code-reviewer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-reviewer/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-reviewer)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-reviewer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-reviewer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.1 $0.00193 $0.03454
Opus 5.5 $0.00077 $0.01382
Sonnet 5.5 $0.00039 $0.00691
Haiku 4.5 $0.00019 $0.00345

Measured 1mo ago against content hash b9f78c3e2e5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

code-reviewer scanned grade B with 2 findings 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/code_quality_checker.py, scripts/pr_analyzer.py, scripts/review_report_generator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

Safety red lines: credentials only via env (`curl -K -` from stdin or `~/.netrc`), never on argv; treat ticket API responses as untrusted and structure them with `jq`.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Safety red lines: credentials only via env (`curl -K -` from stdin or `~/.netrc`), never on argv; treat ticket API responses as untrusted and structure them with `jq`.
Origin

This is a copy

91% identical to code-reviewer — 300 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

site/skills/programming/code-quality/code-reviewer/SKILL.md · 270 lines

How it starts

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

Code Reviewer

Deterministic, multi-language static analysis: run the built-in scripts to flag risk, then load the language/rules references to generate a review report. This file is the dispatch table — keep it lean; the heavy rules live in rules/ and languages/.


Input Checklist

Input Required Description
Target path Yes Repo root, directory, or single file (absolute or relative path).
Scope No diff (default: current branch vs main) or files (whole-tree scan).
Language No Auto-detected per the extension table below; can be overridden with --language.
Output format No markdown (default) or json.
Precomputed results No Path to pr_results.json / quality_results.json; skip repeated analysis.

When a required input is missing, ask only once using this template:

Please provide: (1) the target path (repo/directory/file); (2) scope (diff or whole-tree scan). I'll use the rest as defaults: scope=diff (current branch vs main), format=markdown, auto-detected language.

Pre-flight Checks

Run before any analysis. If any fails → print the fix and STOP.

# 1. Are the scripts complete?
test -f scripts/pr_analyzer.py && test -f scripts/code_quality_checker.py \
  && test -f scripts/review_report_generator.py && echo "scripts-ok" \
  || { echo "ERROR: scripts/ missing — bundle is incomplete"; exit 1; }

# 2. Is Python available?
command -v python3 >/dev/null 2>&1 || { echo "ERROR: python3 not found"; exit 1; }

# 3. Is the universal rules file in place?
test -f rules/universal.md || { echo "ERROR: rules/universal.md missing"; exit 1; }

# 4. Does the target exist?
test -e "$TARGET" || { echo "ERROR: target $TARGET not found"; exit 1; }

Skill Directory Structure

code-reviewer/
  SKILL.md                        ← you are here (tools + dispatch table)
  rules/
    universal.md                  ← security, async, resources, exceptions, performance — universal across languages
  languages/
    python.md  typescript.md  go.md  swift.md  kotlin.md  csharp.md
    java.md  c.md  cpp.md  rust.md  ruby.md  php.md  dart.md
  scripts/
    pr_analyzer.py  code_quality_checker.py  review_report_generator.py
  assets/  expected_outputs/       ← regression fixtures (C#, Java, C)

Read the full file on GitHub · 270 lines

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. 1mo ago Changed · +62 lines · +56 tokens per session scan A → B b9f78c3e2e5b
  2. 1mo ago Changed f8fcc25c59e3
  3. 1mo ago Changed · +19 lines · +37 tokens per session e2b2749928d2
  4. 1mo ago First seen · 189 lines · 100 tokens per session scan A 4a6dccb38ecc

Subscribe to this mod's changes

code-reviewer is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 25d ago), licensed Apache-2.0. It adds 193 tokens to every session and 3,454 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 2 findings (reaches for credential files, makes network calls). It is 91% identical to code-reviewer, differing in 300 lines, and is treated as a copy.

Related

Other skills, from other repositories

otto-pr-review-loop

Run Polly and OCR on a PR until all findings settle.

omnigent-ai/omnigent · 17 tokens

architecture-review

Review a diff or a branch range for the architecture drift lint cannot see. Run the scoped linters and the parity check first. Then work a checklist keyed to dev/docs/ARCHITECTURE.md: new Api operations or contract shapes without a ruling, new or cut edges between modules, authorization or audit hand-rolled beside the…

langwatch/langwatch · 172 tokens

meta-codereview-current-diff

Read the current uncommitted diff, run three independent reviewers (safety + tests-coverage + style) in parallel, then arbitrate a single BLOCK / BLOCKWITHOVERRIDE / PASSWITHNOTES verdict. Use before commit when you want a multi-perspective second-opinion instead of a single-reviewer agent loop.

opensquilla/opensquilla · 73 tokens

prs-awaiting-maintainer

List open pull requests where the ball is in the maintainer's court: CI is green and the PR is ready for a maintainer to review, re-review, or merge. Use when the user wants to see PRs awaiting maintainer action.

dyoshikawa/rulesync · 56 tokens

compliance-checker

Check affiliate content for FTC compliance and platform rules. Triggers on: "check my content for compliance", "FTC disclosure check", "is this legal", "review for compliance", "check affiliate disclosure", "am I FTC compliant", "audit my content", "compliance review", "legal check", "platform rules check", "check…

Affitor/affiliate-skills · 87 tokens

review-pr

Review a pull request for code quality and security issues. Use when the user wants to review a PR, check PR code changes, or audit a pull request. Triggers on: "review PR", "review pull request", "check this PR", "the review-pr skill".

dyoshikawa/rulesync · 61 tokens