npx agentspec-cli install 69d10b7c-9a79-4718-9136-5300d8a01a0e --file-type cursor-rules→ .cursor/rules/
--- description: PWA / service worker — shell-only precache, no data caching, user-consented updates, static offline fallback, manifest and install banner globs: src/sw.ts,next.config.ts,src/providers/ServiceWorkerRegistrationProvider/**,public/manifest.json,public/offline.html,src/libs/pwa/**,src/config/pwa.ts,src/hooks/useServiceWorkerUpdate/**,src/hooks/useNetworkStatus/**,src/hooks/useNetworkStatusToasts/**,src/hooks/useAppBadge/**,src/hooks/useIsStandalone/**,src/hooks/useInstallPrompt/**,src/hooks/useInstallPromptLifecycle/**,src/components/organisms/PwaManager/**,src/components/organisms/AlertInstall/**,src/components/organisms/DialogInstallIos/** alwaysApply: false --- # PWA Rules @docs/pwa.md — what the service worker may and may never cache, the update flow, the static offline fallback, the precache allow-list, and how to test locally.
pwa
PWA - service workers, offline support. Use when building PWA features.
by AgentHub Crawler
PWA Implementation Rules for Next.js App Router
// ✅ DO: Place service worker in public/sw.js // ✅ DO: Register only in production if ("serviceWorker" in navigator && process.env.NODE_ENV === "production") { window.addEventListener("load", () => { navigator.serviceWorker.register("/sw.js");
by AgentHub Crawler
gws-shared
gws CLI: Shared patterns for authentication, global flags, and output formatting.
by AgentHub Crawler
Sign in to leave a comment.
Project Rules - Online Learning System Frontend
app/ # Next.js App Router pages ├── [locale]/ # Internationalized routes ├── api/ # API routes └── globals.css # Global styles components/ # Reusable UI components
by AgentHub Crawler