test-coverage
Run tests with coverage and report uncovered lines/branches per class. Use when user wants to check test coverage, find untested code, identify coverage gaps…
от rakovi4★ 54 звезды на GitHub
Установить test-coverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/test-coverage - Run Tests with Coverage Report
Usage
/test-coverage usecase
/test-coverage storage
/test-coverage rest RegisterUserController
/test-coverage usecase --focus # only classes touched in recent git diff
Arguments
First word is the module:
usecase→:usecasestorage,rest,email,scheduling,security→:adapters:{name}domain→ measured through the suites exercising domain codefrontend→ frontend coverage tooling from the active technology profile
Optional second word filters the report to classes matching that name.
Optional --focus restricts the report to changed production files. In staged
lanes, pass the recorded baseline and explicit owned paths, including already
committed changes; use last-commit focus only when no explicit scope was supplied.
Pass report-only mode for every staged lane so the coordinator owns tracking.
Action
Delegate to .claude/agents/coverage-agent.md with module, focus paths/baseline,
and report-only mode. It resolves backend or frontend tooling from the active
technology profile and uses .claude/templates/testing/coverage-commands.md for
scope, report format, gap mapping, and remediation.
Steps:
- Run tests with coverage (stop if tests fail)
- Compute each touched module summary from its coverage report
- List classes with gaps (apply filter/focus if specified)
- Extract uncovered lines/branches, read source to show actual code
- Report results
- In
--focusmode: map gaps to scenarios and classify reachability; return staged-lane findings to the coordinator, otherwise update progress.md for reachable gaps. Flag dead code for refactor.
Agent
.claude/agents/coverage-agent.md— workflow for gap analysis, reachability classification, progress.md updates
Templates
.claude/templates/testing/coverage-commands.md— universal workflow: focus mode, module mapping, report format.claude/tech/{backend}/templates/testing/coverage-commands.md— tool-specific commands: run, parse, extract
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл test-coverage?
Run tests with coverage and report uncovered lines/branches per class. Use when user wants to check test coverage, find untested code, identify coverage gaps, or mentions /test-coverage command. Also use after green phases to verify new code is well-covered.
Как установить скилл test-coverage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-coverage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…