К основному содержанию
скилл CX Codex

setup · szarkans — скилл для Claude Code: что делает и как установить

Пошагово подключает независимые модели-судьи в плагине multi и настраивает профили ревью через скрипт диагностики.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add szarkans/multi --skill setup -a claude-code
Открыть на GitHub

Что делает setup

Скилл настраивает окружение плагина multi для перекрёстной проверки кода несколькими нейросетями. При старте скрипт probe.sh проверяет установленные консольные утилиты, активные авторизации и переменные окружения. Он находит рабочие сессии Codex, OpenCode, Gemini, утилиты Antigravity или Kilo Code, а также шлюзы OpenRouter, 9router или Moonshot.

Все параметры хранятся в файле $MULTI_HOME/config.toml (по умолчанию путь ~/.config/multi/config.toml), а ключи API изолированы в файле providers.env. Скилл помогает выбрать рабочие модели вручную или найти актуальные варианты через поиск в сети. Без хотя бы одного внешнего бэкенда команда /multi:code-review работать откажется: ревью требует минимум одну модель кроме Claude.

Какие задачи решает

  • подключить сторонние LLM-бэкенды для кросс-ревью кода
  • создать файл config.toml и вынести ключи в providers.env
  • проверить установленные CLI и активные сессии через probe.sh
  • выбрать модели и запасные эндпоинты для OpenRouter или OpenCode

Примеры запросов агенту

  • Запусти multi setup и проверь доступные бэкенды
  • Подключи OpenRouter как модель-судью
  • Помоги настроить профили моделей в config.toml

Как установить setup

1Через Skills CLI (Vercel)

npx skills add szarkans/multi --skill setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о setup

Как установить setup в Claude Code?

Выполните команду npx skills add szarkans/multi --skill setup -a claude-code.

Что делает скилл setup?

Он запускает диагностический скрипт probe.sh, генерирует начальный файл $MULTI_HOME/config.toml и по шагам привязывает независимые модели вроде Codex или Gemini.

Зачем для работы multi нужен сторонний бэкенд?

Команда /multi:code-review не запустится без хотя бы одного бэкенда помимо Claude, поскольку логика плагина строится на сопоставлении независимых оценок.

Исходный текст

SKILL.md · MIT
---
name: setup
description: >-
  Walks a user through connecting the judge models this plugin can use — Codex,
  OpenCode, OpenRouter (or any compatible endpoint: 9router, z.ai, Moonshot),
  Gemini — and through picking models, including "research current models for
  me". Use for "multi setup", "set up multi", "configure judges/reviewers/
  backends", "connect 9router", "change/pick models", "onboarding", or whenever
  a probe shows missing backends and the user needs to know what to do about it.
allowed-tools: Bash, Read, Grep, Glob, WebSearch, WebFetch
argument-hint: "[nothing needed — just run it]"
---

# Connect the judges

!`"${CLAUDE_SKILL_DIR}/../../scripts/probe.sh"`

`$SCRIPTS` is whatever the probe printed as `scripts-dir:`. The probe already
ran above — read it, do not run it again. It detected everything detectable:
which CLIs are installed, who is logged in, which keys exist, whether the
OpenCode paid channel is available, whether `kilo-available:` was printed (offer
Kilo Code, `references/kilo.md`), whether `agy-available:` was printed (offer
the Antigravity CLI, `references/agy.md`), and what other AI CLIs live on this
machine. **Never ask the user about anything the probe already answered.**

**On any host other than Claude Code** the line above is plain text, nothing
ran. Your first step is then to run the probe yourself and read its output as
if it were printed here: `<dir of this SKILL.md>/../../scripts/probe.sh` — the
plugin's `scripts/probe.sh`, two directories above the *real* file (resolve
symlinks first: `realpath` of this SKILL.md, then `../../scripts/probe.sh`).

If the line above reads `Shell substitution failed` instead of probe output,
the session is in a git worktree whose shell gate refused the header; the
plugin is fine. Run `"${CLAUDE_SKILL_DIR}/../../scripts/probe.sh"` yourself,
as one plain command with nothing but the path, and read `scripts-dir:` from
that.

