Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/lukedj78/dev-flow/rn-push-notificationsnpx skills add lukedj78/dev-flow --skill rn-push-notificationsgit clone --depth 1 https://github.com/lukedj78/dev-flowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lukedj78/dev-flow/rn-push-notifications)<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-push-notifications"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-push-notifications.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00132 | $0.00687 |
| Opus 5 | $0.00066 | $0.00344 |
| Sonnet 5 | $0.00026 | $0.00137 |
| Haiku 4.5 | $0.00013 | $0.00069 |
Grade A, and why
rn-push-notifications scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rn-push-notifications — guardrail for push + local notifications
For the current Expo API and per-version details, verify against the Expo docs / MCP
mcp.expo.dev/expo/skills(see rn-fundamentals → Source of truth).
The 5 rules (non-negotiable)
expo-notificationsis the SDK. Don't pull@react-native-firebase/messagingdirectly — Expo wraps APNs+FCM. Bare FCM is needed only for the rare case where you ship without Expo.- Request permission AT THE RIGHT MOMENT, not at app launch. Wait for a clear opt-in trigger (signup complete, settings screen, feature first use).
- Setup
setNotificationHandlerat module level inapp/_layout.tsx, ONCE. Not inside any component. - Handle the 3 entry paths: foreground (
addNotificationReceivedListener), tapped while alive (addNotificationResponseReceivedListener), tapped on cold start (getLastNotificationResponseAsync). - Token storage: send the Expo push token to YOUR backend via authenticated HTTPS POST. Never store the raw token in AsyncStorage — use
expo-secure-storeor treat it as server-owned.
Quick decision tree
- "Expo push service or direct APNs/FCM?" →
references/decision-tree.md - "How do I wire up the handlers + deep linking?" →
references/patterns.md - "What's the app.json / config plugin setup?" →
references/setup.md
Common anti-patterns (NEVER do)
- ❌
Notifications.requestPermissionsAsync()inapp/_layout.tsxon first render — bad UX (denied permanently if user says no by mistake). - ❌
setNotificationHandlerinside a screen component — runs on every mount, last one wins. - ❌ Sending the Expo push token over plain HTTP — token = ability to spam the user.
- ❌ Reading
notification.request.content.datawithout type-narrowing — runtime error on malformed payload. - ❌ Forgetting
getLastNotificationResponseAsyncon cold start — deep link from tapped notification gets lost. - ❌ Storing badge count in client state only — server is source of truth; client subtracts on read.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 38 lines · 132 tokens per session scan A d7db606be1e8
rn-push-notifications is a skill published in the GitHub repository lukedj78/dev-flow (5 stars, last pushed 6d ago), licensed MIT. It adds 132 tokens to every session and 687 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
build-teaql-app
Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…
uniwind
Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…
upgrading-react-native-storybook
Incrementally upgrade React Native Storybook across the supported migration paths. Use when upgrading @storybook/react-native projects from 5.3.x to 6.5.x, 6.5.x to 7.6.x, 7.6.x to 8.3.x, 8.x to 9.x, or 9.x to 10.x. Detect the currently installed Storybook version, choose only the next migration step, update…
platform-specialist
Doc-driven platform integration expert. Converts a web app to LINE MINI App (LIFF SDK), PWA (Next.js 16), and Capacitor (iOS/Android). Expo & Tauri are secondary/legacy. ปรัชญาหลัก: ดึง docs จริงล่าสุดก่อนเขียนโค้ดเสมอ — ไม่ freeze snippet ที่จะ rot. Triggers: "LINE MINI App", "LIFF", "LINE OA", "convert to app"…
wire-sdk
앱인토스 SDK(권한·저장소·공유·Safe Area 등)를 화면에 붙인다.
migrate-nativewind-to-uniwind
Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles package removal, config migration, Tailwind 4 upgrade, cssInterop removal, theme conversion, and all…