code-review

code-review is a skill for Claude Code from darrenhinde/OpenAgentsControl. It costs 28 tokens per session (1,077 once invoked), scanned A, original, MIT.

A code-review procedure for checking written code for security problems, correctness, and maintainability. It uses separate standards for code quality and security before producing a findings report.

In plain words
What is it for?
Use it to review individual files, feature changes, authentication code, or all files in a recent Git change, including security checks.
Why use it?
A review can reveal vulnerabilities, missing error handling, and other defects before code is committed. The procedure also gives findings a consistent severity and fix format.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; mentions subagents; mentions OpenCode.

Part of the oac plugin — 12 skills, 6 commands, 7 agents, 1 hook shipped together

Good fit Use it to review individual files, feature changes, authentication code, or all files in a recent Git change, including security checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darrenhinde/openagentscontrol/code-review
About the project

OpenAgents Control is a framework that adds plan-first, approval-based coding workflows to OpenCode, an AI coding framework. Developers and teams use it to make agents follow shared coding patterns, work across several programming languages, and validate changes through testing and review. The catalogue includes its agents, skills, commands, plugin, and hook.

darrenhinde/OpenAgentsControl · 4,925 stars · on GitHub

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 darrenhinde/OpenAgentsControl --skill code-review
Clone the repo
git clone --depth 1 https://github.com/darrenhinde/OpenAgentsControl

Made for: Claude Code.

Or install oac, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 7 agents, 1 hook.

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/darrenhinde/openagentscontrol/code-review/github.svg)](https://agentmods.dev/skills/darrenhinde/openagentscontrol/code-review)
Your own site
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/code-review"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/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/darrenhinde/openagentscontrol/code-review"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.01077
Opus 5.5 $0.00011 $0.00431
Sonnet 5.5 $0.00006 $0.00215
Haiku 4.5 $0.00003 $0.00108

Measured 1mo ago against content hash b18350148770, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

plugins/claude-code/skills/code-review/SKILL.md · 163 lines

How it starts

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

Code Review

Overview

Review code for security, correctness, and quality. Runs in isolated code-reviewer context with pre-loaded standards.

Announce at start: "I'm using the code-review skill to validate [files/feature]."

The Process

Step 1: Pre-Load Context (Main Agent)

Load standards BEFORE invoking review:

Read: .opencode/context/core/standards/code-quality.md
Read: .opencode/context/core/standards/security-patterns.md

Step 2: Invoke Review

/code-review path/to/file.ts
/code-review src/auth/*.ts
/code-review $(git diff --name-only HEAD~1)

Step 3: Analyze Report

Code-reviewer returns structured findings:

## Code Review: Auth Service

### 🔴 CRITICAL (Must Fix)
1. **SQL Injection Risk** — src/db/query.ts:42
   - Problem: Unparameterized query with user input
   - Risk: Database compromise
   - Fix:
     ```diff
     - db.query(`SELECT * FROM users WHERE id = ${userId}`)
     + db.query('SELECT * FROM users WHERE id = ?', [userId])
     ```

### 🟠 HIGH (Correctness)
2. **Missing Error Handling** — src/auth/service.ts:28
   - Problem: Async function without try/catch
   - Risk: Unhandled promise rejection
   - Fix: Wrap in try/catch with proper logging

### 🟡 MEDIUM (Style)
3. **Naming Convention** — src/auth/middleware.ts:15
   - Problem: snake_case instead of camelCase
   - Fix: Rename verify_token → verifyToken

### Summary
Total Issues: 3 (1 Critical, 1 High, 1 Medium)
Recommendation: REQUEST CHANGES

Step 4: Take Action

If CRITICAL or HIGH issues:

  1. STOP—do not commit
  2. Fix issues using suggested diffs
  3. Re-run /code-review to verify
  4. Proceed only when clean

If only MEDIUM or LOW issues:

  1. Evaluate whether to fix now or later
  2. Apply quality improvements
  3. Safe to commit

If no issues:

  1. Commit with confidence
  2. Note positive patterns

Review Checks

🔴 CRITICAL (Security):

  • SQL injection, XSS, command injection
  • Hardcoded credentials or secrets
  • Path traversal, auth bypass

Read the full file on GitHub · 163 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 First seen · 163 lines · 28 tokens per session scan A b18350148770

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository darrenhinde/OpenAgentsControl (4,925 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 1,077 once invoked, about $0.0001 per session on Opus 5.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

auto-review

Use this skill to configure and understand the built-in auto-review plugin (wstack-auto-review) that fires automated code review subagents on every code change during a session. Triggers: user says "auto review", "otomatik review", "auto code review", "her değişiklikte review", "/auto-review".

WrongStack/WrongStack · 67 tokens

codex-adversarial-review

Use this skill to conduct aggressive, adversarial code reviews on git changes, branches, or PRs to detect critical edge cases, race conditions, security holes, and data loss risks. Triggers: user mentions "adversarial review", "break the code", "find vulnerabilities", "security audit PR", "race condition check", "ship…

WrongStack/WrongStack · 83 tokens

code-review

Use this skill when asked to review code changes — a pull request, a branch, a commit range, or the current diff — for correctness, security, and maintainability before they merge. Triggers: user says "review", "code review", "review this PR", "review my changes", "look over the diff", "is this ready to merge", "PR…

WrongStack/WrongStack · 86 tokens

code-quality

Find and remove unused code, ghost dependencies, unnecessary coupling and bundle waste with source-confirmed reachability. Use when cleaning exports or packages, reviewing Knip output or reducing dead code; use security-scanner for security findings and preserve public/dynamic entrypoints.

WrongStack/WrongStack · 55 tokens

github-platform

GitHub pull requests, review threads, failing Actions checks and stacked pull requests, through GitHub's MCP server and the gh CLI. Use when opening, reviewing or updating a pull request, fixing a failed check, or splitting a change into a stack.

monkilabs/opencastle · 54 tokens

gitlab-platform

GitLab merge requests, review threads, failed pipelines and stacked merge requests, through GitLab's MCP server and the glab CLI. Use when opening, reviewing or updating a merge request, fixing a failed pipeline, or splitting a change into a stack.

monkilabs/opencastle · 55 tokens