medic — скилл для Claude Code: проверка и установка
Скилл medic для Claude Code проверяет, готова ли команда ИИ-агентов к работе, и выводит найденные проблемы. Запускается после настройки новой машины или когда агенты перестают связываться друг с другом.
Apache-2.0 ★ 869 обновлён 2026-11-16
npx skills add sno-ai/sno-station-skills --skill medic -a claude-codeЧто делает medic
medic запускает проверки окружения и печатает отдельную строку для каждого результата. Он смотрит, установлены ли нужные инструменты и шесть основных скиллов, отвечают ли команды, настроены ли хуки, работает ли Reach и запущен ли heartbeat. Также проверяются квоты подписок установленных агентов и свободное место в временной папке.
Результаты помечаются как OK, WARN или FAIL; для предупреждений и ошибок выводится команда исправления. Скилл только читает состояние: он не устанавливает и не чинит программы, не запускает и не останавливает процессы. Проверка свободного места требует как минимум 500 MB, если порог не изменён через --min-free-mb N.
Нужны bash 4+, GNU coreutils и jq, а также reach версии 2.0+, heartbeat версии 1.0+ и subscription-quota-check версии 1.0+. Скилл не проверяет, способен ли агент ответить на запрос или доставить сообщение; для этого нужны отдельные тесты.
Какие задачи решает
- проверить установку инструментов и основных скиллов
- найти неработающие команды и ненастроенные хуки
- узнать, активны ли Reach и heartbeat
- проверить доступность квот и свободное место во временной папке
Примеры запросов агенту
- Проверь состояние команды агентов командой
sno medic run. - На новой машине проверь, всё ли готово для работы агентов.
- Покажи проблемы в настройке и команды для их исправления.
Как установить medic
1Через Skills CLI (Vercel)
npx skills add sno-ai/sno-station-skills --skill medic -a claude-code2Вручную: положить файлы
~/.claude/skills/skill/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/skill/
1Через Skills CLI (Vercel)
npx skills add sno-ai/sno-station-skills --skill medic -a codex2Вручную: положить файлы
.agents/skills/skill/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sno-ai/sno-station-skills --skill medic -a cursor2Вручную: положить файлы
.cursor/skills/skill/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sno-ai/sno-station-skills skills/M-build-and-rollout/medic/skill2Вручную: положить файлы
.github/skills/skill/SKILL.md1Через Skills CLI (Vercel)
npx skills add sno-ai/sno-station-skills --skill medic -a gemini-cli2Командой платформы
gemini skills install https://github.com/sno-ai/sno-station-skills --path skills/M-build-and-rollout/medic/skillВручную: положить файлы
.devin/skills/skill/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sno-ai/sno-station-skills --skill medic -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о medic
Как установить medic в Claude Code?
Выполни npx skills add sno-ai/sno-station-skills --skill medic -a claude-code. Файл скилла устанавливается по пути ~/.claude/skills/skill/SKILL.md.
Что делает medic?
Проверяет инструменты, скиллы, команды, хуки, Reach, heartbeat, квоты подписок и свободное место. Выводит результаты и команды для исправления, но сам ничего не меняет.
Что нужно для работы medic?
Нужны bash 4+, GNU coreutils, jq, reach версии 2.0+, heartbeat версии 1.0+ и subscription-quota-check версии 1.0+.
Исходный текст
SKILL.md · Apache-2.0
---
name: medic
description: "Check that this machine's agent team can work and say what is wrong in plain lines: tools installed, core skills installed, skill commands runnable, hooks configured, Reach seat live, a heartbeat running, both vendors' quota readable, temp space free. Checks only, never repairs. Use on a new machine, when agents stop reaching each other or a long run fails to start, or when the owner asks whether everything is healthy."
requires:
programs:
- {name: reach, min_version: "2.0"}
- {name: heartbeat, min_version: "1.0"}
- {name: subscription-quota-check, min_version: "1.0"}
harness:
- {slot: 4.shell, need: required}
---
# medic
`sno medic run` looks at the agent team on this machine and prints one line per check. It reads and
reports; it never installs, repairs, starts, stops or spends anything.
```
OK <check>: <what was found>
WARN <check>: <what is wrong> -> <the command that fixes it>
FAIL <check>: <what is wrong> -> <the command that fixes it>
MEDIC ok=N warn=N fail=N
```
`FAIL` means the team cannot work at all (a required program is missing, no agent command line is
installed, Reach is broken). `WARN` means it works worse than it should. Exit status is 0 when there is
no `FAIL`, 1 otherwise, 2 for a wrong command line.
Prerequisites: bash 4+, GNU coreutils and jq. `sno medic` with no arguments, or `--help`, prints the usage.
## Use
1. Run `sno medic run`. It takes about ten seconds because it asks `sno doctor` and reads both quotas.
2. Tell the owner the result in plain words: the counts, then each `WARN` and `FAIL` line with its fix.
Do not paste the whole output when everything is `OK`; one sentence says so.
3. Run a fix only when the owner asks for it. Installing and updating change the machine, and one
warning is often not worth a fix (for example no heartbeat when nothing long is running).
4. After a fix, run `sno medic run` again and read the same line: it must now say `OK`.
## What each check reads
| Check | Looks at | Common fix |
|---|---|---|
| `tools` | `sno`, `jq`, `tmux`, `git` are on PATH, and `sno heartbeat` and `sno subscription-quota-check` run | install the named program |
| `agent-cli` | `claude` or `codex` is on PATH | install one of them |
| `skills` | the six core skills (`reach`, `heartbeat`, `join-talk`, `handoff`, `deliver`, `charter`) exist where each installed agent reads skills | reinstall the skills |
| `commands` | `sno deliver-proof`, `sno handoff-checkpoint`, `sno rotate-agent-resume` and `sno rem-reflect` answer `--help` | reinstall the skills |
| `hooks` | `sno doctor` reports hooks configured (and trusted, for codex) for each installed agent | reinstall the skills |
| `reach` | `sno doctor` reports Reach as ok | the fix `sno doctor` names |
| `skill-files` | every installed skill file passes `sno doctor` | update the skills |
| `seat` | this agent's own seat (`SNO_REACH_ADDR`) is live, or at least one seat is live | run `join-talk` in this window |
| `heartbeat` | at least one heartbeat is running on this machine | arm one when a long job starts |
| `quota` | each installed agent's subscription quota can be read and is not `wait` | log in, or wait for the reset |
| `temp-space` | free space in `$TMPDIR` (or `/tmp`) is at least 500 MB; change it with `--min-free-mb N` | free space or point `TMPDIR` elsewhere |
A check that cannot run because a program is missing prints `WARN <check>: not checked, <program> is
missing`; fix the `tools` line first.
## Limits
`sno medic` does not prove that an agent can answer a prompt or that a seat delivers a message: for a live
receiver test before a vendor switch use `rotate-agent-preflight` (the `rotate-agent` skill), and for a
single unit's behaviour use that unit's own self-test.
© sno-ai · Apache-2.0 · sno-ai/sno-station-skills