CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/offline-fallback-tests

Build-an-X workflow that emits the offline-fallback test suite. Walks the eight Jake Archibald offline recipes per [web.dev/articles/offline-cookbook][off-cookbook] (`Cache only`, `Network only`, `Cache, falling back to network`, `Cache and network race`, `Network falling back to cache`, `Cache then network`, `Generic fallback`, `Service Worker side templating`), maps each recipe to its assertion shape, layers the Workbox `offlineFallback()` recipe per [developer.chrome.com/docs/workbox/modules/workbox-recipes][wb-recipes], and pins the offline storage strategy (Cache Storage vs IndexedDB vs Storage Manager `persist()`/`estimate()`) per [web.dev/learn/pwa/offline-data][off-data]. Output: a Playwright spec file with one test per route's chosen recipe + a coverage matrix mapping recipes to URL patterns. Use when a route's SW caching behavior is being chosen or changed, or when a "doesn't work offline" report needs the failing route's recipe localized.

66

Quality

83%

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

78%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.

A highly actionable, well-structured skill body with executable test templates and proper progressive disclosure. Its chief weakness is redundancy across the Step 1 matrix, Step 6 coverage matrix, and the worked example, plus an implicit rather than explicit test-failure feedback loop.

Suggestions

Collapse the Step 6 coverage matrix to only the fields Step 1 omits (spec name + source) and reference Step 1's matrix for route/recipe/reason, removing the duplicated rows.

Promote the failure-handling loop into the workflow as an explicit Step 7 ('run the suite in CI; a failing cell's recipe names the strategy to revisit') instead of leaving it only in Anti-patterns.

Trim the verbatim cookbook use-case quotes in the Step 1 table to the recipe name plus a short paraphrase, relying on the [off-cookbook] link for the full statements.

DimensionReasoningScore

Conciseness

The body largely avoids explaining concepts Claude already knows, but it repeats material: Step 1's route/recipe matrix and Step 6's coverage matrix overlap substantially, the worked example re-lists the same routes, and all eight cookbook use-case statements are quoted verbatim despite being available via the linked cookbook.

3 / 5

Actionability

It provides multiple copy-paste-ready, executable Playwright TypeScript test blocks (Cache only, Network only, Storage Manager persist, cache-usage budget, offline.html precache, online recovery) and correctly delegates the remaining six recipe templates to the verified references/recipes.md, covering the common cases.

5 / 5

Workflow Clarity

Six steps are clearly sequenced and Step 6 supplies an explicit CI gate ('CI gates on every row having a passing spec'); the emit workflow is non-destructive so the destructive-cap does not apply, but the test-fails -> diagnose-which-recipe -> fix feedback loop is left implicit in the Anti-patterns table rather than stated as a workflow step.

4 / 5

Progressive Disclosure

Sections are well-organized (Overview, When to use, Workflow steps 1-6, Worked example, Anti-patterns, Limitations, References) and references/recipes.md is a real, one-level-deep file clearly signaled in Step 2, with the two pole tests kept inline and the rest appropriately split out.

5 / 5

Total

17

/

20

Passed

Description

83%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, concrete, well-triggered description with explicit 'what' and 'when' clauses and active disambiguation from sibling skills. Its main weakness is the opening 'Build-an-X workflow' phrasing, which looks like an unfilled template placeholder.

Suggestions

Replace the 'Build-an-X workflow' placeholder with a concrete verb phrase such as 'Emits the offline-fallback Playwright test suite' so the description opens with a real action.

Add the natural file extensions users mention (.ts spec, coverage .yaml) and a synonym like 'PWA offline test' to broaden trigger coverage.

Tighten the 'when' clause overlap with workbox-tests by leading with the verification framing, e.g. 'Use when verifying (not authoring) a route's offline fallback ...'.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions ('Walks the eight Jake Archibald offline recipes', 'maps each recipe to its assertion shape', 'layers the Workbox offlineFallback() recipe', 'pins the offline storage strategy', 'Output: a Playwright spec file ... + a coverage matrix'), but the leading 'Build-an-X workflow' reads as an unfilled template token that weakens the otherwise comprehensive action list.

4 / 5

Completeness

It clearly answers 'what' ('emits the offline-fallback test suite ... a Playwright spec file with one test per route's chosen recipe + a coverage matrix') and explicitly answers 'when' with a concrete 'Use when a route's SW caching behavior is being chosen or changed, or when a "doesn't work offline" report needs the failing route's recipe localized' trigger clause.

5 / 5

Trigger Term Quality

Good natural keyword coverage including 'doesn't work offline', 'SW caching behavior', 'offline-fallback', and 'Workbox offlineFallback()', but a few natural synonyms and file extensions (.ts, .yaml) users might say are missing.

4 / 5

Distinctiveness Conflict Risk

It carves a clear niche (per-route offline-recipe verification) and explicitly differentiates from the composing sibling 'workbox-tests', though the 'SW caching behavior is being chosen or changed' trigger has minor overlap risk with that closely related strategy-authoring skill.

4 / 5

Total

17

/

20

Passed

Validation

87%

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

Validation14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

referenced_paths_exist

Referenced path issues: 3 missing

Warning

Total

14

/

16

Passed

Reviewed

Table of Contents