opencode

opencode is a skill for Claude Code, Codex from cukas/claudes-ai-buddies. It costs 17 tokens per session (947 once invoked), scanned A, original, MIT.

A guide for asking OpenCode, a separate command-line AI assistant, to brainstorm, delegate work, or provide another opinion.

In plain words
What is it for?
Use it to send a prompt and project directory to OpenCode, then read and present the result.
Why use it?
It gives a coding task an additional AI perspective and can use different AI providers and models.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the claudes-ai-buddies plugin — 12 skills, 1 command, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cukas/claudes-ai-buddies/opencode
Any agent
npx skills add cukas/claudes-ai-buddies --skill opencode
Clone the repo
git clone --depth 1 https://github.com/cukas/claudes-ai-buddies

Made for: Claude Code, Codex.

Or install claudes-ai-buddies, the plugin that ships this one along with the rest of its 12 skills, 1 command, 1 hook.

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 opencode

README.md
[![agentmods](https://agentmods.dev/badge/skills/cukas/claudes-ai-buddies/opencode.svg)](https://agentmods.dev/skills/cukas/claudes-ai-buddies/opencode)
Your own site
<a href="https://agentmods.dev/skills/cukas/claudes-ai-buddies/opencode"><img src="https://agentmods.dev/badge/skills/cukas/claudes-ai-buddies/opencode.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 947 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00947
Opus 5 $0.00009 $0.00474
Sonnet 5 $0.00003 $0.00189
Haiku 4.5 $0.00002 $0.00095

Measured 5d ago against content hash c3fedcb0beca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

opencode 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 5d 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.

skills/opencode/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/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. IMPORTANT: OpenCode can take 3-6 minutes depending on the model and task complexity. You MUST set the Bash tool's timeout parameter to 420000 (7 minutes) to prevent Claude Code from killing the process before OpenCode finishes.

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. Show OpenCode's raw response directly. Use this format — show their actual words, don't paraphrase or summarize:
🟢 **OpenCode:**
> [their full response here, verbatim, as a blockquote]
  1. Add your own take only if asked. If the user wants a comparison or synthesis, add it after OpenCode's response. Otherwise, let OpenCode's voice stand on its own.

Options

Flag Default Description
--prompt (required) The question or task for OpenCode
--cwd current dir Working directory for OpenCode
--mode exec Always exec for this skill
--timeout from config (360s) Max seconds to wait
--model from config Override the model (format: provider/model, e.g. minimax/MiniMax-M2.5)

Read the full file on GitHub · 86 lines

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. 5d ago First seen · 86 lines · 17 tokens per session scan A c3fedcb0beca

Subscribe to this mod's changes

opencode is a skill published in the GitHub repository cukas/claudes-ai-buddies (9 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 947 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

mindstorming

Use before drafting any non-code knowledge-work deliverable, including strategic memos, business reviews, OKR defences, PRDs, decision docs, briefing docs, exec talking points, Slack messages to leadership, frameworks, post-mortems, one-pagers, BRDs. Triggers on asks like "help me write up X", "draft this memo", "what…

rohitgehe05/mindpowers · 153 tokens

optimize-claude-opus-5-prompts

Clarify, audit, and rewrite rough or existing prompts for Claude Opus 5 using Anthropic's official prompting guidance. Use when a user asks to optimize, improve, migrate, debug, or design a prompt, system prompt, or agent harness for Claude Opus 5 (claude-opus-5), including requests phrased as Opus 5 prompt…

IchenDEV/prompt-optimizer-plugins · 182 tokens

optimize-claude-fable-5-prompts

Clarify, audit, and rewrite rough or existing prompts for Claude Fable 5 using Anthropic's official prompting guidance. Use when a user asks to optimize, improve, migrate, debug, or design a prompt for Claude Fable 5, including requests phrased as Fable or Fabel prompt optimization, Fable/Fabel 提示词优化, or when an…

IchenDEV/prompt-optimizer-plugins · 137 tokens

optimize-deepseek-v4-prompts

Clarify, audit, and rewrite rough or existing prompts specifically for DeepSeek-V4 Pro and Flash using the DeepSeek-AI V4 technical report as the model-specific evidence base. Use when a user asks to optimize, improve, rewrite, debug, migrate, or design a DeepSeek-V4 prompt, including requests phrased as DeepSeek…

IchenDEV/prompt-optimizer-plugins · 151 tokens

optimize-gemini-prompts

Clarify, audit, and rewrite rough or existing prompts for the Gemini model family using Google AI's official prompt design strategies. Use when a user asks to optimize, improve, rewrite, debug, migrate, or design a Gemini prompt, including requests phrased as Gemini 提示词优化, or when an underspecified Gemini prompt needs…

IchenDEV/prompt-optimizer-plugins · 126 tokens

optimize-gpt-5-6-prompts

Clarify, audit, and rewrite rough or existing prompts for GPT-5.6 Sol and the GPT-5.6 family using OpenAI's official prompting guidance. Use when a user asks to optimize, improve, rewrite, debug, migrate, or design a GPT-5.6 prompt, including requests phrased as GPT-5.6 提示词优化, or when an underspecified prompt needs…

IchenDEV/prompt-optimizer-plugins · 135 tokens