·imessage-query
</>

imessage-query

Query macOS iMessage database (chat.db) via SQLite. Decode NSAttributedString messages, handle tapbacks, search conversations. TRIGGERS - imessage, chat.db, messages database, text messages, iMessage history, NSAttributedString, attributedBody

42Installs·1Trend·@terrylica

Installation

$npx skills add https://github.com/terrylica/cc-skills --skill imessage-query

How to Install imessage-query

Quickly install imessage-query AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/terrylica/cc-skills --skill imessage-query
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: terrylica/cc-skills.

SKILL.md

View raw

Query the macOS iMessage SQLite database (/Library/Messages/chat.db) to retrieve conversation history, decode messages stored in binary format, and build sourced timelines with precise timestamps.

IMPORTANT: Many iMessage messages have a NULL or empty text column but contain valid, recoverable text in the attributedBody column. This is NOT because they are voice messages — iOS stores dictated messages, messages with rich formatting, and some regular messages in attributedBody as an NSAttributedString binary blob.

| 0 | > 100 bytes | Dictated/rich text — recoverable via decode script | | 1 | any | Attachment (image, file, voice memo) — text may be in attributedBody too | | 0 | < 50 bytes | Tapback reaction or system message — usually noise |

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/terrylica/cc-skills --skill imessage-query
Category
</>Dev Tools
Verified
First Seen
2026-03-07
Updated
2026-03-11

Browse more skills from terrylica/cc-skills

Quick answers

What is imessage-query?

Query macOS iMessage database (chat.db) via SQLite. Decode NSAttributedString messages, handle tapbacks, search conversations. TRIGGERS - imessage, chat.db, messages database, text messages, iMessage history, NSAttributedString, attributedBody Source: terrylica/cc-skills.

How do I install imessage-query?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/terrylica/cc-skills --skill imessage-query Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/terrylica/cc-skills