The user here is not assumed technical. No jargon, no walls of text, one step
at a time, and never make them feel behind for not having done this already.

## First contact: what this is, in three sentences

Only when little or nothing is connected yet (Claude alone, or one backend).
Returning users with a working lineup skip straight to fixing gaps.

> This plugin asks several different AI models to look at the same thing
> instead of just one — when they agree it's a real signal, and when they
> disagree, that disagreement is exactly what one model alone can never show
> you. You'll use it mostly as `/multi:code-review` (several models review
> your changes before a PR), `/multi:ask` (one question, several independent
> answers), and `/multi:check-if-done` (is this actually finished?).
> Claude is already connected; each backend below adds an independent
> reviewer, most at no extra cost.

## Show them the one file, before anything else

Right after first contact (and for a returning user, whenever they ask to
change models, endpoints or who reviews), put the config in front of them. It
is theirs to edit, and the whole point is that they can. In words, then the
file:

> Everything multi does is set in one file, `$MULTI_HOME/config.toml` (default `~/.config/multi`, or `$XDG_CONFIG_HOME/multi`; the probe's `config:` line names the file):
> which reviewers exist, which models each one tries in order, and which set
> runs by default. Keys are the one thing kept out of it, in
> `providers.env`, so you can share the config without sharing a key.

If the probe printed `config: built-in default`, there is no file yet. Run
`$SCRIPTS/setup.sh init` — it writes the default with a comment on every
field — and **show the user the file it wrote** (`cat` it, trimmed to the
backends and profiles, without the long comment header). Then say in one
sentence what the default does: *"right now a review runs Codex, OpenCode and
OpenRouter — the last one only once it has a key."* If a file already exists,
show that one instead.

They keep the default or change it; either way they now know where the knob
is. Every later step in this skill that "writes a model" or "adds an
endpoint" is an edit to this file, and you say so each time.

## One question, only about what the probe can't see

The probe knows what's installed. It cannot know what accounts the user has
or what they're willing to pay. Ask **one** question covering only the
missing backends, shaped like this (adjust to the actual gaps):

> To pick what to connect, tell me:
> - Do you have a ChatGPT subscription? (unlocks GPT as a reviewer, no extra cost)
> - Are you okay creating one free account + API key? (unlocks many model
>   families at once via OpenRouter or a compatible service)
> - Or keep it strictly free-and-local for now? (OpenCode's free models)

Then recommend an order — the fewest steps to reach **at least one non-Claude
reviewer** (without one, `/multi:code-review` refuses to run; with one it
works, and each further backend makes it stronger). Typical value order:
Codex if they have the subscription, otherwise an OpenRouter-style key,
OpenCode as the free floor, Gemini as a free extra.

## Connect each chosen backend

Work through the user's picks **one at a time** — give one step, wait for
them to do it, then the next. Never paste four install blocks in one message.

For each backend, read its reference file first and follow it:

- **Codex (GPT)** — `references/codex.md`
- **OpenCode** — `references/opencode.md`
- **Kilo Code** — `references/kilo.md`
- **OpenRouter / 9router / z.ai / any compatible endpoint** — `references/openrouter.md`
- **Gemini** — `references/gemini.md`
- **Antigravity (agy)** — `references/agy.md`

Everything of this plugin lives under `$MULTI_HOME/` (default `~/.config/multi`): `config.toml` for
backends, models, endpoints, profiles and timeouts (read `references/config.md`
before editing it), `providers.env` for keys only. If the probe printed
`models-config: LEGACY`, the old opencode list file is no longer read — carry
its models into `[backends.opencode]` in `config.toml` and delete the file.
If the probe printed `config: BROKEN`, fix that first: nothing runs on a broken
config, and it names the key and the reason.

If the probe listed `other-ai-clis`, you may mention them in one sentence as
detected-but-not-yet-supported. Do not improvise support for them.

## Picking models

When a backend is connected but the model choice is the question (free vs
paid, which pin, which fallbacks) — or the user asks "which models should I
use" — offer the fork:

1. **Sane default** — keep what the probe picked; say in one line what that
   is and what it costs (usually: free, weaker, can flake).
2. **"Research it for me"** — read `references/model-research.md` and follow
   it: live catalogue + web search (your own model knowledge is stale),
   propose a pick, write it into `config.toml` only after the user approves.

## Keys never touch this chat

Not a preference — a key that reaches this conversation is a leaked key: it
is in the transcript, and if it also reached a command line it is in shell
history and was visible in `ps`. So `setup.sh set <NAME>` is given **without**
a value and run **by the user, in their own terminal**: it prompts, reads the
key without echoing, and writes it out of sight. If a key lands in the chat
anyway, say plainly it should be rotated at the provider — deleting a message
does not un-leak it.

Keys live in `$MULTI_HOME/providers.env`, permission `600` (owner-only).
On Windows/MSYS and some mounts `chmod` silently does nothing; `setup.sh`
checks afterwards and warns when that happened — if it warned, repeat the
warning to the user instead of claiming the file is protected.

## Finish: show where things stand

Run:
```
$SCRIPTS/setup.sh status
```

This one actually verifies keys over the network (the probe above does not).
Report one short block — who's connected, and what each missing one would add:

```
Connected: Claude, Codex, OpenRouter (endpoint: 9router)
Not yet:   OpenCode / Kilo Code (free extra reviewers), Gemini (free extra reviewer)

/multi:code-review works — you have non-Claude reviewers. Each missing
backend is one more independent opinion, most at no extra cost.
```

Be honest about degradation, not alarming: missing backends are a normal
starting state, not a broken install. Then stop — this skill's only job is
getting the judges connected, not running a review.

© szarkans · MIT · szarkans/multi

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — setup от других авторов.

setup Alireza Rezvani Собирает настройки эксперимента autoresearch: цель, файл, команду оценки, метрику и направление улучшения. Пригодится, когда вы хотите запустить цикл оптимизации файла. 1 480установок setup aws Скилл запускает настройку подключений к AWS DevOps Agent и AWS Security Agent. Нужен, когда MCP-инструменты не отвечают или вы только начинаете работу с тулкитом. CX Codex +1 1 500установок setup marketcalls Разворачивает виртуальное окружение Python для тестирования торговых стратегий на VectorBT и OpenAlgo. Настраивает зависимости, папки и файл .env. CX Codex +1 2 000установок setup assistant-ui Скилл помогает создать проект assistant-ui, подключить его к существующему приложению и выбрать адаптер для бэкенда. Пригодится и для обновления установки. CX Codex +1 6 100установок setup aladicf Собирает дизайн-контекст проекта, исследуя код и опрашивая разработчика, затем сохраняет UX-цели и стек в файл .better-web-ui.md. CX Codex +1 605установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора6

skill Отдаёт один подготовленный скилл сразу нескольким моделям и показывает их ответы рядом. Пригодится, когда нужен не один ответ, а сравнение. CX Codex +1 ★ 23звёзд репо code-review Скилл просит несколько моделей проверить один и тот же код, а затем сводит их замечания в единый отчёт. Запускайте его перед PR или для второго мнения. CX Codex +1 ★ 23звёзд репо check-if-done Скилл сверяет обещанное с тем, что реально работает, и не даёт назвать задачу готовой без выполненной команды. Пригодится перед PR и в конце сессии. CX Codex +1 ★ 23звёзд репо ask Отправляет один вопрос сразу нескольким моделям и выводит их ответы рядом, отмечая расхождения. Помогает получить второе мнение без усреднения. CX Codex +1 ★ 23звёзд репо adhd Скилл запускает мозговой штурм по нескольким когнитивным рамкам и передаёт их разным моделям. Пригодится для открытых вопросов об архитектуре, API, именах и неясных багах. CX Codex +1 ★ 23звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой