ibz-04/gloamy/automating-contacts
Claude Code and agent skill by ibz-04/gloamy
- community
Checking that the SKILL.md file is still in the repository.
Automates macOS Contacts via JXA with AppleScript dictionary discovery. Use when asked to "automate contacts", "JXA contacts automation", "macOS address book scripting", "AppleScript contacts", or "Contacts app automation". Covers querying, CRUD, multi-value fields, groups, images, and ObjC bridge fallbacks.
Install
npx vskill@latest install ibz-04/gloamy/automating-contactsSKILL.md
Automating Contacts (JXA-first, AppleScript discovery)
Relationship to Other Skills
- Standalone for Contacts: Use this skill for Contacts-specific operations (querying, CRUD, groups).
- Reuse `automating-mac-apps` for: TCC permissions setup, shell command helpers, UI scripting fallbacks, and ObjC bridge patterns.
- Integration: Load both skills when combining Contacts automation with broader macOS scripting.
- PyXA Installation: To use PyXA examples in this skill, see the installation instructions in
automating-mac-appsskill (PyXA Installation section).
Core Framing
- Contacts dictionary is AppleScript-first; discover there, implement in JXA
- Object specifiers: read with methods (
name(),emails()), write with assignments - Multi-value fields (emails, phones, addresses) are elements; use constructor +
.push() - Group membership:
add ... tocommand or.people.push; handle duplicates defensively - TCC permissions required: running host must have Contacts access
Workflow (default)
1) Inspect the Contacts dictionary in Script Editor (JavaScript view). 2) Prototype minimal AppleScript to validate verbs; port to JXA with specifier reads/writes. 3) Use .whose for coarse filtering; fall back to hybrid (coarse filter + JS refine) when needed. 4) Create records with proxy + make, then assign primitives and push multi-values; Contacts.save() to persist. 5) Verify persistence: check person.id() exists after save; handle TCC permission errors. 6) Manage groups after person creation; guard against duplicate membership with existence checks. 7) For photos or broken bridges, use ObjC/clipboard fallback; for heavy queries, batch read or pre-filter. 8) Test operations: run→check results→fix errors in iterative loop.
Validation Checklist
- [ ] Contacts permissions granted (System Settings > Privacy & Security > Contacts)
- [ ] Dictionary inspected and verbs validated in Script Editor
- [ ] AppleScript prototype runs without errors
- [ ] JXA port handles specifiers correctly
- [ ] Multi-value fields pushed to arrays properly
- [ ] Groups existence checked before creation
- [ ] Operations saved and verified with
.id()checks - [ ] Error handling wraps all operations
Quickstart (upsert + group)
Pitfalls
- TCC Permissions: Photos/attachments require TCC + Accessibility; use clipboard fallback if blocked
- Yearless birthdays: Not cleanly scriptable; use full dates
- Advanced triggers: Delegate geofencing to Shortcuts app
- Heavy queries: Batch read or pre-filter to avoid timeouts
When Not to Use
- Non-macOS platforms (use platform-specific APIs)
- Simple AppleScript-only solutions (skip JXA complexity)
- iCloud sync operations (use native Contacts framework)
- User-facing apps (use native Contacts framework)
- Cross-platform contact management (use CardDAV or vCard APIs)
What to load
- JXA basics & specifiers:
automating-contacts/references/contacts-basics.md - Recipes (query, create, multi-values, groups):
automating-contacts/references/contacts-recipes.md - Advanced (hybrid filters, clipboard image, TCC, date pitfalls):
automating-contacts/references/contacts-advanced.md - Dictionary & type map:
automating-contacts/references/contacts-dictionary.md - PyXA API Reference (complete class/method docs):
automating-contacts/references/contacts-pyxa-api-reference.md
Security
- Security scanPassed, 95 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 repositoryCheckingskills/automating-contacts/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 12
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Jul 2026, 3 months ago.
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/ibz-04/gloamy/automating-contacts)