Ns notification

From Melvynx/saveit.now · View interactive version

Ns notification is an AI agent skill from the GitHub repository Melvynx/saveit.now. Set up NowStack Mobile push notifications with Expo, Convex, EAS/APNs, settings, logs, admin tests, and iOS verification. Use for "notifications", "push", "ns notification", or misspellings like "ns-notifciation".

How to use this skill

Skill file

ns-notification - Push notifications for NowStack Mobile

<objective>

Implement and verify the full push notification stack for a NowStack Mobile app:

mobile token capture, Convex storage/preferences/logging, backend delivery through

Expo Push, product-triggered notifications, admin diagnostics, and iOS/APNs setup.

This skill is based on a completed production notification rollout:

</objective>

<first_steps>

  1. Read AGENTS.md.
  2. Read .agents/rules/mobile-app.md, .agents/rules/auth-payments-storage.md, .agents/rules/store-release.md, .agents/rules/verification.md, and .agents/rules/typescript-and-code-style.md.
  3. Before editing convex/**, read convex/_generated/ai/guidelines.md and .agents/rules/convex.md.
  4. Read at least one existing authenticated mobile layout, one Convex auth helper file, and one admin route before editing.
  5. For current Expo API details, use the find-docs skill against official Expo docs before changing library-specific calls.
  6. If iOS, App Store Connect, APNs, EAS credentials, entitlements, or TestFlight are involved, read references/ios.md.

</first_steps>

<source_reference>

This skill is derived from a completed notification rollout, but it must stay

portable. Do not reference machine-specific absolute paths, private repo names,

or private commit hashes. When implementing in the current repo, look for or

create the equivalent local files:

mobile-app/lib/notifications.ts
mobile-app/app/(app)/_layout.tsx
mobile-app/app/(app)/notification-settings.tsx
convex/notifications/
convex/admin/notifications.ts
convex/crons.ts

</source_reference>

<architecture>

Build this as a vertical slice. Do not leave token capture, delivery, or diagnostics half-wired.

  1. Mobile client
  1. Convex schema
  1. Convex API
  1. Product triggers
  1. Admin diagnostics

</architecture>

<ios_gate>

Read references/ios.md before any iOS credential or TestFlight work. The short version:

</ios_gate>

<workflow>

  1. Diagnose

```bash

rg -n "expo-notifications|pushTokens|notificationPreferences|notificationLogs|registerPushToken|sendTestNotification" mobile-app convex

```

  1. Plan
  1. Implement
  1. Verify locally

```bash

npm run check-setup

npx convex dev --once

cd mobile-app && npx tsc --noEmit

cd mobile-app && npm run lint

cd mobile-app && npx expo config --type public

```

  1. Verify iOS delivery

</workflow>

<pitfalls>

</pitfalls>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.