gen-test-plan
БесплатноБез исполняемых скриптовНе проверенAnalyze repo, detect stack, trace changes to user-facing entry points, generate E2E YAML test plan
от existential-birds★ 92 звезды на GitHubОб этом скилле
Generate Test Plan
Analyze the repository's tech stack, branch changes vs default, and generate an executable YAML test plan focused on user-facing impact.
This is an E2E test plan — not an automated test wrapper. The generated plan will be executed by an autonomous agent acting exactly as a human QA tester would: launching real binaries, hitting real endpoints, interacting with real databases, and verifying real observable behavior.
Critical Rule: No Automated Test Duplication
NEVER generate test steps that re-run the project's existing automated test suite. This means:
- No
cargo test,pytest,npm test,go test,mix test, or equivalent commands as test steps - No wrapping unit/integration test modules in a test case
- No "run the tests and check they pass" — that's CI's job, not QA's
If you find yourself writing a test step that invokes the project's test runner, stop and rethink. Ask: "What would a human tester do to verify this feature works?" The answer is never "run the unit tests."
What E2E test steps look like:
- Build the binary and run it with real arguments, check stdout/stderr/exit code
- Start a server and hit it with curl
- Run a CLI command that writes to a real database, then query the database to verify
- Launch the TUI and verify it renders (via screenshot or process lifecycle)
- Chain multiple commands that exercise a full user workflow end-to-end
Hard gates
Complete these in order. Do not advance to the next gate until its Pass condition is met (each pass should leave retrievable evidence: pasted command output, a written list, or the generated file on disk). Scheduling: Gate 1 before Step 2; Gate 2 before Step 5; Gate 3 before Step 7; Gates 4–5 during Step 8 (after the Step 7 summary).
Diff and base pinned (after Step 1) — Resolve the base branch from
--basewhen provided, otherwise use the repo default (mainormasterper Step 1). CompareHEADto$(git merge-base HEAD origin/<base_branch>)(or equivalent if the remote ref differs). Pass: You recordcurrent_branch,base_branch, the merge-base SHA or range used, andchanged_filesfromgit diff --name-only <merge-base>..HEAD(empty list allowed if you paste or quote that output and state “no file changes vs base”).Trace complete (after Step 4) — Pass: Every affected entry point you will test has a Core functionality vs Configuration/admin classification, and the Step 4 requirement holds: at least one test targets a core entry point or you document why that is impossible and flag manual review.
Plan file valid (after Step 6, before Step 7) — Pass:
docs/testing/test-plan.yamlexists and the following command exits 0 (parses the YAML and asserts all four top-level keys are present — a singlegrep -Ewith alternations would pass on any one match, so do not substitute it):python3 -c "import sys, yaml; d = yaml.safe_load(open('docs/testing/test-plan.yaml')) or {}; missing = [k for k in ('version', 'metadata', 'setup', 'tests') if k not in d]; sys.exit('Missing keys: ' + ', '.join(missing) if missing else 0)"No automated-test duplication (Step 8) — Pass: Every
run:step and everyservices:command:is scanned for project test runners (cargo test,pytest,npm test,go test,mix test,jest,vitest,mocha, etc.); zero invocations. If any appear, remove or replace them with real E2E actions and re-run Gate 3.Behavioral coverage (Step 8) — Pass: Re-read
metadata.changes_summaryand recent commit messages; at least one test’scontext/stepsexercises the primary user-visible behavior they describe. If they describe a capability (e.g., a new provider) but no step invokes it, add that test or fail verification.
Arguments
--base <branch>: Base branch to diff against (default:main)- Path: Target directory (default: current working directory)
Step 1: Gather Repository Context
# Get current branch
git rev-parse --abbrev-ref HEAD
# Resolve base branch: use --base if supplied, otherwise default (main → master)
BASE_BRANCH="${BASE_BRANCH:-$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo main || echo master)}"
MERGE_BASE="$(git merge-base HEAD "origin/${BASE_BRANCH}")"
# Get changed files vs base
git diff --name-only "${MERGE_BASE}"..HEAD
# Get commit messages for context
git log --oneline "${MERGE_BASE}"..HEAD
Capture:
current_branch: Branch namebase_branch: Default branch to compare againstchanged_files: List of modified filescommit_messages: What the PR is about
Step 2: Detect Tech Stack
See references/stack-discovery.md for stack detection commands, entrypoint discovery, port discovery, and trace rules.
Step 3: Discover User-Facing Entry Points
A "user-facing entry point" is anything a human interacts with:
Установить gen-test-plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gen-test-plan?
Analyze repo, detect stack, trace changes to user-facing entry points, generate E2E YAML test plan
Как установить скилл gen-test-plan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gen-test-plan запускает скрипты?
Нет, скилл состоит только из инструкций (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