CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/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.

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

88%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is a high-quality, deeply actionable skill body: it sequences WebSocket testing across seven concrete steps with executable, copy-paste-ready code and embedded assertion-based validation, and correctly pushes the deeper close-code and backpressure recipes into a real, clearly-signaled one-level-deep reference file. The main gaps are modest: a few passages re-explain protocol basics Claude already knows, and the long reconnect section could be split out to tighten the main file.

DimensionReasoningScore

Conciseness

Mostly dense with non-obvious, high-value specifics ("ws counts the *decompressed* size against it", browser close() code rules, teardown ordering, "closeTimeout (default 30000 ms)"), but there are minor instances of reciting what Claude already knows — the RFC 6455 handshake header checklist ("Sec-WebSocket-Key: base64 16-byte nonce", "Sec-WebSocket-Version: 13") and extended RFC quotes on backoff — and the ~350-line body could be tightened. This fits 'efficient; minor instances of over-explanation that could be trimmed' rather than the lean 5 anchor.

4 / 5

Actionability

Every section ships copy-paste-ready, complete code: the handshake test with the exact Sec-WebSocket-Accept derivation, subprotocol negotiation tests, ping/pong timeout test, a full reconnect client with injectable random/base/cap, a browser-faithful fake WebSocket, a Jest fake-timer test suite, the maxPayload server fixture with teardown, and a Playwright frame-inspection snippet. This matches the anchor for fully executable, copy-paste-ready coverage of the common cases.

5 / 5

Workflow Clarity

A clear seven-step sequence (pick lib → handshake → subprotocols → keepalive → reconnect → server limits/teardown → Playwright) where each step embeds explicit validation via assertion-based tests, and the 'Anti-patterns' table plus the 'Pre-deployment gate' checklist in 'When to use' provide error-recovery feedback loops (failure → why → fix → step). This matches the anchor for clear sequence with explicit validation steps and feedback loops; no destructive/batch cap applies since this is test-writing guidance.

5 / 5

Progressive Disclosure

The single bundle file exists (references/websocket-test-recipes.md) and is clearly signaled one level deep with an accurate description of its contents ("close-frame status-code matrix ... and backpressure / large-message ... recipes") plus proper link syntax, and sections are well-headered. However, the body itself runs ~350 lines with some content that could equally live in the reference file (the full reconnect implementation and browser-fake test suite in Step 5, and a close-code table that partially duplicates the reference's matrix), fitting 'most content is appropriately placed; minor organization gaps' over the cleanly split 5 anchor.

4 / 5

Total

18

/

20

Passed

Description

96%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it pairs an explicit 'Use whenever' trigger with a comprehensive, concrete list of testing capabilities and the specific client libraries, all in third-person/implicit voice with no fluff. The only weakness is the mildly broad 'real-time server' trigger, which slightly raises overlap risk with adjacent real-time-protocol skills.

DimensionReasoningScore

Specificity

The description lists seven concrete actions — "connect, send and receive messages, ping/pong, close codes, reconnect after the server drops, subprotocols and backpressure" — plus the client stacks ("ws, Python websockets or Playwright"), matching the anchor for multiple specific concrete actions with comprehensive coverage; nothing is vague or generic.

5 / 5

Completeness

Both halves are explicit: the "when" is a clear trigger clause ("Use whenever the task is to test a WebSocket endpoint or real-time server") and the "what" is the enumerated capability list. This matches the anchor for clearly and explicitly answering both what and when with concrete trigger phrases; the explicit 'Use when' guidance means no cap applies.

5 / 5

Trigger Term Quality

Natural trigger phrases a user would actually say are present: "test a WebSocket endpoint", "real-time server", "ping/pong", "close codes", "reconnect", along with library-name synonyms ("ws", "websockets", "Playwright"). Coverage is comprehensive with no obviously missing common variants, fitting the anchor for comprehensive natural-term coverage including synonyms.

5 / 5

Distinctiveness Conflict Risk

The dominant triggers ("WebSocket endpoint", "ping/pong", "close codes", "subprotocols") define a clear niche, but the secondary trigger "real-time server" is broad enough to also match closely related skills (e.g., SSE or gRPC streaming testing, which the skill itself cross-references). This fits 'mostly distinct; minor overlap risk with closely related skills' better than the 5 anchor, whose example relies on a single unambiguous domain trigger.

4 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page