← ClaudeAtlas

opencode-reviewlisted

Code review via OpenCode — review uncommitted changes, branches, or commits
Nbofs8398/claudes-ai-buddies · ★ 0 · Code & Development · score 72
Install: claude install-skill Nbofs8398/claudes-ai-buddies
# /opencode-review — Code Review via OpenCode Get a code review from OpenCode CLI. Reviews uncommitted changes by default, or specify a branch or commit. ## How to invoke Run the wrapper script via Bash: ```bash bash "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-run.sh" \ --prompt "Additional review instructions (optional)" \ --cwd "/path/to/repo" \ --mode review \ --review-target "uncommitted" ``` Then read the output file and present the review to the user. ## Step-by-step workflow 1. **Determine what to review:** - No arguments → review uncommitted changes (`--review-target uncommitted`) - User specifies a branch → `--review-target branch:branch-name` - User specifies a commit → `--review-target commit:SHA` 2. **Determine working directory.** Must be inside a git repository. 3. **Build the prompt.** The wrapper automatically fetches the diff and builds a review prompt. If the user provides extra instructions (e.g., "focus on security"), pass them as `--prompt`. 4. **Run opencode-run.sh** with `--mode review` via the Bash tool. 5. **Read the output file** using the Read tool. 6. **Present the review** to the user. Frame it as "OpenCode's code review:" with clear sections. 7. **Add your own perspective** if you see issues OpenCode missed, or agree with specific points. ## Options | Flag | Default | Description | |------|---------|-------------| | `--prompt` | (optional) | Extra review instructions | | `--cwd` | current dir | Working directory (must be a g