CtrlK
BlogDocsLog inGet started
Tessl Logo

sw-best-practices

Service Worker practical specifications for the current Magic Web implementation. Covers static resource partitioning, read-only API caching, request tagging, server-side kill/off takeover for /sw.js, and emergency rollback environment variables.

64

Quality

78%

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

Fix and improve this skill with Tessl

tessl review fix ./frontend/magic-web/.agents/skills/sw-best-practices/SKILL.md
SKILL.md
Quality
Evals
Security

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.

The body is highly actionable with concrete paths, commands, and env values, and its SOPs include explicit validation checkpoints for destructive operations. It is slightly held back by minor rationale padding and the absence of split-out reference files for the dense env-var and bucket detail.

DimensionReasoningScore

Conciseness

Most tokens are repo-specific knowledge (bucket names, file paths, env var semantics) that earns its place, but rationale asides like "This prevents user sensitive Tokens/Cookies..." and "Suitable for scenarios like pull-to-refresh..." are minor over-explanation that could be trimmed.

4 / 5

Actionability

Fully executable guidance: concrete file paths (sw-constants.ts), named arrays (CACHEABLE_API_RULES, MANAGED_APP_CACHE_NAMES), copy-paste env values (MAGIC_SW_MODE=kill, MAGIC_SW_CLEAR_CACHES=...), and runnable commands (pnpm test ..., pnpm build) cover the common cases.

5 / 5

Workflow Clarity

SOPs A/B/C and the Emergency SOP are clearly sequenced, with SOP C providing an explicit pre-submission verification flow (unit test trio + production build) and the emergency rollback offering ordered checkpoints for the destructive cache-clearing operations.

5 / 5

Progressive Disclosure

Well-organized into 4 numbered sections with a mermaid map and well-signaled one-level source-file links, but no reference bundle files exist and substantial detail (env var semantics, bucket matrices) is inlined rather than split into separate files.

4 / 5

Total

18

/

20

Passed

Description

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

The description is specific and well-distinguished within its niche, but it lacks an explicit "Use when..." trigger clause and leans on internal jargon over natural user phrases, capping completeness and trigger-term quality.

Suggestions

Append an explicit trigger clause, e.g. "Use when modifying Service Worker cache rules, troubleshooting PWA caching, or handling SW emergency rollback."

Add natural synonyms users actually say ("PWA", "offline cache", "cache invalidation") alongside the internal terms.

Keep the concrete capability list but trim the most repo-specific jargon ("server-side kill/off takeover for /sw.js") into a more user-facing phrasing.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities ("static resource partitioning", "read-only API caching", "request tagging", "server-side kill/off takeover for /sw.js", "emergency rollback environment variables") with comprehensive coverage of the SW domain.

5 / 5

Completeness

The "what" is clearly stated ("Service Worker practical specifications... Covers...") but there is no "Use when..." clause or equivalent explicit trigger guidance, which the rubric caps at 3.

3 / 5

Trigger Term Quality

Domain-accurate terms like "Service Worker", "API caching", and "kill/off" appear, but the strongest keywords are internal jargon ("server-side kill/off takeover for /sw.js") and common natural synonyms like "PWA", "offline cache", or "cache invalidation" are missing.

3 / 5

Distinctiveness Conflict Risk

Tightly scoped to "Magic Web implementation" Service Worker specifics with distinct internal triggers (env vars, /sw.js takeover), giving it a clear niche with minimal conflict risk.

5 / 5

Total

16

/

20

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

relative_links

Relative link issues: 10 suspicious

Warning

Total

15

/

16

Passed

Repository
dtyq/magic
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.