Agent skill · Code Review & Quality

photokit

Implement, review, or improve photo picking, camera capture, and media handling in iOS apps using PhotoKit and AVFoundation. Use when working with PhotosPicker, PHPickerViewController, camera capture sessions (AVCaptureSession), photo library access, image loading and display, video recording, or media permissions. Also use when selecting photos from the library, taking pictures, recording video, processing images, or handling photo/camera privacy permissions in Swift apps.

Derek Pearson935★ · +23/wk · 1 repos on radarProfile →
claude-codecodexcursorNOASSERTION
Install
npx skills add dpearson2699/swift-ios-skills --skill photokit --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 6
SKILL.md size: 16 KB
Bundled scripts: none
Path: skills/photokit/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 963 · +28 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# PhotoKit Modern patterns for photo picking, camera capture, image loading, and media permissions targeting iOS 26+ with Swift 6.3. Patterns are backward-compatible to iOS 16 unless noted. See [references/photokit-patterns.md](references/photokit-patterns.md) for complete picker recipes and [references/camera-capture.md](references/camera-capture.md) for AVCaptureSession patterns. ## Contents - [PhotosPicker (SwiftUI, iOS 16+)](#photospicker-swiftui-ios-16) - [Privacy and Permissions](#privacy-and-permissions) - [Camera Capture Basics](#camera-capture-basics) - [Image Loading and Display](#image-loading-and-display) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## PhotosPicker (SwiftUI, iOS 16+) `PhotosPicker` is the native SwiftUI replacement for `UIImagePickerController`. It runs out-of-process, requires no photo library permission for browsing, and supports single or multi-selection with media type filtering. ### Single Selection ```swift import SwiftUI import PhotosUI struct SinglePhotoPicker: View { @State private var selectedItem: PhotosPickerItem? @State private var selectedImage: Image? var body: some View { VStac

What's inside
Steps it walks through
  1. Contents
  2. PhotosPicker (SwiftUI, iOS 16+)
  3. Single Selection
  4. Multi-Selection
  5. Media Type Filtering
  6. Loading Selected Items with Transferable
  7. Privacy and Permissions
  8. Photo Library Access Levels
  9. Checking and Requesting Photo Library Permission
  10. Camera Permission
  11. Handling Denied Permissions
  12. Required Info.plist Keys
  13. Camera Capture Basics
  14. Minimal Camera Manager
Ships with 5 files
  • evals/evals.json
  • references/av-playback.md
  • references/camera-capture.md
  • references/image-loading-caching.md
  • references/photokit-patterns.md
More from swift-ios-skills
All skills →
About this skill
What does the photokit skill do?

Implement, review, or improve photo picking, camera capture, and media handling in iOS apps using PhotoKit and AVFoundation. Use when working with PhotosPicker, PHPickerViewController, camera capture sessions (AVCaptureSession), photo library access, image loading and display, video recording, or media permissions. Also use when selecting photos from the library, taking pictures, recording video, processing images, or handling photo/camera privacy permissions in Swift apps.

How do I install it?

Run `npx skills add dpearson2699/swift-ios-skills --skill photokit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going