supercov — скилл для Claude Code: что делает и как установить
Скилл для Claude Code замеряет тестовое покрытие и анализирует качество кода через утилиту supercov. Находит пробелы в тестах и помогает дописывать проверки для JavaScript, Python, Go и других языков.
MIT ★ 167 обновлён 2026-11-13
npx skills add supercorp-ai/supercov --skill supercov -a claude-codeЧто делает supercov
Скилл запускает родную тестовую команду проекта через обёртку npx supercov -- <test command> и не меняет конфигурацию репозитория. Сначала агент замеряет исходный прогон, находит проблемные места командой npx supercov runs latest gaps и изучает конкретный файл. После этого инструмент добавляет точечный тест и выводит разницу в покрытии до и после правок.
Для поиска дефектов структуры запускается npx supercov quality, ранжирующий файлы по запахам кода, либо npx supercov quality patch для проверки свежих правок.
Без Node.js версии 22 или новее запуск через npx не сработает: придётся ставить бинарник supercov вручную. Для работы модуля проверки качества требуется переменная окружения TYPESAFE_API_KEY.
Какие задачи решает
- найти участки кода без тестов в репозитории
- измерить покрытие до и после добавления новых проверок
- обнаружить дефекты структуры кода в свежем патче
- написать точечные тесты для непокрытых функций
Примеры запросов агенту
- Проверь покрытие тестами через
npx supercov -- npm testи покажи пробелы - Найди пять файлов с худшим покрытием и допиши тест для одного из них
- Запусти
npx supercov qualityи оцени свежие изменения
Как установить supercov
1Через Skills CLI (Vercel)
npx skills add supercorp-ai/supercov --skill supercov -a claude-code2Вручную: положить файлы
~/.claude/skills/supercov/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/supercov/
1Через Skills CLI (Vercel)
npx skills add supercorp-ai/supercov --skill supercov -a codex2Вручную: положить файлы
.agents/skills/supercov/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add supercorp-ai/supercov --skill supercov -a cursor2Вручную: положить файлы
.cursor/skills/supercov/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install supercorp-ai/supercov plugins/supercov/skills/supercov2Вручную: положить файлы
.github/skills/supercov/SKILL.md1Через Skills CLI (Vercel)
npx skills add supercorp-ai/supercov --skill supercov -a gemini-cli2Командой платформы
gemini skills install https://github.com/supercorp-ai/supercov --path plugins/supercov/skills/supercovВручную: положить файлы
.devin/skills/supercov/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add supercorp-ai/supercov --skill supercov -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о supercov
Как установить supercov в Claude Code?
Выполните команду npx skills add supercorp-ai/supercov --skill supercov -a claude-code. Также можно вручную поместить файл спецификации по пути ~/.claude/skills/supercov/SKILL.md.
Что делает скилл supercov?
Инструмент выполняет тесты проекта, фиксирует процент покрытия, находит проблемные файлы и составляет целевые тесты, не трогая исходный код приложения.
Что нужно для работы supercov?
Требуется среда Node.js версии 22 или новее либо отдельный исполняемый файл утилиты. Для проверки качества кода через TypeSafe нужен ключ в переменной TYPESAFE_API_KEY.
Исходный текст
SKILL.md · MIT
--- name: supercov description: Measures test coverage and code quality in a repository with the supercov CLI, and turns what it finds into small, focused tests or fixes. Use when the user asks to add or improve tests, find untested code or raise coverage, or find what to refactor. Works with JavaScript, TypeScript, Python, Ruby, Rust, Go, Java and Kotlin projects. license: MIT --- # Supercov Supercov runs the project's own test command and changes no source, tests or configuration. `npx supercov docs <topic>` prints the guide for the installed version; read it for anything not shown here. Topics: `agent-loop`, `quality`, `supported-suites`, `troubleshooting`. ## Add a test 1. Measure the full suite: `npx supercov -- <test command>`, for example `npx supercov -- npm test`. 2. List targets with `npx supercov runs latest gaps --limit 5`, pick one, and inspect it with `npx supercov runs latest file <path>`. 3. Write one focused test. Change only tests unless the user asks otherwise. 4. Rerun the same command and report the test and the coverage before and after. ## Quality - `npx supercov quality` ranks files by code smells, and `npx supercov quality patch` reports what a change introduced. - It sends source files to TypeSafe using the `TYPESAFE_API_KEY` environment variable. A user who set the key has opted in, so run it without asking again. If the key is missing the command says so: tell the user how to set it, then answer from reading the code and say Supercov did not check it. Without Node.js 22 or newer, install Supercov as the language guide at https://supercov.com/docs says, and run `supercov` instead of `npx supercov`.
© supercorp-ai · MIT · supercorp-ai/supercov