Skip to content
opencode-review logo

OpenCode Review

opencode-review

Run OpenCode (MiniMax) and Claude code reviews iteratively until both find no issues. Use after making changes and before committing.

SKILL.md

Full skill instructions

OpenCode Review

Iterative dual-review pipeline using both OpenCode (MiniMax M2.5) and Claude. Runs reviews, fixes issues, and repeats until both reviewers are satisfied.

Usage

/​opencode_review

Behavior

1. Run OpenCode Review

~/​.opencode/​bin/​opencode run -m opencode/​minimax-m2.5-free "/​review" 2>&1

Capture the full output. Parse it for:

  • Specific file and line references
  • Issue severity (bugs, style, security, performance)
  • Actionable suggestions vs informational comments

If opencode is not found at ~/​.opencode/​bin/​opencode, tell the user to install it (curl -fsSL https://raw.githubusercontent.com/​opencode-ai/​opencode/​refs/​heads/​main/​install | bash) or add it to PATH.

2. Run Claude Self-Review

Review the same uncommitted changes yourself:

git diff
git diff --cached

Check for:

  • Logic errors and bugs in the changed code
  • Security issues (injection, exposed secrets, missing validation)
  • Consistency with existing code patterns (read surrounding code if needed)
  • Missing error handling at system boundaries
  • Test coverage gaps for new/​changed functionality

3. Consolidate Issues

Merge findings from both reviews. Deduplicate — if OpenCode and Claude flag the same issue, count it once. Categorize:

  • Must fix: Bugs, security issues, logic errors
  • Should fix: Style violations, missing edge cases, unclear code
  • Informational: Suggestions, minor nits, opinions

4. Fix Must-Fix and Should-Fix Issues

For each actionable issue:

  1. Read the file and understand the context
  2. Apply the fix
  3. Keep fixes minimal — only address the flagged issue

Do NOT fix informational/​nit issues unless trivially adjacent to a real fix.

5. Re-Run Both Reviews

After fixing, run both reviewers again:

~/​.opencode/​bin/​opencode run -m opencode/​minimax-m2.5-free "/​review" 2>&1

And repeat your own Claude review of the current diff.

6. Iterate

If new issues are found:

  • Fix them and re-run (back to step 5)
  • Keep iterating until both reviewers are clean
  • If you're unsure how to fix an issue or uncertain about the intended behavior, ask the user before guessing

If both reviews come back clean: proceed to summary.

7. Summary

## OpenCode Review Results

### Iteration 1
**OpenCode found:** 3 issues (1 bug, 2 style)
**Claude found:** 2 issues (1 logic error, 1 missing null check)
**Deduplicated total:** 4 issues
**Fixed:** 4/​4

### Iteration 2
**OpenCode found:** 0 issues
**Claude found:** 0 issues

### Status: CLEAN

### Fixes Applied
1. `src/​api/​tournaments.ts:45` — Added null check for optional `season` field (bug)
2. `src/​components/​Bracket.tsx:112` — Fixed off-by-one in round calculation (logic error)
3. `src/​utils/​scoring.ts:30` — Consistent naming: `calcScore` → `calculateScore` (style)
4. `src/​api/​tournaments.ts:78` — Added input validation on `status` parameter (missing check)

### Remaining (informational only)
- OpenCode suggested extracting lines 45-60 into a helper — skipped (one-time operation)

Ready to commit.

Important Rules

  • Keep iterating until both reviewers are clean. If stuck on an issue, ask the user.
  • Fix source code, not symptoms. If OpenCode flags a symptom, trace to the root cause.
  • Don't fix nits in a loop. Informational items are reported but not acted on — they don't trigger another iteration.
  • Both reviewers must be clean to declare success. One clean + one with issues = keep iterating.
  • Don't argue with OpenCode. If it flags something legitimate, fix it. If it flags something wrong, note it in the summary as a false positive and move on.
  • Never suppress warnings by adding ignore comments (e.g., // eslint-disable, @ts-ignore) unless the user explicitly asked.

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View