app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Generates protocol-based error/crash monitoring with swappable providers (Sentry, Crashlytics). Use when user wants to add crash reporting, error tracking, or production monitoring.
Claude Code
$ npx -y skills add rshankras/claude-code-apple-skills --skill error-monitoring --agent claude-code
Codex
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a codex -y
Cursor
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a cursor -y
Gemini CLI
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a gemini-cli -y
GitHub Copilot
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a github-copilot -y
OpenCode
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a opencode -y
Windsurf
$ npx skills add rshankras/claude-code-apple-skills --skill error-monitoring -a windsurf -y
name: error-monitoring description: Generates protocol-based error/crash monitoring with swappable providers (Sentry, Crashlytics). Use when user wants to add crash reporting, error tracking, or production monitoring. allowed-tools: [Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
Generates a production-ready error monitoring infrastructure with protocol-based architecture for easy provider swapping.
Before generating, ALWAYS check:
# Check for existing crash reporting rg -l "Sentry|Crashlytics|CrashReporter" --type swift # Check Package.swift for existing SDKs cat Package.swift | grep -i "sentry\|firebase\|crashlytics" # Check for existing error handling patterns rg "captureError|recordError|logError" --type swift | head -5
If existing crash reporting found:
Ask user via AskUserQuestion:
1. **Initial provider?**
2. **Include breadcrumbs?**
3. **Include user context?**
**Always generate:**
Sources/ErrorMonitoring/ ├── ErrorMonitoringService.swift # Protocol ├── ErrorContext.swift # Breadcrumbs, user info └── NoOpErrorMonitoring.swift # Testing/privacy
**Based on provider selection:**
Sources/ErrorMonitoring/Providers/ ├── SentryErrorMonitoring.swift # If Sentry selected └── CrashlyticsErrorMonitoring.swift # If Crashlytics selected
Read templates from this skill:
Adapt templates to match:
**In App.swift:**
import SwiftUI
@main
struct MyApp: App {
init() {
// Configure error monitoring
ErrorMonitoring.shared.configure()
}
var body: some Scene {
WindowGroup {
ContentView()
.environment(\.errorMonitoring, ErrorMonitoring.shared.service)
}
}
}**Capturing errors:**
do {
try await riskyOperation()
} catch {
ErrorMonitoring.shared.service.captureError(error)
}**Adding breadcrumbs:**
ErrorMonitoring.shared.service.addBreadcrumb(
Breadcrumb(category: "navigation", message: "Opened settings")
)1. **Create account** at [sentry.io](https://sentry.io) 2. **Create project** for iOS/macOS 3. **Get DSN** from Project Settings > Client Keys 4. **Add to Package.swift:**
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.0.0")
1. **Add Firebase** to your project via [console.firebase.google.com](https://console.firebase.google.com) 2. **Download** GoogleService-Info.plist 3. **Add Firebase SDK** via SPM or CocoaPods 4. **Enable Crashlytics** in Firebase console
protocol ErrorMonitoringService: Sendable {
func configure()
func captureError(_ error: Error, context: ErrorContext?)
func captureMessage(_ message: String, level: ErrorLevel)
func addBreadcrumb(_ breadcrumb: Breadcrumb)
func setUser(_ user: MonitoringUser?)
func reset()
}// In ErrorMonitoring.swift
final class ErrorMonitoring {
static let shared = ErrorMonitoring()
// Change this ONE line to swap providers:
let service: ErrorMonitoringService = SentryErrorMonitoring()
// let service: ErrorMonitoringService = CrashlyticsErrorMonitoring()
// let service: ErrorMonitoringService = NoOpErrorMonitoring()
}// Automatic navigation breadcrumbs
struct ContentView: View {
@Environment(\.errorMonitoring) var errorMonitoring
var body: some View {
Button("Open Details") {
errorMonitoring.addBreadcrumb(
Breadcrumb(category: "ui", message: "Tapped details button")
)
showDetails = true
}
}
}After generation, verify:
Add to PrivacyInfo.xcprivacy if using Sentry/Crashlytics:
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCrashData</string>
<key>NSPrivacyCollectedDataTypeLinkA collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution,…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.