Command Palette

Search for a command to run...

Назад к скиллам
скилл № 30620

Plan

Analyze code changes to produce a test plan: classify changed files by test type, identify coverage gaps, and prioritize by regression risk. Use when: 'test…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Plan в Claude Code и Claude Desktop

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

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

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

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

Plan

Purpose

Coverage-gap analysis: what needs testing, at what level, in what priority. Per-ecosystem test structure (frameworks, locations, architecture-test project) comes from the consuming project's testing conventions; infer it from existing test projects when undocumented.

Arguments

$ARGUMENTS, optional diff range or scope description. Default: uncommitted changes plus the current branch's commits vs the default branch.

Examples: /testing:plan, /testing:plan HEAD~3, /testing:plan the auth module.

Process

1. Analyze the diff

git diff --stat HEAD~N   # or appropriate range
git diff --name-only HEAD~N

Classify each changed file:

File type Testing implication
Domain entity / value object Unit tests (behavior, invariants, state transitions)
Command/query handler Unit tests (logic) + integration tests (DI, pipeline)
API endpoint Integration tests (HTTP round-trip, status codes, response shape)
Middleware / filter Integration tests via the ecosystem's HTTP-test harness
Infrastructure (external services, DB clients) Integration tests with real infrastructure
Configuration / DI registration Integration tests (verify resolution, no runtime errors)
Project file / build infrastructure changes Architecture tests (when the project has an architecture-test project)
UI components E2E testing via browser automation (see /testing:run-e2e)
Analyzer / lint rules Analyzer tests (verify diagnostic output)
Parser, serializer, pure transform, collection or stateful class Property tests beside examples (invariants from the spec, a model or metamorphic relation; see /testing:write)
Replace, rewrite, migrate or port of existing behavior Characterization or differential tests first (old output as a pin, intentional differences in a ledger; see /testing:write), then the usual rows for the new code
Parser, decoder or handler whose input is untrusted (request bodies, uploaded files, hook or webhook payloads, CLI arguments from another process) Fuzz target: generated and mutated inputs fed to the entry point, asserting no crash, hang, unbounded resource use or failure other than the documented rejection, with a seed corpus of valid inputs; a parser matching the property row too gets both
Client of a service whose provider will run the verification, or an endpoint another service consumes Consumer-driven contract test: the consumer records the requests it sends and the responses it relies on, and the provider's build verifies it still meets them. A public third-party API's provider runs none: plan its canned responses per testing:test-value (if enabled) instead

2. Generate the test plan

When step 1 found no changed file in the range, nothing is planned: say there is nothing to classify and end there, skipping the rest of this process and the Output suggestions, with no template section and no test type named as considered or skipped.

For each change area, produce the plan below. Omit a fuzz-target or contract-test section when no changed code matches its row: do not print it empty, write it as "none", or list it under "Not testing".

Every planned test's entry names where its expected value comes from and cites testing:test-value (if enabled) for that choice, canned responses for a third-party client included.

Test names follow the project's documented pattern; when undocumented, mirror the ecosystem's idiom:

## Test Plan for [branch/PR description]

### Unit tests
- [ ] `{test name}` — {why this matters}; expected value: {source}, per `testing:test-value`
- [ ] ...

### Integration tests
- [ ] `{test name}` — {what this validates}; expected value: {source}, per `testing:test-value`
- [ ] ...

### Architecture tests
- [ ] {rule the structure must keep} — {if project structure changed}

### Property tests (if parsers, serializers, transforms or stateful classes changed)
- [ ] {Property stated from the spec} — {pattern: model, metamorphic, round trip}

### Pins (if replacing or migrating behavior)
- [ ] {Behavior pinned} — {recorded corpus, comparator, intentional-differences ledger}

### Fuzz targets (only if code whose input is untrusted changed; otherwise omit this section)
- [ ] {Entry point} — {input shape, seed corpus, what must not happen: crash, hang, unbounded memory}

### Contract tests (only if a service client or consumed endpoint changed; otherwise omit this section)
- [ ] {Consumer} → {provider interaction} — {requests sent, response fields relied on, where the provider verifies it}

### E2E verification (if UI/API changes; an API endpoint change counts even when no served app exists)
- [ ] Navigate to {endpoint}, verify {behavior}
- [ ] Submit {form}, confirm {response}
- [ ] Screenshot: {page} showing {expected state}

### Not testing (with rationale)
- {File}: pure contract, no behavior to test
- {File}: covered transitively by {cons
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл Plan?

Analyze code changes to produce a test plan: classify changed files by test type, identify coverage gaps, and prioritize by regression risk. Use when: 'test plan', 'what needs testing', 'where are the coverage gaps', after /implementation:implement, or PR-prep test coverage checks. Not for writing: /testing:write; running: /toolchain:check.

Как установить скилл Plan?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Plan запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Plan с