Command Palette

Search for a command to run...

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

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от howells★ 25 звёзд на GitHub

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

Ask one question at a time. In Claude Code use `AskUserQuestion`; elsewhere ask a single concise plain-text question. Keep any lead-in to 2-3 sentences. Don't narrate missing tools or fallbacks.

EnterPlanMode and ExitPlanMode are banned. This skill is Arc's own structured testing process.

Requires the full Arc bundle. Arc-owned paths (`agents/`, `references/`, `disciplines/`, `templates/`, `scripts/`, `rules/`, `skills/`) resolve from the plugin root — the directory containing `agents/` and `skills/`. Everything else is the user's repository.

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.

**Read before testing:**
  1. references/testing-patterns.md — Test philosophy, vitest/playwright patterns
  2. references/testing-anti-patterns.md — What weak or misleading tests look like
  3. rules/testing.md — Arc testing conventions, when the project has no rules of its own (see <rules_context>)
  4. 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.
  5. references/llm-api-testing.md — If testing LLM integrations
  6. references/maintainability-review.md — If tests are being added before decomposing a god file or tangled module
  7. references/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
**Check for project testing rules:**

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 from rules/.

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
Полный SKILL.md на GitHub

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

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

Сравнить testing с