ソース情報
- リポジトリ
- mikailustuner/OmniRule
- ソースの最終更新活動
- 2026年5月8日 23:36
- 検出された SKILL.md の言語
- 英語
- スター
- 5
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/mikailustuner/OmniRule --skill pwa-patternsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | pwa-patterns |
| description | Service workers, offline strategy, manifest |
| triggers | {"filenames":["manifest.json","service-worker.js","sw.js"],"keywords":["PWA","service worker","offline","manifest","cache strategy","install prompt"]} |
| auto_load_when | Building Progressive Web App features |
| agent | frontend-ops |
| tools | ["Read","Write","Bash"] |
Focus: Service workers, offline strategies, web manifest
When to use service worker:
├── Offline support → yes
├── Background sync → yes
├── Push notifications → yes
└── Performance → yes (caching)
When to register:
├── After user consent → prompt
├── Page loaded → yes
└── HTTPS required → yes
When to use Cache First:
├── Static assets → yes
├── Versioned files → yes
├── Offline-ready → yes
└── Always available → yes
When to use Network First:
├── API requests → yes
├── Dynamic content → yes
├── Live data required → yes
└── Always fresh if possible
When to use Stale-While-Revalidate:
├── Balanced → yes
├── Performance + freshness → yes
└── Non-critical → yes
When to use Network Only:
├── Real-time data → yes
├── Authentication → yes
└── Live updates → yes
When full offline:
├── Core functionality → yes
├── Productivity app → yes
├── Critical path → yes
└── Content-first app → yes
When partial offline:
├── Some features work → yes
├── Read cache, write queue → yes
├── Best experience → yes
└── Not all needed → yes
When online only:
├── Real-time essential → yes
├── No offline needed → yes
└── Ephemeral data → yes
When to use standalone:
├── Native-like app → yes
├── Remove browser UI → yes
└── Full screen → yes
When to use minimal-ui:
├── Some browser UI → yes
├── Navigation needed → yes
└── Trust + URL visible → yes
Icon requirements:
├── 192x192 → yes
├── 512x512 → yes
└── Maskable → yes (all sizes)
When to use theme_color:
├── Branded experience → yes
└── Status bar → match
When to show install:
├── Before engagement → no
├── User engaged → yes
├── Deferred → prompt-event
└── No multiple → track shown
Before prompt:
├── Use app features → yes
├── Create local data → yes
├── Show value → yes
└── User ready → yes
When to use background sync:
├── Queue requests offline → yes
├── Important actions → yes
└── User returns online → yes
When to queue:
├── Form submissions → yes
├── Saves → yes
└── Important → yes
When not to queue:
├── Non-essential → skip
├── Real-time verification → skip
└── Session-based → skip
❌ Caching everything with no versioning strategy
✅ Version cache names; clean up old caches on activate
❌ Service worker that never updates
✅ skipWaiting() + clients.claim() for instant updates
❌ Offline page that just says "You're offline"
✅ Cache critical routes; serve stale while revalidating
❌ Installing service worker on localhost only
✅ Test on HTTPS staging; SW requires secure context in prod
❌ No install prompt UI — users don't know app is installable
✅ Capture beforeinstallprompt, show custom install button
| Capability | API | Required for |
|---|---|---|
| Offline | Cache API + Service Worker | Core PWA |
| Install prompt | beforeinstallprompt | App store feel |
| Push notifications | Push API + Notification API | Re-engagement |
| Background sync | Background Sync API | Offline mutations |
| Periodic sync | Periodic Background Sync | Content refresh |
| Web manifest | manifest.json | Installability |
| App shell | Precache + runtime cache | Fast load |