contacts

contacts is a command for Claude Code from omarshahine/apple-pim. It costs 17 tokens per session (1,156 once invoked), scanned A, original, MIT.

A command for managing contacts stored through macOS, including contacts from accounts such as iCloud, Exchange, or Google.

In plain words
What is it for?
Use it to list accounts, groups, and contacts; search by name, email, or phone; view details; and create, update, or delete contacts.
Why use it?
It avoids switching between contact applications or manually searching records when you need to find or change contact information.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-pim plugin — 16 skills, 7 commands, 1 agent 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 commands/omarshahine/apple-pim/contacts
Clone the repo
git clone --depth 1 https://github.com/omarshahine/apple-pim

Made for: Claude Code.

Or install apple-pim, the plugin that ships this one along with the rest of its 16 skills, 7 commands, 1 agent.

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 contacts

README.md
[![agentmods](https://agentmods.dev/badge/commands/omarshahine/apple-pim/contacts.svg)](https://agentmods.dev/commands/omarshahine/apple-pim/contacts)
Your own site
<a href="https://agentmods.dev/commands/omarshahine/apple-pim/contacts"><img src="https://agentmods.dev/badge/commands/omarshahine/apple-pim/contacts.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,156 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.00017 $0.01156
Opus 5 $0.00009 $0.00578
Sonnet 5 $0.00003 $0.00231
Haiku 4.5 $0.00002 $0.00116

Measured 5d ago against content hash 05d07c7f65db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

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 5d ago.

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.

commands/contacts.md · 129 lines

How it starts

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

Contact Management

Manage contacts using the Apple Contacts framework.

Available Operations

When the user runs this command, determine which operation they need and use the contact tool with the appropriate action:

List Containers

Use contact with action containers to show all contact accounts (iCloud, Exchange, Google, etc.).

List Groups

Use contact with action groups to show all contact groups.

List Contacts

Use contact with action list to list contacts:

  • Optional: group (filter by group), limit
  • Returns brief contact info (name, primary email, phone)

Search Contacts

Use contact with action search to find contacts by name, email, or phone:

  • Required: query (search term)
  • Optional: limit
  • Searches across name, email addresses, and phone numbers

Get Contact Details

Use contact with action get to get full details for a contact:

  • Required: id (contact ID from list/search)
  • Returns all fields: emails, phones, addresses, birthday, notes, job title, organization, photo

Create Contact

Use contact with action create to create a new contact:

  • Optional: name (full name) OR firstName/lastName
  • Optional: container (target account name — use containers to see available accounts)
  • Optional: email, phone, organization, jobTitle, notes, birthday

Update Contact

Use contact with action update to modify an existing contact:

  • Required: id (contact ID)
  • Optional: firstName, lastName, email, phone, organization, jobTitle, notes, birthday
  • Only specified fields are changed; unspecified fields are preserved

Delete Contact

Use contact with action delete to remove a contact:

  • Required: id (contact ID)

Birthday Format

  • With year: YYYY-MM-DD (e.g., 1990-03-15)
  • Without year: MM-DD (e.g., 03-15)

Examples

List contact accounts:

/apple-pim:contacts containers

List contact groups:

/apple-pim:contacts groups

Read the full file on GitHub · 129 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. 5d ago First seen · 129 lines · 17 tokens per session scan A 05d07c7f65db

Subscribe to this mod's changes

contacts is a command published in the GitHub repository omarshahine/apple-pim (51 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 1,156 once invoked, about $0.0001 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-31.