dev-toolbelt/dev-team-agents/push-notifications
Claude Code and agent skill by dev-toolbelt/dev-team-agents
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Web Push — service worker, VAPID, permission UX, subscriptions, browser support, security.
Install
npx vskill@latest install dev-toolbelt/dev-team-agents/push-notificationsSKILL.md
The same SKILL.md was published earlier as dev-toolbelt/dev-team-agents/push-notifications.
Decision Table — What to Load
| Task | Load | |
|---|---|---|
| Cross-browser support, Safari quirks, iOS PWA, framework integration | references/browser-compatibility.md | |
| SW registration, permission flow, subscribing, push/click event handlers | references/service-worker.md | |
| VAPID key generation, subscription storage, expiry, server-side sending | references/subscription-management.md |
Load only the reference(s) relevant to the current task.
Core Rules (apply without loading references)
- HTTPS required — service workers do not register on plain HTTP (
localhostis the only exception) - Never request permission on page load — always tie the prompt to an explicit user action
- `userVisibleOnly: true` is mandatory in
pushManager.subscribe()— Chrome rejects without it - VAPID private key is server-side only — never in the frontend bundle
- iOS push = PWA only — does not work in the Safari browser tab; show "Add to Home Screen" first
- Delete 410/404 subscriptions immediately — they are permanently invalid
- Design for `title` + `body` + `icon` only —
actions,image,badge,vibrateare progressive enhancement
Prerequisites
- HTTPS (or
localhost) - Registered and active service worker
- VAPID key pair generated and stored (
npx web-push generate-vapid-keys)
Quick-Start Flow
- Register SW on app load (do not prompt yet)
- On user action → check
Notification.permission→ show double opt-in UI → callNotification.requestPermission() - On grant →
pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: <vapid-public> }) - POST subscription object to backend → store per authenticated user
- SW handles
pushevent →showNotification() - SW handles
notificationclick→ focus or open the target URL - SW handles
pushsubscriptionchange→ resubscribe and update backend - Backend: delete subscriptions on 410/404; retry on 429 with backoff
Security Checklist
- [ ] VAPID private key is server-side only — never in the frontend bundle
- [ ]
applicationServerKey(public) is safe to expose in the bundle - [ ] Subscription endpoints stored with the authenticated user — never accessible cross-user
- [ ] Push payload is validated on the server before sending
- [ ] No PII in the push payload — notification body is visible on the lock screen
- [ ] Backend deletes 410 subscriptions immediately to avoid endpoint enumeration
- [ ] HTTPS enforced end-to-end (required by spec)
Implementation Checklist
- [ ] Feature detection — push opt-in UI hidden when not supported
- [ ] iOS PWA detection — "Add to Home Screen" prompt shown before permission request on iOS
- [ ] Permission requested only on explicit user action (never on page load)
- [ ]
pushsubscriptionchangeevent handled in SW - [ ] Subscription sent to backend and stored per authenticated user
- [ ]
notificationclickopens correct URL and focuses existing tab if open - [ ] Notifications work without
actions/image(progressive enhancement) - [ ] Backend deletes 410/404 subscriptions
- [ ] VAPID private key not in frontend bundle
- [ ] Safari macOS:
push_server_urlin manifest - [ ] iOS: push tested in installed PWA, not browser tab
- [ ] No PII in notification body or payload
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/integrations/push-notifications/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dev-toolbelt/dev-team-agents/push-notifications)