Official agent skill

Sentry Cocoa SDK

by getsentry in getsentry/sentry-for-ai

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS).

OfficialApache-2.0Auto-check passedMobile

Install Sentry Cocoa SDK

skills CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-cocoa-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getsentry/sentry-for-ai sentry-cocoa-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-legacy/sentry-cocoa-sdk .claude/skills/sentry-cocoa-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sentry-cocoa-sdk
GitHub stars
268
Token cost
~5.4k tokens
SKILL.md length
1,658 words
Files
8 (incl. references)
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0

At a glance

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS).

  • Works in 4 steps: Detect → Recommend → Guide → …
  • Asked to add Sentry to iOS
  • SKILL.md covers Invoke This Skill When, Phase 1: Detect, Phase 2: Recommend and Phase 3: Guide, plus 4 more sections
  • Reaches github.com and o0.ingest.sentry.io

What it does

Sentry Cocoa SDK is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install sentry-cocoa", or configure error monitoring, tracing, profiling, session replay, logging, or metrics for Apple applications. Supports SwiftUI and UIKit.

Its SKILL.md is about 5.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/error-monitoring.md`, `references/logging.md` and `references/metrics.md`).

It sits in Mobile, covering iOS development. It works with Sentry, iOS, SwiftUI and macOS. The repository describes itself as: Teach your AI coding assistant how to use Sentry - setup, debugging, alerts, and more. The licence is Apache-2.0.

When your agent uses it

  • Asked to add Sentry to iOS
  • Add Sentry to Swift
  • Install sentry-cocoa
  • Configure error monitoring

Example prompts

  • “add Sentry to iOS”
  • “add Sentry to Swift”
  • “install sentry-cocoa”
  • “/sentry-cocoa-sdk”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Detect
  2. Recommend
  3. Guide
  4. Cross-Link

What it can do on your machine

Read from SKILL.md and the folder at commit d8fd106. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are swift, bash and ruby).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com
    • o0.ingest.sentry.io

    Also links to:

    • docs.sentry.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sentry Cocoa SDK loads about 5.4k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 81 tokens; SKILL.md has 1,658 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~5.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~23k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from getsentry/sentry-for-ai at commit d8fd106, republished under its Apache-2.0 licence (© getsentry). 1,658 words, ~5,373 tokens.

Download SKILL.mdSave it as .claude/skills/sentry-cocoa-sdk/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
sentry-cocoa-sdk
description
Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install sentry-cocoa", or configure error monitoring, tracing, profiling, session replay, logging, or metrics for Apple applications. Supports SwiftUI and UIKit.
license
Apache-2.0
category
sdk-setup
parent
sentry-sdk-setup
disable-model-invocation
true

All Skills > SDK Setup > Cocoa SDK

Sentry Cocoa SDK

Opinionated wizard that scans your Apple project and guides you through complete Sentry setup.

Invoke This Skill When

  • User asks to "add Sentry to iOS/macOS/tvOS" or "set up Sentry" in an Apple app
  • User wants error monitoring, tracing, profiling, session replay, or logging in Swift/ObjC, or metrics in Swift
  • User mentions sentry-cocoa, SentrySDK, or the Apple/iOS Sentry SDK
  • User wants to monitor crashes, app hangs, watchdog terminations, or performance

Note: SDK versions and APIs below reflect Sentry docs at time of writing (sentry-cocoa 9.15.0). Always verify against docs.sentry.io/platforms/apple/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making any recommendations:

bash
# Check existing Sentry dependency
grep -rEi "sentry|sentry-cocoa|SentrySPM|SentrySwiftUI" \
  --include="Package.swift" --include="Podfile" --include="Cartfile" \
  --include="Package.resolved" --include="project.pbxproj" . 2>/dev/null | head -20

# Detect UI framework (SwiftUI vs UIKit)
grep -rE "@main|struct .*: App" --include="*.swift" . 2>/dev/null | head -5
grep -rE "AppDelegate|UIApplicationMain|@UIApplicationDelegateAdaptor" --include="*.swift" . 2>/dev/null | head -5

# Detect platform and deployment targets
grep -rE "platforms:|\\.iOS|\\.macOS|\\.tvOS|\\.watchOS|\\.visionOS|IPHONEOS_DEPLOYMENT_TARGET|MACOSX_DEPLOYMENT_TARGET|TVOS_DEPLOYMENT_TARGET|WATCHOS_DEPLOYMENT_TARGET|XROS_DEPLOYMENT_TARGET" \
  --include="Package.swift" --include="project.pbxproj" . 2>/dev/null | head -20
grep -E "platform :ios|platform :osx|platform :tvos|platform :watchos" Podfile 2>/dev/null

# Detect logging
grep -rE "import OSLog|import os\\.log|Logger\\(|CocoaLumberjack|DDLog" --include="*.swift" . 2>/dev/null | head -5

# Detect companion backend
ls ../backend ../server ../api 2>/dev/null
ls ../go.mod ../requirements.txt ../Gemfile ../package.json 2>/dev/null

What to note:

  • Is sentry-cocoa already in Package.swift or Podfile? If yes, skip to Phase 2 (configure features).
  • SwiftUI (@main App struct) or UIKit (AppDelegate)? Determines init pattern.
  • Which Apple platforms? (Affects which features are available — see Platform Support Matrix.)
  • Existing logging library? (Enables structured log capture.)
  • SwiftUI tracing import/product? SentrySwiftUI still exists but is deprecated in SDK 9.4.1+; prefer the main Sentry module for released binary products.
  • Companion backend? (Triggers Phase 4 cross-link for distributed tracing.)

Phase 2: Recommend

Based on what you found, present a concrete recommendation. Don't ask open-ended questions — lead with a proposal:

Recommended (core coverage):

  • Error Monitoring — always; crash reporting, app hangs, watchdog terminations, NSError/Swift errors
  • Tracing — always for apps; auto-instruments app launch, network, UIViewController, file I/O, Core Data
  • Profiling — production iOS/macOS apps; UI profiling via configureProfiling

Optional (enhanced observability):

  • Session Replay — user-facing iOS apps; verify masking on iOS 26+ / Liquid Glass builds
  • Logging — when structured log capture is needed
  • Metrics — Swift apps needing aggregate counters, gauges, or distributions
  • User Feedback — apps that want crash/error feedback forms from users

Not available for Cocoa:

  • Crons — backend only
  • AI Monitoring — JS/Python only

Recommendation logic:

FeatureRecommend when...
Error MonitoringAlways — non-negotiable baseline
TracingAlways for apps — rich auto-instrumentation out of the box
ProfilingiOS/macOS production apps where performance matters (not tvOS/watchOS/visionOS)
Session ReplayUser-facing iOS apps; tvOS may work but is not officially supported
LoggingExisting os.log / CocoaLumberjack usage, or structured logs needed
MetricsAggregate product or health signals that should not create issues; Swift only, SDK 9.12+
User FeedbackApps wanting in-app bug reports with screenshots

Propose: "I recommend Error Monitoring + Tracing + Profiling. Want me to also add Session Replay and Logging?"


Phase 3: Guide

Install

Option 1 — Sentry Wizard (recommended):

You need to run this yourself — the wizard opens a browser for login and requires interactive input that the agent can't handle. Copy-paste into your terminal:

brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios

It handles login, org/project selection, auth token setup, SDK installation, AppDelegate updates, and dSYM/debug symbol upload build phases.

Once it finishes, come back and skip to Verification.

If the user skips the wizard, proceed with Option 2 (SPM/CocoaPods) and manual setup below.

Option 2 — Swift Package Manager: File → Add Packages → enter:

https://github.com/getsentry/sentry-cocoa.git

Or in Package.swift:

swift
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.15.0"),

SPM Products — choose exactly one per target:

ProductUse Case
SentryRecommended — static framework, fast app start; includes SwiftUI APIs in SDK 9.4.1+
Sentry-DynamicDynamic framework alternative
SentrySwiftUILegacy/deprecated re-export for SwiftUI APIs; use only when maintaining older setup
Sentry-WithoutUIKitOrAppKitwatchOS, app extensions, CLI tools (Swift < 6.1)
SentrySPM + NoUIFramework traitSource build without UIKit/AppKit for CLI/headless targets (SDK 9.7+ / Swift 6.1+ / Xcode 26.4+ for Xcode UI)

Warning: Xcode allows selecting multiple products — choose only one.

If using SentrySPM from source, current source-build projects may import SentrySwift instead of Sentry; verify the module name in the target. Released binary products use import Sentry.

Swift 6.1+ trait-based opt-out of UIKit/AppKit (requires Package@swift-6.1.swift manifest):

swift
// Package.swift (Swift 6.1+)
.package(
    url: "https://github.com/getsentry/sentry-cocoa",
    from: "9.15.0",
    traits: ["NoUIFramework"]
),

// In your target's dependencies:
.product(name: "SentrySPM", package: "sentry-cocoa")

This is the preferred opt-out path for command-line/headless targets on Swift 6.1+. It compiles the SDK from source so the trait can remove UIKit/AppKit/SwiftUI linkage. For Swift < 6.1 continue using Sentry-WithoutUIKitOrAppKit.

Note: Package traits are visible in the Xcode UI starting with Xcode 26.4+. On older Xcode versions, traits still work when declared in Package.swift but won't appear in the GUI.

Option 3 — CocoaPods (deprecated; prefer SPM):

ruby
platform :ios, '15.0'
use_frameworks!

target 'YourApp' do
  pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '9.15.0'
end

Sentry plans to stop publishing CocoaPods releases at the end of June 2026; use this only for existing CocoaPods projects.

Known issue (Xcode 14+): Sandbox rsync.samba error → Target Settings → "Enable User Script Sandbox" → NO.

Option 4 — SentryObjC (for pure Objective-C/C++ projects):

For pure Objective-C or Objective-C++ projects that cannot enable Clang modules (e.g., -fmodules=NO), use the SentryObjC wrapper SDK. It provides the same functionality as the main SDK but with pure Objective-C headers that don't require Swift module imports.

SPM:

swift
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.17.1"),

// In your target's dependencies:
.product(name: "SentryObjC", package: "sentry-cocoa")

Or download SentryObjC-Dynamic.xcframework.zip from the releases page.

Migration from regular Sentry to SentryObjC:

  • Change #import <Sentry/Sentry.h> to #import <SentryObjC/SentryObjC.h>
  • Rename Sentry-prefixed types to SentryObjC (e.g., SentrySDK → SentryObjCSDK, SentryOptions → SentryObjCOptions)
  • The API surface is otherwise identical

Most users should use the standard Sentry product (Option 2). Only use SentryObjC if you have a specific requirement preventing Clang modules.


Full iOS app config enabling the most common features with sensible defaults. Add before any other code at app startup.

For macOS, watchOS, app extensions, or NoUIFramework builds, omit options that are unavailable for that platform (sessionReplay, screenshots/view hierarchy, user-feedback UI, UIKit tracing, and profiling on tvOS/watchOS/visionOS). Keep the core dsn, environment, error monitoring, tracing, logs, and metrics settings that compile for the detected target.

SwiftUI — App entry point:

swift
import SwiftUI
import Sentry

@main
struct MyApp: App {
    init() {
        SentrySDK.start { options in
            options.dsn = ProcessInfo.processInfo.environment["SENTRY_DSN"]
                ?? "https://examplePublicKey@o0.ingest.sentry.io/0"
            options.environment = ProcessInfo.processInfo.environment["SENTRY_ENVIRONMENT"]
                ?? "production"
            // releaseName defaults to "<bundle id>@<version>+<build>"; set only if you need a custom release.

            // Error monitoring (on by default — explicit for clarity)
            options.enableCrashHandler = true
            options.enableAppHangTracking = true
            options.enableReportNonFullyBlockingAppHangs = true
            options.enableWatchdogTerminationTracking = true
            options.attachScreenshot = true
            options.attachViewHierarchy = true
            options.sendDefaultPii = true

            // Tracing
            options.tracesSampleRate = 1.0          // lower to 0.2 in high-traffic production

            // Profiling (SDK 9.0.0+ API)
            options.configureProfiling = {
                $0.sessionSampleRate = 1.0
                $0.lifecycle = .trace
            }

            // Session Replay. Keep production sampling conservative and verify masking on iOS 26+.
            options.sessionReplay.sessionSampleRate = 0.1
            options.sessionReplay.onErrorSampleRate = 1.0

            // Logging (SDK 9.0.0+ top-level; use options.experimental.enableLogs in 8.x)
            options.enableLogs = true

            // Metrics are enabled by default in SDK 9.12+. Set false only to opt out.
            options.enableMetrics = true
        }
    }

    var body: some Scene {
        WindowGroup { ContentView() }
    }
}

UIKit — AppDelegate:

swift
import UIKit
import Sentry

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        SentrySDK.start { options in
            options.dsn = ProcessInfo.processInfo.environment["SENTRY_DSN"]
                ?? "https://examplePublicKey@o0.ingest.sentry.io/0"
            options.environment = ProcessInfo.processInfo.environment["SENTRY_ENVIRONMENT"]
                ?? "production"
            // releaseName defaults to "<bundle id>@<version>+<build>"; set only if you need a custom release.

            options.enableCrashHandler = true
            options.enableAppHangTracking = true
            options.enableReportNonFullyBlockingAppHangs = true
            options.enableWatchdogTerminationTracking = true
            options.attachScreenshot = true
            options.attachViewHierarchy = true
            options.sendDefaultPii = true

            options.tracesSampleRate = 1.0

            options.configureProfiling = {
                $0.sessionSampleRate = 1.0
                $0.lifecycle = .trace
            }

            options.sessionReplay.sessionSampleRate = 0.1
            options.sessionReplay.onErrorSampleRate = 1.0

            // Logging (SDK 9.0.0+ top-level; use options.experimental.enableLogs in 8.x)
            options.enableLogs = true

            // Metrics are enabled by default in SDK 9.12+. Set false only to opt out.
            options.enableMetrics = true
        }
        return true
    }
}

Warning: SDK initialization must occur on the main thread.


For Each Agreed Feature

Walk through features one at a time. Load the reference file for each, follow its steps, and verify before moving to the next:

FeatureReference fileLoad when...
Error Monitoring${SKILL_ROOT}/references/error-monitoring.mdAlways (baseline)
Tracing${SKILL_ROOT}/references/tracing.mdApp launch, network, UIViewController perf
Profiling${SKILL_ROOT}/references/profiling.mdProduction perf-sensitive apps
Session Replay${SKILL_ROOT}/references/session-replay.mdUser-facing iOS apps; tvOS only with caveat
Logging${SKILL_ROOT}/references/logging.mdStructured log capture needed
Metrics${SKILL_ROOT}/references/metrics.mdAggregate counters, gauges, distributions
User Feedback${SKILL_ROOT}/references/user-feedback.mdIn-app bug reporting wanted

For each feature: Read ${SKILL_ROOT}/references/<feature>.md, follow steps exactly, verify it works.


Configuration Reference

Show full SKILL.md (684 more words)Show less
Key SentryOptions Fields
OptionTypeDefaultPurpose
dsnString?nilSDK disabled if empty; macOS can read SENTRY_DSN, other Apple platforms must set explicitly
environmentString"production"e.g., "production"
releaseNameString?bundle-derivedDefaults to <bundle id>@<version>+<build>
debugBoolfalseVerbose SDK output — disable in production
sendDefaultPiiBoolfalseInclude IP, user info from active integrations
enableCrashHandlerBooltrueMaster switch for crash reporting
enableAppHangTrackingBooltrueMaster switch for app hang tracking
enableReportNonFullyBlockingAppHangsBooltrueReport non-fully-blocking hangs on supported UI platforms
appHangTimeoutIntervalDouble2.0Seconds before classifying as hang
enableWatchdogTerminationTrackingBooltrueTrack watchdog kills (iOS, tvOS, Mac Catalyst)
attachScreenshotBoolfalseCapture screenshot on error
attachViewHierarchyBoolfalseCapture view hierarchy on error
tracesSampleRateNSNumber?nilTransaction sample rate (nil = tracing disabled); Swift auto-boxes Double literals (e.g. 1.0 → NSNumber)
tracesSamplerClosurenilDynamic per-transaction sampling (overrides rate)
enableAutoPerformanceTracingBooltrueMaster switch for auto-instrumentation
tracePropagationTargets[Any]all requestsStrings or NSRegularExpression values that receive distributed trace headers
enableCaptureFailedRequestsBooltrueAuto-capture HTTP 5xx errors as events
enableNetworkBreadcrumbsBooltrueBreadcrumbs for outgoing HTTP requests
add(inAppInclude:)Methodbundle executableAdd module prefixes treated as "in-app" code
maxBreadcrumbsInt100Max breadcrumbs per event
sampleRateFloat1.0Error event sample rate
beforeSendClosurenilHook to mutate/drop error events
onLastRunStatusDeterminedClosurenilCalled after SDK determines previous launch crash status
strictTraceContinuationBoolfalseReject incoming traces from other orgs; validates sentry-org_id in baggage headers (sentry-cocoa ≥9.10.0)
orgIdString?nilOrganization ID for strict trace validation; auto-parsed from DSN host (e.g. o123.ingest.sentry.io → "123") if not set explicitly
enableLogsBoolfalseEnable structured logs
enableMetricsBooltrueEnable Swift Metrics API (SDK 9.12+)
Environment Variables
VariableMaps toPurpose
SENTRY_DSNdsnmacOS fallback only; set explicitly on iOS/tvOS/watchOS/visionOS
SENTRY_RELEASEreleaseNameDo not assume automatic Cocoa fallback; set explicitly if needed
SENTRY_ENVIRONMENTenvironmentDo not assume automatic Cocoa fallback; set explicitly if needed
Platform Feature Support Matrix
FeatureiOStvOSmacOSwatchOSvisionOS
Crash ReportingYesYesYesNoYes
App HangsYesYesYesNoYes
Watchdog TerminationYesYesNoNoYes
App Start TracingYesYesNoNoYes
UIViewController TracingYesYesNoNoYes
SwiftUI TracingYesYesYesNoYes
Network TrackingYesYesYesNoYes
ProfilingYesNoYesNoNo
Session ReplayYesUnofficialNoNoNo
MetricKitYes (15+)NoYes (12+)NoNo
Metrics APIYesYesYesVerifyYes
Production Settings

Lower sample rates for production to control volume and cost:

swift
options.tracesSampleRate = 0.2          // 20% of transactions

options.configureProfiling = {
    $0.sessionSampleRate = 0.1          // 10% of sessions
    $0.lifecycle = .trace
}

options.sessionReplay.sessionSampleRate = 0.1   // 10% continuous
options.sessionReplay.onErrorSampleRate = 1.0   // 100% on error (keep high)

options.enableLogs = true
options.enableMetrics = true             // default true in SDK 9.12+
options.debug = false                   // never in production

Verification

Test that Sentry is receiving events:

swift
// Trigger a test error event:
SentrySDK.capture(message: "Sentry Cocoa SDK test")

// Or test crash reporting (without debugger — crashes are intercepted by debugger):
// SentrySDK.crash()  // uncomment, run without debugger, relaunch to see crash report

Check the Sentry dashboard within a few seconds. If nothing appears:

  1. Set options.debug = true — prints SDK internals to Xcode console
  2. Verify the DSN is correct and the project exists
  3. Ensure initialization is on the main thread

After completing Apple setup, check for a companion backend missing Sentry coverage:

bash
# Detect companion backend
ls ../backend ../server ../api 2>/dev/null
cat ../go.mod 2>/dev/null | head -5
cat ../requirements.txt ../Pipfile 2>/dev/null | head -5
cat ../Gemfile 2>/dev/null | head -5
cat ../package.json 2>/dev/null | grep -E '"name"|"dependencies"' | head -5

If a backend is found, configure tracePropagationTargets to enable distributed tracing end-to-end, and suggest the matching skill:

Backend detectedSuggest skillTrace header support
Go (go.mod)sentry-go-sdkAutomatic
Python (requirements.txt)sentry-python-sdkAutomatic
Ruby (Gemfile)sentry-ruby-sdkAutomatic
Node.js backend (package.json)sentry-node-sdk (or sentry-express-sdk)Automatic

Troubleshooting

IssueSolution
Events not appearingSet debug: true, verify DSN format, ensure init is on main thread
Crashes not capturedRun without debugger attached — debugger intercepts signals
App hangs not reportedAuto-disabled when debugger attached; check appHangTimeoutInterval
Session Replay not recordingVerify sessionSampleRate > 0 or onErrorSampleRate > 0; on iOS 26+ verify masking and any manual Liquid Glass gating
Tracing data missingConfirm tracesSampleRate > 0; check enableAutoPerformanceTracing = true
Profiling data missingVerify sessionSampleRate > 0 in configureProfiling; for .trace lifecycle, tracing must be enabled
rsync.samba build error (CocoaPods)Target Settings → "Enable User Script Sandbox" → NO
Multiple SPM products selectedChoose only one of Sentry, Sentry-Dynamic, SentrySwiftUI, Sentry-WithoutUIKitOrAppKit, or SentrySPM (with NoUIFramework trait on Swift 6.1+)
inAppExclude compile errorRemoved in SDK 9.0.0 — use options.add(inAppInclude:)
enableAppHangTrackingV2 compile errorRemoved in SDK 9.0.0 — use enableAppHangTracking; V2 behavior is default where supported
Watchdog termination not trackedRequires enableCrashHandler = true (it is by default)
Network breadcrumbs missingRequires enableSwizzling = true (it is by default)
profilesSampleRate compile errorRemoved in SDK 9.0.0 — use configureProfiling closure instead

© getsentry, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in skills-legacy/sentry-cocoa-sdk of getsentry/sentry-for-ai.

  • SKILL.md
  • references/error-monitoring.md
  • references/logging.md
  • references/metrics.md
  • references/profiling.md
  • references/session-replay.md
  • references/tracing.md
  • references/user-feedback.md

Open the folder on GitHubat commit d8fd106

Compare with similar skills

Sentry Cocoa SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sentry Cocoa SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sentry Cocoa SDK this skillgetsentry/sentry-for-ai268—~5.4kAutomated safety check: PassApache-2.0
Swiftui Expert SkillAvdLee/SwiftUI-Agent-Skill3.7k—~2.9kAutomated safety check: PassMIT
Swiftui Expert SkillEslzzyl/Pixiv-SwiftUI1115 repos~3.1kAutomated safety check: PassAGPL-3.0
Hig Project Contextraintree-technology/hig-doctor1425 repos~1.2kAutomated safety check: PassMIT
Hig Components Contentraintree-technology/hig-doctor1425 repos~1.3kAutomated safety check: PassMIT
SwiftUI Design SkillWholiver/swiftui-design-skill210—~2.8kAutomated safety check: PassMIT

Similar skills

  • Swiftui Expert Skill

    AvdLee/SwiftUI-Agent-Skill

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state and @Observable data flow, view composition, resizable layouts, safe areas, display…

    3.7k GitHub stars~2.9k tokensUpdated yesterday
    MobileAuto-check passed
  • Swiftui Expert Skill

    Eslzzyl/Pixiv-SwiftUI

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management and @Observable data flow, view composition and invalidation/performance…

    111 GitHub starsUsed in 5 repos~3.1k tokens
    MobileAuto-check passed
  • Hig Project Context

    raintree-technology/hig-doctor

    Create or update a shared Apple design context document that other HIG skills use to tailor guidance.

    142 GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Hig Components Content

    raintree-technology/hig-doctor

    Apple Human Interface Guidelines for content display components.

    142 GitHub starsUsed in 5 repos~1.3k tokens
    MobileAuto-check passed
  • SwiftUI Design Skill

    Wholiver/swiftui-design-skill

    Guides the agent to design distinctive SwiftUI interfaces for iOS and macOS, with six anti-generic rules, a design direction workflow and a five-dimension review.

    210 GitHub stars~2.8k tokensUpdated 5 mo ago
    MobileAuto-check passed
  • Swiftui Backports

    shaps80/SwiftUIBackports

    Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target.

    1.1k GitHub stars~604 tokensUpdated 3 mo ago
    MobileAuto-check passed

More from getsentry/sentry-for-ai

All 32 skills in this repo
  • Sentry Elixir SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Elixir. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Sentry Go SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Go. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Sentry Nextjs SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Next.js. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~4.7k tokensUpdated today
    Auto-check: notes
  • Sentry Php SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for PHP. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~3.7k tokensUpdated today
    Auto-check: notes
  • Sentry Python SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Python. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Sentry React Router Framework SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for React Router Framework mode. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~3.8k tokensUpdated today
    Auto-check: notes

Categories

Questions about Sentry Cocoa SDK

What does Sentry Cocoa SDK do?

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Sentry Cocoa SDK is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS).

When should I use Sentry Cocoa SDK?

Sentry Cocoa SDK fits situations like: asked to add Sentry to iOS; add Sentry to Swift; install sentry-cocoa; configure error monitoring.

How do I install Sentry Cocoa SDK in Claude Code?

Run `npx skills add getsentry/sentry-for-ai --skill sentry-cocoa-sdk -a claude-code`. Or copy the skill folder (skills-legacy/sentry-cocoa-sdk in getsentry/sentry-for-ai) into .claude/skills/sentry-cocoa-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Sentry Cocoa SDK in Codex?

Run `npx skills add getsentry/sentry-for-ai --skill sentry-cocoa-sdk -a codex`. Or copy the skill folder (skills-legacy/sentry-cocoa-sdk in getsentry/sentry-for-ai) into .agents/skills/sentry-cocoa-sdk in your project. Codex loads it when a task matches its description.

Can I use Sentry Cocoa SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-for-ai --skill sentry-cocoa-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-cocoa-sdk, .gemini/skills/sentry-cocoa-sdk, .github/skills/sentry-cocoa-sdk and .opencode/skills/sentry-cocoa-sdk in your project.

What does Sentry Cocoa SDK need to run?

SKILL.md names no scripts, command-line tools or credentials: Sentry Cocoa SDK is instructions for the agent only. Our summary lists: Python 3.

Does Sentry Cocoa SDK access the network?

SKILL.md names 3 domains. In commands or code: github.com and o0.ingest.sentry.io; the agent is likely to contact these when it follows the instructions. As links in the text: docs.sentry.io. This is read from the text; nothing was executed.

Is Sentry Cocoa SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sentry Cocoa SDK use?

Sentry Cocoa SDK is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sentry Cocoa SDK use?

About 5.4k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.

What are the alternatives to Sentry Cocoa SDK?

Skills that share tags, products or a category with Sentry Cocoa SDK: Swiftui Expert Skill (AvdLee/SwiftUI-Agent-Skill, 3.7k stars), Swiftui Expert Skill (Eslzzyl/Pixiv-SwiftUI, 111 stars), Hig Project Context (raintree-technology/hig-doctor, 142 stars) and Hig Components Content (raintree-technology/hig-doctor, 142 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sentry Cocoa SDK?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-for-ai, which has 268 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.

Source: getsentry/sentry-for-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.