CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/service-worker-tests

Test service workers with Playwright (`context.serviceWorkers()` + `waitForEvent('serviceworker')`) and unit tests via `service-worker-mock`. Covers the MV3 service-worker lifecycle (~30s suspend), cache strategies (cache-first, network-first, stale-while-revalidate), and `evaluate()` continuity across worker restart. Use when a site registers a service worker and its caching / offline behavior is uncovered, or users report stale content surviving a deploy; for the install / add-to-homescreen flow use pwa-install-flow-tests, and to design (not test) the caching policy use sw-cache-strategy-author.

79

Quality

99%

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

100%

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

A well-structured, token-efficient skill body built on complete executable examples with clear sequencing and a properly signaled one-level reference. It avoids conceptual padding and organizes content for easy navigation.

DimensionReasoningScore

Conciseness

The body is lean and dominated by executable TypeScript that earns its tokens; it does not explain what a service worker is and keeps prose to actionable notes, with only a brief rhetorical opener that does not pad meaningfully.

3 / 3

Actionability

Every section ships copy-paste-ready, complete TypeScript (persistent-context setup, offline worked example, evaluate, cache-first, network-first) with real Playwright APIs rather than pseudocode.

3 / 3

Workflow Clarity

The "How to use" section sequences the procedure, and the worked example numbers its steps with validation checkpoints (waitForEvent before asserting, waitForLoadState('networkidle')); operations are not destructive/batch so no explicit fix-retry loop is required.

3 / 3

Progressive Disclosure

A concise overview points to one clearly signaled, one-level-deep bundle file — references/advanced-service-worker-tests.md (verified present) — for advanced recipes, keeping the main skill appropriately split.

3 / 3

Total

12

/

12

Passed

Description

100%

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, specific description that concretely names capabilities and tools, provides explicit natural-language triggers, and clearly distinguishes itself from neighboring skills. Third-person voice is maintained throughout, with no vague fluff or over-claims.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — "Test service workers with Playwright (`context.serviceWorkers()` + `waitForEvent('serviceworker')`)", "unit tests via `service-worker-mock`", cache strategies, and "`evaluate()` continuity across worker restart" — matching the multiple-specific-actions anchor.

3 / 3

Completeness

Explicitly answers both what (Playwright + service-worker-mock testing, lifecycle, cache strategies, evaluate continuity) and when ("Use when a site registers a service worker and its caching / offline behavior is uncovered, or users report stale content surviving a deploy").

3 / 3

Trigger Term Quality

Uses natural terms a user would say — "registers a service worker", "caching / offline behavior", "stale content surviving a deploy" — giving good coverage rather than only technical jargon.

3 / 3

Distinctiveness Conflict Risk

Clear niche with explicit disambiguation — routing install/add-to-homescreen to pwa-install-flow-tests and cache-policy design to sw-cache-strategy-author — making conflict with sibling skills unlikely.

3 / 3

Total

12

/

12

Passed

Validation

93%

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

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Reviewed

Table of Contents