websocket-tests
Use whenever the task is to test a WebSocket endpoint or real-time server: connect, send and receive messages, ping/pong, close codes, reconnect after the server drops, subprotocols and backpressure, with ws, Python websockets or Playwright.
Install websocket-tests
npx skills add testland/qa --skill websocket-tests -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: websocket-tests
description: "Use whenever the task is to test a WebSocket endpoint or real-time server: connect, send and receive messages, ping/pong, close codes, reconnect after the server drops, subprotocols and backpressure, with ws, Python websockets or Playwright."
metadata:
keywords: "websocket, rfc6455, realtime-protocols, frame-testing, reconnection"
version: "1.3.10"
---# websocket-tests
Per [RFC 6455], tests must cover the **handshake**, **control
frames**, **close codes**, and **subprotocol negotiation** - not
just message round-trips.
## When to use
- Testing a real-time service: chat, notifications, collaborative
editing, live dashboards.
- Validating reconnection logic after server-side restart or
network partition.
- Pre-deployment gate: the close-code matrix is correct + ping/pong
keepalive is wired.
## Step 1 - Pick the client lib
| Stack | Library |
|---|---|
| Node | `ws` (npm install ws) |
| Browser e2e | Playwright `page.on('websocket', …)` for frame inspection |
| Python | `websockets` |
| Go | `github.com/gorilla/websocket` |
| Java | `io.javalin/javalin-testtools` or `org.glassfish.tyrus/tyrus-client` |
## Step 2 - Handshake assertions
Per [RFC 6455], the opening handshake requires:
- HTTP GET, version 1.1+
- `Upgrade: websocket`
- `Connection: Upgrade`
- `Sec-WebSocket-Key`: base64 16-byte nonce
- `Sec-WebSocket-Version: 13`
Test that an upgrade is performed (101) and that the accept header
matches:
```js
import { WebSocket } from 'ws';
import crypto from 'crypto';
test('handshake completes with correct accept header', async () => {
const ws = new WebSocket('ws://localhost:8080/');
await new Promise((res, rej) => {
ws.once('upgrade', (msg) => {
expect(msg.statusCode).toBe(101);
// server derives accept: base64(sha1(key + RFC 6455 GUID))
const expectedKey = crypto
.createHash('sha1')
.update(ws._req?.getHeader('Sec-WebSocket-Key') + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')
.digest('base64');
expect(msg.headers['sec-websocket-accept']).toBe(expectedKey);
res(null);
});
ws.once('error', rej);
});
ws.close();
});
```
## Step 3 - Subprotocol negotiation
The `Sec-WebSocket-Protocol` header negotiates a subprotocol; the
server selects one or none.
```js
test('server picks v2 subprotocol when offered', async () => {
const ws = new WebSocket('ws://localhost:8080/', ['chat-v1', 'chat-v2']);
await new Promise((r) => ws.once('open', r));
expect(ws.protocol).toBe('chat-v2');
ws.close();
});
test('client gives up when the server picks none of its subprotocols', async () => {
const ws = new WebSocket('ws://localhost:8080/', ['unknown-v99']);
const err = new Promise((r) => ws.once('error', r));
const code = new Promise((r) => ws.once('close', (c) => r(c)));
expect((await err).message).toBe('Server sent no subprotocol');
expect(await code).toBe(1006);
});
```
No close frame is involved here: when a `ws` server's `handleProtocols`
returns `false` the upgrade succeeds without a `Sec-WebSocket-Protocol`
header, and the `ws` client aborts the handshake itself with the error
above, so the close code is the local 1006, not 1002 ([ws-src]).
## Step 4 - Ping/pong keepalive
Control frames include `ping (0x9)`, `pong (0xA)`, `close (0x8)`;
payloads <= 125 bytes.
```js
test('client receives pong within 5s of ping', async () => {
const ws = new WebSocket('ws://localhost:8080/');
await new Promise((r) => ws.once('open', r));
const pongReceived = new Promise((resolve) => {
ws.on('pong', () => resolve(true));
});
ws.ping('keepalive');
const got = await Promise.race([
pongReceived,
new Promise((r) => setTimeout(() => r(false), 5000)),
]);
expect(got).toBe(true);
ws.close();
});
```
## Deeper recipes
The close-frame status-code matrix (1000/1001/1002/1006/1011) and
the backpressure / large-message (`maxPayload`, 1009) recipes are in
[references/websocket-test-recipes.md](references/websocket-test-recipes.md).
## Step 5 - Reconnect: backoff, when to stop, browser close rules
Backoff is in the protocol itself. [RFC 6455] section 7.2.3: "clients
SHOULD use some form of backoff when trying to reconnect after abnormal
closures", "The first reconnect attempt SHOULD be delayed by a random
amount of time", and later attempts "SHOULD be delayed by increasingly
longer amounts of time". A fixed delay makes every client that lost the
same server come back in the same second (a reconnect storm). Use a
random first delay, then capped exponential delays with jitter, and
reset the attempt counter once a connection has stayed up.
Not every close should be retried. Decide by close code:
| Close code | Meaning | Client action |
|---|---|---|
| Own `close(1000)` (logout, unmount) | Deliberate | Stop. Set a `stopped` flag before closing. |
| 1006 | Connection dropped without a close frame (reported locally) | Reconnect with backoff. |
| 1001, 1011, 1012-1014 | Server going away or failing | Reconnect with backoff. |
| 1008 | Policy violation | Stop; fix the cause or re-authenticate. |
| 1009 | Message too big | Don't resend the same message. |
| 4000-4999 chosen by the app for auth or session revoked | Application decision | Stop and re-authenticate; retrying loops forever. |
RFC 6455 section 7.4.2 reserves 3000-3999 "for use by libraries,
frameworks, and applications" and 4000-4999 "for private use", so
app-specific codes belong in 4000-4999.
**Browser `close()` is stricter than Node `ws`.** Per the [WHATWG
WebSockets standard][whatwg], `WebSocket.close(code, reason)` throws an
`InvalidAccessError` `DOMException` unless code is 1000 or in 3000-4999,
and a `SyntaxError` when the reason is longer than 123 bytes as UTF-8.
So `close(1001)` from page script throws. The Node `ws` client accepts
1000-1014 except 1004-1006, plus 3000-4999 ([ws-src]), so a test that
runs the client against `ws` or a permissive fake passes while the
browser throws. Make the fake enforce the browser rules.
**1006 is never on the wire.** RFC 6455: "1006 is a reserved value and
MUST NOT be set as a status code in a Close control frame by an
endpoint". A client sees 1006 when the TCP connection dies. To produce
it from a test server, call `socket.terminate()` (it destroys the
socket, per the [ws API][ws-api]) instead of `close(1006)`, which `ws`
rejects.
```js
// client: random, capped, exponential delays; no retry after a deliberate or auth close
export function connect(url, onEvent, { random = Math.random, base = 1000, cap = 30_000 } = {}) {
const NO_RETRY = new Set([1008, 4000]); // 4000: this app's "session revoked"
let ws, attempt = 0, stopped = false, timer;
function open() {
ws = new WebSocket(url);
ws.onmessage = (e) => { attempt = 0; onEvent(JSON.parse(e.data)); }; // healthy again
ws.onclose = (e) => {
if (stopped || NO_RETRY.has(e.code)) return;
timer = setTimeout(open, random() * Math.min(cap, base * 2 ** attempt++));
};
}
open();
return { stop() { stopped = true; clearTimeout(timer); ws.close(1000, 'bye'); } };
}
```
```js
// test: a fake that behaves like the browser, fake timers, a fixed random source
class BrowserLikeSocket {
static all = [];
constructor(url) { this.url = url; BrowserLikeSocket.all.push(this); }
close(code, reason = '') {
if (code !== undefined && code !== 1000 && (code < 3000 || code > 4999))
throw new DOMException('bad close code', 'InvalidAccessError');
if (new TextEncoder().encode(reason).length > 123)
throw new DOMException('reason too long', 'SyntaxError');
this.onclose?.({ code: code ?? 1005 });
}
}
globalThis.WebSocket = BrowserLikeSocket;
beforeEach(() => { BrowserLikeSocket.all = []; jest.useFakeTimers(); });
test('backs off with jitter after an abnormal close', () => {
connect('wss://example.test/live', () => {}, { random: () => 0.5 });
BrowserLikeSocket.all[0].onclose({ code: 1006 });
jest.advanceTimersByTime(499);
expect(BrowserLikeSocket.all).toHaveLength(1);
jest.advanceTimersByTime(1); // 0.5 * 1000 ms
expect(BrowserLikeSocket.all).toHaveLength(2);
BrowserLikeSocket.all[1].onclose({ code: 1006 });
jest.advanceTimersByTime(999);
expect(BrowserLikeSocket.all).toHaveLength(2); // next delay is 0.5 * 2000 ms
});
test('does not reconnect after an auth close or stop()', () => {
const c = connect('wss://example.test/live', () => {}, { random: () => 0.5 });
BrowserLikeSocket.all[0].onclose({ code: 4000 });
jest.advanceTimersByTime(60_000);
expect(BrowserLikeSocket.all).toHaveLength(1);
expect(() => c.stop()).not.toThrow(); // a 1001 here would throw like the browser
});
```
For the end-to-end version, bounce a real server (or `terminate()` every
server-side socket) and assert the client is back within the backoff
cap. Cross-ref `error-budget-tests` for an SLO-driven reconnect budget.
## Step 6 - Server limits and test teardown (Node `ws`)
Per the [ws API][ws-api] and [ws README][ws-readme]:
- **`maxPayload`** is "The maximum allowed message size in bytes",
default 104857600 (100 MiB), and "Set to 0 to disable the limit". Set
it to the product limit. `ws` counts the *decompressed* size against
it, so a small permessage-deflate frame that inflates past the limit
is also rejected ([ws-src]); the connection closes with 1009.
- **Handle `'error'` on every server-side socket.** An oversized or
malformed message is emitted as an `'error'` event on that socket
before the close; with no listener, Node throws and the whole server
process goes down. `ws.on('error', log)` in the `connection` handler.
- **permessage-deflate** "is disabled by default on the server and
enabled by default on the client", "adds a significant overhead in
terms of performance and memory consumption", and Node's zlib can show
"catastrophic memory fragmentation" under concurrency. Leave it off
unless bandwidth needs it; if on, keep `maxPayload` finite and tune
`threshold` (default 1024 bytes) and `concurrencyLimit` (default 10).
- **`wss.close()` does not end the test run by itself.** "Existing
connections are not closed automatically", and with the `server` or
`noServer` option the HTTP server "must be closed manually". Teardown:
`for (const c of wss.clients) c.terminate()`, then `wss.close()`, then
`server.close()`. A graceful `close()` to a peer that never answers
waits `closeTimeout` (default 30000 ms) before the socket is forced
shut.
```js
import http from 'node:http';
import { WebSocket, WebSocketServer } from 'ws';
async function roundTrip(url, payload) {
const ws = new WebSocket(url);
await new Promise((r) => ws.once('open', r));
const reply = new Promise((r) => ws.once('message', r));
ws.send(payload);
const got = await reply;
ws.close();
return got;
}
let srv, wss, url;
beforeAll(async () => {
srv = http.createServer();
wss = new WebSocketServer({ server: srv, maxPayload: 64 * 1024 });
wss.on('connection', (ws) => { ws.on('error', () => {}); ws.on('message', (m) => ws.send(m)); });
await new Promise((r) => srv.listen(0, r)); // port 0: no clashes between workers
url = `ws://127.0.0.1:${srv.address().port}`;
});
afterAll(async () => {
for (const c of wss.clients) c.terminate();
await new Promise((r) => wss.close(r));
await new Promise((r) => srv.close(r));
});
test('a message at the limit is delivered, one byte more closes with 1009', async () => {
const ok = await roundTrip(url, Buffer.alloc(64 * 1024)); // echoed back
expect(ok.length).toBe(64 * 1024);
const ws = new WebSocket(url);
await new Promise((r) => ws.once('open', r));
ws.send(Buffer.alloc(64 * 1024 + 1));
expect(await new Promise((r) => ws.once('close', r))).toBe(1009);
});
```
If the server enables compression, add the inflation case: a client
created with `perMessageDeflate: true` sends a large run of zeros that
is a few KB on the wire, and the test expects 1009 and no delivery.
## Step 7 - Playwright frame inspection (browser e2e)
```ts
test('app sends auth frame on open', async ({ page }) => {
page.on('websocket', (ws) => {
ws.on('framesent', (event) => {
const data = JSON.parse(event.payload as string);
if (data.type === 'auth') {
expect(data.token).toBeTruthy();
}
});
});
await page.goto('https://localhost:3000/dashboard');
});
```
## Anti-patterns
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Skip handshake test (assume browser handles it) | Server-side `Sec-WebSocket-Accept` bug ships | Step 2 |
| Test only happy-path message exchange | Reconnect/close-code bugs slip through | Step 5 + close-code recipe (references) |
| Use HTTP polling fallback as "good enough" | Different code path; doesn't validate WS | Test the actual WS path |
| Hard-code reconnect interval, no jitter | Thundering herd on server bounce | Random first delay, capped exponential backoff (Step 5) |
| Reconnect on every close code | Revoked or banned sessions retry forever | Stop on deliberate, policy and app auth closes (Step 5) |
| Fake `WebSocket` that accepts any `close()` code | Browser-only `InvalidAccessError` ships | Fake enforces 1000 / 3000-4999 and 123 bytes (Step 5) |
| Server test "sends 1006" | 1006 never travels in a close frame | `terminate()` the socket (Step 5) |
| `maxPayload: 0`, or the 100 MiB default left on a public server | One message can exhaust memory | Product limit, `'error'` handler per socket (Step 6) |
| Teardown awaits `wss.close()` with clients still open | Jest never exits | Terminate clients, then close `wss` and the HTTP server (Step 6) |
| Skip subprotocol test in versioned APIs | Old clients silently get v2 server response shape | Step 3 |
## Limitations
- RFC 6455 is the base spec. WebSocket-over-HTTP/2 (RFC 8441)
changes the bootstrap; verify per stack if HTTP/2 is in play.
- Browser autobahn-suite-style edge cases (fragmentation, extension
negotiation) are out of scope here; use Autobahn TestSuite for
full conformance.
## References
- [RFC 6455] - WebSocket protocol (handshake, frames, close codes;
section 7.2.3 reconnect backoff, 7.4.1 1006/1008/1009, 7.4.2 code ranges)
- [whatwg] - WHATWG WebSockets standard: `close()` code and reason rules
- [ws-api] - `ws` API: `maxPayload`, `perMessageDeflate` options,
`server.close()`, `terminate()`, `closeTimeout`
- [ws-readme] - `ws` README: permessage-deflate defaults and memory warning
- [ws-src] - `ws` source: inflated size checked against `maxPayload`
(`receiver.js`), valid close codes (`validation.js`), subprotocol errors
(`websocket.js`)
- `server-sent-events-tests` -
one-way push alternative
- `grpc-streaming-test-author` (qa-grpc) - typed
RPC streaming alternative
[RFC 6455]: https://datatracker.ietf.org/doc/html/rfc6455
[whatwg]: https://websockets.spec.whatwg.org/
[ws-api]: https://github.com/websockets/ws/blob/master/doc/ws.md
[ws-readme]: https://github.com/websockets/ws/blob/master/README.md
[ws-src]: https://github.com/websockets/ws/tree/master/lib0 errors · 0 warnings · 0 tips · 57 checks passed · 1 note to review
SKILL.md body: 349 lines, about 3,682 tokens · description: 241 characters · 23 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
16 of 16 passed - SecurityA
Secrets, hidden instructions, shell commands and side effects
20 of 20 passed
All checks
Calls the network with
fetch(inreferences/websocket-test-recipes.md, line 35noteData can leave your machine.
Fix: Say what the call sends. Name the host and the data in the instructions, so a reader can check them.
Rule: Network calls →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 →Body stays under about 5,000 tokensstructure and content
The spec recommends keeping the loaded instructions under 5,000 tokens.
Rule: Body stays under about 5,000 tokens →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 →Long reference files start with a contents liststructure and content
A bundled Markdown reference file over 100 lines with no contents list near the top. Files under
Rule: Long reference files start with a contents list →assets/ortemplates/, templates and test data are skipped.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 →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
100 scores higher than 84% of 4,462 skills.
Body size
About 3,682 tokens, loaded each time the skill runs. The median is 1,651.
Files (23)
A tick marks the 23 of 23 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/ci-runners-cannot-reach-the-stream-port/criteria.json (opens in new window)
- evals/ci-runners-cannot-reach-the-stream-port/task.md (opens in new window)
- evals/nine-thousand-clients-return-at-the-same-second/criteria.json (opens in new window)
- evals/nine-thousand-clients-return-at-the-same-second/task.md (opens in new window)
- evals/old-mobile-builds-render-blank-messages/criteria.json (opens in new window)
- evals/old-mobile-builds-render-blank-messages/task.md (opens in new window)
- evals/presence-stays-green-after-the-lid-closes/criteria.json (opens in new window)
- evals/presence-stays-green-after-the-lid-closes/task.md (opens in new window)
Show all 23 files
- evals/rolling-deploy-looks-like-a-network-failure/criteria.json (opens in new window)
- evals/rolling-deploy-looks-like-a-network-failure/task.md (opens in new window)
- evals/websockets-py-upgrade/criteria.json (opens in new window)
- evals/websockets-py-upgrade/task.md (opens in new window)
- evals/ws-auth-origin/criteria.json (opens in new window)
- evals/ws-auth-origin/task.md (opens in new window)
- evals/ws-browser-reconnect/criteria.json (opens in new window)
- evals/ws-browser-reconnect/task.md (opens in new window)
- evals/ws-heartbeat-backpressure/criteria.json (opens in new window)
- evals/ws-heartbeat-backpressure/task.md (opens in new window)
- evals/ws-limits-teardown/criteria.json (opens in new window)
- evals/ws-limits-teardown/task.md (opens in new window)
- references/websocket-test-recipes.md (opens in new window)
More testing & qa skills
programming
A·90code-yeongyu/oh-my-openagent
Applies strict, modern language practice (typed errors, exhaustive match, tests that can fail) for Python, Rust, TypeScript, JavaScript, and Go. Use for work on .py, .rs, .ts, .js, or .go files, and whenever a test or spec file is written, reshaped, reviewed, or deleted: the four-question test authoring gate and the junk-test classes live here.
npx skills add code-yeongyu/oh-my-openagent --skill programming71.1k
mem0ai/mem0 · official
Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate and says "verify", "test the integration", "run /mem0-test-integration", or when a .mem0-integration/ directory exists and tests have not been run yet on the current branch. DO NOT TRIGGER when: the user wants to run general project tests (defer to the repo's native test command), or when no prior /mem0-integrate run exists in the current branch (ask them to run /mem0-integrate first). This skill ONLY catches compile and runtime bugs by design. Logical integration errors — wrong data stored, wrong time retrieved, wrong user scoping — are on the human reviewer.
npx skills add mem0ai/mem0 --skill mem0-test-integration69.5k
fix-pr
D·64questdb/questdb · official
Develop features and fix bugs or review findings from a list, one item at a time, with exhaustive tests enforced while developing - design the change and its test plan against CLAUDE.md "Testing" and have both challenged independently, build test-first, run the item's tests with coverage (ci/diff_coverage.py) and add tests until every changed line, branch and condition runs, have the tests reviewed independently and close the gaps; commit. When the queue is empty, run review-pr at level 3 over the whole PR, as before approval, and treat what blocks it the same way until a review finds nothing that blocks. Bugs this PR caused that an independent risk rating finds unlikely to hurt users ship as private issues, and bugs found on the way that the PR base already has become GitHub issues; neither is work for the run. Use when the user runs /skill:fix-pr or asks to develop or fix items with it.
npx skills add questdb/questdb --skill fix-pr17.6k
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-framework-blueprint
- 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
- winappdriver
- wiremock-stubs
- workbox-tests
- xcuitest-suite
- zap-baseline