Claude Code skills
The 8 Best Claude Code Skills for Testing in 2026

The best Claude Code skills for testing in 2026 turn an agent from something that writes code and hopes into something that proves the code works before declaring a task done. This article ranks eight testing skills from the public agent-skill registry, tells you exactly what each one changes about agent behavior, and shows you how to inspect and install them with skillrank. It also covers how BuildBetter CLI (ZeroShot, run as bb) carries these skills across Claude Code, Cursor, Codex, and other agents so a skill one engineer adopts works for your whole team. Every recommendation here is verifiable — you can run skillrank eval on your own stack instead of trusting a reviewer's opinion.
What a Testing Skill Actually Changes About an Agent
A skill is a versioned, reviewable instruction pack that loads into an agent's context only when it's relevant — not a prompt you paste once and forget. That definition is the whole point. A pasted prompt lives in one person's clipboard and dies at the end of the session. A skill lives in the repo.
Skills beat pasting instructions into every prompt for four concrete reasons:
- Versioned in the repo — a testing skill changes over time and you can see the diff.
- Shared across teammates — everyone's agent picks up the same testing playbook automatically.
- Reviewable in PRs — a skill is a code artifact, so a bad testing convention gets caught in review.
- Conditional — aligned to the AGENTS.md standard, a skill loads only when contextually relevant, so you don't pay token overhead for a Python testing skill on a TypeScript file.
For testing specifically, skills shift agent behavior from "write code, maybe test" to enforced red-green-refactor cycles, explicit verification gates, and reproducible, hypothesis-driven debugging. That's the difference between an agent that reports success and an agent that earns it.
Read the rest of this article as a decision guide. Each entry states what the skill changes, when it helps, and when it's pure overhead — because a skill that helps a greenfield feature can slow down a one-line typo fix.
How to Find, Inspect, and Install These Skills (skillrank)
skillrank is an open-source tool that indexes the public agent-skill registry, and it's also available as bb skills <command> when you have BuildBetter CLI installed. Everything below is something you can run right now.
skillrank search testing— find testing skills in the registry.skillrank show <ref>— inspect a skill's description, GitHub source, scan rating, detected stacks, and eval results.skillrank install <ref>— install a hash-verified skill so you know the content matches what you inspected.skillrank recommend— suggest skills based on your detected stack.skillrank eval <ref>— run a local paired eval on your own agent to see whether the skill actually improves outcomes.
How to read the scan ratings
Scan ratings are safe / low / medium / high / unknown. The critical clarification: "unknown" means the skill has not been scanned yet — it does not mean the skill is unsafe. A substantial share of legitimate skills carry an "unknown" rating simply because they postdate the scanner's last pass. Treat "unknown" as "inspect the source yourself," not as a red flag.
Every skill below carries an author/slug ref, a one-line description, a GitHub source, a scan rating, detected stacks, and eval results where they exist. These refs point to real named authors — obra, mattpocock, anthropics, wshobson. Verify each one yourself with skillrank show before you adopt it. Author reputation is a starting point, not a guarantee.
Comparison Table: The 8 Testing Skills at a Glance
Ratings and evals change over time. Always re-run skillrank show <ref> before adopting anything in this table.
| Skill (author/slug) | What it enforces | Best for | Overhead when | Stack / tags | Scan rating notes |
|---|---|---|---|---|---|
| BB-Skills (via BuildBetter CLI) | Team conventions + cross-agent loading of every skill below | Teams standardizing testing across agents and teammates | Solo hobby repos with one agent | Stack-agnostic; all agents | Open source on GitHub — inspect directly |
| obra/test-driven-development | Failing test before implementation, then green | Greenfield features, spec-driven refactors | Throwaway spikes, unknown interfaces | Stack-agnostic | Run skillrank show |
| obra/verification-before-completion | Explicit gate: confirm tests pass before "done" | Long autonomous runs | Tiny single-file edits | Stack-agnostic | Run skillrank show |
| obra/systematic-debugging | Hypothesis-driven reproduce → isolate → confirm loop | Flaky tests, heisenbugs | Obvious one-line typos | Stack-agnostic | Run skillrank show |
| anthropics/webapp-testing | Browser/UI testing playbook, e2e flows | Frontend / full-stack features | Pure backend/library work | Webapp / browser | First-party; verify stacks |
| mattpocock/qa | Structured edge-case and acceptance-criteria pass | Pre-merge QA | Trivial config changes | TS / JS-friendly | Run skillrank show |
| mattpocock/setup-pre-commit | Wires pre-commit hooks for test/lint/format | Onboarding a repo to consistent gates | Repos with mature hooks already | Stack-agnostic | Run skillrank show |
| mattpocock/code-review | Flags missing tests, weak assertions, untested paths | PR-time review | Solo prototypes, no review process | Stack-agnostic | Run skillrank show |
| wshobson/temporal-python-testing | Patterns for Temporal workflows + Python async | Python teams on Temporal | Any non-Python / non-Temporal stack | Python / Temporal (narrow) | Run skillrank show |
1. obra/test-driven-development
What it changes: this skill forces the agent to write a failing test before implementation, then implement to green. That closes the single most common gap in agent workflows — the "wrote code, skipped tests" pattern where an agent produces plausible-looking code and never proves it works.
When it helps: greenfield features with a clear spec, refactors where the interface is defined, and any codebase where regressions are expensive. The red-green-refactor loop gives you a regression net that grows with the feature.
When it's overhead: throwaway spikes, exploratory prototyping, or code where the interface is still unknown. Forcing a test-first cycle before you know the shape of the API just makes you write and delete tests.
Check the GitHub source and run skillrank show obra/test-driven-development for the current scan rating and evals. Attribute this one to author obra. For most teams, this is the foundation skill — start here.
2. obra/verification-before-completion
What it changes: this skill inserts an explicit verification gate. The agent must confirm tests pass and that its claims are actually checked before it declares a task done. It directly addresses the "it says done but the build is red" failure mode.
When it helps: long autonomous runs where agents tend to over-report success. It pairs naturally with TDD — TDD produces the tests, verification-before-completion refuses to call anything finished until those tests are green.
When it's overhead: tiny single-file edits where verification is trivial and the gate just adds conversational turns.
Senior engineers value this skill most because the dominant failure mode of autonomous agents is over-reporting success. That erodes organizational trust in agents faster than any single bug — one "it's done" that turns out to be a red build costs more credibility than ten honest failures.
Studies of AI coding agents consistently find that unverified agent-generated code carries higher defect and regression rates than code produced with an enforced test-first loop, and verification gates are the single most-cited mitigation among senior adopters. This skill is that gate.
3. obra/systematic-debugging
What it changes: this skill replaces guess-and-check with a hypothesis-driven loop — reproduce, isolate, form a hypothesis, test it, confirm. Instead of an agent throwing changes at a failure until something sticks, it works the problem like an engineer would.
When it helps: flaky tests, heisenbugs, and failures the agent can't fix in one shot. These are exactly the cases where guess-and-check burns tokens and often makes the code worse. A structured loop converges instead of thrashing.
When it's overhead: obvious one-line typos where the structured process is slower than just fixing the thing. If the fix is visible in the stack trace, the ceremony costs more than it saves.
Install with skillrank install obra/systematic-debugging (hash-verified), then check the evals to confirm it earns its token cost on your stack. Debugging skills vary in value more than most — a loop tuned for one language's failure patterns may not transfer cleanly, which is why you eval before you commit.
4. anthropics/webapp-testing
What it changes: this skill gives the agent a browser and webapp testing playbook — driving UIs, asserting on rendered state, and exercising end-to-end flows. It moves the agent past unit tests into the integration and rendering layer where real user-facing bugs live.
When it helps: frontend and full-stack features where unit tests pass but the page is still broken. Unit tests can't catch a component that renders the wrong state or a form that fails on submit — a webapp testing skill can.
When it's overhead: pure backend or library work with no UI surface. Loading a browser-testing playbook for a CLI parser is dead weight.
This is a first-party skill authored by anthropics — link to the Anthropic skills repo from the ref. Confirm the detected stacks with skillrank show anthropics/webapp-testing before adopting; the skill assumes a webapp target, and the scan output tells you what it expects.
5. mattpocock/qa
What it changes: this skill adds a structured QA pass. The agent reasons about edge cases, unexpected inputs, and acceptance criteria instead of only coding the happy path. It's the difference between "it works when I click the right buttons" and "it holds up when someone clicks the wrong ones."
When it helps: feature-completion reviews and pre-merge QA where edge-case coverage actually matters. If a feature ships to customers, this skill catches the null input, the empty list, and the concurrent-edit case an agent would otherwise skip.
When it's overhead: trivial config changes with no behavioral surface to test.
This skill is authored by mattpocock, a well-known TypeScript educator, which makes it credible for TS- and JS-heavy teams — the reasoning patterns lean toward that ecosystem. Verify the current rating with skillrank show and confirm the detected stack matches yours before you rely on it.
6. mattpocock/setup-pre-commit
What it changes: this skill has the agent wire up pre-commit hooks so tests, lint, and format run before code lands. It moves testing enforcement to the commit boundary — structural, not conversational.
When it helps: onboarding a repo to consistent gates and standardizing CI-local parity across a team. Once the hook exists, the gate survives even when a prompt forgets to mention testing.
When it's overhead: repos that already have a mature hooks setup. Running this skill there may just re-litigate config that already works, which wastes turns and risks churn.
Structural enforcement beats conversational enforcement. A pre-commit hook makes the test/lint/format gate part of the commit boundary, so it holds even when the agent — or the human — forgets. Conversational rules are only as reliable as the prompt that carries them.
This skill complements the TDD and verification skills by making the gate structural. TDD tells the agent to write tests; verification-before-completion checks they pass; setup-pre-commit makes both survive after the session ends.
7. mattpocock/code-review
What it changes: this skill turns the agent into a reviewer that flags missing tests, weak assertions, and untested paths. It treats testing as a review concern rather than an afterthought — auditing the tests that exist instead of only writing new ones.
When it helps: PR-time review where you want a consistent second pass on test quality. An agent running this skill catches the assertion that always passes and the branch nobody covered.
When it's overhead: solo prototypes with no review process yet — there's nothing to review against.
This is distinct from writing tests. Code-review-as-a-skill audits whether the tests that already exist are meaningful — flagging weak assertions and untested branches. That's a higher-order concern most teams skip: they measure coverage percentage and never ask whether the covered lines are actually being tested for the right behavior. A test that runs a function without asserting anything counts toward coverage and proves nothing. This skill catches that.
8. wshobson/temporal-python-testing
What it changes: this skill gives the agent patterns for testing Temporal workflows and Python async code — a genuinely hard domain to test correctly. Naive tests against async workflows pass while hiding real concurrency bugs, and this skill encodes the patterns that avoid that false confidence.
When it helps: Python teams running Temporal or heavy async workflows where a naive test gives green results and a broken system. If your test suite doesn't model workflow determinism and time-skipping correctly, you're testing the wrong thing.
When it's overhead: any non-Python or non-Temporal stack. This skill is deliberately narrow, and loading it outside its domain is pure token cost.
Authored by wshobson, this is a good example of why skillrank recommend matters. Narrow, stack-specific skills should only load for the stack that needs them. The right pattern is a stack-agnostic foundation (TDD plus verification) plus conditionally loaded narrow skills like this one — never loading every testing skill globally and paying constant overhead.
Making Skills Actually Pay Off: Cross-Agent Loading and Measurement
A testing skill only helps if two things are true: it loads in whatever agent each teammate uses, and you can tell whether it improved anything. Skip either and you've added ceremony without value.
Measure before you keep
Run skillrank eval <ref> to execute a local paired eval on your own agent and codebase. Token cost and behavioral impact vary significantly by codebase, model version, and stack, so an eval on your own machine is the only reliable signal. Keep the skills that measurably improve outcomes and drop the ones that just add turns and tokens.
Treat skills as reviewable code artifacts: version them in the repo, review them in PRs, and gate adoption on eval results — not on author reputation alone. Even a trusted author's skill can be net-negative on your specific stack.
Cross-agent portability
The AGENTS.md standard is now adopted across Claude Code, Cursor, Codex, Copilot, Gemini CLI, Windsurf, and Amazon Q, which makes cross-agent portability technically real rather than aspirational. BuildBetter CLI (ZeroShot, run as bb) carries these skills across all of those agents and shares them across teammates — so a testing skill one engineer adopts works for the whole team, in whatever agent each person uses. You aren't locked to a single tool, and onboarding a new engineer doesn't mean re-teaching your testing conventions.
BuildBetter CLI extends the AGENTS.md standard with composable, conditional skill packs — BB-Skills, open source on GitHub — so narrow skills like temporal-python-testing load only when relevant. The BB-Skills packs cover the spec workflow (/bb-specify, /bb-plan, /bb-review) and testing (/trust-but-verify, /generate-tests for Playwright, /app-navigator), each carrying your team's actual playbook into every agent. With an optional BuildBetter API key, specs and PR reviews also pull in customer evidence, so the tests you enforce map to what customers actually asked for. Teams like Brex, PostHog, Procore, and Clay use this layer to keep agent testing consistent across a whole org.
Frequently Asked Questions
What is a Claude Code skill?
A Claude Code skill is a versioned, reviewable instruction pack — typically Markdown, aligned to the AGENTS.md standard — that loads into the agent's context conditionally, only when relevant. Unlike a prompt you paste per session, a skill lives in the repo, is shared across your whole team, and can be reviewed in a pull request like any other code.
Does a security scan rating of 'unknown' mean a skill is unsafe?
No. "Unknown" means the skill hasn't been scanned yet — not that it failed a scan. Many legitimate, newly-published skills carry an "unknown" rating simply because they're new to the scanner. Before adopting, inspect the GitHub source link and run skillrank show <ref> to see the current rating and detected stacks.
How do I know if a testing skill actually helped?
Run skillrank eval <ref> to execute a local paired evaluation on your own agent and codebase. Because token cost and behavioral impact vary by stack and model, this on-your-own-machine check is the only reliable way to keep skills that measurably improve outcomes and drop ones that just add turns and tokens.
Can these skills work in Cursor or Codex, not just Claude Code?
Yes. The registry skills target the agent-skill standard (AGENTS.md), and BuildBetter CLI (bb) carries them across Claude Code, Cursor, Codex, Copilot, Gemini CLI, Windsurf, and Amazon Q. That portability means a testing skill one engineer adopts works for the whole team, in whatever agent each person uses — so you aren't locked to a single tool.
Which testing skill should I start with?
For most teams, start with obra/test-driven-development plus obra/verification-before-completion — the stack-agnostic foundation that closes the biggest trust gaps. Then add stack-specific skills such as anthropics/webapp-testing (frontend/full-stack) or wshobson/temporal-python-testing (Python async/Temporal) via skillrank recommend, which suggests skills based on your detected stack.
Are these skills free and open source?
The registry skills are public with named authors and GitHub sources, and skillrank itself is open source. BB-Skills — the conditional skill packs shipped with BuildBetter CLI — are also open source on GitHub. Always verify the source link before installing any skill, regardless of who authored it.
Ship at the speed of insight.
Pick a testing foundation — TDD plus verification-before-completion — measure it with skillrank eval, then make it work for your whole team in every agent. BuildBetter CLI carries these skills across Claude Code, Cursor, Codex, and more, shares them across teammates, and loads narrow skills only when they're relevant. Install BuildBetter CLI.
Ship at the speed of insight.
ZeroShot gives your coding agents your team's skills and shared context.
Install BuildBetter CLI