agentleFS
botirkhaltaevbotirkhaltaev/botir-skills/skills/notifications-permissions/SKILL.md

notifications-permissions

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Design notification systems and permission requests that respect users. Covers push notification patterns, permission priming, notification center design, grouping, frequency management, and the complete permission request flow. Use when designing notification systems, permission dialogs, or re-engagement strategies. Triggers on: "push notification", "permission dialog", "permission priming", "notification center", "re-engagement", "notification design", "permission UX".

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask for permission in context, immediately after the user experienced the value.

    line 20
  2. Distinctive:

    Before the system dialog (which can only be shown once), use an in-app screen:

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Notifications & Permissions

Notifications are a privilege, not a right. Abuse them and users disable them permanently — or delete your app.

Permission Requests

The Golden Rule

Ask for permission in context, immediately after the user experienced the value. Never on first launch.

The Permission Flow

User Action → Soft Prompt (in-app) → System Dialog (OS level)
     ↑              ↑                      ↑
  Context      Explain value          Irreversible (only once)

Soft Prompt Pattern

Before the system dialog (which can only be shown once), use an in-app screen:

Structure:

  1. Contextual hook — "Stay on top of your orders"
  2. Specific benefit — "Get notified when your package ships and arrives"
  3. Two clear options — "Enable Notifications" / "Not Now"
  4. Skip if declined — don't ask again for 30 days

Timing by Permission Type

PermissionBest Time to Ask
Push notificationsAfter user completes a valuable action (places order, gets a match)
CameraWhen user taps "Take photo"
LocationWhen user needs location for a feature (find nearby stores)
ContactsWhen user chooses "Find friends"
MicrophoneWhen user starts a voice feature

If Permission Is Denied

  • Never ask again immediately — respect the decision
  • Show how to enable in Settings — if user tries the feature again
  • Provide alternative path — web upload if camera denied
  • Wait 30+ days before re-prompting — and only with new context

Push Notification Design

Structure

┌─────────────────────────────────────┐
│ [App Icon] App Name        2m ago  │
│                                     │
│ Headline (bold, 1 line)            │
│ Body text (2 lines max, specific)  │
│                                     │
│ [Action 1]  [Action 2]  [Dismiss]  │
└─────────────────────────────────────┘

Rules

  • Headline: Specific, actionable. "Your order shipped" not "Update available"
  • Body: Personal and relevant. "Package #1234 arrives Tuesday" not "Tap to open"
  • Max 2 action buttons — primary action + dismiss
  • Deep link to the right screen — not just the app home

Notification Categories

TypeExampleFrequency
Transactional"Your password was changed"Event-driven only
Status update"Your order shipped"Per user action
Reminder"Your appointment is in 1 hour"Scheduled, relevant
Re-engagement"You have 3 unread messages"Sparingly
Marketing"20% off this weekend"Rarely, segment-targeted

Frequency Guidelines

  • Transactional: unlimited (user-triggered)
  • Status: 1-2 per user action lifecycle
  • Re-engagement: max 1 per day, only if user has pending activity
  • Marketing: max 1-2 per week, segment-targeted
  • Batch non-urgent — daily digest instead of individual pings

Rich Notifications

  • Images — increase engagement ~20%, but keep under 200KB
  • Action buttons — let users act without opening the app
  • Grouped/stacked — combine multiple notifications from same app

Notification Settings

Provide Granular Control

Let users choose which types of notifications they receive:

  • Order updates
  • Messages
  • Promotions
  • Account security
  • Daily digest (replaces individual notifications)

Quiet Hours

Respect local time. Default quiet hours: 10 PM – 8 AM.

Reference Map

  • references/permission-priming-flow.md — soft prompt → OS dialog timing and denied-state playbook
  • references/frequency-and-categories.md — category matrix, quiet hours, opt-out signals

Related Skills

  • For onboarding patterns → use onboarding-ux
  • For UX writing → use ux-writing-content-design
  • For ethical considerations → use ethical-design-patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.