getsentry/sentry-for-ai/sentry-snapshots-cocoa
Claude Code and agent skill by getsentry/sentry-for-ai
- community
Checking that the SKILL.md file is still in the repository.
Full Sentry Snapshots setup for Apple/Cocoa projects. Use when asked to "setup SnapshotPreviews", "setup Apple snapshot testing", "upload Apple snapshots to Sentry", "setup Apple snapshot GitHub Actions", or "setup Apple selective snapshot testing".
Install
npx vskill@latest install getsentry/sentry-for-ai/sentry-snapshots-cocoaSKILL.md
The same SKILL.md was published earlier as getsentry/sentry-for-ai/sentry-snapshots-cocoa.
Sentry Snapshots for Apple/Cocoa
Scope
- Goal: generate Apple snapshot images and upload them to Sentry Snapshots.
- Detect existing snapshot generation first, including Point-Free
swift-snapshot-testing; preserve it when it already emits or can emit PNGs or JPEGs.
- Use the Sentry Wizard
appleSnapshotsflow only when setting up Sentry’s first-party
SnapshotPreviews solution.
- Use manual setup only if the wizard is unavailable, cannot resolve targets
non-interactively after disambiguation, or fails after explicit disambiguation.
- Package-only SwiftPM: stop and ask for the host app/test target; standalone
swift test rendering is not supported.
Snapshot uploads send generated images and metadata to Sentry. Confirm the target organization/project and export directory, and check whether the images contain customer data or other sensitive content before uploading. Upload only the selected snapshot output within the user’s requested scope.
Detect
Do only enough detection to route before calling the wizard:
Record: existing SnapshotPreviews setup, existing snapshot generator/library, output directory if known, Xcode project directory, CI provider, Fastlane, and Sentry auth. For each .xcodeproj match, record the containing directory for --xcode-project-dir; if find prints ./MyApp/MyApp.xcodeproj, pass ./MyApp, not the bundle path. Let the wizard detect app targets, hosted XCTest targets, and Swift previews only when no existing generator is present.
Route
Resolve routing in this order; setup is the primary path and CI is optional follow-up.
- Select or create the image generator:
- named generator wins;
- multiple existing generators with no user choice -> ask;
- existing non-SnapshotPreviews generator -> preserve it;
- existing SnapshotPreviews -> use it;
- no existing generator -> set up SnapshotPreviews by default for Sentry Snapshots or
Apple snapshot testing.
- For SnapshotPreviews, stop before setup/verification/CI if there is no
.xcodeproj
host app or no hosted XCTest target. These stops do not apply when preserving another generator.
- For setup or verification:
- existing non-SnapshotPreviews generator -> read
references/snapshots.md; - existing SnapshotPreviews -> read
references/snapshot-previews.mdand
references/snapshots.md;
- new SnapshotPreviews setup -> read
references/wizard-setup.md; - wizard reports no Swift previews -> ask before adding previews or choosing another
generator.
- For GitHub Actions/CI only after an image generator exists:
- Point-Free
swift-snapshot-testing-> read
references/github-actions-swift-snapshot-testing.md and references/snapshots.md;
- other non-SnapshotPreviews generator -> read
references/snapshots.mdand adapt
existing CI/upload;
- SnapshotPreviews, one simulator only, no matrix/fanout/selective CI -> read
references/github-actions-simple.md;
- SnapshotPreviews with multiple simulators, device families, matrix, or any
selective CI -> read references/github-actions-fanout.md and references/snapshot-previews.md.
Optional References
| Need | Read | |
|---|---|---|
| First-party SnapshotPreviews setup, disambiguation, or manual fallback | references/wizard-setup.md | |
| SnapshotPreviews metadata, rendering preferences, selective rendering, or SnapshotPreviews-specific troubleshooting | references/snapshot-previews.md | |
Upload any generated snapshot images to Sentry with Fastlane, sentry-cli, manifests, CI notes, or upload troubleshooting | references/snapshots.md | |
| One-destination GitHub Actions workflow | references/github-actions-simple.md | |
| Multi-destination/fan-out GitHub Actions workflow | references/github-actions-fanout.md | |
Point-Free swift-snapshot-testing GitHub Actions workflow | references/github-actions-swift-snapshot-testing.md |
Completion Checks
- The selected snapshot image generator is documented and preserved or configured
according to the route above.
- Snapshot generation appears in the relevant local or CI test logs.
- Export directory contains
.pngfiles and any generated.jsonsidecars. - Upload succeeds and prints a Sentry URL or snapshot id.
- Base branch upload is full; selective PR upload includes the full image-name manifest.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/skills/sentry-snapshots-cocoa/SKILL.md
Popularity
- Repository stars
- 248
- Repository forks
- 30
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/getsentry/sentry-for-ai/sentry-snapshots-cocoa)