CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/sw-cache-strategy-author

Author service worker cache strategies (cache-first, network-first, stale-while-revalidate, cache-only, network-only) per Workbox conventions, plus generate the matching Playwright assertions to lock the strategy in. Avoids the common "cached forever" pitfall by enforcing TTL + version-bump invalidation. Use when a new route needs defined offline behavior, when a hand-rolled `sw.js` is being moved to Workbox strategies, or when users report seeing stale content after a deploy.

76

Quality

96%

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

92%

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

The body is lean, highly actionable, and clearly sequenced with built-in test-based validation. Its one weakness is progressive disclosure: it is a single monolithic file with no reference bundles, and the full sw.js and Playwright examples are candidates for extraction.

Suggestions

Move the complete sw.js template (Step 2) and the full Playwright assertion suite (Step 3) into reference files such as references/sw-template.js and references/playwright-assertions.ts, keeping only trimmed illustrative snippets inline in SKILL.md with pointers to the full versions.

Add a brief 'Prerequisites / Setup' note (Workbox v7 bundling requirement, test runner config) as a short section or a reference file so the inline body stays an overview.

Create a references/ directory for the migration lookup (Step 4) and anti-patterns tables if they grow, so the core SKILL.md remains a navigable overview pointing one level deep.

DimensionReasoningScore

Conciseness

Dense, action-oriented tables and executable code with no explanation of concepts Claude already knows; the 'Why' columns are terse justifications rather than padding, so every token earns its place.

3 / 3

Actionability

Provides complete, copy-paste-ready Workbox sw.js and Playwright test blocks with real imports and plugin configuration, plus route-type-to-strategy tables giving concrete guidance.

3 / 3

Workflow Clarity

A clearly sequenced five-step process where Step 3 (generate matching tests) serves as the validation mechanism and the Anti-patterns table acts as a review checkpoint; the task is not destructive/batch so no validation cap applies.

3 / 3

Progressive Disclosure

Sections are well-organized and references to the sister skill and Workbox docs are one level deep, but no bundle files exist and the ~200-line body keeps two large complete code artifacts fully inline where they could be split into reference files.

2 / 3

Total

11

/

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 names concrete capabilities, gives natural trigger terms, answers both what and when, and occupies a clear non-conflicting niche. It respects the 'Use when...' and third-person-voice conventions.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — authoring five named cache strategies, generating matching Playwright assertions, and enforcing TTL + version-bump invalidation — rather than vague domain references.

3 / 3

Completeness

Explicitly states both what it does (author strategies + matching assertions) and when to use it via a clear 'Use when...' clause with multiple concrete triggers.

3 / 3

Trigger Term Quality

Includes natural user-language triggers such as 'a new route needs defined offline behavior', 'hand-rolled sw.js is being moved to Workbox strategies', and 'users report seeing stale content after a deploy'.

3 / 3

Distinctiveness Conflict Risk

The niche of SW cache strategies paired with Workbox conventions and Playwright assertions is distinct and unlikely to trigger for unrelated skills; voice is third-person with no first/second-person penalty.

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