areas/software/mobile/skills/push-notifications/SKILL.md
# Skill: Push Notifications ## When to load When implementing push notifications, handling notification permissions, or debugging delivery. ## Permission Request (Ask at Right Moment) ```typescript // ❌ Never ask at app launch // ✅ Ask when user understands the value async function requestNotificationPermission(context: string): Promise<boolean> { // Show custom pre-permission explanation first const userAgreed = await showNotificationExplanation(context); if (!userAgreed) return false
npx skillsauth add sawrus/agent-guides areas/software/mobile/skills/push-notificationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When implementing push notifications, handling notification permissions, or debugging delivery.
// ❌ Never ask at app launch
// ✅ Ask when user understands the value
async function requestNotificationPermission(context: string): Promise<boolean> {
// Show custom pre-permission explanation first
const userAgreed = await showNotificationExplanation(context);
if (!userAgreed) return false;
const { status } = await Notifications.requestPermissionsAsync();
return status === 'granted';
}
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true,
shouldSetBadge: true,
}),
});
// Handle tap → navigate to correct screen
Notifications.addNotificationResponseReceivedListener(response => {
const data = response.notification.request.content.data;
if (data.type === 'order_update') {
navigationRef.navigate('OrderDetail', { orderId: data.order_id });
}
});
testing
QA Expert for writing E2E tests, test scenarios, test plans, and ensuring test coverage quality.
development
Expert UI/UX design intelligence for creating distinctive, high-craft, and mobile-first interfaces. Focuses on premium aesthetics, touch-first ergonomics, and Flutter performance.
development
Code Review Expert for static analysis, security auditing, architecture review, and ensuring code quality standards.
development
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.