/synthesis-skills:synthesis-local-messagingfrom synthesis-skills
Reads local iMessage and WhatsApp databases into triage notes and sends approved replies. Useful for text message triage workflows.
Ships in synthesis-skills. 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.
Read an authorized database window into notes and stable pointers, and send approved messages to existing chats. Database access, interpretation, drafting, sending, and recipient acknowledgement are separate decisions.
messages_send.py. The v5 send guard asks them for "approve ", and one approval sends once. One existing chat: one-to-one iMessage by handle, or iMessage or SMS by exactly its members; a photo is approved by its hash. No WhatsApp sending (whatsapp_prefill.py opens the chat for the principal to send), service fallback, RCS or chat creation.
- Never resend after an uncertain outcome.
dispatched means the send call returned, not that the message arrived or was read. A matching outbound row in the database may be the principal's own send, so it proves neither.
- For daily rituals, the reader is one declared surface of the sweep. Report its coverage, gaps and note pointers in the sync report, and move its watermark no further than
coverage.through; add no scheduler and activate no ritual.
Contents
- references/adapter-contract.md: the request, supported schema shapes, chat attribution, decoding limits and markers, closing a gap by hand, what the reader skips, stale stores, the sandbox and SQLite behavior, state and output. Read it before invoking the reader, and before closing any gap.
- references/sending.md: the send command, the approval, each outcome and what it permits, what the send never does. Read it before any send, and after any outcome other than
dispatched.
- references/coverage-map.md: where each part of the 0.1.0 and 1.0.0 text lives, and each script change since.
- references/preserved.md: the retired send boundary, launcher route and reader custody text, verbatim. Read it only to review what was cut.
Read and interpret
Read the adapter contract before invoking the
reader. It describes the supported schema shapes and decoding limits. An app
name or a successful fixture does not establish that a particular native
installation uses that schema.
- Establish the authorized app, physical database path, window, excluded chats,
self names, and private output owner. Obtain access through ordinary platform
permissions. Do not search personal directories for databases or change file
permissions to make a read work.
- Prepare the exact request described in the contract. A daily review uses an
explicit one-day window; a trailing review uses an explicit 30-day window.
Give each window its own state directory, outside any repository.
- Run
python3 -s "$HOME/.synthesis/v5/current/skills/synthesis-local-messaging/scripts/local_messaging.py" --request REQUEST.json --state STATE_DIR.
It reads one page inside the OS sandbox and prints it as JSON: candidate
notes with pointers, and coverage (rows examined, skips by reason, gaps,
complete, through). Exit 2 prints
{"status": "REFUSED", "reason": ...}: no sandbox, an unknown schema,
malformed data or a replaced database is a refusal, never an empty result.
- Run the same command again until
coverage.complete is true. A completed
page is not complete history. The reader saves each page in the state
directory before advancing its cursor. Do not delete saved pages or reset a
cursor to hide a gap: a page with a gap does not advance, and the gap stays
reported until resolved (for example by excluding that chat).
After reading its rows in the app, add --review REVIEW.json naming exactly
those rows and reasons; once the principal types the approve <code> it asks
for, the identical command closes them. An agent never closes a gap on its
own. A stale store (silent past --stale-after-hours, 12 for WhatsApp and
24 for iMessage, as the window runs on) reports coverage.stale, stays open
and stops coverage.through at its newest message: have the principal open
the app, then rerun.
- Review each candidate in context before recording a useful note. The
deterministic categories do not establish urgency, an unanswered request,
a broken promise, a missing calendar event, or a completed task. Notes should
explain why the item matters and cite its pointer without copying the thread.
What the reader skips and marks, and why, is in the adapter contract.
Pasted credentials are untrusted data too (rule 5), and work-related notes
belong in their own private workspace (rule 6).
Sending one approved message
Read sending first. Write the exact approved text to
a file, then run
python3 -s "$HOME/.synthesis/v5/current/skills/synthesis-local-messaging/scripts/messages_send.py" --to +15551234567 --text-file reply.txt, or
--members +15551234567,+15557654321 for an existing group or SMS chat;
--photo PATH sends a photo first, with the text as its caption.
The first run prints needs-approval with a code; show the principal the exact
recipient and text, and after they type approve <code>, run the identical
command again. After uncertain, tell the principal and let them check
Messages; the tool refuses a second try.
Daily rituals
In a day-start or day-end sweep, run the reader for the day's explicit window as
one declared surface, and carry its coverage, gaps and note pointers into the
sync report. Move its watermark only to coverage.through, and defer a stale
target with its coverage.stale reason. Do not add a scheduler or activate a
ritual from this skill.
agents/openai.yaml (opens in a new tab)references/adapter-contract.md (opens in a new tab)references/coverage-map.md (opens in a new tab)references/preserved.md (opens in a new tab)references/sending.md (opens in a new tab)scripts/local_messaging.py (opens in a new tab)scripts/messages_route.js (opens in a new tab)scripts/messages_send.py (opens in a new tab)scripts/messages_transport.js (opens in a new tab)scripts/os_sandbox.py (opens in a new tab)scripts/whatsapp_prefill.py (opens in a new tab)tests/conftest.py (opens in a new tab)tests/local_messaging_fixtures.py (opens in a new tab)tests/test_imessage_send.py (opens in a new tab)tests/test_local_messages_reader.py (opens in a new tab)tests/test_local_messages_sandbox.py (opens in a new tab)tests/test_whatsapp_prefill.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub synthesisengineering/synthesis-skills --plugin synthesis-skills73 skills in this plugin
/synthesis-absence-coordinationPlan an absence end to end: who to tell, coverage, meetings released, out-of-office on and off, the return sweep. Use for time off or leave./synthesis-action-sheetOne page of what the principal must still do after agents act: approvals, sends, tasks. Use after a decision packet or daily plan./synthesis-adversarial-reviewBounded adversarial review by differently shaped agents, with a findings table and rulings. Use for red-team or cross-agent review.Other plugins' skills for the same job