ablevarghese/ios-claude-toolkit/aegis-notifications

Claude Code and agent skill by ablevarghese/ios-claude-toolkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Send a notification, push notification, alert the user, remind the user. iOS push and local notification implementation — APNs setup, scheduling, rich content, actions, permission handling. Trigger on: 'notify the user', 'send a push', 'schedule a reminder', 'show a badge', 'background update', 'silent push', 'notification categories', 'ask for notification permission', or any work involving alerting users of events. Even indirect phrases like 'tell the user when it's done' or 'ping them' should trigger this skill.

Install

npx vskill@latest install ablevarghese/ios-claude-toolkit/aegis-notifications

SKILL.md

The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/aegis-notifications.

AEGIS - Push Notifications & Alerts

Iron Law: "Never send a notification without the user's informed consent. Every notification must be timely, relevant, and actionable."
Project Discovery: Before executing, determine project-specific values (project name, scheme, bundle ID, target) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, Package.swift).

Implement timely, relevant, and actionable notifications -- critical for status updates, security alerts, and user engagement in any iOS application. This skill covers the full notification lifecycle: permission handling, push and local notification delivery, rich content, notification actions, deep linking, and interruption level management.

Notification Types

TypePriorityUse Case
Order ConfirmedHighConfirmation of completed action
Item ReceivedHighDelivery/arrival notification
Action FailedCriticalFailure alert requiring attention
Security AlertCriticalSuspicious activity
Account VerifiedMediumVerification complete
Price AlertLowPrice/rate change updates

Rationalizations (Do Not Skip)

RationalizationWhy It's WrongRequired Action
"Every feature needs a notification"Notification fatigue is the #1 reason users disable notifications entirely. One irrelevant notification can cause the user to turn off all notifications for your app permanently. That is a one-way door.Every notification must pass the test: Is this timely? Is it relevant to this specific user right now? Can the user take action on it? If any answer is no, don't send it.
"Users want to be notified about everything"They don't. Users want to be notified about things that require their attention. "Your weekly summary is ready" is useful. "Someone you don't follow posted something" is not. Study your notification opt-out rate -- it tells you what users actually think.Categorize notifications by importance. Let users control which categories they receive. Default to fewer notifications, not more.
"We'll add notification preferences later"By "later," users have already disabled notifications entirely because you sent too many irrelevant ones. You cannot undo this -- the user must manually re-enable in Settings, which almost never happens.Build notification preferences into the first version. At minimum: on/off per notification type. Better: frequency controls and quiet hours.
"Silent push is just like regular push"Silent push has strict throttling (Apple limits frequency), is not guaranteed to wake the app, and has a 30-second execution window. It's a best-effort background update mechanism, not a reliable delivery channel.Use silent push only for background data sync where missed updates are acceptable. Never use it for time-critical notifications. For reliable delivery, use visible push.
"We can just request permission on app launch"Requesting permission with no context results in low opt-in rates (typically 40-50%). Users don't know what they're agreeing to or why they should.Use provisional authorization for low-commitment opt-in, or show an in-app pre-permission screen explaining what notifications the user will receive and why. Then request system permission. Opt-in rates increase to 70-80%.
"Badge count doesn't matter"An incorrect badge count (especially a stuck non-zero badge) trains users to ignore badges entirely, or worse, creates anxiety. A badge that says "3" when there are 0 unread items erodes trust.Manage badge count server-side. Update it with every push payload. Clear it when the user opens the app. Never let it drift.
"We don't need notification categories"Without categories, every notification tap opens the app to the home screen. The user then has to navigate to find what the notification was about. This is a poor experience that teaches users to ignore notifications.Define categories with appropriate actions. Handle notification taps by deep-linking to the relevant content.

Red Flags -- STOP

  • Sending notifications without checking permission status -- Always check UNUserNotificationCenter.current().notificationSettings() before attempting to send. Sending without permission wastes server resources and the notification is silently dropped.
  • Not handling notification tap navigation -- If tapping a notification opens the app to the home screen instead of the relevant content, the notification is useless. Every notification type must have a deep link target.
  • Missing notification categories -- Categories define what actions appear on a notification and how the app handles taps. Without categories, you lose actionable notifications and structured handling entirely.
  • No notification preferences UI -- If users cannot control which notifications they receive within the app, their only option is the nuclear one: disabling all notifications in Settings.
  • Logging device tokens or push payloads at public privacy level -- Device tokens are user-identifying. Push payloads may contain sensitive data. Use .private or .sensitive log levels.

Behavioral Enforcement

Phase Gate: PERMISSION CHECK (Before Any Notification)

Cannot send or schedule ANY notification until:

  • [ ] Permission status checked (UNUserNotificationCenter.current().getNotificationSettings())
  • [ ] All authorization states handled: .authorized, .denied, .notDetermined, .provisional
  • [ ] Denied state has graceful degradation (not a crash or silent failure)

Hard Stop: Sending a notification without checking permission status will fail silently on denied, crash on edge cases, and violate Apple's guidelines. Always check first.

