push-notification-setup · aj-geddes — скилл для Claude Code: как установить
Скилл помогает внедрить пуш-уведомления для iOS и Android через Firebase Cloud Messaging и APNs. Пригодится при настройке диплинков, фоновых сообщений и синхронизации токенов с бэкендом.
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a claude-codeЧто делает push-notification-setup
Скилл содержит инструкции по настройке мобильных пуш-уведомлений. Внутри есть пример кода для React Native с пакетом @react-native-firebase/messaging, а также отдельные руководства по нативному коду на Swift, Kotlin и реализации на Flutter.
Скилл учит запрашивать разрешения у пользователя и обновлять FCM-токены. Он объясняет настройку диплинков. Правила запрещают передавать секретные данные в полезной нагрузке. Проверять доставку сообщений придётся на реальных устройствах: симуляторы не обеспечивают надёжного тестирования пушей.
Какие задачи решает
- настроить Firebase Cloud Messaging для iOS и Android
- реализовать фоновую обработку тихих уведомлений
- сохранять и обновлять FCM-токены на сервере
- настроить диплинки для открытия нужных экранов приложения
Примеры запросов агенту
- Настрой обработку входящих пуш-уведомлений и запрос разрешений в React Native через Firebase
- Покажи, как сохранять и обновлять FCM-токен на бэкенде при изменении
- Напиши код на Swift для регистрации в APNs и обработки фоновых пушей
Как установить push-notification-setup
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/push-notification-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/push-notification-setup/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a codex2Вручную: положить файлы
.agents/skills/push-notification-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a cursor2Вручную: положить файлы
.cursor/skills/push-notification-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts push-notification-setup2Вручную: положить файлы
.github/skills/push-notification-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/push-notification-setupВручную: положить файлы
.devin/skills/push-notification-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора118
Другие версии push-notification-setup
Похожие
Рядом в теме «Мобильная разработка»
Всё по теме «Мобильная разработка» →Вопросы о push-notification-setup
Как установить push-notification-setup в Claude Code?
Выполните команду npx skills add aj-geddes/useful-ai-prompts --skill push-notification-setup -a claude-code. Конфигурация запишется в ~/.claude/skills/push-notification-setup/SKILL.md.
Какие платформы и языки поддерживает скилл?
В материалах разбирается работа с React Native, Flutter, а также нативные реализации на Swift для iOS и Kotlin для Android.
Можно ли тестировать пуши на эмуляторах по этим инструкциям?
Скилл прямо предписывает проводить тесты на физических устройствах. На симуляторах невозможно достоверно проверить доставку и системные токены.
Исходный текст
SKILL.md · MIT
---
name: push-notification-setup
description: >
Implement push notifications for iOS and Android. Covers Firebase Cloud
Messaging, Apple Push Notification service, handling notifications, and
backend integration.
---
# Push Notification Setup
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Implement comprehensive push notification systems for iOS and Android applications using Firebase Cloud Messaging and native platform services.
## When to Use
- Sending real-time notifications to users
- Implementing user engagement features
- Deep linking from notifications to specific screens
- Handling silent/background notifications
- Tracking notification analytics
## Quick Start
Minimal working example:
```javascript
import messaging from "@react-native-firebase/messaging";
import { Platform } from "react-native";
export async function initializeFirebase() {
try {
if (Platform.OS === "ios") {
const permission = await messaging().requestPermission();
if (permission === messaging.AuthorizationStatus.AUTHORIZED) {
console.log("iOS notification permission granted");
}
}
const token = await messaging().getToken();
console.log("FCM Token:", token);
await saveTokenToBackend(token);
messaging().onTokenRefresh(async (newToken) => {
await saveTokenToBackend(newToken);
});
messaging().onMessage(async (remoteMessage) => {
console.log("Notification received:", remoteMessage);
showLocalNotification(remoteMessage);
});
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Firebase Cloud Messaging Setup](references/firebase-cloud-messaging-setup.md) | Firebase Cloud Messaging Setup |
| [iOS Native Setup with Swift](references/ios-native-setup-with-swift.md) | iOS Native Setup with Swift |
| [Android Setup with Kotlin](references/android-setup-with-kotlin.md) | Android Setup with Kotlin |
| [Flutter Implementation](references/flutter-implementation.md) | Flutter Implementation |
## Best Practices
### ✅ DO
- Request permission before sending notifications
- Implement token refresh handling
- Use different notification channels by priority
- Validate tokens regularly
- Track notification delivery
- Implement deep linking
- Handle notifications in all app states
- Use silent notifications for data sync
- Store tokens securely on backend
- Provide user notification preferences
- Test on real devices
### ❌ DON'T
- Send excessive notifications
- Send without permission
- Store tokens insecurely
- Ignore notification failures
- Send sensitive data in payload
- Use notifications for spam
- Forget to handle background notifications
- Make blocking calls in handlers
- Send duplicate notifications
- Ignore user preferences
© aj-geddes · MIT · aj-geddes/useful-ai-prompts