opencode

opencode is a skill for Claude Code, Codex from donaldfilimon/abi. It costs 61 tokens per session (726 once invoked), scanned B, original, Apache-2.0.

A setup and operations guide for using abi with OpenCode, an AI coding tool. It explains how OpenCode finds skills, terminal-style commands, and MCP servers, a standard way for tools to communicate with AI applications.

In plain words
What is it for?
Use it to configure OpenCode, add or edit skills, inspect available slash commands, and connect the documented MCP servers.
Why use it?
It removes uncertainty when a skill does not load or when a server or command seems missing. It also distinguishes the commands that really exist from ones that are not provided.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Good fit Use it to configure OpenCode, add or edit skills, inspect available slash commands, and connect the documented MCP servers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/donaldfilimon/abi/opencode
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.

Any agent
npx skills add donaldfilimon/abi --skill opencode
Clone the repo
git clone --depth 1 https://github.com/donaldfilimon/abi

Made for: Claude Code, Codex.

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/donaldfilimon/abi/opencode/github.svg)](https://agentmods.dev/skills/donaldfilimon/abi/opencode)
Your own site
<a href="https://agentmods.dev/skills/donaldfilimon/abi/opencode"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/opencode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opencode

Your own site · 80×15
<a href="https://agentmods.dev/skills/donaldfilimon/abi/opencode"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/opencode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.00726
Opus 5.5 $0.00024 $0.00290
Sonnet 5.5 $0.00012 $0.00145
Haiku 4.5 $0.00006 $0.00073

Measured 15d ago against content hash a1d92c0e6659, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

opencode scanned grade B with 1 finding 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 15d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Global: `~/.config/opencode/opencode.jsonc` + `~/.cursor/mcp.json` + `~/.claude.json` + `~/.codex/config.toml` + `~/.grok/config.toml`.
.agents/skills/opencode/SKILL.md · 44 lines

How it starts

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

opencode

opencode loads abi via mechanisms wired in repo-root opencode.json and the .opencode/skills symlink:

  • Skills: .opencode/skills is a symlink to ../.agents/skills, so every canonical skill dir is visible to opencode automatically. No separate allowlist file is required today — editing a skill under .agents/skills/<name>/ is enough.
  • Agent TUI slash commands: live in the Rust REPL, not an OpenCode JSON map. The current surface is /help, /model, /profile, /sea, /status, /context, /history, /reset, /features, /clear, and /quit plus documented aliases. Workflow skills for Git or session planning do not add /diff, /commit, /save, or /load to the binary.
  • MCP servers: standardized core set across CLIs (post-2026-09 cleanup): abi-mcp (via full-path or ./mcp/launcher.sh stdio), skill-loop (@0.3.3 pinned), context7, fetch (uvx), filesystem (~/.abi/ with ~/.abi/** allow), github (unauth ok), memory, playwright. Global: ~/.config/opencode/opencode.jsonc + ~/.cursor/mcp.json + ~/.claude.json + ~/.codex/config.toml + ~/.grok/config.toml. Project (abi/): .mcp.json, .cursor/mcp.json, opencode.json, .codex/config.toml use relative launcher + minimal (abi-mcp + skill-loop). Comments present for key-requiring servers; enabled=false for brave/postgres/sentry/supabase.
  • Instructions: opencode.json instructions points at AGENTS.md, tasks/lessons.md, and tasks/todo.md.

To add a skill for opencode

  1. Author/complete the skill under .agents/skills/<name>/SKILL.md.
  2. Run tools/check_skills.sh <name> to confirm frontmatter is valid.
  3. Skills auto-reload from the symlink — no restart needed for content edits.

Gotchas

  • .opencode/skills is a symlink; editing a skill there edits the canonical copy.
  • skill-loop writes .skill-telemetry/registry.json plus amendment proposals under .skill-telemetry/ automatically (content-drift proposals). Do not hand-edit the registry. (.skill-telemetry/ is gitignored.)
  • The .agents/skills/sync-clis/launch.sh syncer updates in-repo .claude/skills/ and .grok/ from the canonical tree (creates missing skill dirs; skip-list skills are not copied). opencode needs no sync (symlink), but Claude Code / grok do.

Read the full file on GitHub · 44 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 15d ago First seen · 44 lines · 61 tokens per session scan B a1d92c0e6659

Subscribe to this mod's changes

opencode is a skill published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 61 tokens to every session and 726 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

opencode compared with skills from other repositories

opencode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencodedonaldfilimon/abiSkill185d agoApache-2.0B61Claude Code, Codex
clinical-reportssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A71Claude Code
imaging-data-commonssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A62Claude Code, Codex
cancer-genomics-analysissynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A68Claude Code, Codex
clinical-decision-supportsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A97Claude Code
clinical-imagingsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A69Claude Code, Codex
curated-bio-datasetssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A79Claude Code, Codex