Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计异常

imessageimessage 效率

Agent Skill

imessage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

544

周安装

22

GitHub Stars

公开资料未说明

下载量

171
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:imessage(imessage 效率)
来源仓库:https://github.com/moldable-ai/skills
仓库路径:skills/imessage
安装命令:
npx skills add https://github.com/moldable-ai/skills --skill imessage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/moldable-ai/skills --skill imessage

简介

用于查找、检索和筛选相关信息。imessage 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和是否会触发联网或文件操作。
  • 注意维护状态,避免使用已废弃或不受支持的技能。

SKILL.md

iMessage Skill

Full-featured iMessage API for macOS. All scripts are TypeScript and run via npx tsx.

Requirements

  • macOS with Messages app
  • Full Disk Access granted to the terminal/application
  • Node.js with tsx available (npx tsx)

Scripts Directory

cd ~/.moldable/shared/skills/local/imessage/scripts

Contacts & Messages

listContacts

List all contacts ordered by most recent message.

npx tsx listContacts.ts [--limit N]

Output: [{id, messageCount, lastMessageDate}]


listMessages

List recent messages with optional filters.

npx tsx listMessages.ts [--contact "id"] [--limit N] [--search "text"]

Output: [{date, sender, isFromMe, text}]


searchMessages

Advanced search with date range support.

npx tsx searchMessages.ts --query "term" [--contact "id"] [--limit N] [--from "YYYY-MM-DD"] [--to "YYYY-MM-DD"]

Output: [{date, contact, sender, isFromMe, text}]


getConversation

Get full threaded conversation in chronological order.

npx tsx getConversation.ts --contact "id" [--limit N] [--before "YYYY-MM-DD"] [--after "YYYY-MM-DD"]

Output: {contact, messageCount, firstMessageDate, lastMessageDate, messages: [...]}


getMessage

Get a single message by ID with full metadata.

npx tsx getMessage.ts --id <messageId>

Output: {id, date, sender, isFromMe, text, contact, service, hasAttachment, attachmentCount, isRead, dateSent, dateDelivered, dateRead}


getContact

Get detailed stats about a specific contact.

npx tsx getContact.ts --contact "id"

Output: {id, service, totalMessages, messagesSent, messagesReceived, firstMessageDate, lastMessageDate, attachmentCount, avgMessagesPerDay}


Sending Messages

sendMessage

Send an iMessage to a contact.

npx tsx sendMessage.ts --to "id" --message "text"

Output: {success, to, message, error?}

⚠️ Always confirm with the user before sending.


sendAttachment

Send an image or file via iMessage.

npx tsx sendAttachment.ts --to "id" --file "/path/to/file.jpg" [--message "caption"]

Output: {success, to, file, message?, error?}

⚠️ Always confirm with the user before sending.


Attachments

listAttachments

List attachments with optional filters.

npx tsx listAttachments.ts [--contact "id"] [--type "image|video|audio|document"] [--limit N]

Output: [{id, messageId, date, contact, isFromMe, filename, mimeType, filePath, fileSize, type}]


getAttachment

Get attachment details and resolved file path.

npx tsx getAttachment.ts --id <attachmentId>

Output: {id, messageId, date, contact, filename, mimeType, filePath, resolvedPath, fileSize, fileExists, messageText}


Group Chats

listGroupChats

List all group chat conversations.

npx tsx listGroupChats.ts [--limit N]

Output: [{id, chatIdentifier, displayName, participantCount, participants, messageCount, lastMessageDate}]


getGroupChat

Get messages from a specific group chat.

npx tsx getGroupChat.ts --id <chatId> [--limit N]

Output: {id, chatIdentifier, displayName, participants, messageCount, messages: [...]}


sendGroupMessage

Send a message to an existing group chat.

npx tsx sendGroupMessage.ts --id <chatId> --message "text"

Output: {success, chatId, chatName, message, error?}

⚠️ Always confirm with the user before sending.


createGroupChat

Create a new group chat and send an initial message.

npx tsx createGroupChat.ts --participants "id1,id2,id3" --message "Hello everyone!"

Options:

  • --participants - Comma-separated emails or phone numbers (required, min 2)
  • --message - Initial message to send (required)

Output: {success, participants, message, method?, error?}

⚠️ Note: Due to macOS AppleScript limitations, this may open Messages with a pre-filled compose window requiring manual Enter to send.

⚠️ Always confirm with the user before sending.


Analytics & Export

getStats

Get message statistics and insights.

npx tsx getStats.ts [--contact "id"] [--year YYYY]

Output:

{
  "totalMessages": 12345,
  "messagesSent": 5678,
  "messagesReceived": 6667,
  "totalContacts": 89,
  "totalAttachments": 456,
  "firstMessageDate": "2020-01-01 12:00:00",
  "lastMessageDate": "2026-01-22 12:00:00",
  "topContacts": [{ "contact": "...", "count": 1234 }],
  "messagesByMonth": [{ "month": "2026-01", "count": 500 }],
  "messagesByDayOfWeek": [{ "day": "Monday", "count": 1500 }],
  "averageMessagesPerDay": 5.67,
  "longestStreak": 45
}

exportConversation

Export a conversation to JSON, Markdown, or plain text.

npx tsx exportConversation.ts --contact "id" [--format json|markdown|text] [--output "/path/to/file"] [--limit N]

Formats:

  • json - Structured JSON with metadata
  • markdown - Formatted Markdown with headers by date
  • text - Plain text, easy to read

Output: Content to stdout, or writes to file if --output specified.


Database Reference

The iMessage database is at ~/Library/Messages/chat.db.

Key tables:

  • message - All messages (ROWID, text, date, is_from_me, handle_id)
  • handle - Contacts (ROWID, id [email/phone], service)
  • chat - Conversations (group chats)
  • chat_message_join - Links chats to messages
  • attachment - File attachments
  • message_attachment_join - Links messages to attachments

Date conversion: datetime(date/1000000000 + 978307200, 'unixepoch', 'localtime')

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

29.89%
按下载量换算51

OpenCode

20.53%
按下载量换算35

Codex

14.98%
按下载量换算26

Claude Code

12.87%
按下载量换算22

Antigravity

8.09%
按下载量换算14

Gemini CLI

2.9%
按下载量换算5

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/moldable-ai/skills --skill imessage;npx skills add moldable-ai/skills --skill "imessage" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills