Skip to content
Back to skills

C Contacts

ASecurity

macOS Contacts — search, list, and look up contact details via AppleScript.

  • 166 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentsbash

Works with

  • cli

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add daxaur/openpaw --skill c-contacts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of C Contacts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for C Contacts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/daxaur-c-contacts/badge)](https://www.skillsdirectory.com/skills/daxaur-c-contacts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: c-contacts
description: macOS Contacts — search, list, and look up contact details via AppleScript.
tags: [contacts, address-book, people, phone]
---

# Contacts — Address Book

Access macOS Contacts app via AppleScript. No CLI tool needed.

## Commands

```bash
# Search for a contact by name
osascript -e 'tell application "Contacts"
  set results to (every person whose name contains "John")
  set output to ""
  repeat with p in results
    set output to output & name of p & linefeed
    repeat with e in emails of p
      set output to output & "  Email: " & value of e & linefeed
    end repeat
    repeat with ph in phones of p
      set output to output & "  Phone: " & value of ph & linefeed
    end repeat
    set output to output & linefeed
  end repeat
  return output
end tell'

# Get all contact names
osascript -e 'tell application "Contacts" to get name of every person'

# Get a specific contact's email
osascript -e 'tell application "Contacts"
  set p to first person whose name is "John Smith"
  get value of every email of p
end tell'

# Get a specific contact's phone
osascript -e 'tell application "Contacts"
  set p to first person whose name is "John Smith"
  get value of every phone of p
end tell'

# Count contacts
osascript -e 'tell application "Contacts" to count every person'

# Search by email
osascript -e 'tell application "Contacts"
  set results to (every person whose value of emails contains "john@")
  get name of results
end tell'
```

## Guidelines

- Always search by partial name (uses `contains`) to be flexible
- Return name, email, and phone by default
- If multiple matches, list all and let the user pick
- Contacts app does not need to be running — AppleScript handles it
- Never store contact details in memory files for privacy
- If asked "what's [name]'s number?", search contacts first, then memory

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.