Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cli-opencode

БесплатноБез исполняемых скриптовНе проверен

OpenCode CLI orchestrator: external dispatch, in-OpenCode parallel sessions, cross-AI handback with full runtime context.

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

OpenCode CLI Orchestrator - Full-Runtime Cross-AI Dispatch

CRITICAL: SELF-INVOCATION PROHIBITED

If you run this skill inside OpenCode (TUI / acp / serve / run modes; detection signals in §8), you MUST refuse to load it and return the documented error message instead of dispatching. This skill dispatches to the OpenCode CLI binary (opencode). Only an explicit "parallel detached" request is exempt. It must intentionally spawn a SEPARATE session with its own session id and state directory.

A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only, never self-invocation.

Orchestrate OpenCode 2's opencode run from external AI assistants (Claude Code, OpenCode, raw shell) AND from inside an existing OpenCode session for parallel detached workers. Three documented use cases keep the cycle risk explicit and give every dispatch path a copy-paste invocation shape.

Core Principle: The calling AI stays the conductor. Delegate to OpenCode for what it does best: the full plugin, skill, and MCP runtime in a one-shot dispatch. Validate and integrate the output.


1. WHEN TO USE

Activation Triggers

  • Full plugin / skill / MCP runtime (use case 1): calling AI is Claude Code / OpenCode / Copilot / raw shell AND the task needs the project's spec folders and continuity docs, or every plugin/skill/MCP tool in a one-shot dispatch. Includes @deep-research / @deep-review agent loops with externalized state under .opencode/specs/.
  • Parallel detached session (use case 2): operator already inside OpenCode (TUI / web / serve / acp) AND wants a SEPARATE session with its own session id and state directory for ablation, worker farm, or parallel research. Prompt explicitly mentions "parallel detached", "ablation suite", "worker farm", "parallel research", "spawn detached", or "share URL".
  • Agent dispatch: Use this when a task matches a specialized OpenCode agent.
    • Primary agents (directly invokable via --agent): plan (built-in), orchestrate. general is a subagent; omit --agent to run it.
    • The orchestrate primary fully dispatches generic subagents: context, review, write, debug, ai-council.
    • Their parent /deep:* command owns the loop executors end-to-end: deep-research, deep-review, prompt-improver.
    • orchestrate may make exactly one bounded hand-off to a recognized loop request, but never manages the loop.
    • See §3 for the full contract.
  • Cross-repo dispatch: a session in repo A dispatches into repo B's plugin/skill/MCP runtime via --server <url> and a start-in-directory cd.

When NOT to Use

  • You ARE OpenCode already. If your runtime is OpenCode (detection signals in §8), this skill refuses to load.
  • Self-invocation creates a circular dispatch loop and burns tokens for no value. The cli-X family is exclusively for cross-AI delegation.
  • Only an explicit "parallel detached" request is exempt; it must intentionally spawn a SEPARATE session id and state directory (use case 2).
  • Without that qualifier, the smart router refuses per ADR-001.
  • Simple, quick tasks where opencode run overhead is not worth it.
  • Tasks that only need a raw model dispatch. Use a sibling cli-* skill.
  • Tasks requiring interactive TUI or web UI (use opencode directly instead of opencode run).
  • Context already loaded and understood by the calling AI.
  • Tasks where the OpenCode binary is not installed at the expected path.

2. SMART ROUTING

The cli-external-orchestration hub routes an OpenCode dispatch here: the request names OpenCode, opencode run, a parallel detached session or a full plugin runtime, and the hub's cli-opencode mode signal selects this packet. A session already inside OpenCode is refused unless the request asks for a parallel detached session.

The hub ROUTER.md names the two leaves an OpenCode dispatch starts from. Three use cases route here: external dispatch, parallel detached session and cross-AI handback. Inside this packet the ALWAYS tier loads first: references/cli-reference.md and assets/prompt-quality-card.md.

A request that maps to no use case returns UNKNOWN_FALLBACK with a disambiguation checklist rather than a silent default. Read ROUTER.md before selecting skill-local resources; open only the matched files.


3. HOW IT WORKS

Execution Ownership

This packet owns user-facing routing, the OpenCode binary probe, prompt construction and the self-invocation guard. For research and review lineages, the shared deep-loop runtime at ../../system-deep-loop/runtime/scripts/fanout-run.cjs owns process construction and execution, using executor kind cli-opencode. That runner accepts only the research and review loop types, so a single build or doc dispatch uses the child dispatch envelope in providers-and-models.md §5. Do not add a packet-local wrapper, spawn pat

Полный SKILL.md на GitHub

Установить cli-opencode в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Glob
Grep

Вложенные файлы

README.mdROUTER.mdassets/permissions-matrix.example-packet-local.jsonassets/permissions-matrix.example-readonly.jsonassets/permissions-matrix.example-repo-wide.jsonassets/permissions-matrix.schema.jsonassets/prompt-quality-card.mdassets/prompt-templates.mdbenchmark/README.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/README.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/failed-runs.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/findings-and-recommendations.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/results.csvbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.jsonbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/skill-benchmark-report.mdbenchmark/reports/2026-07-29--manual-testing-playbook--goal-hook/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--cli-invocation/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-10/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/findings-and-recommendations.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/results.csvbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/skill-benchmark-report.jsonbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/skill-benchmark-report.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-11/source.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/README.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/failed-runs.mdbenchmark/reports/2026-08-08--manual-testing-playbook--opencode-12/findings-and-recommendations.md

FAQ

Что делает скилл cli-opencode?

OpenCode CLI orchestrator: external dispatch, in-OpenCode parallel sessions, cross-AI handback with full runtime context.

Как установить скилл cli-opencode?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cli-opencode запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cli-opencode с