[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74GDE89SSA32WVS14RHZXVA":3,"skill-same:01M74GDE89SSA32WVS14RHZXVA":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M74GDE89SSA32WVS14RHZXVA","push-notifications",null,"Design push notifications — opt-in moment, payload shape, tap-deep-link, silent vs visible, quiet hours, unsub path; respect the OS bucket constraints.","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-mobile\u002Fskills\u002Fpush-notifications\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: push-notifications\ndescription: Design push notifications — opt-in moment, payload shape, tap-deep-link, silent vs visible, quiet hours, unsub path; respect the OS bucket constraints.\n---\n\n# push-notifications\n\n> Push is one of the easiest privileges to abuse. Output is the design that earns and keeps the permission — payload, timing, and the unsub path.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A new app or feature is introducing push notifications.\n- An app's push opt-in rate \u002F unsub rate has regressed.\n- A workflow's user-engagement step needs structured push design.\n\n## Inputs\n\n- The notification use cases (required): what event triggers each, and what the user can do with it.\n- Platforms and the push provider (FCM, APNs direct, OneSignal, …) — optional; absent, design provider-neutral.\n- Regulatory context (optional): marketing pushes need consent rules per region (e.g. ePrivacy\u002FGDPR in the EU).\n- Sending a push is a side effect: the design lists test sends; none go to real users without explicit approval.\n\n## Procedure\n\n1. **Opt-in moment**: never on app launch. Ask after the user has experienced enough value to want the notification. The contextual opt-in (\"Get notified when your refund clears\") wins over the cold OS prompt. Applies on both platforms: iOS requires authorization, and Android 13+ requires the runtime `POST_NOTIFICATIONS` permission.\n2. **Two channels minimum**:\n   - **Transactional**: order updates, refund status, password resets. Default ON.\n   - **Marketing \u002F engagement**: discounts, \"we miss you\". Default OFF; explicit opt-in.\n   Make the user able to toggle each independently in-app.\n3. **Payload shape** — both iOS APNs and Android FCM:\n   - `title`: scannable headline (≤ 32 chars on most lockscreens).\n   - `body`: 1–2 short sentences.\n   - `data`: structured fields the app uses to deep-link (e.g. `{\"type\": \"refund_complete\", \"refund_id\": \"ref_…\"}`). Do **not** put PII or amounts in `data`; minimize what the OS can persist.\n4. **Tap behavior**: deep-link to the specific entity, not the home screen. \"Refund processed\" tap → \u002Frefunds\u002F\u003Cid>, not \u002F.\n5. **Silent vs visible**:\n   - **Visible**: user-facing. Must have user value beyond \"your app exists\".\n   - **Silent (data-only)**: app processes in background. iOS APNs limits volume; Android FCM has Doze constraints. Don't use silent push for engagement.\n6. **Quiet hours**: respect them. Default 22:00–08:00 user-local for non-time-sensitive notifications. Tag time-sensitive (e.g. iOS `interruption-level: time-sensitive`) only when warranted.\n7. **Unsubscribe path**: in-app settings reachable in ≤ 2 taps. Per-channel toggles. Honor \"do not contact\" as the strict-deny default.\n8. **Delivery hygiene**: dedupe retried sends with a collapse key (`apns-collapse-id`, FCM `collapse_key`) so a retry doesn't buzz twice; remove device tokens the provider reports invalid\u002Funregistered.\n9. **Tracking**: delivery rate, open rate, action rate, unsub rate. Alert when unsub rate doubles week-over-week.\n\n## OS constraints to respect\n\n- **iOS APNs**: priority 10 (immediate) vs 5 (when convenient). Don't use 10 for marketing.\n- **Android FCM**: high vs normal priority. High priority delivered through Doze; over-use gets the app reputation-flagged.\n- **Provisional auth (iOS)**: send to Notification Center without prompt; user promotes if useful. Good for low-stakes channels.\n\n## Output\n\n```text\nPush design: refund-service\n\nChannels:\n  Transactional (default ON):\n    - refund_initiated, refund_complete, refund_failed.\n  Marketing (default OFF, explicit opt-in):\n    - promo, feature-announcement — sent only after opt-in.\n\nOpt-in moment:\n  After the user views the refund-status page once. Contextual prompt:\n  \"Get notified when your refund clears.\"\n\nPayload shape (refund_complete example):\n  title: \"Refund complete\"\n  body:  \"Your refund for order #1234 is on its way to your bank.\"\n  data:  { type: \"refund_complete\", refund_id: \"ref_…\" }\n  iOS interruption-level: active (not time-sensitive).\n  Android priority: normal.\n\nTap behavior:\n  Deep-link to \u002Frefunds\u002F\u003Crefund_id>.\n\nQuiet hours:\n  22:00–08:00 user-local for all marketing; transactional respects unless\n  the user opted into time-sensitive.\n\nUnsubscribe path:\n  Settings → Notifications → Refund updates toggle. Per-channel.\n\nTracking + alerts:\n  Alert: unsub rate doubles WoW for any channel → review the recent change.\n```\n\n## Quality bar\n\n- Opt-in is NOT at first launch.\n- At least two channels with independent per-channel toggles.\n- Tap deep-links to the entity, not the home.\n- Quiet hours pinned.\n- Unsub path reachable in ≤ 2 taps.\n\n## Anti-patterns to avoid\n\n- Asking permission at app launch. Burns the only chance.\n- One push channel for all notifications. User has to choose all-or-nothing.\n- PII \u002F amounts in the visible body that show on the lockscreen.\n- Silent push for \"engagement\" — wastes battery and gets the app throttled.\n- No unsub in-app, only via OS toggle. Frustrating; they'll uninstall.\n","# push-notifications\n\n> Push is one of the easiest privileges to abuse. Output is the design that earns and keeps the permission — payload, timing, and the unsub path.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A new app or feature is introducing push notifications.\n- An app's push opt-in rate \u002F unsub rate has regressed.\n- A workflow's user-engagement step needs structured push design.\n\n## Inputs\n\n- The notification use cases (required): what event triggers each, and what the user can do with it.\n- Platforms and the push provider (FCM, APNs direct, OneSignal, …) — optional; absent, design provider-neutral.\n- Regulatory context (optional): marketing pushes need consent rules per region (e.g. ePrivacy\u002FGDPR in the EU).\n- Sending a push is a side effect: the design lists test sends; none go to real users without explicit approval.\n\n## Procedure\n\n1. **Opt-in moment**: never on app launch. Ask after the user has experienced enough value to want the notification. The contextual opt-in (\"Get notified when your refund clears\") wins over the cold OS prompt. Applies on both platforms: iOS requires authorization, and Android 13+ requires the runtime `POST_NOTIFICATIONS` permission.\n2. **Two channels minimum**:\n   - **Transactional**: order updates, refund status, password resets. Default ON.\n   - **Marketing \u002F engagement**: discounts, \"we miss you\". Default OFF; explicit opt-in.\n   Make the user able to toggle each independently in-app.\n3. **Payload shape** — both iOS APNs and Android FCM:\n   - `title`: scannable headline (≤ 32 chars on most lockscreens).\n   - `body`: 1–2 short sentences.\n   - `data`: structured fields the app uses to deep-link (e.g. `{\"type\": \"refund_complete\", \"refund_id\": \"ref_…\"}`). Do **not** put PII or amounts in `data`; minimize what the OS can persist.\n4. **Tap behavior**: deep-link to the specific entity, not the home screen. \"Refund processed\" tap → \u002Frefunds\u002F\u003Cid>, not \u002F.\n5. **Silent vs visible**:\n   - **Visible**: user-facing. Must have user value beyond \"your app exists\".\n   - **Silent (data-only)**: app processes in background. iOS APNs limits volume; Android FCM has Doze constraints. Don't use silent push for engagement.\n6. **Quiet hours**: respect them. Default 22:00–08:00 user-local for non-time-sensitive notifications. Tag time-sensitive (e.g. iOS `interruption-level: time-sensitive`) only when warranted.\n7. **Unsubscribe path**: in-app settings reachable in ≤ 2 taps. Per-channel toggles. Honor \"do not contact\" as the strict-deny default.\n8. **Delivery hygiene**: dedupe retried sends with a collapse key (`apns-collapse-id`, FCM `collapse_key`) so a retry doesn't buzz twice; remove device tokens the provider reports invalid\u002Funregistered.\n9. **Tracking**: delivery rate, open rate, action rate, unsub rate. Alert when unsub rate doubles week-over-week.\n\n## OS constraints to respect\n\n- **iOS APNs**: priority 10 (immediate) vs 5 (when convenient). Don't use 10 for marketing.\n- **Android FCM**: high vs normal priority. High priority delivered through Doze; over-use gets the app reputation-flagged.\n- **Provisional auth (iOS)**: send to Notification Center without prompt; user promotes if useful. Good for low-stakes channels.\n\n## Output\n\n```text\nPush design: refund-service\n\nChannels:\n  Transactional (default ON):\n    - refund_initiated, refund_complete, refund_failed.\n  Marketing (default OFF, explicit opt-in):\n    - promo, feature-announcement — sent only after opt-in.\n\nOpt-in moment:\n  After the user views the refund-status page once. Contextual prompt:\n  \"Get notified when your refund clears.\"\n\nPayload shape (refund_complete example):\n  title: \"Refund complete\"\n  body:  \"Your refund for order #1234 is on its way to your bank.\"\n  data:  { type: \"refund_complete\", refund_id: \"ref_…\" }\n  iOS interruption-level: active (not time-sensitive).\n  Android priority: normal.\n\nTap behavior:\n  Deep-link to \u002Frefunds\u002F\u003Crefund_id>.\n\nQuiet hours:\n  22:00–08:00 user-local for all marketing; transactional respects unless\n  the user opted into time-sensitive.\n\nUnsubscribe path:\n  Settings → Notifications → Refund updates toggle. Per-channel.\n\nTracking + alerts:\n  Alert: unsub rate doubles WoW for any channel → review the recent change.\n```\n\n## Quality bar\n\n- Opt-in is NOT at first launch.\n- At least two channels with independent per-channel toggles.\n- Tap deep-links to the entity, not the home.\n- Quiet hours pinned.\n- Unsub path reachable in ≤ 2 taps.\n\n## Anti-patterns to avoid\n\n- Asking permission at app launch. Burns the only chance.\n- One push channel for all notifications. User has to choose all-or-nothing.\n- PII \u002F amounts in the visible body that show on the lockscreen.\n- Silent push for \"engagement\" — wastes battery and gets the app throttled.\n- No unsub in-app, only via OS toggle. Frustrating; they'll uninstall.\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-mobile\u002Fskills\u002Fpush-notifications","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill push-notifications",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill push-notifications",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill push-notifications","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-mobile\u002Fskills\u002Fpush-notifications\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"routing.yaml","REFERENCE","参考文档",317,"https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-mobile\u002Fskills\u002Fpush-notifications\u002Frouting.yaml",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]