Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sc-test

БесплатноБез исполняемых скриптовНе проверен

Execute tests with coverage analysis, gap identification, test generation, and automated quality reporting. Use when running tests, analyzing coverage…

Tony363от Tony363★ 21 звезда на GitHub7 установок в других каталогах

Об этом скилле

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

  1. Discover - Categorize tests using runner patterns
  2. Configure - Set up test environment and parameters
  3. Execute - Run tests with real-time progress tracking
  4. Analyze - Generate coverage reports and diagnostics
  5. Confirm Priorities - Interactive checkpoint: ask user what to tackle
  6. Study Patterns - Read test infrastructure and existing conventions
  7. Generate - Write missing tests following project conventions
  8. Validate - Run new tests, fix failures, lint
  9. Verify Coverage - Re-run coverage and compare before/after
  10. Iterate - Ask user: continue, stop, or change focus
  11. 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":
Полный SKILL.md на GitHub

Установить sc-test в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

IMPORT_NOTES.md

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), без исполняемых скриптов.

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

Сравнить sc-test с