sc-test
БесплатноБез исполняемых скриптовНе проверенExecute tests with coverage analysis, gap identification, test generation, and automated quality reporting. Use when running tests, analyzing coverage…
Об этом скилле
Testing & Coverage Skill
Test execution with coverage analysis, interactive gap identification, test generation, and iterative coverage improvement.
Quick Start
# Run all tests
/sc:test
# Unit tests with coverage
/sc:test src/components --type unit --coverage
# Coverage gap analysis - identify untested code
/sc:test --gap-analysis --target 80
# Generate missing tests to reach target coverage
/sc:test --generate --target 80 --module src/services
# Watch mode with auto-fix
/sc:test --watch --fix
# Fix existing failures before adding coverage
/sc:test --fix-first --generate --target 80
# Web search for testing guidance (uses Rube MCP's LINKUP_SEARCH)
/sc:test --linkup --query "pytest asyncio best practices"
Philosophy: Ask Early, Ask Often
This skill liberally uses AskUserQuestion at decision points. Test coverage involves tradeoffs between speed and thoroughness. Validate priorities rather than guessing what the user wants covered.
- Before writing tests -- confirm which modules to prioritize
- When gaps are large -- ask where to focus effort first
- When source code looks buggy -- ask before fixing vs just testing
- After coverage run -- ask about iteration vs stopping
Behavioral Flow
- Discover - Categorize tests using runner patterns
- Configure - Set up test environment and parameters
- Execute - Run tests with real-time progress tracking
- Analyze - Generate coverage reports and diagnostics
- Confirm Priorities - Interactive checkpoint: ask user what to tackle
- Study Patterns - Read test infrastructure and existing conventions
- Generate - Write missing tests following project conventions
- Validate - Run new tests, fix failures, lint
- Verify Coverage - Re-run coverage and compare before/after
- Iterate - Ask user: continue, stop, or change focus
- Report - Provide recommendations and quality metrics
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--type |
string | all | unit, integration, e2e, all |
--coverage |
bool | false | Generate coverage report |
--watch |
bool | false | Continuous watch mode |
--fix |
bool | false | Auto-fix simple failures |
--gap-analysis |
bool | false | Identify coverage gaps without generating tests |
--generate |
bool | false | Generate missing tests to reach target |
--target |
int | 80 | Coverage percentage target |
--module |
string | - | Restrict scope to a specific module |
--fix-first |
bool | false | Fix existing failures before generating new tests |
--dry-run |
bool | false | Show gap analysis and test plan without writing |
--linkup |
bool | false | Web search for guidance (via Rube MCP) |
--query |
string | - | Search query for LINKUP_SEARCH |
Personas Activated
- qa-specialist - Test analysis and quality assessment
MCP Integration
PAL MCP (Quality & Debugging)
| Tool | When to Use | Purpose |
|---|---|---|
mcp__pal__debug |
Test failures | Root cause analysis for failing tests |
mcp__pal__codereview |
Test quality | Review test coverage and quality |
mcp__pal__thinkdeep |
Complex failures | Multi-stage investigation of flaky tests |
mcp__pal__consensus |
Test strategy | Multi-model validation of testing approach |
mcp__pal__apilookup |
Framework docs | Get current testing framework documentation |
PAL Usage Patterns
# Debug failing test
mcp__pal__debug(
step="Investigating intermittent test failure",
hypothesis="Race condition in async setup",
confidence="medium",
relevant_files=["/tests/test_api.py"]
)
# Review test quality
mcp__pal__codereview(
review_type="full",
findings="Test coverage, assertion quality, edge cases",
focus_on="test isolation and mocking patterns"
)
# Validate testing strategy
mcp__pal__consensus(
models=[{"model": "gpt-5.2", "stance": "neutral"}, {"model": "gemini-3-pro", "stance": "neutral"}],
step="Evaluate: Is integration testing sufficient for this feature?"
)
Rube MCP (Automation & Research)
| Tool | When to Use | Purpose |
|---|---|---|
mcp__rube__RUBE_SEARCH_TOOLS |
CI/CD integration | Find test reporting tools |
mcp__rube__RUBE_MULTI_EXECUTE_TOOL |
Notifications | Post results to Slack, update tickets |
mcp__rube__RUBE_REMOTE_WORKBENCH |
Bulk processing | Analyze large test result sets |
Rube Usage Patterns
# Search for testing best practices (--linkup flag uses LINKUP_SEARCH)
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
{"tool_slug": "LINKUP_SEARCH", "arguments": {
"query": "pytest fixtures best practices",
"depth": "deep",
"output_type": "sourcedAnswer"
}}
])
# Post test results to Slack
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
{"tool_slug": "SLACK_SEND_MESSAGE", "arguments": {
"channel": "#ci-results",
"text":
Установить sc-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sc-test?
Execute tests with coverage analysis, gap identification, test generation, and automated quality reporting. Use when running tests, analyzing coverage, generating missing tests, or debugging test failures.
Как установить скилл sc-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic