From OpenCode Companion
Runtime contract for the opencode CLI companion used by the opencode Claude Code plugin.
How this skill is triggered — by the user, by Claude, or both
Slash command
/opencode:opencode-cli-runtimeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the user asks to delegate review, rescue, status, or setup work to the local `opencode` CLI.
Use this skill when the user asks to delegate review, rescue, status, or setup work to the local opencode CLI.
The plugin delegates to opencode-companion, which wraps the local opencode executable. In a source checkout, the same runtime is available at plugins/opencode/scripts/opencode-companion.mjs.
opencode has no --sandbox flag. Read-only work runs on opencode's built-in plan agent (no file modifications). Write work runs on the built-in build agent (full read/write/execute). When OPENCODE_COMPANION_TRUSTED is set (path-delimited list), writes are only allowed under a listed workspace; otherwise writes are unrestricted and opencode's own build permission model applies.
Background jobs are stored under ${OPENCODE_COMPANION_DATA}/jobs/<workspace-hash>/, then ${CLAUDE_PLUGIN_DATA}/jobs/<workspace-hash>/, then the OS temp directory.
opencode-companion setup [--json] [--auth-check]opencode-companion review [--background] [--base <ref>] [--model <p/m>] [extra instructions]opencode-companion adversarial-review [--background] [--base <ref>] [--model <p/m>] [extra instructions]opencode-companion rescue [--background] [--write] [--continue] [--session <id>] [--model <p/m>] <task>opencode-companion status [job-id]opencode-companion result <job-id>opencode-companion cancel <job-id>opencode-companion stdout/stderr verbatim for setup, status, result, and cancel.plan agent) unless the user requests a write, fix, patch, implementation, refactor, create, delete, or similar file-changing task.--continue resumes the last opencode session; --session <id> resumes a specific one.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub udeope/opencode-plugin-cc --plugin opencode