automating-contacts

automating-contacts is a skill for Claude Code from SpillwaveSolutions/automating-mac-apps-plugin. It costs 72 tokens per session (1,069 once invoked), scanned A, original, MIT.

Instructions for automating the macOS Contacts app with JavaScript for Automation, Apple's scripting system for Mac applications. It covers reading and changing contacts, groups, contact details, and images.

In plain words
What is it for?
Use it to query or edit contacts, manage groups, update emails, phones, addresses, and images, or handle Contacts permissions.
Why use it?
It provides patterns for handling Contacts data and its multi-value fields without guessing how the app's scripting interface works.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the automating-mac-apps plugin — 16 skills, 10 commands, 9 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/spillwavesolutions/automating-mac-apps-plugin/automating-contacts
Any agent
npx skills add SpillwaveSolutions/automating-mac-apps-plugin --skill automating-contacts
Clone the repo
git clone --depth 1 https://github.com/SpillwaveSolutions/automating-mac-apps-plugin

Made for: Claude Code.

Or install automating-mac-apps, the plugin that ships this one along with the rest of its 16 skills, 10 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for automating-contacts

README.md
[![agentmods](https://agentmods.dev/badge/skills/spillwavesolutions/automating-mac-apps-plugin/automating-contacts.svg)](https://agentmods.dev/skills/spillwavesolutions/automating-mac-apps-plugin/automating-contacts)
Your own site
<a href="https://agentmods.dev/skills/spillwavesolutions/automating-mac-apps-plugin/automating-contacts"><img src="https://agentmods.dev/badge/skills/spillwavesolutions/automating-mac-apps-plugin/automating-contacts.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01069
Opus 5 $0.00036 $0.00535
Sonnet 5 $0.00014 $0.00214
Haiku 4.5 $0.00007 $0.00107

Measured 6d ago against content hash 1c304d9a7aa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

automating-contacts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/export_contacts_to_csv.py, scripts/import_contacts_from_csv.py, scripts/search_contacts.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/automating-mac-apps-plugin/skills/automating-contacts/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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-apps skill (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 ... to command 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

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 95 lines · 72 tokens per session scan A 1c304d9a7aa2

Subscribe to this mod's changes

automating-contacts is a skill published in the GitHub repository SpillwaveSolutions/automating-mac-apps-plugin (40 stars, last pushed 15d ago), licensed MIT. It adds 72 tokens to every session and 1,069 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

import-audio

Moves audio files to the correct album location with proper path structure. Use when the user has downloaded WAV files from Suno or other sources that need to be organized.

bitwize-music-studio/claude-ai-music-skills · 37 tokens

catch

Shape output for a human working through agents. Use on every response, out to and including casual conversation, even when the user did not ask for brevity.

saadshahd/moo.md · 34 tokens

lark-workflow-standup-report

日程待办摘要:编排 calendar +agenda 和 task +get-my-tasks,生成指定日期的日程与未完成任务摘要。适用于了解今天/明天/本周的安排。.

DropFan/claude-code-plugins · 53 tokens

lark-attendance

飞书考勤打卡:查询自己的考勤打卡记录.

DropFan/claude-code-plugins · 19 tokens

lark-im

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件(支持大文件分片下载)、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。.

DropFan/claude-code-plugins · 147 tokens

lark-workflow-meeting-summary

会议纪要整理工作流:汇总指定时间范围内的会议纪要并生成结构化报告。当用户需要整理会议纪要、生成会议周报、回顾一段时间内的会议内容时使用。.

DropFan/claude-code-plugins · 55 tokens