Skip to main content
skill CX Codex

contacts-framework — Claude Code skill for Swift contacts

This skill guides Swift projects through contact lookup, creation, edits, permissions, and presenting the system contact picker in SwiftUI.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill contacts-framework -a claude-code
Open on GitHub

What contacts-framework does

The skill covers CNContactStore queries by name or identifier, full contact enumeration, and saving changes with CNSaveRequest. It also explains how to build or modify records using CNMutableContact and present CNContactPickerViewController from a SwiftUI app.

Fetch the property keys your code will read. Accessing a property that was not fetched raises CNContactPropertyNotFetchedException. For ordinary Contacts API access, add NSContactsUsageDescription to Info.plist; without it, using contact data APIs crashes the app. The system picker needs no authorization request and gives the app access only to the contacts the user selects.

What it helps with

  • request permission before reading or saving contacts
  • look up records by name or identifier
  • enumerate an address book away from the main thread
  • create or edit a record and commit it with CNSaveRequest
  • present the system contact picker from SwiftUI

Example prompts for the agent

  • Add contact lookup by name to my Swift app using CNContactStore.
  • Create a contact with a name and phone number, then save it using CNSaveRequest.
  • Present the system contact picker in SwiftUI and handle the selected record.

How to install contacts-framework

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill contacts-framework -a claude-code

2Manually: put the files in place

~/.claude/skills/contacts-framework/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/contacts-framework/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about contacts-framework

How do I install contacts-framework in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill contacts-framework -a claude-code. The skill file is at ~/.claude/skills/contacts-framework/SKILL.md.

What does contacts-framework do?

It guides contact queries and saves with Apple’s Contacts frameworks, including permission handling and presenting the system picker in SwiftUI.

Does CNContactPickerViewController require contact authorization?

No. The system picker can be used without a separate authorization request; the app can access only the records the user selects.

Similar skills

Everything for Mobile →

From the same set86

app-clips Guides the setup and architecture of iOS App Clips in Xcode. Helps configure invocation URLs, Safari banners, and data migration into the full app. CX Codex +1 3,600installs tipkit This skill helps implement and review Apple TipKit prompts, from inline help to tips attached to controls. Use it when adding contextual guidance or feature discovery to an iOS app. CX Codex +1 3,600installs alarmkit A skill that steers the agent through AlarmKit alarm and countdown timer code, from the Info.plist key to the schedule call and Live Activity states. CX Codex +1 3,600installs core-nfc Configures Apple CoreNFC in iOS projects for scanning, writing NDEF payloads, and managing native ISO or MIFARE tag sessions. CX Codex +1 3,600installs speech-recognition A skill that walks your agent through speech-to-text on Apple's Speech framework, from live microphone capture to recognizing recorded files. CX Codex +1 3,700installs device-integrity Helps integrate Apple DeviceCheck and App Attest into iOS apps, verifying device authenticity and protecting server APIs from fraud. CX Codex +1 3,700installs weatherkit Teaches coding agents how to query Apple WeatherKit in Swift apps. Helps retrieve forecasts, parse alerts, and handle measurement formatting. CX Codex +1 3,500installs shareplay-activities Get guidance for building GroupActivities sessions, from shared media playback to syncing app state. Useful when adding collaborative features to Apple-platform apps. CX Codex +1 3,500installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor