rshankras/claude-code-apple-skills214 files

Generators

Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing, accessibility, widgets, feature flags, app icons, image caching, pagination, HTTP caching, share cards, social export, subscription lifecycle, referral systems, watermarks, streak tracking, milestone celebrations, what's new screens, lapsed user re-engagement, usage insights, variable rewards, consent flows, account deletion, permission priming, force updates, state restoration, debug menus, offline queues, feedback forms, announcement banners, quick win sessions, Spotlight indexing, App Clips, screenshot automation, background processing, app extensions, data export, or SwiftUI preview sample data and variant matrices.

Specification
Skill ID
rshankras/claude-code-apple-skills/generators
Publisher
rshankras
Repository
claude-code-apple-skills
Installs
0
Files
214
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

rshankras/claude-code-apple-skills/generatorsInstalls these files
  • SKILL.md
  • accessibility-generator/SKILL.md
  • accessibility-generator/accessibility-patterns.md
  • account-deletion/SKILL.md
  • account-deletion/templates.md
  • analytics-setup/SKILL.md
  • analytics-setup/analytics-patterns.md
  • analytics-setup/templates/AnalyticsEvent.swift
  • analytics-setup/templates/AnalyticsService.swift
  • analytics-setup/templates/AnalyticsServiceKey.swift
  • analytics-setup/templates/Providers/FirebaseAnalytics.swift
  • analytics-setup/templates/Providers/NoOpAnalytics.swift
  • analytics-setup/templates/Providers/TelemetryDeckAnalytics.swift
  • announcement-banner/SKILL.md
  • announcement-banner/templates.md
  • app-clip/SKILL.md
  • app-clip/patterns.md
  • app-clip/templates.md
  • app-extensions/SKILL.md
  • app-extensions/templates.md
  • app-icon-generator/SKILL.md
  • app-icon-generator/apple-hig-icons.md
  • app-icon-generator/templates/generate-icon-template.swift
  • app-store-assets/SKILL.md
  • app-store-assets/specs-reference.md
  • auth-flow/SKILL.md
  • auth-flow/auth-patterns.md
  • auth-flow/templates/AuthenticationManager.swift
  • auth-flow/templates/BiometricAuthManager.swift
  • auth-flow/templates/KeychainManager.swift
  • auth-flow/templates/SignInWithAppleButton.swift
  • auth-flow/templates/SignInWithAppleManager.swift
  • background-processing/SKILL.md
  • background-processing/templates.md
  • ci-cd-setup/SKILL.md
  • ci-cd-setup/ci-cd-patterns.md
  • ci-cd-setup/templates/fastlane/Appfile
  • ci-cd-setup/templates/fastlane/Fastfile
  • ci-cd-setup/templates/fastlane/Matchfile
  • ci-cd-setup/templates/github-actions/build-test.yml
  • ci-cd-setup/templates/github-actions/deploy-appstore.yml
  • ci-cd-setup/templates/github-actions/deploy-testflight.yml
  • ci-cd-setup/templates/swiftlint/swiftlint.yml
  • ci-cd-setup/templates/xcode-cloud/XcodeCloudSetup.md
  • ci-cd-setup/templates/xcode-cloud/ci_post_clone.sh
  • ci-cd-setup/templates/xcode-cloud/ci_pre_xcodebuild.sh
  • cloudkit-sync/SKILL.md
  • cloudkit-sync/templates.md
  • consent-flow/SKILL.md
  • consent-flow/patterns.md
  • consent-flow/templates.md
  • custom-product-pages/SKILL.md
  • data-export/SKILL.md
  • data-export/templates.md
  • debug-menu/SKILL.md
  • debug-menu/templates.md
  • deep-linking/SKILL.md
  • deep-linking/deep-linking-patterns.md
  • deep-linking/templates/AppShortcuts.swift
  • deep-linking/templates/DeepLink.swift
  • deep-linking/templates/DeepLinkRouter.swift
  • deep-linking/templates/apple-app-site-association
  • error-monitoring/SKILL.md
  • error-monitoring/error-monitoring-patterns.md
  • error-monitoring/templates/CrashlyticsErrorMonitoring.swift
  • error-monitoring/templates/ErrorContext.swift
  • error-monitoring/templates/ErrorMonitoringService.swift
  • error-monitoring/templates/NoOpErrorMonitoring.swift
  • error-monitoring/templates/SentryErrorMonitoring.swift
  • feature-flags/SKILL.md
  • feature-flags/templates.md
  • featuring-nomination/SKILL.md
  • featuring-nomination/nomination-template.md
  • feedback-form/SKILL.md
  • feedback-form/templates.md
  • force-update/SKILL.md
  • force-update/templates.md
  • http-cache/SKILL.md
  • http-cache/http-cache-patterns.md
  • http-cache/templates.md
  • image-loading/SKILL.md
  • image-loading/image-loading-patterns.md
  • image-loading/templates.md
  • in-app-events/SKILL.md
  • in-app-events/templates.md
  • lapsed-user/SKILL.md
  • lapsed-user/templates.md
  • live-activity-generator/SKILL.md
  • live-activity-generator/templates.md
  • localization-setup/SKILL.md
  • localization-setup/localization-patterns.md
  • localization-setup/templates/LocalizationManager.swift
  • localization-setup/templates/LocalizedPreview.swift
  • localization-setup/templates/LocalizedStrings.swift
  • logging-setup/SKILL.md
  • logging-setup/logger-patterns.md
  • logging-setup/migration-guide.md
  • logging-setup/templates/AppLogger.swift
  • milestone-celebration/SKILL.md
  • milestone-celebration/templates.md
  • networking-layer/SKILL.md
  • networking-layer/networking-patterns.md
  • networking-layer/templates/APIClient.swift
  • networking-layer/templates/APIConfiguration.swift
  • networking-layer/templates/APIEndpoint.swift
  • networking-layer/templates/MockAPIClient.swift
  • networking-layer/templates/NetworkError.swift
  • offer-codes-setup/SKILL.md
  • offline-queue/SKILL.md
  • offline-queue/patterns.md
  • offline-queue/templates.md
  • onboarding-generator/SKILL.md
  • onboarding-generator/onboarding-patterns.md
  • onboarding-generator/templates/carousel-fallback/OnboardingModifier.swift
  • onboarding-generator/templates/carousel-fallback/OnboardingPage.swift
  • onboarding-generator/templates/carousel-fallback/OnboardingPageView.swift
  • onboarding-generator/templates/carousel-fallback/OnboardingStorage.swift
  • onboarding-generator/templates/carousel-fallback/OnboardingView.swift
  • onboarding-generator/templates/value-moment/OnboardingBranchView.swift
  • onboarding-generator/templates/value-moment/OnboardingInstrumentation.swift
  • onboarding-generator/templates/value-moment/OnboardingIntentionView.swift
  • onboarding-generator/templates/value-moment/OnboardingPhase.swift
  • onboarding-generator/templates/value-moment/OnboardingReadyNowBridgeView.swift
  • onboarding-generator/templates/value-moment/OnboardingReminderService.swift
  • onboarding-generator/templates/value-moment/OnboardingReminderView.swift
  • onboarding-generator/templates/value-moment/OnboardingRootView.swift
  • onboarding-generator/templates/value-moment/OnboardingStore.swift
  • pagination/SKILL.md
  • pagination/pagination-patterns.md
  • pagination/templates.md
  • paywall-generator/SKILL.md
  • paywall-generator/storekit-patterns.md
  • paywall-generator/templates/PaywallView.swift
  • paywall-generator/templates/Products.swift
  • paywall-generator/templates/StoreKitManager.swift
  • paywall-generator/templates/SubscriptionButton.swift
  • paywall-generator/templates/SubscriptionStatus.swift
  • permission-priming/SKILL.md
  • permission-priming/templates.md
  • persistence-setup/SKILL.md
  • persistence-setup/persistence-patterns.md
  • persistence-setup/templates/CloudKitConfiguration.swift
  • persistence-setup/templates/ExampleModel.swift
  • persistence-setup/templates/PersistenceController.swift
  • persistence-setup/templates/Repository.swift
  • persistence-setup/templates/SwiftDataRepository.swift
  • persistence-setup/templates/SyncStatus.swift
  • pre-orders/SKILL.md
  • preview-data-generator/SKILL.md
  • preview-data-generator/preview-data-patterns.md
  • preview-data-generator/preview-matrix.md
  • product-page-optimization/SKILL.md
  • promoted-iap/SKILL.md
  • promoted-iap/templates.md
  • push-notifications/SKILL.md
  • push-notifications/push-notification-patterns.md
  • push-notifications/templates/NotificationCategories.swift
  • push-notifications/templates/NotificationDelegate.swift
  • push-notifications/templates/NotificationManager.swift
  • push-notifications/templates/NotificationPayload.swift
  • quick-win-session/SKILL.md
  • quick-win-session/templates.md
  • referral-system/SKILL.md
  • referral-system/templates.md
  • review-prompt/SKILL.md
  • review-prompt/storekit-patterns.md
  • review-prompt/templates/ReviewPromptCondition.swift
  • review-prompt/templates/ReviewPromptManager.swift
  • review-prompt/templates/ReviewPromptStorage.swift
  • screenshot-automation/SKILL.md
  • screenshot-automation/templates.md
  • settings-screen/SKILL.md
  • settings-screen/settings-patterns.md
  • settings-screen/templates/AboutSettingsView.swift
  • settings-screen/templates/AccountSettingsView.swift
  • settings-screen/templates/AppSettings.swift
  • settings-screen/templates/AppearanceSettingsView.swift
  • settings-screen/templates/LegalSettingsView.swift
  • settings-screen/templates/NotificationsSettingsView.swift
  • settings-screen/templates/SettingsRow.swift
  • settings-screen/templates/SettingsView.swift
  • share-card/SKILL.md
  • share-card/templates.md
  • social-export/SKILL.md
  • social-export/templates.md
  • spotlight-indexing/SKILL.md
  • spotlight-indexing/patterns.md
  • spotlight-indexing/templates.md
  • state-restoration/SKILL.md
  • state-restoration/templates.md
  • streak-tracker/SKILL.md
  • streak-tracker/templates.md
  • subscription-lifecycle/SKILL.md
  • subscription-lifecycle/patterns.md
  • subscription-lifecycle/templates.md
  • subscription-offers/SKILL.md
  • subscription-offers/templates.md
  • test-generator/SKILL.md
  • test-generator/templates.md
  • test-generator/testing-patterns.md
  • tipkit-generator/SKILL.md
  • tipkit-generator/templates.md
  • usage-insights/SKILL.md
  • usage-insights/templates.md
  • variable-rewards/SKILL.md
  • variable-rewards/templates.md
  • watermark-engine/SKILL.md
  • watermark-engine/templates.md
  • whats-new/SKILL.md
  • whats-new/templates.md
  • widget-generator/SKILL.md
  • widget-generator/templates.md
  • win-back-offers/SKILL.md
  • win-back-offers/templates.md

What this skill tells the agent

Code Generators

Production-ready code generators for iOS and macOS apps. Unlike advisory skills (review, audit), these skills generate working code tailored to your project.

When This Skill Activates

Use this skill when the user:

  • Wants to add a common app component (logging, analytics, onboarding, etc.)
  • Asks to "set up" or "add" infrastructure code
  • Mentions replacing print() with proper logging
  • Wants to add App Store review prompts
  • Needs analytics or crash reporting setup

Key Principles

1. Context-Aware Generation

Before generating code, skills will:

  • Read existing project structure and patterns
  • Detect deployment targets and Swift version
  • Identify architecture patterns (MVVM, TCA, etc.)
  • Check for existing implementations to avoid conflicts

2. Protocol-Based Architecture

Provider-dependent code uses protocols for easy swapping:

protocol AnalyticsService { ... }
class TelemetryDeckAnalytics: AnalyticsService { ... }
class FirebaseAnalytics: AnalyticsService { ... }
// Change provider by swapping ONE line

3. Platform Detection

Skills detect iOS vs macOS and App Store vs direct distribution to generate appropriate code.

Available Generators

Read relevant module files based on the user's needs:

logging-setup/

Replace print() statements with structured os.log/Logger.

  • Audit existing print() usage
  • Generate AppLogger infrastructure
  • Migrate print → Logger with proper privacy levels

analytics-setup/

Protocol-based analytics with swappable providers.

  • TelemetryDeck, Firebase, Mixpanel support
  • NoOp implementation for testing/privacy
  • Easy provider switching

onboarding-generator/

Value-moment-first onboarding — races a new user to the first felt experience of the app's promised outcome.

  • Branches on ready-now vs. later, one decision per screen
  • Root-swap presentation, phase-first gating, resume-safe hand-offs into existing features
  • Local-notification implementation intentions for the "later" branch
  • Value-moment reach-rate instrumentation (local-only, no analytics SDK required)
  • Classic paged/stepped welcome carousel kept as an explicit fallback for explain-first apps

review-prompt/

Smart App Store review prompts.

  • Platform detection (skips for non-App Store macOS)
  • Configurable trigger conditions
  • Smart timing logic
  • Debug override for testing

networking-layer/

Protocol-based API client with async/await.

  • Clean APIClient protocol for mocking/swapping
  • Type-safe endpoint definitions
  • Comprehensive error handling
  • Environment-based configuration

auth-flow/

Complete authentication flow.

  • Sign in with Apple integration
  • Biometric authentication (Face ID/Touch ID)
  • Secure Keychain storage
  • Credential state monitoring

paywall-generator/

StoreKit 2 subscription paywall.

  • Full StoreKit 2 implementation
  • Product loading, purchasing, restoring
  • Subscription status with Environment
  • Beautiful paywall UI

settings-screen/

Complete settings screen with modular sections.

  • Centralized AppSettings with @AppStorage
  • Appearance, Notifications, Account, About, Legal sections
  • Cross-platform (iOS/macOS)
  • Reusable row components

persistence-setup/

SwiftData persistence with optional iCloud sync.

  • SwiftData container configuration
  • Repository pattern for testability
  • Optional CloudKit/iCloud sync
  • Sync status monitoring
  • Migration support

error-monitoring/

Protocol-based crash/error reporting.

  • Sentry and Firebase Crashlytics support
  • NoOp implementation for testing/privacy
  • Breadcrumbs for debugging context
  • User context (anonymized)
  • Easy provider swapping

ci-cd-setup/

CI/CD configuration for automated builds and deployment.

  • GitHub Actions workflows (build, test, TestFlight, App Store)
  • Xcode Cloud scripts and setup guide
  • fastlane lanes for advanced automation
  • Code signing and secrets management
  • macOS notarization support

localization-setup/

Internationalization (i18n) infrastructure for multi-language apps.

  • String Catalogs (iOS 16+, recommended)
  • Type-safe L10n enum for compile-time safety
  • Pluralization and interpolation patterns
  • RTL layout support
  • SwiftUI preview helpers for testing locales

push-notifications/

Push notification infrastructure with APNs setup.

  • Registration and authorization flow
  • UNUserNotificationCenterDelegate implementation
  • Notification categories with action buttons
  • Type-safe payload parsing
  • Rich notifications and silent notifications

deep-linking/

Deep linking with URL schemes, Universal Links, and App Intents.

  • Custom URL scheme handling
  • Universal Links with AASA file
  • App Intents for Siri and Shortcuts
  • Type-safe route definitions and navigation
  • Spotlight indexing support

test-generator/

Test templates for unit, integration, and UI tests.

  • Swift Testing (modern, iOS 16+) and XCTest patterns
  • Mock object generation
  • ViewModel and service testing patterns
  • UI testing with page object pattern

preview-data-generator/

Sample data and a multi-variant #Preview matrix for SwiftUI views.

  • Canvas sample data with visual edge cases (empty, long strings, missing, list)
  • Data-state previews (loaded/empty/loading/error) for UI prototyping
  • Appearance, Dynamic Type, locale/RTL, and device variant matrix
  • SwiftData in-memory seeded containers; iOS 18 PreviewModifier + @Previewable
  • Reuses test-data-factory fixtures instead of duplicating them

accessibility-generator/

Accessibility infrastructure for inclusive apps.

  • VoiceOver labels, hints, and traits
  • Dynamic Type support with scaling
  • Reduce Motion handling
  • Accessibility audit checklist

widget-generator/

WidgetKit widgets for home screen and lock screen.

  • Static and interactive widgets (iOS 17+)
  • Timeline providers
  • Lock screen complications
  • Widget intents for configuration

app-icon-generator/

Programmatic app icon generation using CoreGraphics.

  • Apple HIG compliant icon design
  • Category-aware design recipes (productivity, media, dev tools, etc.)
  • 3 variant generation for user selection
  • Automatic resizing to all required sizes (macOS + iOS)
  • Asset catalog installation with correct Contents.json
  • No external dependencies — pure CoreGraphics

feature-flags/

Feature flag infrastructure with local and remote support.

  • Protocol-based service with swappable providers
  • Local defaults with remote override (composite provider)
  • @Observable manager for SwiftUI integration
  • Debug menu for toggling flags

live-activity-generator/

ActivityKit Live Activity with Dynamic Island and Lock Screen.

  • ActivityAttributes and ContentState definitions
  • Dynamic Island layouts (compact and expanded)
  • Lock Screen presentation
  • Push-to-update support via APNs
  • Activity lifecycle management (start, update, end)

tipkit-generator/

TipKit inline and popover tips with rules and testing.

  • Inline and popover tip definitions
  • Rule-based display logic (parameter and event rules)
  • Display frequency and invalidation
  • Testing and preview support

cloudkit-sync/

CKSyncEngine-based CloudKit sync (iOS 17+).

  • CKSyncEngine setup and delegate
  • Record zone management
  • Conflict resolution strategies
  • Sharing and collaboration support

http-cache/

HTTP caching layer with Cache-Control, ETag, and offline fallback.

  • Cache-Control header parsing
  • ETag/Last-Modified conditional requests (304)
  • Stale-while-revalidate pattern
  • Decorator pattern wrapping existing APIClient
  • Network reachability for offline fallback

pagination/

Pagination infrastructure with offset and cursor patterns.

  • Offset-based and cursor-based response models
  • State machine (idle, loading, loaded, error, exhausted)
  • @Observable PaginationManager with prefetch threshold
  • Searchable pagination with debounced query
  • Infinite scroll, load-more button, and state views

image-loading/

Image loading pipeline with caching and CachedAsyncImage view.

  • NSCache memory cache with auto-eviction

Use this skill in a project

Open any RiverX project, search the Skills panel for rshankras/claude-code-apple-skills/generators, and install it in one click.

Use this skill