test-framework-blueprint
Use when designing a test automation framework from scratch or re-architecting one that grew organically. Walks seven steps from inventorying the app to runner, layout, fixtures, object model, data and mocks, reporting, CI and conventions, and outputs a written blueprint with a build order.
Install test-framework-blueprint
npx skills add testland/qa --skill test-framework-blueprint -a claude-codeInstalls into .claude/skills/ in your project. Add -g to install it for all your projects, in ~/.claude/skills/.
SKILL.md
Shown as published, under the repository's MIT license.
---
name: test-framework-blueprint
description: "Use when designing a test automation framework from scratch or re-architecting one that grew organically. Walks seven steps from inventorying the app to runner, layout, fixtures, object model, data and mocks, reporting, CI and conventions, and outputs a written blueprint with a build order."
metadata:
keywords: "test-framework, framework-design, blueprint, fixtures, sdet, playwright, test-architecture"
version: "1.6.21"
---# test-framework-blueprint
## Overview
This skill is a **build-an-X workflow**: it walks an SDET through designing a
test automation framework end to end and ends with two artifacts the team can
act on:
1. A **framework blueprint**: a short design doc recording the directory tree,
fixture list, chosen object-model + data patterns, and CI matrix.
2. An **implementation order**: which piece to build first and what each later
piece waits on.
It is the connective tissue between the pattern catalogs and the scaffolder.
The catalogs (`object-model-patterns`,
`test-isolation-patterns`,
`test-data-patterns` in qa-test-data)
say what each pattern IS; the scaffolder emits a skeleton once decisions
are made. Neither walks the decisions in order. This skill does.
## When to use
- Designing a test automation framework from scratch: the repo has no suite,
or only scattered unit tests, and the team needs the full design before
writing harness code.
- Re-architecting a framework that grew organically: helpers sprawled, nobody
remembers why the fixtures look the way they do, and a
framework-architecture audit run came back with structural findings.
- A new SDET joins a team with no written test architecture and needs to
produce one.
Do **not** use this skill to:
- Pick only the runner. That single decision has a deeper reference: the
`framework-choice-advisor` catalog (in the qa-process plugin) - NFR scoring
+ side-by-side trade-off matrices in prose. When a repo already has an E2E
convention in `package.json`, prefer continuing with it unless there is a
reason to switch. Step 2 below summarizes the criteria and hands off.
- Scaffold the skeleton. That is a separate harness-scaffolding step, which
consumes this blueprint's decisions as its inputs.
- Audit an existing framework against its own conventions. That is a separate
framework-architecture audit.
## Step 1 - Inventory the system under test
Before any tool is named, record four facts about the SUT. Every later
decision keys off them.
| Inventory item | Questions to answer |
|---|---|
| **App stack** | Languages, frameworks, persistence (e.g. Node + React + Postgres). Which external services does it call (payments, email, auth provider)? |
| **Deployment shape** | Monolith / services / serverless? Can a full stack run locally (compose file, dev server) or only in a shared environment? |
| **Change shape** | Where do PRs land - one monorepo, or per-service repos? Do most changes touch the API, the UI, or both? The layer that changes most needs the fastest feedback. |
| **Team skills** | What languages do the engineers writing and maintaining tests already know? Per `framework-choice-advisor` Step 1, the framework-language mismatch is the #1 maintenance cost. |
**Decision output:** a coverage-layers table stating which layers get
automated coverage in this framework and which are explicitly out of scope
(already covered elsewhere, or deferred). Example shape:
| Layer | In this framework? | Rationale |
|---|---|---|
| Unit | No | Lives in each package, owned by devs |
| API integration | Yes | Most PRs touch the API |
| Web E2E | Yes (thin) | Critical paths only |
| Contract | Deferred | Single team owns both sides today |
## Step 2 - Choose runner + language
Two criteria dominate; everything else is tie-breaking:
1. **Team language first.** A framework in a language the team does not write
rots: nobody fixes flake they cannot read.
2. **One runner across layers when possible.** If the same runner can execute
the API tier and the E2E tier (Playwright Test runs both: its built-in
`request` fixture is an isolated `APIRequestContext` instance per test, per
the [Playwright test-fixtures docs](https://playwright.dev/docs/test-fixtures)),
the team maintains one config, one reporter, one CI job family.
For the full trade-off matrices (cross-browser, mobile, parallelization,
ecosystem, hire-ability) use `framework-choice-advisor`; when a repo already
has an E2E convention in `package.json`, prefer continuing with it unless
there is a reason to switch.
**Decision output:** one runner + one language, with the rejected
alternatives and the reason recorded in the blueprint (the rejection
rationale is what stops the debate from reopening every quarter).
## Step 3 - Directory layout + fixture architecture
### Layout (worked stack: Playwright + TypeScript)
```
tests/
e2e/ # browser tests, grouped by user journey
invoicing/
auth/
api/ # request-fixture tests, grouped by resource
fixtures/
db.ts # worker-scoped database fixtures
auth.ts # test-scoped authenticated-session fixtures
index.ts # merged export the specs import
pages/ # object model (Step 4)
builders/ # test-data builders (Step 5)
playwright.config.ts
```
Rules of thumb: group specs by user-facing domain (not by page or by
developer); keep fixtures in their own modules per concern; specs import one
merged `test` object, never raw `@playwright/test`.
### Fixture scoping decisions
Playwright fixtures establish each test's environment and are set up on-demand
(only the ones a test needs), and Playwright offers exactly two scopes
([Playwright test-fixtures docs](https://playwright.dev/docs/test-fixtures)):
| Scope | Lifecycle | Blueprint use |
|---|---|---|
| **Test** (default) | Set up before and torn down after each test | Anything a test mutates: pages, sessions, seeded records |
| **Worker** | Set up once per worker process, reused across test files whose worker fixtures match | Expensive shared infrastructure tests only read, or per-worker isolated stores (database-per-worker) |
The blueprint records, per fixture: name, scope, what it provides, and
whether tests mutate it. The single rule from
`test-isolation-patterns` Pattern 2
applies verbatim: never share mutable fixtures across tests.
The Playwright fixture mechanics to standardize (`test.extend`, `auto`,
`mergeTests`, option fixtures) and the pytest mapping for Python teams live in
[references/fixture-mechanics.md](references/fixture-mechanics.md).
### Parallel workers: decide isolation before raising `-n` or `workers`
Failures that appear only when parallelism goes up, and vanish with one
worker, are shared-state bugs, not flake. The blueprint records how each
worker is isolated before the worker count goes above 1.
**pytest + pytest-xdist**
- Each xdist worker is a separate process that "will perform its own
collection and execute a subset of all tests"
([xdist how-to](https://pytest-xdist.readthedocs.io/en/stable/how-to.html)),
so a `scope="session"` fixture runs **once per worker**, not once per run.
A session fixture that truncates tables or inserts seed rows in one shared
database wipes rows other workers are using and hits duplicate keys on the
seed rows.
- Give each worker its own database or schema, keyed on the `worker_id`
fixture (`gw0`, `gw1`, ...; `"master"` when xdist is off) or the
`PYTEST_XDIST_WORKER` environment variable; or run each test in a
transaction rolled back at teardown.
- Work that must happen once across all workers (migrations, a template
database) runs as a CI step before pytest, or behind a `FileLock` in
`tmp_path_factory.getbasetemp().parent`, the directory all workers of one
run share (the xdist how-to's own pattern; `filelock` is a separate
package).
- No test builds on data an earlier test created: xdist spreads tests across
processes, so `test_close_account` can run before or apart from
`test_open_account`. Each test creates what it needs through fixtures or
builders.
- Remove blanket `@pytest.mark.flaky(reruns=N)` marks added after parallelism
was switched on. Reruns turn an isolation bug into a slower intermittent
pass; fix the isolation, then mark only a test with a known, tracked cause.
Snippet (`_migrate` and the DSNs are placeholders):
```python
import psycopg
import pytest
from filelock import FileLock
ADMIN_DSN = "postgresql://test:test@localhost:5432/postgres"
@pytest.fixture(scope="session")
def worker_dsn(worker_id, tmp_path_factory):
shared = tmp_path_factory.getbasetemp().parent # same dir for every worker
name = f"inventory_test_{worker_id}"
with FileLock(str(shared / "db.lock")): # one worker at a time
if not (shared / "template.done").exists():
_migrate("inventory_template") # schema + reference rows, once per run
(shared / "template.done").touch()
with psycopg.connect(ADMIN_DSN, autocommit=True) as admin:
admin.execute(f'DROP DATABASE IF EXISTS "{name}"')
admin.execute(f'CREATE DATABASE "{name}" TEMPLATE inventory_template')
return f"postgresql://test:test@localhost:5432/{name}"
@pytest.fixture
def db(worker_dsn):
with psycopg.connect(worker_dsn) as conn:
yield conn
conn.rollback() # nothing a test writes survives it
```
**Playwright Test**
- Log in once, not in every `beforeEach`: a setup project
(`testMatch: /.*\.setup\.ts/`) listed in the test projects'
`dependencies`, saving `storageState` under `playwright/.auth/`. The
[Playwright auth docs](https://playwright.dev/docs/auth) recommend adding
`playwright/.auth` to `.gitignore`; a committed state file is a live
session credential.
- Tests that change server-side state (create records, then assert a count
or a list) get **one account per parallel worker**: a worker-scoped fixture
that logs in the account picked by `test.info().parallelIndex`, which the
auth docs call "the recommended approach for tests that modify server-side
state". Or assert only on the records the test itself created.
- No retry wrappers and no `page.waitForTimeout`: actions auto-wait for
actionability and web-first assertions such as
`await expect(locator).toHaveText('3 items')` wait "until the expected
condition is met"
([best practices](https://playwright.dev/docs/best-practices)). A wrapper
that repeats a click can submit twice and hides real failures.
- Test retries stay 0 (Step 6) with `trace: 'retain-on-failure'`. If a
migration period needs CI retries, cap them at 1 with
`trace: 'on-first-retry'`, so a test that passes only on retry is
reported as flaky with a trace
([trace viewer](https://playwright.dev/docs/trace-viewer)); never
`retries: 3` with `trace: 'off'`.
```ts
// fixtures/auth.ts - one account per worker (adapted from the auth docs)
import { test as base } from '@playwright/test';
import fs from 'fs';
import path from 'path';
export const test = base.extend<{}, { workerStorageState: string }>({
storageState: ({ workerStorageState }, use) => use(workerStorageState),
workerStorageState: [async ({ browser }, use) => {
const id = test.info().parallelIndex;
const file = path.resolve(test.info().project.outputDir, `.auth/${id}.json`);
if (!fs.existsSync(file)) {
const page = await browser.newPage({ storageState: undefined });
// log in as the account provisioned for worker `id`, then wait for a signed-in marker
await page.context().storageState({ path: file });
await page.close();
}
await use(file);
}, { scope: 'worker' }],
});
```
**Decision output:** an isolation row per shared resource (database,
accounts, queues, files): per-worker copy, per-test rollback, or read-only,
plus where once-only setup runs.
## Step 4 - Object-model decision
Pick exactly **one** object-model pattern; mixing two in one codebase is the
top cross-cutting anti-pattern in
`object-model-patterns`. The short
decision rule (full when-to-use rules, canonical citations, and per-pattern
anti-patterns live in that catalog - defer to it, do not restate it):
| Choose | When |
|---|---|
| **Page Object Model** | Page-oriented SUT, 3+ engineers, classic runner; the default |
| **+ Component Objects** | Component-architected frontend (React/Vue) with shared nav/modals; refinement of POM, not a competitor |
| **Screenplay** | Suite will exceed ~200 tests or has multiple actor types sharing interactions |
| **App Actions** | Cypress idiom; SUT exposes a programmatic state API and setup dominates runtime |
**Decision output:** the pattern name + the catalog link, plus the deferral
rule: do not build the object-model layer until roughly 10 tests exist (see
Anti-patterns); the blueprint names the pattern, the implementation order
delays it.
## Step 5 - Test data + mocking wiring
Three sub-decisions, each deferring to its own deeper tool:
1. **Seed strategy.** What state exists before any test runs? Decide between
empty-database + per-test creation, a curated seed set (author it with
`seed-data-curator` in qa-test-data),
or template-database cloning. The isolation mechanics
(transaction-rollback vs database-per-worker vs template clone) come from
`test-isolation-patterns` Pattern 4.
2. **Construction pattern.** Builder vs Factory vs Object Mother:
`test-data-patterns` (qa-test-data)
is the catalog. Default for a new framework: Test Data Builder for the 2-3
core domain objects, nothing else until duplication appears.
3. **Mock-server placement.** Which external dependencies get stubbed, and
where the stub runs (in-process interception vs a standalone stub the
whole stack points at). The per-stack tool choice (WireMock / MSW /
Mountebank, by detected runtime) is a separate concern; the blueprint
records only the boundary: which services are real, which are stubbed,
and in which layer.
**Decision output:** a one-line entry per external dependency (real / stubbed
/ contract-tested) and the seed + builder choices.
## Step 6 - Reporting + CI integration
- **Machine-readable output first.** Configure JUnit XML alongside the
human-facing reporter: per the
[Playwright test-reporters docs](https://playwright.dev/docs/test-reporters),
`reporter: [['junit', { outputFile: 'results.xml' }]]` produces a
JUnit-style XML report CI systems ingest.
- **Sharding.** Do not design for shards on day one. Adopt the
suite-runtime thresholds from
`ci-test-job-conventions` (in the qa-ci-integration plugin)
§1 (no sharding under 2 minutes; 2-4 shards for a 10-30 minute suite) and
record the trigger runtime in the blueprint. When sharding lands, the
mechanics for the worked stack are `npx playwright test --shard=1/4` plus
the blob reporter and `npx playwright merge-reports --reporter html`,
per the [Playwright sharding docs](https://playwright.dev/docs/test-sharding).
- **Retries: 0 at test level.** A test that passes only on retry is "flaky"
([Playwright retries](https://playwright.dev/docs/test-retries)); a nonzero
`retries` turns it green. A runner lost before tests start gets a job
re-run (`gh run rerun <run-id> --failed`), never a test retry
(`ci-test-job-conventions` §2).
- **Triggers differ.** Per-PR: API plus a one-browser smoke subset; merge to
main: full suite; cross-browser matrix: merge or nightly `schedule`, never
every PR (`ci-test-job-conventions` §5).
**Decision output:** the CI matrix table (trigger × suite × shards × retry);
before recording it, check every row has test retry 0 and distinct content.
## Step 7 - Conventions doc + review gates
The blueprint ends as a living `docs/test-conventions.md` in the repo. It
contains, at minimum: the coverage-layers table (Step 1), the runner decision
with rejected alternatives (Step 2), the fixture table and scoping rules
(Step 3), the object-model pattern name + catalog link (Step 4), the
real/stubbed dependency list (Step 5), and the CI matrix (Step 6).
A conventions doc nobody enforces drifts. Wire the enforcement loop from this
plugin:
- A per-PR check on test file paths flags per-file violations (structure,
naming, magic numbers, slow setup).
- A quarterly (or pre-release) framework-architecture audit checks the
cross-file tier, including documented-vs-actual convention drift: it reads
this very conventions doc and flags where the codebase diverged from it.
## Worked example
A full worked example - "Ledgerly", a B2B invoicing web app - walking all seven
steps and ending with the implementation order lives in
[references/worked-example.md](references/worked-example.md).
## Anti-patterns
| Anti-pattern | Why it fails |
|---|---|
| Copying the framework from a previous job regardless of change shape | The old framework encoded the old SUT's inventory (Step 1); a UI-heavy framework on an API-heavy product tests the wrong layer slowly |
| Building abstraction layers before ~10 tests exist | Abstractions extracted from zero usage guess wrong; extract from observed duplication (the rule-of-three framing in `test-code-conventions` §11) |
| One mega base-class every test inherits | Depth-3+ hierarchies break unpredictably on root changes (§A2); compose fixtures instead |
| Choosing the runner before the team-skills inventory | Framework-language mismatch is the #1 maintenance cost per `framework-choice-advisor` |
| Designing the CI matrix for scale on day one (8 shards, 3 retries) | Retries hide flake in a young suite; shards add cost below the `ci-test-job-conventions` §1 runtime thresholds |
| Raising `-n` or `workers` on a suite with one shared database and a session-scoped truncate or seed | xdist runs session fixtures once per worker, so workers wipe each other's rows; isolate per worker first |
| Rerun marks, retry wrappers or `retries: 3` added when parallel runs start failing | They hide the shared-state bug and slow the suite; a pass on retry is flake to fix, with a trace to fix it from |
| Skipping the written blueprint ("the code is the doc") | Documented-vs-actual drift becomes undetectable; the drift check needs a documented side to compare against |
## Limitations
- This skill **designs** the framework; it writes no code. The
`automation-harness-bootstrapper` agent (qa-web-e2e) scaffolds the skeleton
from the blueprint, and the per-framework skills in qa-web-e2e
(`playwright-testing`, `cypress-testing`, etc.) implement the actual tests.
- The worked stack is Playwright + TypeScript; the pytest mapping in Step 3
is noted with citations but not carried through the worked example.
- Layer-mix sizing (how many tests per tier) is out of scope: that is
`test-pyramid-balancer` in qa-process.
## References
- Playwright - *Fixtures* (fixture scopes, `test.extend`, `auto`, `option`,
`mergeTests`; the load-bearing Step 3 source):
https://playwright.dev/docs/test-fixtures
- Playwright - *Reporters* (junit / html / blob configuration):
https://playwright.dev/docs/test-reporters
- Playwright - *Sharding* (`--shard=x/y`, blob + `merge-reports`):
https://playwright.dev/docs/test-sharding
- Playwright - *Retries* (passed / flaky / failed, `retries`, `--retries`,
no retries by default):
https://playwright.dev/docs/test-retries
- GitHub Actions - *Re-running workflows and jobs* (`gh run rerun --failed`):
https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs
- GitHub Actions - *Events that trigger workflows* (`pull_request`, `push`
branch filters, `schedule`):
https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
- pytest-xdist - *How-tos* (session fixtures run per worker, `FileLock` in
`tmp_path_factory.getbasetemp().parent`, `worker_id`,
`PYTEST_XDIST_WORKER`):
https://pytest-xdist.readthedocs.io/en/stable/how-to.html
- Playwright - *Authentication* (setup project, git-ignored
`playwright/.auth`, one account per parallel worker via `parallelIndex`):
https://playwright.dev/docs/auth
- Playwright - *Best practices* (web-first assertions, auto-waiting, traces
on CI): https://playwright.dev/docs/best-practices
- Playwright - *Trace viewer* (`on-first-retry`, `retain-on-failure`):
https://playwright.dev/docs/trace-viewer
- pytest - *How to use fixtures* (five scopes, `conftest.py`, `yield`
teardown, `autouse`):
https://docs.pytest.org/en/stable/how-to/fixtures.html
- `object-model-patterns`,
`test-isolation-patterns`,
`test-data-patterns` (qa-test-data) -
the sister pattern catalogs Steps 3-5 defer to.
- `framework-choice-advisor` (qa-process) - the Step 2 deep tool.
- `ci-test-job-conventions` (qa-ci-integration) -
the Step 6 conventions reference.0 errors · 1 warning · 1 tip · 56 checks passed
SKILL.md body: 399 lines, about 5,105 tokens · description: 291 characters · 20 files in the folder
- SpecificationA
Fields and format the Agent Skills specification requires
15 of 15 passed - DescriptionA
Whether an agent can tell when to use the skill
6 of 6 passed - Structure and contentA
How the body and the bundled files are laid out
14 of 16 passed - SecurityA
Secrets, hidden instructions, shell commands and side effects
21 of 21 passed
All checks
Body is about 5,105 tokens, over about 5,000warning
After compaction Claude Code keeps only the first 5,000 tokens.
Fix: Split detail into files that load on demand. The token count shown in the report is an estimate: characters divided by four.
Rule: Body stays under about 5,000 tokens →references/worked-example.mdis 103 lines with no contents listtipAgents often preview only the top of a file.
Fix: Add headings and a short contents list. List the sections in the first lines of the file.
Rule: Long reference files start with a contents list →Starts with a frontmatter blockspecification
SKILL.md has to open with a
Rule: Starts with a frontmatter block →---block that holds at leastnameanddescription.Frontmatter is valid YAMLspecification
The text between the
Rule: Frontmatter is valid YAML →---lines has to parse as a YAML map.No byte order mark before the frontmatterspecification
Finds the invisible UTF-8 byte order mark (U+FEFF) that some Windows editors put at the start of a file.
Rule: No byte order mark before the frontmatter →Has a namespecification
The spec requires a
Rule: Has a name →namefield.Name uses lowercase letters, digits and hyphensspecification
1 to 64 characters of
Rule: Name uses lowercase letters, digits and hyphens →a-z,0-9and-, not starting or ending with a hyphen, with no double hyphens.Name avoids the words anthropic and claudespecification
The name must not contain
Rule: Name avoids the words anthropic and claude →anthropicorclaude.Name matches its folderspecification
The
Rule: Name matches its folder →namemust equal the name of the folder that holds SKILL.md.Has a descriptionspecification
The spec requires a non-empty
Rule: Has a description →description.Description fits in 1,024 charactersspecification
The spec caps
Rule: Description fits in 1,024 characters →descriptionat 1,024 characters.No angle brackets in name or descriptionspecification
Rule: No angle brackets in name or description →nameanddescriptionmust not contain<or>, so no XML-style tags such as<example>either.Compatibility note fits in 500 charactersspecification
When
Rule: Compatibility note fits in 500 characters →compatibilityis set it must be 1 to 500 characters.Frontmatter sticks to the spec's fieldsspecification
Fields other than
Rule: Frontmatter sticks to the spec's fields →name,description,license,compatibility,metadataandallowed-tools.metadata maps keys to plain valuesspecification
Rule: metadata maps keys to plain values →metadatamust be a map whose values are strings, not lists or nested maps.Frontmatter keys are plain textspecification
Finds unquoted keys such as
Rule: Frontmatter keys are plain text →true:,no:,123:or2026-01-01:in the frontmatter, including keys undermetadata.Uses paths, not the legacy globs fieldspecification
The frontmatter sets
Rule: Uses paths, not the legacy globs field →globs, which Cursor keeps only for older skills.Description says when to use the skilldescription
The description should contain a trigger such as
Rule: Description says when to use the skill →Use when ....Description is written in the third persondescription
Avoid openers like
Rule: Description is written in the third person →You are,I help,I canorYou can.Description names the tool and the resultdescription
Flags short descriptions with no trigger that lean on vague verbs (
Rule: Description names the tool and the result →helps with,handles,manages), and descriptions that repeat the name.Description is long enough to matchdescription
Descriptions under 60 characters rarely carry both the job and the trigger.
Rule: Description is long enough to match →Description and when_to_use fit in 1,536 charactersdescription
Claude Code cuts the combined
Rule: Description and when_to_use fit in 1,536 characters →descriptionandwhen_to_usetext at 1,536 characters.Description says when to use it earlydescription
The first trigger phrase, such as
Rule: Description says when to use it early →Use when, starts after character 400.Body has instructionsstructure and content
The Markdown after the frontmatter should hold the instructions the agent follows, not be empty or a stray word.
Rule: Body has instructions →SKILL.md stays under 500 linesstructure and content
The spec and Anthropic both recommend keeping SKILL.md under 500 lines.
Rule: SKILL.md stays under 500 lines →Long skills keep detail in reference filesstructure and content
A body over 250 lines that never points to a bundled file, by link or by path.
Rule: Long skills keep detail in reference files →Body gives numbered stepsstructure and content
No numbered list and no
Rule: Body gives numbered steps →Stepheadings.Body shows an examplestructure and content
No code block and no heading named Example.
Rule: Body shows an example →Paths use forward slashesstructure and content
Finds backslash paths such as
Rule: Paths use forward slashes →scripts\helper.py.No wording that goes out of datestructure and content
Finds dated phrases like
Rule: No wording that goes out of date →as of 2025,before March 2026orcoming soon.Every linked file existsstructure and content
A relative link in SKILL.md points to a file that is not in the skill's folder.
Rule: Every linked file exists →Reference files are linked from SKILL.mdstructure and content
A file linked from SKILL.md links on to further bundled files that SKILL.md does not link.
Rule: Reference files are linked from SKILL.md →Explains rules instead of shouting themstructure and content
Five or more all-caps
Rule: Explains rules instead of shouting them →MUST,NEVERorALWAYSin the body.Bundled files have descriptive namesstructure and content
Files named like
Rule: Bundled files have descriptive names →doc2.md,file1.mdornotes3.txt.No READMEs or changelogs inside the skillstructure and content
A
Rule: No READMEs or changelogs inside the skill →README.md,CHANGELOG.md,INSTALLATION_GUIDE.mdorQUICK_REFERENCE.mdat the root of the skill folder.Scripts never wait for typed inputstructure and content
A bundled script calls
Rule: Scripts never wait for typed input →input(),getpass(),read -p,Read-Hostor a prompt library such as inquirer. Files named as templates are skipped, since a person runs the copy.Placeholders work in every agentstructure and content
Finds
Rule: Placeholders work in every agent →$ARGUMENTS,${CLAUDE_SKILL_DIR}and${CLAUDE_PROJECT_DIR}in SKILL.md.No real secretssecurity
Finds API keys, tokens, private keys and literal passwords in SKILL.md and its bundled files. Files under
Rule: No real secrets →evals/,fixtures/,__fixtures__/or test data folders are checked by the test data rule instead.Test data uses obvious placeholderssecurity
Finds secret-looking values in
Rule: Test data uses obvious placeholders →evals/,fixtures/,__fixtures__/and test data folders. These are usually fakes, so they cost a warning; the same value anywhere else fails the secrets rule.No piping downloads into a shellsecurity
Finds
Rule: No piping downloads into a shell →curl ... | sh,wget ... | bash,curl ... | python,bash <(curl ...),curl ... | source,source <(curl ...)andiwr ... | iex.Commands that run before loading are reviewedsecurity
Finds
Rule: Commands that run before loading are reviewed →!command blocks that Claude Code runs before the skill reaches the model.allowed-tools stays narrowsecurity
Rule: allowed-tools stays narrow →allowed-toolspre-approves unrestrictedBash(orShell) or every tool.Skills with side effects wait to be askedsecurity
The name or description is about deploying, publishing, sending or deleting, and automatic invocation is not turned off.
Rule: Skills with side effects wait to be asked →No hidden characterssecurity
Finds Unicode tag characters and bidirectional controls in SKILL.md and the bundled files, and runs of two or more zero-width characters on one line of a Markdown, text or YAML file.
Rule: No hidden characters →Frontmatter has no code-running YAML tagssecurity
Finds language tags such as
Rule: Frontmatter has no code-running YAML tags →!!python/object,!!python/apply,!!js/functionor!!ruby/objectin the frontmatter.No instructions to hide actions or override safeguardssecurity
Finds wording such as "ignore previous instructions", "override all system prompts", "don't tell the user." or "without telling the user." Quoted examples, lines that tell the agent to resist such text, tests and test data are skipped.
Rule: No instructions to hide actions or override safeguards →Doesn't turn off permission promptssecurity
Finds
Rule: Doesn't turn off permission prompts →--dangerously-skip-permissions,--dangerously-bypass-approvals-and-sandbox,danger-full-access,--yoloandbypassPermissionson a line that runs an agent CLI or sets a permission mode, unless the same file says it runs in a container or VM.Doesn't read credentials and call the networksecurity
One file names a file that holds secrets, such as an SSH private key,
Rule: Doesn't read credentials and call the network →~/.aws/credentials,.netrcor browserLogin Data, and also makes network calls withcurl,fetch,requestsor similar.No encoded or obfuscated codesecurity
Finds decode-then-run code (
Rule: No encoded or obfuscated code →base64 -d | sh,eval(atob(...)),exec(base64...)), long chains of hex escapes orString.fromCharCode, base64 strings over 200 characters outsideassets/and data files, and password-protected archives (unzip -P,7z x -p).Downloads use HTTPSsecurity
Finds
Rule: Downloads use HTTPS →curl,wgetand PowerShell downloads fromhttp://URLs. Local and private addresses such aslocalhost,127.0.0.1,10.x,192.168.xand169.254.169.254are skipped.Hooks in the frontmatter are reviewedsecurity
The frontmatter has a
Rule: Hooks in the frontmatter are reviewed →hooksfield, which Claude Code turns into commands that run on later tool calls.Credential files are reviewedsecurity
Names files that hold credentials:
Rule: Credential files are reviewed →~/.sshand SSH private keys,~/.aws/credentials,.netrc,.pypirc,~/.kube/config,~/.docker/config.json,~/.config/gh,/etc/shadow, browserLogin Dataand cookies, wallet files and macOS keychain lookups.Changes outside the project are reviewedsecurity
Finds recursive deletes of
Rule: Changes outside the project are reviewed →/,~or$HOME,chmod 777and setuid, writes to shell startup files and agent settings, scheduled jobs and services (crontab,launchctl load,systemctl enable,schtasks),mkfsanddd if=.Downloads are pinned to a versionsecurity
Finds downloads from
Rule: Downloads are pinned to a version →releases/latestand from a branch such asmainormasteron raw.githubusercontent.com, of scripts and binaries that the skill then runs.Instructions ship with the skillsecurity
Finds a skill that tells the agent to fetch an instruction file from a URL (
Rule: Instructions ship with the skill →SKILL.md,AGENTS.md,CLAUDE.md,instructions.md,prompt.md,.cursorrules) or to follow the steps or commands on a web page.Links show where they gosecurity
Finds links through URL shorteners such as bit.ly or tinyurl.com, links to public IP addresses instead of domain names, and downloads from paste sites or anonymous file hosts such as pastebin.com or transfer.sh.
Rule: Links show where they go →Network callssecurity
Lists the first network call:
Rule: Network calls →curl,wget,fetch(,requests,urllib,axios,Invoke-WebRequestand similar. A note, not a fault: it costs no points.Binary filessecurity
Lists compiled or packaged files in the skill folder, such as
Rule: Binary files →.exe,.dll,.so,.jar,.pycor.wasm. A note, not a fault: it costs no points.
To fix these in your copy of the skill, let your agent do it: the skillland-fix skill for Claude Code, Codex and Cursor edits the SKILL.md and runs these checks again until it scores A. Get the skills
The validator checks how the SKILL.md is written. It doesn't run the skill, so a high score doesn't mean the skill is useful, correct or safe. What the score covers
Compared with the index
Score
90 scores higher than 34% of 4,462 skills.
Body size
About 5,105 tokens, loaded each time the skill runs. The median is 1,651.
Files (20)
A tick marks the 20 of 20 files the validator read. It reads text files under 200 KB.
- SKILL.md (opens in new window)
- .tessl-plugin/plugin.json (opens in new window)
- evals/blueprint-playwright-parallel/criteria.json (opens in new window)
- evals/blueprint-playwright-parallel/task.md (opens in new window)
- evals/blueprint-sso-flags/criteria.json (opens in new window)
- evals/blueprint-sso-flags/task.md (opens in new window)
- evals/blueprint-xdist-isolation/criteria.json (opens in new window)
- evals/blueprint-xdist-isolation/task.md (opens in new window)
- evals/contractor-leaves-a-ready-made-framework-proposal/criteria.json (opens in new window)
- evals/contractor-leaves-a-ready-made-framework-proposal/task.md (opens in new window)
Show all 20 files
- evals/design-due-thursday-with-half-the-intake-blank/criteria.json (opens in new window)
- evals/design-due-thursday-with-half-the-intake-blank/task.md (opens in new window)
- evals/manager-wants-every-page-object-before-the-first-test/criteria.json (opens in new window)
- evals/manager-wants-every-page-object-before-the-first-test/task.md (opens in new window)
- evals/platform-team-designs-ci-for-a-47-second-suite/criteria.json (opens in new window)
- evals/platform-team-designs-ci-for-a-47-second-suite/task.md (opens in new window)
- evals/three-interaction-models-and-a-manager-who-bans-docs/criteria.json (opens in new window)
- evals/three-interaction-models-and-a-manager-who-bans-docs/task.md (opens in new window)
- references/fixture-mechanics.md (opens in new window)
- references/worked-example.md (opens in new window)
More testing & qa skills
replica-diff
A·100Jakeschincariol/replica-skill
Compares an app clone against the original: a feature parity score from the feature matrix (weighted by must, should, could) with the missing list in build order, plus a screenshot layout diff that ignores colour so a rebrand does not count against you. Two standard-library Python tools. Use when the user says "how close is my clone", "compare it to the original", "what's missing", "parity check", "diff the screens", "is it ready", or after /replica-test.
npx skills add Jakeschincariol/replica-skill --skill replica-diff10.7k
workflow-builder
A·98n8n-io/n8n
Load before calling workflow_builder_build_workflow. Once the user wants a workflow, load it before you ask about that workflow. Do not load it to ask about a request that does not yet say what to build. Use for new one-off workflows, edits, repairs and post-build verification of one workflow (not requests only to run or inspect a saved workflow), and for its credentials, model choices, evaluations and error workflow. For any other new workflow, load intent-recognition first when it is listed. If the workflow writes Data Tables, load data-table-manager first. Do a one-time request (no repeat or trigger words) now, without asking whether to repeat it; for one node, load one-off-operations and use execute_node.
npx skills add n8n-io/n8n --skill workflow-builder212.2k
agent-browser
A·96vercel-labs/agent-browser · official
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
npx skills add vercel-labs/agent-browser --skill agent-browser1.7M
More from testland/qa
- a11y-violation-gate
- ab-test-validity-checklist
- add-to-homescreen-flow-tests
- ai-spec-coverage-mapper
- ai-test-generator
- allure-reports
- api-chaos-runner
- apollo-server-tests
- appium-testing
- aria-authoring-patterns
- async-ordering-tests
- atlas-migrations
- attack-surface-test-checklist
- audit-trail-test-author
- auth0-tests
- aws-sam-local-testing
- axe-a11y
- azure-functions-tests
- bats-testing
- bdd-step-library-curator
- behave-testing
- boundary-value-generator
- browser-matrix-strategy-reference
- buf-cli-lint-breaking-build
- bug-bash-facilitator
- bug-report-template
- bug-tracker-workflow
- bullmq-tests
- cache-key-discriminator-audit
- cdn-cache-purge-tests
- ceedling-build-runner
- celery-tests
- chaos-drill-protocol
- chaos-experiment-author
- chaos-mesh
- chart-render-tests
- checkov-policy
- chromatic-visual-regression-testing
- chrome-extension-messaging-tests
- ci-failure-triage
- ci-test-job-conventions
- cli-output-conventions
- cloud-grid-e2e
- cloudflare-workers-miniflare
- codeql-queries
- compliance-coverage-scoring
- confirmation-testing-workflow
- contract-compatibility-gate
- coverage-diff-reporter
- coverage-guided-fuzzing
- coverage-py-analysis
- cron-job-test-author
- cross-tenant-data-leak-tests
- cucumber-testing
- currents-integration
- cve-exploitability-triage
- cypress-testing
- data-contract-extractor
- data-quality-conventions
- data-quality-gate
- db-query-plan-analyzer
- dbt-testing
- deadlock-detection-harness
- decision-table-test-design
- deepchecks-tests
- deepeval-evaluation
- defect-escape-taxonomy
- definition-of-done
- dependabot-config
- dependency-vulnerability-scanning
- desktop-test-strategy-reference
- detox-testing
- docker-compose-tests
- dotnet-unit-tests
- dr-drill-runner
- dst-transition-reference
- e2e-suite-budget
- elasticsearch-relevance-tests
- electron-playwright
- embedded-coverage-strategy-reference
- error-budget-tests
- espresso-suite
- event-sourcing-tests
- evidently-monitoring
- exec-quality-narrative
- experiment-results-interpreter
- experiment-sdk-testing
- exploratory-charter-author
- exploratory-testing
- failure-injection-test-author
- fairlearn-fairness
- fake-clock-testing
- faker-data
- fast-check-testing
- feature-flag-test-harness
- flake-axis-bisection
- flake-dashboard-author
- flake-pattern-reference
- flaky-test-quarantine
- flame-graph-analyzer
- flaui-tests
- flutter-testing
- flyway-migrations
- framework-choice-advisor
- game-perf-profiling
- gameplay-recording-replay
- gdpr-test-patterns
- gherkin-from-stories
- ghz-load
- giskard-llm
- giskard-tests
- github-actions-test-jobs
- gitlab-ci-test-jobs
- gitleaks-scanning
- go-unit-tests
- godot-gut-tests
- golden-file-conventions
- googletest-embedded-arm
- graphql-complexity-limit-tester
- graphql-n-plus-one-remediation
- graphql-schema-regression
- graphql-subscription-test-author
- graphql-yoga-tests
- great-expectations
- grpc-mock
- grpc-streaming-test-author
- grpcurl-cli
- hardware-in-loop-reference
- hasura-tests
- helm-chart-tester
- hipaa-test-patterns
- hybrid-search-eval-author
- hypothesis-testing
- i18n-string-coverage
- idempotency-test-author
- jacoco-analysis
- jaeger-trace-tests
- jenkinsfile-test-stages
- jmeter-load-testing
- jqwik-testing
- js-unit-tests
- judgment-list-author
- junit-xml-analysis
- jvm-unit-tests
- k-anonymity-verifier
- k6-load-testing
- kafka-consumer-tests
- karate-testing
- keycloak-tests
- knip-dead-code
- langfuse-tracing
- language-native-sast
- launchdarkly-testing
- lcov-analysis
- lighthouse-perf
- liquibase-migrations
- living-documentation-publisher
- lizard-complexity
- llm-eval-anti-patterns
- llm-regression-suite-author
- load-testing-overview
- locale-format-validator
- madge-deps
- maestro-flows
- mailpit-testing
- malicious-payload-bank
- manual-test-script-author
- mfa-flow-test-author
- migration-operation-taxonomy
- mobile-a11y-test-author
- mobile-device-matrix-toolkit
- model-based-test-graph-author
- model-performance-regression-gate
- model-risk-evidence-matrix
- mqtt-tests
- msw-handlers
- mull-mutation
- multi-tool-finding-triage
- multiplayer-state-machine-coverage
- mutant-survival-triage
- mutmut-mutation
- mvcc-isolation-tests
- negative-test-generator
- non-functional-requirement-extractor
- notebook-ci-pipeline-author
- nuclei-dast
- oauth-flow-test-author
- object-model-patterns
- offline-fallback-tests
- okta-tests
- openapi-contract-diff
- openfeature-sdk-testing
- opentelemetry-trace-assertions
- otel-collector-config-tester
- outbox-pattern-test-author
- pact-contract-testing
- pairwise-test-case-generator
- payment-flow-test-author
- payment-gateway-sandboxes
- pci-dss-control-test-author
- pdf-accessibility-checker
- pdf-snapshot-tester
- percy-visual-regression-testing
- perf-budget-gate
- pester-cli-testing
- pii-masking-pipeline-builder
- pitest-mutation
- platform-cert-overview-reference
- playwright-agents
- playwright-extension-fixtures
- playwright-fixture-builder
- playwright-snapshots
- playwright-testing
- policy-as-code-runner
- post-mortem-author
- postman-collections
- presidio-pii-detection
- print-stylesheet-tests
- prod-canary-validator
- promptfoo-evaluation
- proptest-testing
- protobuf-compat-checking
- pseudo-localization-runner
- push-notification-test-author
- pytest-asyncio-patterns
- python-unit-tests
- qa-hiring-kit
- qemu-system-test-runner
- qt-test-framework
- quality-status-digest
- rabbitmq-tests
- race-condition-test-author
- ragas-evaluation
- reachability-analyzer
- red-green-refactor
- redis-cache-tests
- regression-suite-selector
- release-runbook-author
- renovate-config
- reqnroll-testing
- restassured-testing
- restler-fuzzing
- risk-matrix
- rtl-rendering-tester
- rust-unit-tests
- saga-transaction-tests
- schemathesis-fuzzing
- screen-reader-test-author
- secrets-rotation-runner
- seed-data-curator
- selenium-grid-4-runner
- selenium-testing
- semgrep-rules
- server-sent-events-tests
- serverless-integration-test-builder
- service-worker-lifecycle-tests
- session-management-test-author
- sidekiq-tests
- skill-matrix-author
- slo-load-test-plan
- smoke-suite-gate
- sms-test-author
- soc2-evidence-collector
- soda-checks
- sonarqube-maintainability-gate
- sonarqube-rules
- spec-testability-heuristics
- sqs-tests
- state-transition-test-design
- storybook-visual-regression-testing
- stride-threat-modeling
- stripe-subscription-billing-test-author
- stripe-test-cards-and-webhooks
- stryker-mutation
- stryker-net-mutation
- syft-generation
- synthea-healthcare-data
- synthetic-data-toolkit
- synthetic-monitor-author
- synthetic-pii-generator
- tcm-case-management
- tenant-onboarding-test-author
- test-case-anatomy-reference
- test-case-from-live-feature
- test-case-ideation-from-story
- test-code-conventions
- test-coverage-targeter
- test-data-patterns
- test-design-scorecard
- test-effort-estimation
- test-framework-architecture-audit
- test-isolation-patterns
- test-management-sync
- test-pyramid-balancer
- test-removal-criteria
- test-run-summary-author
- test-strategy-author
- test-suite-health-audit
- testcontainers
- timezone-test-matrix-builder
- toxiproxy-chaos
- trace-spec-author
- traceability-matrix-builder
- trivy-config
- trivy-image
- tui-snapshot-tester
- unity-test-framework
- unity-test-framework-c
- unreal-automation-system
- varnish-test-vtc-syntax
- vector-search-recall-tests
- vex-author
- visual-baseline-conventions
- visual-baseline-gate
- wcag-color-contrast
- wcag-compliance-reporter
- wcag-keyboard-navigation
- web-e2e-overview
- web-push-tests
- web-vitals-inp-deep
- webdriverio-testing
- webhook-delivery-tester
- websocket-tests
- winappdriver
- wiremock-stubs
- workbox-tests
- xcuitest-suite
- zap-baseline