the-pair: Skill for OpenCode

.opencode/skills/code-review/SKILL.md

code-review is a skill for OpenCode from timwuhaotian/the-pair. It costs 12 tokens per session (216 once invoked), scanned A, original, Apache-2.0.

A code-review checklist and reporting format covering bugs, security weaknesses, performance problems, code quality, and edge cases.

In plain words
What is it for?
Use it to review code changes and report each issue with its severity, location, explanation, suggested fix, and reason the fix works.
Why use it?
It gives a consistent way to find issues such as injection risks, exposed data, slow database access, missing validation, and weak error handling.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

This is timwuhaotian/the-pair's own configuration. It tells OpenCode how to work on the-pair itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything the-pair configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timwuhaotian/the-pair. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timwuhaotian/the-pair/main/.opencode/skills/code-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/timwuhaotian/the-pair

Made for: OpenCode.

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/timwuhaotian/the-pair/code-review/github.svg)](https://agentmods.dev/skills/timwuhaotian/the-pair/code-review)
Your own site
<a href="https://agentmods.dev/skills/timwuhaotian/the-pair/code-review"><img src="https://agentmods.dev/badge/skills/timwuhaotian/the-pair/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/timwuhaotian/the-pair/code-review"><img src="https://agentmods.dev/badge/skills/timwuhaotian/the-pair/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 216 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.00012 $0.00216
Opus 5.5 $0.00005 $0.00086
Sonnet 5.5 $0.00002 $0.00043
Haiku 4.5 $0.00001 $0.00022

Measured 1mo ago against content hash 28656b527c65, 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.

.opencode/skills/code-review/SKILL.md · 49 lines

What it actually says

What I do

  • Review code changes for bugs, security issues, and performance problems
  • Check code style and best practices
  • Identify potential edge cases
  • Suggest specific improvements with code examples

Review checklist

Security

  • SQL injection vulnerabilities
  • XSS vulnerabilities
  • Authentication/authorization issues
  • Sensitive data exposure
  • Input validation

Performance

  • Inefficient algorithms
  • Unnecessary database queries
  • Missing indexes
  • Memory leaks
  • Blocking operations

Code Quality

  • Error handling
  • Edge cases
  • Code duplication
  • Naming clarity
  • Test coverage

Output format

For each issue found, provide:

  1. Severity (Critical/High/Medium/Low)
  2. Location (file:line)
  3. Description of the issue
  4. Specific code fix
  5. Explanation of why the fix works
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 · 49 lines · 12 tokens per session scan A 28656b527c65

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository timwuhaotian/the-pair (384 stars, last pushed 5d ago), licensed Apache-2.0. It adds 12 tokens to every session and 216 once invoked, about $0.0000 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

moai-ref-cross-model-audit

Cross-model audit convergence reference for the plan-auditor and sync-auditor agents. Documents how to invoke the auditmulti MCP tool to fan a code review out across the Claude subscription, codex, and GLM (z.ai) backends, converge their independent verdicts, and fold the resulting per-backend verdicts + disagreement…

modu-ai/moai-adk · 96 tokens

gh-pr-review

Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks…

CherryHQ/cherry-studio · 147 tokens

find-simplifications

Use when asked to find or plan Cherry Studio cleanup, simplification, refactoring, dead-code removal, duplicated state removal, unnecessary APIs, speculative generality, or library replacements, especially when the result should become evidence-backed proposed Agent Notes.

CherryHQ/cherry-studio · 53 tokens

github-review-pr

Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents. Use this skill whenever the user wants to review a PR, asks for code review on a pull request, mentions "review PR", "check this PR", "look at pull request", or references a PR number or GitHub PR URL. Do NOT use for…

feiskyer/claude-code-settings · 90 tokens

moai-foundation-quality

TRUST 5 quality principles and how MoAI enforces them through agents, the 3-level harness, /moai gate, and sync-auditor scoring. Use for code review, quality gate checks, coverage targets, or TRUST 5 compliance.

modu-ai/moai-adk · 58 tokens

plan-eng-review

Eng manager-mode plan review. Lock in the execution plan — architecture, data flow, diagrams, edge cases, test coverage, performance. Walks through issues interactively with opinionated recommendations. Use when asked to "review the architecture", "engineering review", or "lock in the plan". Proactively suggest when…

GCWing/BitFun · 116 tokens