/carl-tools:contacts-unifyfrom carl-tools
Merges and deduplicates contacts from macOS, iCloud, Google, Zoho, and VCF files with a review UI showing provenance and edit dates. Optionally mines iMessage history to rank contacts.
Ships in carl-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn a messy, multi-source pile of contacts into one deduplicated, trustworthy address book — with a review UI simple enough for a non-technical person to drive. Optionally, mine iMessage history to find the people worth a deeper OSINT dossier.
Why this matters: duplicates and inconsistency make people stop maintaining their contacts at all. The win is a single source of truth they'll actually keep feeding.
Scope of local_only: Phase A (dedupe) is fully local — no network egress. Phase B is opt-in
and its dossier step (research-person) does reach the public web (LinkedIn, gov/org sites). Treat
Phase B network access as a deliberate, separately-approved step, never an automatic follow-on.
Before anything else: tell the user what will be read (Contacts DB, exports, optionally Messages) and what will happen (backup, then a dry-run preview), and get a go-ahead. All data stays on the machine; don't paste contact or message content into external services.
Consent & authorization (read before running): only operate on contacts/messages belonging to the user, on a machine they own or have explicit permission to access (including any SSH host). Phase B researches other people from the user's private data — only build a dossier on someone the user names explicitly. Never infer a research shortlist from message volume and run it unattended, and don't dossier minors or obviously sensitive relationships.
Full plan: references/unify-plan.md (read it before building). Summary of the workflow:
ssh <host> → sudo -u <user> -i)? Inventory which sources exist:
~/Library/Application Support/AddressBook/Sources/*/AddressBook-v22.abcddb
(read mode=ro for rich fields + ZCREATIONDATE/ZMODIFICATIONDATE); osascript for the live
list and for writes..vcf/CSV..vcf/.csv on Desktop/Downloads.~/Desktop/Contacts-backup-<ts>/; every source
→ timestamped snapshot in the working dir. This is non-negotiable.identical (auto-merge),
combine (safe union), review (disjoint → maybe different people → default keep-separate).
Name-only cards (businesses, placeholders with no phone/email) can't be matched on identifiers —
group them by normalized name only and always route them to review, never silent auto-merge.http.server, no pip).
Each duplicate group shows every competing field value with its label (home/work/cell),
source account, and age ("edited yesterday", "added 3mo ago"). The user picks the winning
value per field; losers become secondary labelled fields or are dropped if marked outdated.
Search/filter for large books. Save records decisions; Apply performs merges/deletes.
Without dates + labels, "Keep/Delete" is meaningless — dates and labels are mandatory.--live. Before any delete, export the
removed cards to deleted-contacts-<ts>.vcf (drag-to-restore undo). Auto-merge only truly
identical cards (same normalized phone/email set — no info lost).Starter code: scripts/contacts_cleanup.py (relative to this skill's directory) is a single-source (macOS)
merger with a web review UI, backup, undo, and classification. It is dry-run by default; --live (or
CC_LIVE=1) is required to merge or delete. Note that in live mode it also auto-combines exact duplicates at
startup, so run it dry first and show the user the preview. Read it, then extend it to multi-source ingest +
per-field winner selection rather than rebuilding. Run it only after the backup step has succeeded.
Full plan: references/imessage-dossier-plan.md.
scripts/imessage_signal.py — it copies chat.db
to a temp file, opens it read-only, and ranks handles by volume and recency (plus a 1:1-vs-group
signal). It reads counts and timestamps only; message content never leaves the machine.
Reciprocity is an unreliable column — chat.db nulls the sender on the user's own messages, so
rank on volume + recency, not reciprocity. Output: ranked people-signal.csv/json + gap lists
("high-frequency but not in contacts" / "in contacts but never messaged"). Full Disk Access
required for the running user.research-person skill to build
confidence-marked Obsidian People/ notes, enriched from public sources appropriate to the
person's world — LinkedIn, and (for civic figures) state legislature sites, nonprofit/arts-group sites, and lobbyist or
disclosure registries. Private message
content stays internal context, never published.--live only after the user sees what would change..vcf.chat.db (work on a copy); never write the live Messages or Contacts DB directly
except through the reviewed, --live-gated apply step.~/contacts-merge/<person>/) with source snapshots,
contacts-data.json, contacts-decisions.(csv|json), and the review HTML..command file) and a short friend-readable README.md, if the user wants to hand this off..vcf.people-signal.(csv|json) + research-person dossiers for the approved shortlist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (carlkibler/agent-skills) — no native marketplace selected
npx claudepluginhub p/carlkibler-carl-skills26 skills in this plugin
/agent-log-forensicsAnalyze Claude/Codex logs for behavior patterns, repeated friction, and Toolsmith gaps./changelog-writerDraft plain-language changelog entries from Git history, optionally updating CHANGELOG.md./chezmoi-driftCheck chezmoi dotfiles for drift, unmanaged files, and broken skill links./decision-logRecord a technical or product decision, alternatives, and rationale for future agents.