testing
БесплатноБез исполняемых скриптовНе проверенCharacterization testing and safety-net backfill for existing code. Use when legacy, under-tested, or risky code needs tests before a refactor, bug fix, or…
от howells★ 25 звёзд на GitHubОб этом скилле
EnterPlanMode and ExitPlanMode are banned. This skill is Arc's own structured testing process.
Characterization Testing Workflow
Backfill focused tests around existing code before a risky change. The goal is not "more tests" in the abstract; it is a trustworthy safety net around behavior that must survive a refactor, migration, or bug fix.
Use this skill when:
- Existing code has little or no test coverage.
- A refactor needs a behavior-preserving safety net first.
- A god file, duplicated implementation, or tangled module needs characterization before decomposition.
- A performance optimization needs current behavior pinned before changing data structures, batching, memoization, caching, or ordering.
- A bug fix touches unclear behavior and you need to capture the current contract before changing it.
- Coverage reports show gaps around important public behavior.
- Auth, API, state, or browser flows need targeted tests before launch or audit remediation.
Do not use this skill as the normal new-feature workflow. For new work, use /arc:implement or a dedicated TDD skill so RED/GREEN/REFACTOR remains the governing loop.
references/testing-patterns.md— Test philosophy, vitest/playwright patternsreferences/testing-anti-patterns.md— What weak or misleading tests look likerules/testing.md— Arc testing conventions, when the project has no rules of its own (see<rules_context>)disciplines/change-impact-testing.md— loaded for its blast-radius framing only. It is a post-change discipline, so its revert-the-change sensitivity proof does not apply here; on a backfill run there is no change to revert, and the perturbation method in Step 4 is the sensitivity proof.references/llm-api-testing.md— If testing LLM integrationsreferences/maintainability-review.md— If tests are being added before decomposing a god file or tangled modulereferences/complexity-optimization.md— If tests are being added before optimizing algorithmic complexity, rendering churn, or N+1 behavior
Agents
Use specialist agents only when the slice is large enough to justify delegation:
| Agent | Model | Purpose | Framework |
|---|---|---|---|
unit-test-writer |
sonnet | Characterize pure functions, hooks, or isolated components | vitest |
integration-test-writer |
sonnet | Characterize API, auth, state, and component integration behavior | vitest + MSW |
e2e-test-writer |
opus | Characterize critical browser journeys | Playwright |
test-runner |
haiku | Run unit/integration suites and analyze failures | vitest |
e2e-runner |
opus | Run Playwright, inspect screenshots/traces, iterate on failures | Playwright |
Use Glob tool: .ruler/testing.md
- If
.ruler/exists: Read rules from.ruler/, for MUST/SHOULD/NEVER constraints. - If
.ruler/doesn't exist: Read rules fromrules/.
Detected project tooling wins over a rule that names a different runner: if the repo runs jest, back the safety net with jest rather than converting the suite to satisfy the rule.
Detect test framework and package manager: use the detection tables in
references/testing-patterns.md. Fall back to package.json scripts for project-specific test
commands.
Process
Step 1: Confirm The Safety-Net Target
Ask one question only if the target is unclear:
AskUserQuestion:
question: "What existing code or behavior needs a safety net before we change it?"
header: "Test Target"
options:
- label: "A specific file/module"
description: "Point me at the file, component, or module you're about to change"
- label: "A route or API surface"
description: "An endpoint, page, or public interface whose behavior must survive the change"
- label: "A user flow"
description: "An end-to-end journey (auth, checkout, signup) that needs pinning before a refactor"
- label: "Something else"
description: "Describe the behavior or blast radius you want protected"
Then identify:
- The files, ro
Установить testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл testing?
Characterization testing and safety-net backfill for existing code. Use when legacy, under-tested, or risky code needs tests before a refactor, bug fix, or behavior change. Captures current behavior through public interfaces, identifies coverage gaps, and adds focused unit, integration, or E2E tests without replacing TDD implementation workflows.
Как установить скилл testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic