test-plan

test-plan is a skill for Claude Code from stuartshields/claude-setup. It costs 41 tokens per session (1,248 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It can compare a branch with another revision, document test scenarios, or execute a test plan against the application in a browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stuartshields/claude-setup/test-plan
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/stuartshields/claude-setup/test-plan/github.svg)](https://agentmods.dev/skills/stuartshields/claude-setup/test-plan)
Your own site
<a href="https://agentmods.dev/skills/stuartshields/claude-setup/test-plan"><img src="https://agentmods.dev/badge/skills/stuartshields/claude-setup/test-plan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/stuartshields/claude-setup/test-plan"><img src="https://agentmods.dev/badge/skills/stuartshields/claude-setup/test-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.01248
Opus 5.5 $0.00016 $0.00499
Sonnet 5.5 $0.00008 $0.00250
Haiku 4.5 $0.00004 $0.00125

Measured 3mo ago against content hash e666e5f88f0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 6mo ago), licensed MIT. It adds 41 tokens to every session and 1,248 once invoked, about $0.0002 per session on Opus 5.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

test-plan compared with skills from other repositories

test-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-planstuartshields/claude-setupSkill26mo agoMITA41Claude Code
endpoint-probehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA80Claude Code, Codex
agent-work-verificationWeaverse/.agentsSkill120d agoMITA45Claude Code
pr-merge-gatesWeaverse/.agentsSkill120d agoMITA52Claude Code
create-taskWeaverse/.agentsSkill120d agoMITA39Claude Code
debug-logsWeaverse/.agentsSkill120d agoMITA42Claude Code
fix-prWeaverse/.agentsSkill120d agoMITA40Claude Code