code-review

code-review is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 36 tokens per session (500 once invoked), scanned B, original, MIT.

A code-review workflow that uses CodeRabbit AI to inspect code changes for quality, bugs, security issues, and other problems.

In plain words
What is it for?
Use it to review committed or uncommitted changes, pull requests, and fixes made after an earlier review.
Why use it?
It gives structured feedback on changes without requiring a manual review of every line first.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to review committed or uncommitted changes, pull requests, and fixes made after an earlier review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/code-review
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.

Any agent
npx skills add mahmoud20138/Tradecraft --skill code-review
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/code-review/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/code-review)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/code-review"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/code-review/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-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/code-review"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 500 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 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.1 $0.00036 $0.00500
Opus 5 $0.00018 $0.00250
Sonnet 5 $0.00007 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 8d ago against content hash 01111539cbe4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

code-review 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 8d 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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://cli.coderabbit.ai/install.sh | sh

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.

curl -fsSL https://cli.coderabbit.ai/install.sh | sh
plugins/tradecraft/skills/code-review/SKILL.md · 85 lines

What it actually says

CodeRabbit Code Review

AI-powered code review using CodeRabbit. Enables autonomous development workflows where you can implement features, review code, and fix issues without manual intervention.

When to Use

When user asks to:

  • Review code changes / Review my code / Review this
  • Check code quality / Code quality check
  • Find bugs or security issues / Check for bugs / Find issues
  • Security review / Security check
  • Get feedback on their code / PR review / Pull request feedback
  • Review staged/uncommitted changes
  • What's wrong with my code / What's wrong with my changes
  • Run coderabbit / Use coderabbit
  • Implement a feature and review it
  • Fix issues found in review

How to Review

1. Check Prerequisites

# Check CLI
coderabbit --version 2>/dev/null

# Check auth
coderabbit auth status 2>&1

If CLI not installed, tell user:

Please install CodeRabbit CLI first:
curl -fsSL https://cli.coderabbit.ai/install.sh | sh

If not authenticated, tell user:

Please authenticate first by running in your terminal:
coderabbit auth login

2. Run Review

coderabbit review --plain

Options:

  • -t all - All changes (default)
  • -t committed - Committed changes only
  • -t uncommitted - Uncommitted changes only
  • --base main - Compare against specific branch

3. Present Results

Group findings by severity and create a task list for issues found.

4. Fix Issues (Autonomous Workflow)

When user requests implementation + review:

  1. Implement the requested feature
  2. Run coderabbit review --plain
  3. Create task list from findings
  4. Systematically fix each issue
  5. Re-run review if needed until critical issues resolved

Documentation

For more details: https://docs.coderabbit.ai/cli/claude-code-integration

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. 8d ago First seen · 85 lines · 36 tokens per session scan B 01111539cbe4

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 500 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.