Agent skill
unified-messages
Cross-platform messaging aggregator. Use as DEFAULT when user does NOT specify a platform (telegram/imessage). Provides unified inbox, search, and triage across both platforms. Triggers: "check messages" (no platform), "inbox", "who messaged me", "all my messages", "triage". NOT for platform- specific requests - use tg-ingest for "telegram X" or imsg-ingest for "imessage X".
Install this agent skill to your Project
npx add-skill https://github.com/rohunvora/cool-claude-skills/tree/main/skills/unified-messages
SKILL.md
Unified Messages
Cross-platform aggregator for Telegram + iMessage. Use when no platform specified.
If user says "telegram" → use tg-ingest skill If user says "imessage" → use imsg-ingest skill If user says "messages" (no platform) → use this skill
Quick Start
# Sync both platforms
python -m unified.cli sync
# List pending threads
python -m unified.cli list
# Check status
python -m unified.cli status --detailed
Thread ID Format
All threads use canonical IDs:
- Telegram DM:
tg:dm:username(e.g.,tg:dm:vibhu) - Telegram Group:
tg:group:slug(e.g.,tg:group:crypto_trenches) - iMessage DM:
imsg:dm:+14155551234orimsg:dm:email@example.com - iMessage Group:
imsg:group:chat123456
MCP Tools
| Tool | Purpose |
|---|---|
unified_search |
Search people/threads across platforms |
unified_inbox |
List threads needing attention |
unified_get_person |
Full context for a person (threads, messages, notes) |
unified_get_thread |
Messages and state for specific thread |
unified_save_draft |
Save draft reply |
unified_set_status |
Set pending/done/archived |
unified_snooze |
Snooze until datetime |
unified_add_note |
Add note to thread |
unified_sync |
Sync both platforms |
Workflows
Daily Triage
unified_sync- Pull latestunified_inbox- See what needs attention- Review each thread, then
set_status("done")orsave_draft()
Find a Person
unified_search("vibhu")- Returns person with all thread IDsunified_get_person("vibhu")- Full context with recent messages
Reply Workflow
unified_get_thread("tg:dm:username")- Read conversationunified_save_draft("tg:dm:username", "Draft...")- Save draft- Send manually in Telegram/iMessage
unified_set_status("tg:dm:username", "done")- Mark complete
Project Structure
unified-messages/
├── unified/
│ ├── cli.py # CLI (sync, status, list, generate, render)
│ ├── aggregator.py # Cross-platform search, inbox, sync
│ ├── router.py # Routes to correct platform
│ ├── contacts.py # Person-centric contact resolution
│ └── triage.py # Triage context generation
├── mcp_server.py # MCP server (9 tools)
└── data/contacts.json # Person registry
Platform Dependencies
Imports from sibling repos:
tg-ingest/- Telegram (Telethon)imsg-ingest/- iMessage (SQLite chat.db)
See references/cli-commands.md for full CLI docs. See references/data-locations.md for data paths.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
comment-mode
Granular feedback on drafts without rewriting. Generates highlighted HTML with click-to-reveal inline comments. Use when user says "comment on this", "leave comments on", "give feedback on", or asks for feedback on a draft. Supports multiple lenses—editor feedback, POV simulation ("as brian would react"), or focused angles ("word choice only", "weak arguments"). A granular alternative to rewrites that lets users review feedback incrementally without losing their voice.
ai-loading-ux
Design AI loading, thinking, and progress indicator UX. Use when explicitly asked to improve AI waiting states, add thinking indicators, or design loading UX for AI interfaces. Covers reasoning display (chain-of-thought), progress steps, streaming states, and the "elevator mirror effect" for reducing perceived wait time.
arena-cli
CLI tools for Are.na: export blocks, enrich with vision AI, generate views. Use when: (1) exporting Are.na blocks incrementally, (2) enriching images with AI-generated titles/tags/patterns, (3) generating browsable HTML views, (4) searching blocks by UI patterns or tags, (5) visual search results when terminal output is insufficient. Triggers: "export arena", "enrich arena", "sync arena", "arena view", "search arena for [pattern]", "show me [pattern]".
imsg-ingest
Primary iMessage interface. Full-featured CLI for message export, conversation management, contact resolution, and thread state. Use when user mentions "imessage", "imsg", "text message", "iphone messages", or phone numbers. Triggers: "imessage messages", "export imessage", "text from john", "imessage contacts", "sync imessage". This is STANDALONE - do not defer to unified-messages for iMessage operations.
html-style
Apply opinionated styling to barebones HTML. Use when user has plain/unstyled HTML and wants to apply consistent visual styling. Triggers: style this HTML, apply styling, make this look good, /html-style, or when user shares HTML that needs CSS. Transforms tables, lists, status indicators, buttons, and layouts into a cohesive design system.
mobbin-ux
Research-driven UI/UX improvement using Mobbin. Use when user explicitly requests design pattern research ("use Mobbin", "research design patterns", "find UX patterns for X"). Requires Mobbin account and browser automation (claude-in-chrome MCP). Searches Mobbin for relevant UI patterns, extracts design principles, generates a spec document for approval, then implements. NOT for general UI work—only when user wants research-backed design.
Didn't find tool you were looking for?