Agent skill · Data & Analytics

contacts-framework

Read, create, update, and pick contacts using the Contacts and ContactsUI frameworks. Use when fetching contact data, saving new contacts, wrapping CNContactPickerViewController in SwiftUI, handling contact permissions, or working with CNContactStore fetch and save requests.

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

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

Facts
Files in the skill folder: 3
SKILL.md size: 16 KB
Bundled scripts: none
Path: skills/contacts-framework/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

# Contacts Framework Use `CNContactStore`, `CNSaveRequest`, and `CNContactPickerViewController` to fetch, create, update, or pick contacts in Swift 6.3 / iOS 26+ apps. ## Contents - [Setup](#setup) - [Authorization](#authorization) - [Fetching Contacts](#fetching-contacts) - [Key Descriptors](#key-descriptors) - [Creating and Updating Contacts](#creating-and-updating-contacts) - [Contact Picker](#contact-picker) - [Observing Changes](#observing-changes) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup ### Project Configuration 1. Add `NSContactsUsageDescription` to Info.plist explaining why the app accesses contacts. The app crashes if it uses contact data APIs without this key. 2. No additional capability or entitlement is required for ordinary Contacts access. 3. Add `com.apple.developer.contacts.notes` only when reading or writing `CNContactNoteKey` / `CNContact.note`; this entitlement requires Apple approval before public distribution. ### Imports ```swift @preconcurrency import Contacts // CNContactStore, CNSaveRequest, CNContact import ContactsUI // CNContactPickerViewController ``` ## Authorization Request acc

What's inside
Steps it walks through
  1. Contents
  2. Setup
  3. Project Configuration
  4. Imports
  5. Authorization
  6. Authorization States
  7. Fetching Contacts
  8. Fetch by Name
  9. Fetch by Identifier
  10. Enumerate All Contacts
  11. Key Descriptors
  12. Common Keys
  13. Composite Key Descriptors
  14. Creating and Updating Contacts
Ships with 2 files
  • evals/evals.json
  • references/contacts-patterns.md
More from swift-ios-skills
All skills →
About this skill
What does the contacts-framework skill do?

Read, create, update, and pick contacts using the Contacts and ContactsUI frameworks. Use when fetching contact data, saving new contacts, wrapping CNContactPickerViewController in SwiftUI, handling contact permissions, or working with CNContactStore fetch and save requests.

How do I install it?

Run `npx skills add dpearson2699/swift-ios-skills --skill contacts-framework --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