agentleFS
cukascukas/claudes-ai-buddies/skills/opencode/SKILL.md

opencode

Skill9 starsChanged 8 months agoMITView on GitHub

Ask OpenCode anything — brainstorm, delegate tasks, get a second opinion

  • Installs packages

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use github-repo-management, touchdesigner-mcp and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • math-incSkill

    github-repo-management

    Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.

    Also in 14 projects that use this

  • john-data-chenSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 7 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 8 projects that use this

  • Tommy-ywSkill

    songwriting-and-ai-music

    Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

    Also in 10 projects that use this

  • mae616Skill

    p5js

    p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。

    Also in 10 projects that use this

  • +4 more from math-inc

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the wrapper script via Bash.

    line 12
  2. Distinctive:

    Determine the working directory: Default to the current project root.

    line 26
  3. Distinctive:

    Show OpenCode's raw response directly: Use this format — show their actual words, don't paraphrase or summarize:

    line 29
  4. Distinctive:

    Add your own take only if asked: If the user wants a comparison or synthesis, add it after OpenCode's response.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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

FlagDefaultDescription
--prompt(required)The question or task for OpenCode
--cwdcurrent dirWorking directory for OpenCode
--modeexecAlways exec for this skill
--timeoutfrom config (360s)Max seconds to wait
--modelfrom configOverride the model (format: provider/model, e.g. minimax/MiniMax-M2.5)

Model configuration

Default (zero config): Uses opencode/minimax-m2.5-free — works without any API key.

Custom model (persistent): Set opencode_model in ~/.claudes-ai-buddies/config.json:

{ "opencode_model": "minimax/MiniMax-M2.5" }

Per-invocation override: Pass --model to the script:

bash "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-run.sh" \
  --prompt "..." --model "minimax/MiniMax-M2.7-highspeed"

List available models: opencode models or opencode models minimax

Example invocations

  • /opencode "What's the best way to implement a rate limiter in Go?"
  • /opencode "Review this architecture: we have a React frontend calling a FastAPI backend with Redis caching"
  • /opencode --model minimax/MiniMax-M2.7 "Write a bash script that finds duplicate files by hash"
  • /opencode "Debug this error: TypeError: Cannot read property 'map' of undefined"

Setup for new users

  1. Install: brew install opencode
  2. (Optional) Configure a provider: opencode providers login -p minimax
  3. (Optional) Set default model in ~/.claudes-ai-buddies/config.json

Without steps 2-3, the free opencode/minimax-m2.5-free model is used automatically.

Rules

  • Never pass secrets or API keys in the prompt.
  • Respect timeouts — if OpenCode times out, tell the user and suggest checking their model with opencode models.
  • Frame the output clearly — the user should always know which AI produced which response.
  • Don't modify files based on OpenCode's suggestions without user confirmation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.