Test plan
Production Claude Code setup for ~/.claude/: rules, hooks, agents, skills, and governance docs.
npx -y skills add stuartshields/claude-setup --skill test-planAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Generate a user-facing test checklist from git diff, or execute an existing test plan via Playwright. Two modes: generate (default) creates the plan, execute runs it in the browser.
SKILL.md
4.9 KB, as published. Nobody here has run it
Skill: test-plan
When to Use
Use this skill before merging a feature branch, after completing implementation, or when you need a QA checklist. Invoke with /test-plan to generate from the current branch, /test-plan main...HEAD for a specific git range, or /test-plan execute to run an existing plan.
Use $ARGUMENTS to determine the mode:
- Empty or git range (default): Generate mode -create a test plan from code changes
- "execute" or a file path: Execute mode -run an existing test plan via Playwright
Generate Mode
Procedure
- Identify changes. Detect the default branch (
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@', falling back tomainif that fails). Rungit diff <default-branch>...HEAD --statto list changed files. If$ARGUMENTScontains a git range, use that instead. - Understand each change. Read each changed file to understand what was modified and why.
- Create test scenarios. For each user-visible change, generate a test scenario:
- Scenario name: What the user does (e.g., "Submit the contact form with valid data")
- Steps: Numbered, specific enough for someone unfamiliar with the app
- Expected result: What should happen after completing the steps
- Edge cases: What could go wrong (empty fields, duplicate submissions, slow network, etc.)
- Group by feature area. Organise scenarios under feature headings.
- Write the plan. Save to
docs/test-plans/YYYY-MM-DD-<branch-name>.md.
Output Format
## Test Plan: <branch name>
Generated: <date>
### <Feature Area>
#### Scenario: <name>
- [ ] Step 1: ...
- [ ] Step 2: ...
- [ ] Step 3: ...
- Expected: ...
- Edge cases: ...
Execute Mode
Procedure
- Find the plan. If
$ARGUMENTSis a file path, use it. If$ARGUMENTSis "execute", find the most recent test plan indocs/test-plans/. If none exists, tell the user to generate one first. - Read the plan. Parse each scenario and its steps.
- Run each scenario. For each scenario, use Playwright MCP to:
- Navigate to the relevant page
- Follow the steps exactly as written
- Use
browser_snapshotto verify page state after each action - Verify the expected result
- Record results. For each scenario, record one of:
- PASS -all steps completed and expected result verified
- FAIL -a step didn't produce the expected result (include
browser_take_screenshotas evidence) - BLOCKED -couldn't reach the step (prerequisite failed, page unreachable, login required)
- Update the plan. Append results to the test plan file:
### Execution Results - <date>
| Scenario | Result | Notes |
|---|---|---|
| <name> | PASS/FAIL/BLOCKED | <details> |
Rules
- Test scenarios describe what a user does, not what the code does. Write "Click the submit button and verify the success message appears" not "POST /api/form returns 200."
- Steps must be reproducible by someone who has never seen the codebase. No references to file names, function names, or implementation details.
- One scenario per user action. Don't combine "create an account" and "update profile" into one scenario.
- Include the unhappy path. For every form, test with empty fields, invalid data, and duplicate submissions. For every action, test what happens when it fails.
- In execute mode, follow steps literally. Do not improvise or skip steps. If a step is ambiguous, record it as BLOCKED with a note about what was unclear.
- Use
browser_snapshotfirst to understand page structure before interacting. Usebrowser_take_screenshotto capture evidence of failures. - Limit file reads to 15 files. If the diff touches more than 15 files, group by feature area and generate scenarios from the diff summary and the 15 most relevant files. Tell the user which files were skipped.