plan-tests
БесплатноБез исполняемых скриптовНе проверенUse to turn a feature's acceptance criteria into a test plan before any test is written — a table that maps every PRD.md §5 acceptance criterion to at least…
от genkovich★ 17 звёзд на GitHubОб этом скилле
Skill: plan-tests
Turns an already-specified feature into a test plan: a table that ties every acceptance criterion in PRD.md §5 to at least one named test, the levels those tests live at (unit / integration / e2e / contract / load), the integration strategy (a real dependency, spun up throwaway), and the test-data + cleanup approach. The plan is written before a single test exists — the next stage, implement-tasks, reads this map and writes the red tests against it, not "however it seems". This file is the spine; the output scaffold lives in templates/test-plan.md.
This skill keeps only its own machinery. Question phrasing is shared → ../_shared/ask-style.md. Depth (inline in the PRD vs a separate file) follows the size matrix → ../_shared/size-matrix.md. It names test levels, never test tools — the concrete commands are detected by implement-tasks against the repo, not hard-coded here.
Owner
QA + the engineer who will implement the feature (co-authors). QA drives the level breakdown and the edge/error cases; the implementing engineer confirms each acceptance criterion has a reachable test and that the integration strategy fits the repo. The Tech Lead signs off that no acceptance criterion is left uncovered.
Inputs
<slug>— the same feature slug every earlier stage used.- Gate (hard-refuse if missing):
docs/features/<slug>/PRD.md. Its §5 acceptance criteria are the entire reason this plan exists — each one must map to a test. IfPRD.mdis absent → STOP and point: «run/sdlc:write-prd <slug>first — the test plan maps its §5 acceptance criteria to tests». - (Optional)
docs/features/<slug>/data-model.md— the entity shapes tell you what test data to build and what to seed/clean per suite. Read it if present. - (Optional)
docs/features/<slug>/sad.md§6 sequence diagrams — each drawn flow is an e2e candidate; each cross-participant boundary is a contract-test candidate. - (Optional)
docs/features/<slug>/.size— depth hint. Absent → default to M (separatetest-plan.mdfile).
Protocol
- Gate.
test -f docs/features/<slug>/PRD.md→ fail = refuse with the pointer above. Then read §5 (acceptance criteria — the rows of the coverage table) and §6 (NFRs — which drive load tests). Readdata-model.md/sad.md§6 if present. - Pick the output target. Per the size matrix: XS/S → write the plan inline in
PRD.mdas a short## Test plansection (a coverage table is enough — no separate file); M+ → a separatedocs/features/<slug>/test-plan.mdfrom the template. Confirm the target with oneAskUserQuestion(phrasing per../_shared/ask-style.md) when.sizeis absent. - Map levels — generic only. Name test levels from a fixed vocabulary, never a tool or language: unit (pure logic — a rule, a calculation, a validator, no I/O), integration (the module against a real dependency it owns — DB, cache, queue), e2e (a full flow end to end, one per critical user story), contract (a boundary between two participants — an API shape or an event schema agreed by both sides), load (only when an NFR carries a number — throughput, p95 latency). When
sad.mdfrontmattertarget_surfacesdeclares a UI surface (web-frontend/mobile-app/desktop-app), add the frontend tiers — component (a UI component exercised in isolation), visual-regression (web — the rendered UI diffed against a baseline), e2e-through-UI (the flow driven through the real UI, not just the API). These are the "testing trophy", the dominant frontend testing vocabulary (web.dev / Kent C. Dodds) — a vocabulary, not a mandate (→../_shared/surfaces.md). Do not write tool names —implement-tasksdetects what the repo already uses. - Core mapping (the contract of this skill) — user chooses the level per AC. Build the AC→test table: every acceptance criterion in §5 maps to ≥1 test. For each AC, propose a default level from a heuristic (pure logic/rule/validator → unit; behaviour against a real dependency the module owns → integration; a full user-story flow → e2e; a cross-participant API/event shape → contract; and — when a UI surface is declared — a UI piece → component, a user-facing flow → e2e-through-UI), then confirm the level(s) with the user via one
AskUserQuestion(multiSelect — an AC may fan out to several levels, e.g. unit for the rule + e2e for the flow), phrased per../_shared/ask-style.md. The user's choice is authoritative and is recorded in the table's Level column;implement-tasksreads it to write the test at the right level (it does not re-decide). A criterion with zero tests is the cardinal anti-pattern. Name each test descriptively from the criterion's intent (e.g.over-quota request is rejected), not from any framework convention. - **Edge cases
Установить plan-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл plan-tests?
Use to turn a feature's acceptance criteria into a test plan before any test is written — a table that maps every PRD.md §5 acceptance criterion to at least one test, names the test levels (unit / integration / e2e / contract / load) without binding to a language or framework, and fixes the integration and data strategy. Triggers on "plan tests for {slug}", "test plan for {slug}", "how do we test {slug}", "test strategy for {slug}", "/sdlc:plan-tests {slug}", "план тестів для {slug}", "як тестувати {slug}", "тест-план". Output: docs/features/{slug}/test-plan.md (separate file for M+), or inline in PRD.md for XS/S per the size matrix. Hard-refuse if PRD.md is missing → run `/sdlc:write-prd {slug}` first.
Как установить скилл plan-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-tests запускает скрипты?
Нет, скилл состоит только из инструкций (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