test-plan

A skill that creates a user-facing test checklist from code changes or runs an existing checklist in a browser using Playwright. Playwright is a tool for automating browser tests.

In plain words
What is it for?
It can compare a branch with another revision, document test scenarios, or execute a test plan against the application in a browser.
Why use it?
It helps translate a code diff into concrete checks and verify user-visible behavior before a change is merged.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stuartshields/claude-setup/test-plan
Any agent
npx skills add stuartshields/claude-setup --skill test-plan
Clone the repo
git clone --depth 1 https://github.com/stuartshields/claude-setup

Made for: Claude Code, Codex.

Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,248 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.01248
Opus 5 $0.00020 $0.00624
Sonnet 5 $0.00008 $0.00250
Haiku 4.5 $0.00004 $0.00125

Measured 2d ago against content hash e666e5f88f0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/test-plan/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Identify changes. Detect the default branch (git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@', falling back to main if that fails). Run git diff <default-branch>...HEAD --stat to list changed files. If $ARGUMENTS contains a git range, use that instead.
  2. Understand each change. Read each changed file to understand what was modified and why.
  3. 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.)
  4. Group by feature area. Organise scenarios under feature headings.
  5. 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

  1. Find the plan. If $ARGUMENTS is a file path, use it. If $ARGUMENTS is "execute", find the most recent test plan in docs/test-plans/. If none exists, tell the user to generate one first.
  2. Read the plan. Parse each scenario and its steps.
  3. Run each scenario. For each scenario, use Playwright MCP to:
    • Navigate to the relevant page
    • Follow the steps exactly as written
    • Use browser_snapshot to verify page state after each action
    • Verify the expected result
  4. 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_screenshot as evidence)
    • BLOCKED -couldn't reach the step (prerequisite failed, page unreachable, login required)
  5. Update the plan. Append results to the test plan file:

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 83 lines · 0 tokens per session scan A e666e5f88f0b

Subscribe to this mod's changes

test-plan is a skill published in the GitHub repository stuartshields/claude-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 1,248 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction using playwright-cli. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, extract information from web pages, mock network requests, manage browser…

zebbern/claude-code-guide · 67 tokens

browserstack

../../../engineering-team/playwright-pro/skills/browserstack/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

playwright-skill

Battle-tested Playwright patterns for E2E, API, component, visual, accessibility, and security testing. Covers locators, fixtures, POM, network mocking, auth flows, debugging, CI/CD (GitHub Actions, GitLab, CircleCI, Azure, Jenkins), framework recipes (React, Next.js, Vue, Angular), and migration guides from…

zebbern/claude-code-guide · 87 tokens

playwright-core

Battle-tested Playwright patterns for E2E, API, component, visual, accessibility, and security testing. Covers locators, assertions, fixtures, network mocking, auth flows, debugging, and framework recipes for React, Next.js, Vue, and Angular. TypeScript and JavaScript.

zebbern/claude-code-guide · 62 tokens

playwright-ci

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

zebbern/claude-code-guide · 48 tokens

playwright-pom

Page Object Model patterns for Playwright — when to use POM, how to structure page objects, and when fixtures or helpers are a better fit.

zebbern/claude-code-guide · 35 tokens