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.
$npx -y skills add dtyq/magic --skill sw-best-practicesInstalls into the current project.
Run `npx skills use "https://github.com/dtyq/magic" --skill "dtyq/magic/sw-best-practices"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/dtyq/magic" that are relevant to the current task. Run `npx skills add "https://github.com/dtyq/magic"` and select the relevant skills, then follow their instructions.