← ClaudeAtlas

opencodelisted

Ask OpenCode anything — brainstorm, delegate tasks, get a second opinion
Nbofs8398/claudes-ai-buddies · ★ 0 · Code & Development · score 72
Install: claude install-skill Nbofs8398/claudes-ai-buddies
# /opencode — Peer AI via OpenCode CLI You have access to OpenCode CLI as a peer AI. It supports multiple providers and models (MiniMax, Anthropic, Google, etc.). Use it to brainstorm, delegate tasks, get second opinions, or ask questions from a different AI perspective. ## How to invoke Run the wrapper script via Bash: ```bash bash "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-run.sh" \ --prompt "YOUR PROMPT HERE" \ --cwd "/path/to/relevant/directory" \ --mode exec ``` Then read the output file path it prints and present the results to the user. ## Step-by-step workflow 1. **Parse the user's request.** The user says `/opencode "some prompt"` or `/opencode` followed by a question. 2. **Determine the working directory.** Default to the current project root. If the user references a specific repo or directory, use that. 3. **Run opencode-run.sh** with `--mode exec` and the user's prompt via the Bash tool. 4. **Read the output file** using the Read tool. The script prints the output file path to stdout. 5. **Present the result** to the user. Frame it as "OpenCode's perspective" or "OpenCode says:" — make it clear this came from the peer AI. 6. **Synthesize if appropriate.** If the user asked for a comparison or second opinion, provide your own perspective alongside OpenCode's. ## Options | Flag | Default | Description | |------|---------|-------------| | `--prompt` | (required) | The question or task for OpenCode | | `--cwd` | current dir | Working directory for OpenCod