code-review

A code-review skill for examining software for bugs, security risks, performance problems, unclear structure, naming issues, and missing tests.

In plain words
What is it for?
It helps review code changes, identify issues by severity, and suggest improvements to correctness, security, performance, maintainability, and test coverage.
Why use it?
It gives developers a systematic review of possible problems and asks for concrete fixes tied to files and line numbers.

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/lwmxiaobei/xbcode/code-review
Any agent
npx skills add lwmxiaobei/xbcode --skill code-review
Clone the repo
git clone --depth 1 https://github.com/lwmxiaobei/xbcode

Made for: Claude Code, Codex.

Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 222 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00013 $0.00222
Opus 5 $0.00006 $0.00111
Sonnet 5 $0.00003 $0.00044
Haiku 4.5 $0.00001 $0.00022

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

Security

Grade A, and why

code-review scanned grade A with 0 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 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-review/SKILL.md · 23 lines

What it actually says

Code Review Guidelines

When reviewing code, follow these steps:

  1. Read the code thoroughly — understand the intent before critiquing.
  2. Check for bugs — null references, off-by-one errors, race conditions, resource leaks.
  3. Evaluate naming — are variables, functions, and classes named clearly?
  4. Assess structure — is the code modular? Are responsibilities well-separated?
  5. Security — look for injection vulnerabilities, unsafe inputs, hardcoded secrets.
  6. Performance — unnecessary allocations, N+1 queries, blocking calls in async code.
  7. Tests — are edge cases covered? Are tests readable and maintainable?

Output format:

  • Start with a one-line summary (good / needs work / has issues).
  • List findings grouped by severity: 🔴 Critical, 🟡 Warning, 🟢 Suggestion.
  • For each finding, include file, line, and a concrete fix.
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 · 23 lines · 13 tokens per session scan A 84731261b5cd

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository lwmxiaobei/xbcode (48 stars, last pushed 20d ago), licensed MIT. It adds 13 tokens to every session and 222 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agent-harness-fault-injection

Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

sickn33/agentic-awesome-skills · 34 tokens

context-manager

Context management skill providing discovery, fetching, harvesting, extraction, compression, organization, cleanup, and guided workflows for project context.

darrenhinde/OpenAgentsControl · 27 tokens

Developmental Gene Panel Design Workflow

Panel design for DEVELOPING / dynamic systems (embryonic organs, differentiation, regeneration). The target experiment is usually a LATE / terminal stage, but the biology is a trajectory: terminal cell types are end-products of earlier lineage programs. A panel built from the target stage alone resolves terminal…

aristoteleo/PantheonOS · 129 tokens

refactor

Expert code refactoring based on Martin Fowler's catalog — improve maintainability without changing behavior. Covers code smells, composing methods, moving features, organizing data, simplifying conditionals, method calls, and generalization. Triggers on: refactor, 重构, clean up, improve code, code smell, extract…

smallnest/goal-workflow · 71 tokens

accessibility-audit

Run a comprehensive WCAG accessibility audit covering perceivable, operable, understandable, and robust principles. Use this skill whenever the user wants to audit accessibility, review WCAG compliance, fix accessibility issues, prepare for accessibility certification, address an accessibility lawsuit risk, or…

rampstackco/claude-skills · 113 tokens

code-review-web

Review web application code for bugs, security issues, performance problems, and stack-specific anti-patterns. Use this skill whenever the user wants to review code, debug a production issue, investigate a build failure, audit security, or check a PR before merging. Triggers on code review, review my code, debug…

rampstackco/claude-skills · 121 tokens