/oac:code-reviewfrom oac
Reviews code for security, correctness, and quality before committing. Runs in an isolated context with pre-loaded standards, returning structured findings with severity levels and suggested fixes.
Ships in oac. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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]."
Load standards BEFORE invoking review:
Read: .opencode/context/core/standards/code-quality.md
Read: .opencode/context/core/standards/security-patterns.md
/code-review path/to/file.ts
/code-review src/auth/*.ts
/code-review $(git diff --name-only HEAD~1)
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
If CRITICAL or HIGH issues:
/code-review to verifyIf only MEDIUM or LOW issues:
If no issues:
🔴 CRITICAL (Security):
🟠 HIGH (Correctness):
🟡 MEDIUM (Maintainability):
🟢 LOW (Suggestions):
Review fails:
Too many findings:
Unclear findings:
If you think any of these, STOP and re-read this skill:
| Excuse | Reality |
|---|---|
| "I just wrote it so I know it's right" | The author is the worst reviewer. Fresh eyes catch what familiarity hides. |
| "It's a small change" | Security vulnerabilities are almost always in small, "obvious" changes. |
| "We can review after merging" | Post-merge review finds bugs in production. Pre-merge review finds them for free. |
| "There's no user input so no injection risk" | Internal data becomes user input when requirements change. Review now. |
Task: Review the following files: $ARGUMENTS
Instructions for code-reviewer subagent:
What SKILL.md sets; muted values are Claude Code's defaults
code-reviewer), in the backgroundThree short reads, in order
12 skills in this plugin
/code-executionUse when a subtask is ready to implement and has a subtask JSON file with acceptance criteria and deliverables./context-discoveryUse when coding standards, security patterns, or project conventions need to be discovered before implementation begins./context-setupInstall context files from registry. Use when user runs /install-context, says "install context", "setup context", or when context is missing and the user needs to get started./debuggerUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes/external-researchUse when the task involves an external library or package and current API docs are needed before writing code./oac-approachUse before any implementation — understands the request, discovers project context, and proposes a concise plan for user approval before writing any code.npx claudepluginhub darrenhinde/openagentscontrol --plugin oac2 plugins ship this exact skill · first indexed Jul 17, 2026
Other plugins' skills for the same job