opencode-delegate
Что он делает
Этот инструмент позволяет поручить задачи по программированию другому инструменту, OpenCode CLI. Вы пишете инструкции, OpenCode пишет код, а вы проверяете результат и утверждаете его.
Когда использовать
- ✓Когда вы хотите, чтобы другой инструмент написал для вас конкретный код.
- ✓Когда вы хотите проверить код до того, как он будет окончательно принят.
- ✓Когда вы хотите, чтобы код писался в отдельной среде для проверки.
Ссылка на скилл
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/opencode-delegate/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Поручи OpenCode написать Python-функцию, которая переводит градусы Цельсия в градусы Фаренгейта.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Вы составляете подробное техническое задание с инструкциями. Инструмент OpenCode выполняет их и генерирует код. Затем вы проверяете сгенерированный код, прежде чем его принять.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Bundled upstream support
Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.
OpenCode Delegate
When to Use
- You want to delegate a bounded coding task to a separate
opencodeimplementer (OpenCode) and then review its diff yourself. - The user explicitly asked for delegation to this implementer.
You are the orchestrator. This skill lets you hand a bounded coding task to a separate implementer — the OpenCode CLI — then review what it produced and land it yourself. You write the brief and own the judgment; OpenCode does the typing in its own session; you verify and commit.
Nothing here is specific to one orchestrating agent. The loop needs only the ability to run a shell command and read a file, so any agent with those two capabilities — Claude Code, OpenCode driving a sibling session, or a comparable one — can drive it. (It is designed for and run on Claude Code; treat other orchestrators as designed-for, not yet proven.)
When NOT to use this
- The task is small enough to just do inline — delegation overhead is not worth it.
- The
opencodeCLI is not installed or not authenticated (runopencode auth login). - You want to write the code yourself, or you only need a review (use the
planagent via--read-only).
Prerequisites (check once)
opencode --versionsucceeds. If not, install (npm i -g opencode-ai, or the native installer from opencode.ai) andopencode auth login.- Confirm which
opencodeis on PATH.command -v opencodeshows the active binary andopencode --versionits version. The relay records the version it ran intoresult.json, so a stale binary is visible after the fact. - A model provider is authenticated —
opencode auth listshows at least one credential. - You are in (or will point
--cdat) the target git repository.
Choose the implementer model
OpenCode has no safe default — a bare opencode run errors — so a fresh run needs a model via
--model or a fleet --lane that sets one (a resumed run inherits its session's model). Naming the
model is the one decision a single-model backend like codex-delegate never had, and it has two owners:
- The human owns which models are allowed.
opencode modelslists hundreds of entries, most billed per token (OpenRouter and the like); only the human knows which are their flat-rate subscriptions, and the CLI can't tell them apart. So the usable set is theirs — ideally stated once in the repo'sAGENTS.mdor theirCLAUDE.md(e.g. "delegate mechanical work toopencode-go/…, hard logic to…"). - You, the orchestrator, pick per task — from that set. Match the model to the brief: a cheap, fast model for a mechanical sweep (rename, migration, removal); a strong one for a subtle bug or a money/security path.
- If no usable set is stated, ask — don't guess. Guessing from the catalog risks a metered model and a surprise bill. Name the constraint to the human and let them choose.
More depth: references/writing-the-brief.md.
The loop
Run these five steps per task. Steps 1, 4, and 5 are your judgment; 2 and 3 are mechanical.
1. Write the brief
OpenCode sees only the text you send plus what it can read from the working tree — no chat history, no shared context. Everything the task needs goes in the brief: the goal, the current state, what to change, what to leave untouched, the project's actual gate commands (discover them from the repo's AGENTS.md/CLAUDE.md/Makefile — do not assume), and a report contract. Tell OpenCode it will not commit (you will). Keep one task per brief. Full guidance and a template: references/writing-the-brief.md.
2. Dispatch
Send the brief to OpenCode with the bundled helper. It wraps opencode run, captures the run, and
writes a structured result.json — so your only job is "run a command, read a file." (<skill-dir>
below is this skill's installed directory — the folder containing this SKILL.md. Claude Code prints
it as "Base directory for this skill" when the skill loads; on other orchestrators use that same
directory — if unsure where it landed, run find ~ -name relay.mjs -path '*opencode-delegate*' and
substitute the directory above it.)
…
Частые вопросы
Что такое OpenCode CLI?
Это инструмент командной строки, который может писать код по вашим инструкциям.
Нужно ли что-то устанавливать?
Да, на вашей системе должен быть установлен и настроен OpenCode CLI.
Сохраняет ли OpenCode код автоматически?
Нет, OpenCode пишет код в отдельной среде. Проверяете и решаете, сохранять ли код, именно вы.
Подробности
Оригинальное описание автора
Delegate coding tasks to the OpenCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
Популярность
- Звёзды на GitHub
- 48k
- Место в рейтинге
- #5381
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
00-andruia-consultant
48kПомогает агенту начинать или улучшать ИИ-проекты: анализирует код, подбирает инструменты и составляет план на испанском.
007
48kАгент проводит аудит безопасности и моделирование угроз для защиты проектов.
10-andruia-skill-smith
48kПомогает агенту создавать и улучшать ИИ-инструменты: описание работы, документация и проверка структуры.
20-andruia-niche-intelligence
48kАгент составляет обзор отрасли: контекст, правила, паттерны использования и риски по надёжным источникам.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.