
pcx-wave/opencode-skill
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Claude Code skill — delegate coding tasks to Opencode, supervise via git diff & save 50-90% Claude token usage
Обзор
A Claude Code skill that delegates coding tasks to and supervises the result — the same pattern as vibe-skill and gemini-skill. When you type /opencode in Claude Code, this skill: 1. Decomposes the task into atomic sub-tasks (if needed) 2. Writes a self-contained prompt for OpenCode 3. Runs opencode-delegate — a script that launches OpenCode CLI in non-interactive mode 4. Streams structured output: [read], [edit], [write], [search], [shell], [opencode] 5. Runs post-run syntax checks on modified .py, .js, .json, .sh files automatically 6. Reports the git diff and any issues to you 7. Appends a structured JSON entry to ~/.local/share/delegate-runs.
README
Показан фрагмент оригинального README. Открыть оригинал.
opencode-skill
Claude orchestrates. OpenCode codes. You review the diff.
A Claude Code skill that delegates coding tasks to OpenCode CLI and supervises the result — the same pattern as vibe-skill and gemini-skill.
What it does
When you type /opencode in Claude Code, this skill:
- Decomposes the task into atomic sub-tasks (if needed)
- Writes a self-contained prompt for OpenCode
- Runs
opencode-delegate— a script that launches OpenCode CLI in non-interactive mode - Streams structured output:
[read],[edit],[write],[search],[shell],[opencode] - Runs post-run syntax checks on modified
.py,.js,.json,.shfiles automatically - Reports the git diff and any issues to you
- Appends a structured JSON entry to
~/.local/share/delegate-runs.jsonl(tokens, cost, duration, exit code)
Prerequisites
- OpenCode CLI installed (
opencode --version) - Claude Code with skills enabled
python3available (for the streaming parser and syntax checks)- A git repository to work in
Installation
git clone https://github.com/pcx-wave/opencode-skill.git && cd opencode-skill && mkdir -p ~/tools ~/.claude/skills/opencode ~/.claude/skills/opencodeon ~/.claude/skills/opencodeoff ~/.claude/skills/opencodestatus ~/.claude/skills/opencode-model-pick ~/.claude/skills/opencode-model-clear && ln -sf "$(pwd)/tools/opencode-delegate" ~/tools/opencode-delegate && ln -sf "$(pwd)/tools/delegate-report" ~/tools/delegate-report && chmod +x ~/tools/opencode-delegate ~/tools/delegate-report && ln -sf "$(pwd)/SKILL.md" ~/.claude/skills/opencode/SKILL.md && ln -sf "$(pwd)/OPENCODEON.md" ~/.claude/skills/opencodeon/SKILL.md && ln -sf "$(pwd)/OPENCODEOFF.md" ~/.claude/skills/opencodeoff/SKILL.md && ln -sf "$(pwd)/OPENCODESTATUS.md" ~/.claude/skills/opencodestatus/SKILL.md && ln -sf "$(pwd)/OPENCODEMODELPICK.md" ~/.claude/skills/opencode-model-pick/SKILL.md && ln -sf "$(pwd)/OPENCODEMODELCLEAR.md" ~/.claude/skills/opencode-model-clear/SKILL.md
Step-by-step
# 1. Clone this repo
git clone https://github.com/pcx-wave/opencode-skill.git
cd opencode-skill
# 2. Install the scripts (symlinks — stay in sync with git pull)
mkdir -p ~/tools
ln -sf "$(pwd)/tools/opencode-delegate" ~/tools/opencode-delegate
ln -sf "$(pwd)/tools/delegate-report" ~/tools/delegate-report
chmod +x ~/tools/opencode-delegate ~/tools/delegate-report
# 3. Install the skills for Claude Code
mkdir -p ~/.claude/skills/opencode ~/.claude/skills/opencodeon ~/.claude/skills/opencodeoff \
~/.claude/skills/opencodestatus ~/.claude/skills/opencode-model-pick ~/.claude/skills/opencode-model-clear
ln -sf "$(pwd)/SKILL.md" ~/.claude/skills/opencode/SKILL.md
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add pcx-wave/opencode-skill