什麼是 imessage-query?
透過 SQLite 查詢 macOS iMessage 資料庫 (chat.db)。解碼 NSAttributedString 訊息、處理回擊、搜尋對話。 TRIGGERS - imessage、chat.db、訊息資料庫、簡訊、iMessage 歷史記錄、NSAttributedString、attributedBody 來源:terrylica/cc-skills。
透過 SQLite 查詢 macOS iMessage 資料庫 (chat.db)。解碼 NSAttributedString 訊息、處理回擊、搜尋對話。 TRIGGERS - imessage、chat.db、訊息資料庫、簡訊、iMessage 歷史記錄、NSAttributedString、attributedBody
透過命令列快速安裝 imessage-query AI 技能到你的開發環境
來源:terrylica/cc-skills。
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 |
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/terrylica/cc-skills --skill imessage-query透過 SQLite 查詢 macOS iMessage 資料庫 (chat.db)。解碼 NSAttributedString 訊息、處理回擊、搜尋對話。 TRIGGERS - imessage、chat.db、訊息資料庫、簡訊、iMessage 歷史記錄、NSAttributedString、attributedBody 來源:terrylica/cc-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/terrylica/cc-skills --skill imessage-query 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/terrylica/cc-skills