Builds or reviews photo-library picking, image loading, camera capture, and video recording with PhotoKit, PhotosPicker/PHPicker, and AVFoundation. Use for photo or camera permissions, media selection, capture sessions, library changes, caching, or media export.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build media selection, camera capture, photo library queries, and image caching workflows with PhotosUI (PhotosPicker), PhotoKit (PHPhotoLibrary), and AVFoundation. Targets Swift 6.4 / iOS 26+.
| Approach | UI Framework | Permissions Needed | Use Case |
|---|---|---|---|
PhotosPicker | SwiftUI | None (runs out-of-process) | User selects photos/videos for import |
PHPickerViewController | UIKit | None (runs out-of-process) | UIKit equivalent of PhotosPicker |
PHPhotoLibrary | Direct API | NSPhotoLibraryUsageDescription | Custom gallery, background sync, asset deletion |
AVCaptureSession | Custom UI | NSCameraUsageDescription | Real-time camera viewfinder, photo/video capture |
Prefer PhotosPicker for standard media selection. It preserves user privacy and eliminates permission friction.
When accessing PHPhotoLibrary directly, request authorization and handle .limited access:
let status = await PHPhotoLibrary.requestAuthorization(for: .readWrite)
switch status {
case .authorized:
// Full photo library access granted
case .limited:
// User selected specific photos (present PHPhotoLibrary.shared().presentLimitedLibraryPicker)
case .denied, .restricted:
// Direct user to Settings
case .notDetermined:
break
@unknown default:
break
}
Include NSPhotoLibraryUsageDescription (read/write) or NSPhotoLibraryAddUsageDescription (write-only save) in Info.plist.
Use PHCachingImageManager for fast grid thumbnail generation:
startCachingImages(for:targetSize:contentMode:options:) when scrolling into view.PHImageRequestOptions with deliveryMode = .opportunistic for quick thumbnails followed by high-res data.For custom camera viewfinders using AVCaptureSession:
@MainActor.session.beginConfiguration() and defer { session.commitConfiguration() }.UIViewRepresentable backed by AVCaptureVideoPreviewLayer.PhotosPicker single/multi-selection and media filtering recipes, read PhotosPicker Recipes.PHCachingImageManager, and memory management, read Image Loading and Caching. For format conversion and compression, read Image Formats and Compression.PHAssetResource.originalFilename is incorrectly non-nullable. Use the new nullable filename property and handle nil.Sources: https://sosumi.ai/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes
PhotosPicker would suffice without any permissions..highQualityFormat on PHImageRequestOptions for fast-scrolling grids, causing dropped frames.AVCaptureSession.startRunning() or configuration changes on @MainActor..limited photo library access on iOS 14+.UIImage into memory for multiple items simultaneously without downsampling.PhotosPicker preferred over custom library enumeration where appropriateNSPhotoLibraryUsageDescription provided when using PHPhotoLibraryNSCameraUsageDescription provided when using AVCaptureSession.limited photo library authorization handled gracefullyPHCachingImageManager used with preheating for asset collectionsAVCaptureSession configured and started on a serial background queueevals/evals.json (opens in a new tab)references/av-playback.md (opens in a new tab)references/camera-capture.md (opens in a new tab)references/image-formats-compression.md (opens in a new tab)references/image-loading-caching.md (opens in a new tab)references/photokit-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/all-ios-skills:photokitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./alarmkitBuilds AlarmKit alarms and countdowns with system Lock Screen, Dynamic Island, StandBy, and Apple Watch presentation. Use for authorization, AlarmManager scheduling, stop/secondary actions, countdown extension handoff, state observation, or Live Activity-backed alarm experiences./app-clipsBuilds App Clips and their invocation, routing, App Store Connect experiences, size/capability limits, promotion, data handoff, notifications, and full-app migration. Use for App Clip Codes, URLs, NFC/QR, Safari/Maps/Messages invocation, NSUserActivity, or App Group/keychain transfer./app-intentsImplement App Intents for Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence on iOS. Covers AppIntent actions, AppEntity and EntityQuery models, AppShortcutsProvider phrases, IndexedEntity Spotlight indexing, WidgetConfigurationIntent, SnippetIntent, and assistant schemas. Use when exposing app actions or entities to system surfaces.Other plugins' skills for the same job