Phase Gate: NOTIFICATION CONTENT

Before sending any notification:

  • [ ] Content is timely (user needs this NOW, not later)
  • [ ] Content is relevant (user opted into this type)
  • [ ] Content is actionable (user can DO something with this information)
  • [ ] No sensitive data in notification body (visible on lock screen)

Hard Stop: If notification contains PII, financial data, or authentication tokens in the body -- STOP. This is a security violation. Notification content is visible on the lock screen to anyone with physical access.

Self-Audit
  1. Did I check notification permission before sending?
  2. Does the notification pass the "timely, relevant, actionable" test?
  3. Is sensitive data excluded from notification body?
  4. Did I handle the notification tap (deep linking to correct screen)?
Required Output Artifact

Every notification implementation must produce:

  • Permission handling code that covers all authorization states
  • Category registration with appropriate actions
  • Deep link handler for notification taps (no home-screen-only navigation)
  • Evidence that no PII appears in notification body content

When NOT to Use This Skill

  1. In-app messaging and alerts -- For showing alerts, banners, or toasts while the user is actively using the app, use SwiftUI .alert(), .sheet(), or a custom in-app notification system. Push/local notifications are for when the user is not looking at the app.
  2. Background data sync without user-visible notification -- For background data fetching that doesn't need to notify the user, use BGAppRefreshTask or BGProcessingTask from the BackgroundTasks framework. Silent push is throttled and unreliable for periodic sync.
  3. Real-time communication (chat, calls) -- For real-time messaging, use a persistent connection (WebSocket, XMPP) with push notifications as a fallback for when the app is suspended. Don't rely on push as the primary delivery mechanism for real-time data.
  4. Marketing and promotional content -- Push notifications for marketing require explicit user consent separate from transactional notifications. In many jurisdictions (EU, California), promotional push notifications are regulated. Consult legal before implementing.

Decision Framework

What kind of notification do I need?
+-- User needs to see this NOW?
| |
| +-- Critical (safety, security, health)?
| | --> Interruption level: .critical
| | Requires: entitlement from Apple (apply in developer portal)
| | Behavior: Plays sound even in DND/Focus, overrides ringer switch
| |
| +-- Time-sensitive (delivery, expiring offer, ride arriving)?
| | --> Interruption level: .timeSensitive
| | Requires: Time Sensitive Notifications capability
| | Behavior: Breaks through Focus mode, appears on lock screen prominently
| |
| +-- Normal (message, transaction complete, status update)?
| --> Interruption level: .active (default)
| Behavior: Standard notification, respects DND/Focus
|
+-- User should see this when convenient?
| --> Interruption level: .passive
| Behavior: Silently added to Notification Center, no sound/banner
| Good for: recommendations, weekly summaries, non-urgent updates
|
+-- Need to trigger background work (no visible notification)?
| --> Silent push notification
| Set: content-available: 1, no alert/sound/badge
| Limitations: throttled by iOS, 30s execution, not guaranteed
| Good for: data sync, content prefetch, state invalidation
|
+-- Notification at a specific time (no server needed)?
--> Local notification
Triggers: UNTimeIntervalNotificationTrigger (delay)
UNCalendarNotificationTrigger (specific date/time)
UNLocationNotificationTrigger (geofence)
Good for: reminders, alarms, location-based alerts
How should the notification be delivered?
+-- From your server --> Push notification (APNs)
| Setup: APNs key (.p8), server integration, device token management
|
+-- From the device itself --> Local notification
Setup: UNUserNotificationCenter, no server needed

Standard Operating Procedures

SOP-1: Request Notification Permission
swift
import UserNotifications
import UIKit
/// Requests notification permission with informed consent.
///
/// Call this AFTER showing an in-app explanation of what notifications the user
/// will receive. Never call this on first launch with no context.
///
/// - Returns: Whether permission was granted
func requestNotificationPermission() async throws -> Bool {
let center = UNUserNotificationCenter.current()
// Check current status first -- don't re-prompt if already decided
let settings = await center.notificationSettings()
switch settings.authorizationStatus {
case .authorized, .provisional:
// Already authorized -- just ensure registered for remote
await MainActor.run {
UIApplication.shared.registerForRemoteNotifications()
}
return true
case .denied:
// User explicitly denied -- don't re-request (system won't show prompt)
// Guide user to Settings if they want to re-enable
return false
case .notDetermined:
// First time -- request authorization
let options: UNAuthorizationOptions = [
.alert,
.sound,
.badge,
.providesAppNotificationSettings // Shows in-app settings button in system Settings
]
let granted = try await center.requestAuthorization(options: options)
if granted {
await MainActor.run {
UIApplication.shared.registerForRemoteNotifications()
}
}
return granted
case .ephemeral:
// App Clip -- limited notification support
return true
@unknown default:
return false
}
}

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ablevarghese/ios-claude-toolkit/aegis-notifications/badge)](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/aegis-notifications)

Something wrong with this skill or its page? Tell us.