imsg
यह क्या करती है
यह AI एजेंट को imsg कमांड से Mac पर Messages के साथ काम करने के चरण बताती है, जिसमें निजी और ग्रुप चैट शामिल हैं। यह उन लोगों के लिए है जो चाहते हैं कि एजेंट उनकी iMessage बातचीत में मदद करे।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि आपका एजेंट आपके Mac पर कोई iMessage बातचीत ढूंढे।
- ✓जब आपको किसी खास iMessage या SMS चैट में जवाब या रिएक्शन भेजना हो।
- ✓जब आप Messages ऐप के ज़रिए नए संदेशों के लिए बातचीत पर नज़र रखवाना चाहते हों।
Skill का लिंक
https://github.com/openclaw/openclaw/blob/main/extensions/imessage/skills/imsg/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Alex के साथ मेरी आखिरी iMessage बातचीत ढूंढिए और जवाब भेजिए कि मैं दस मिनट देर से पहुंचूंगा।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पहले सटीक चैट पहचानती है और मिलान और संदेश आपको दिखाती है। आपकी पुष्टि के बाद ही कार्रवाई होती है, और वह सबसे सीमित कमांड इस्तेमाल करती है जो काम के लिए ठीक हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
imsg
Use the generic message tool first for actions that its current iMessage schema exposes. Use imsg when the task needs local Messages.app history, target discovery, watching, or an administrative/private-API capability that is not exposed by message.
Do not use this skill for Telegram, Signal, WhatsApp, Discord, Slack, or for replying inside the current OpenClaw conversation when the configured channel already routes the reply.
Agent Flow
- Resolve the conversation first.
- Choose DM, existing group, or new group.
- Prefer an available
messageaction; otherwise pick the lowest-capabilityimsgcommand that preserves the requested semantics. - Confirm any send or visible state change unless the user already gave exact recipient, content, and action.
- Execute with stable identifiers: prefer
--chat-idfor normal sends/watch/history and--chatchat GUID for bridge actions.
Never infer a recipient from a casual name alone when several chats or handles could match. Show the matched display name, handle(s), group participants, and message text/action before sending.
Host Requirements
- macOS 14+ with Messages.app signed in for send/react/bridge actions.
- Private API mode is strongly encouraged for OpenClaw iMessage. It unlocks replies, precise tapbacks, effects, polls, attachment replies, read/typing actions, and group management. Basic mode is a fallback for reads plus plain text/file send.
- Full Disk Access for the process context that runs
imsgor OpenClaw; reads fail without Messages DB access. - Automation permission for Messages.app when using public
send. - Accessibility permission for the process context that runs public
imsg react; it uses System Events UI automation. Bridgetapbackuses private API instead. - Optional Contacts permission for contact-name resolution.
- SMS sends require Text Message Forwarding from the user's iPhone to this Mac.
- Linux reads a copied
chat.dbonly; it cannot send, react, launch Messages.app, mark read, or type.
Resolve Targets
Use --json reads. Output is newline-delimited JSON; use jq -s when jq is available, or consume one object per line directly.
imsg chats --limit 25 --json | jq -s
imsg search --query "dinner" --match contains --json | jq -s
imsg history --chat-id 42 --limit 20 --attachments --json | jq -s
imsg group --chat-id 42 --json
Target rules:
- DM to a phone/email: use
imsg send --towhen the user gave an exact handle, or after a single unambiguous chat match. - Existing DM thread:
imsg send --chat-id <id>is safer than re-resolving a name. - Existing group: inspect with
imsg group --chat-id <id> --json; send with--chat-id, bridge with the chat GUID fromgroup. - New group: use
chat-createonly when the user explicitly asked to create a group or no existing group matches. - Ambiguous group names: confirm participants, not just display name.
- SMS: use
--service smsonly when requested or when iMessage fallback is not desired. SMS relay requires Text Message Forwarding.
Do not make jq a hard prerequisite for the skill; it is only a convenient formatter for examples.
Capability Choice
Use imsg standard commands when the current message schema does not cover the operation or when local history is needed:
- Read/list/search/watch:
chats,group,history,search,watch - Basic text/file send:
send - Standard tapback to most recent incoming message in a chat:
react
Use the private API bridge for the native iMessage actions OpenClaw users normally expect:
- Rich replies, text formatting, effects, subjects, multipart sends
- Native Apple Messages polls and poll votes
- Tapback by message GUID or tapback removal
- Edit, unsend, delete, notify anyways
- Read receipts, typing indicators, bridge event watch
- Group create/name/photo/member/leave/delete/mark actions
- Account, whois, nickname checks
For OpenClaw channel setup, check bridge availability early:
imsg status --json
If the host supports bridge actions but Messages is not injected yet, ask before running imsg launch. It kills and relaunches Messages.app to inject the bridge, so treat it as a visible state change:
imsg launch
imsg status --json
If SIP, library validation, private entitlement checks, or missing selectors still block the capability, explain that the requested private-API action is unavailable on this host and offer the closest non-bridge action, if one exists.
अक्सर पूछे जाने वाले सवाल
क्या यह Windows पर काम करता है?
नहीं। इसके लिए macOS 14 या नया वर्ज़न चाहिए, और भेजने या रिएक्शन के लिए Messages में साइन इन होना ज़रूरी है।
यह Private API मोड की सिफ़ारिश क्यों करती है?
इस मोड से जवाब, tapback, effects और ग्रुप प्रबंधन जैसी ज़्यादा सुविधाएं खुलती हैं।
क्या गलत व्यक्ति को संदेश जा सकता है?
इसे इसी से बचाने के लिए बनाया गया है। जब कई चैट मेल खा सकती हों, तो यह आम नाम से प्राप्तकर्ता का अंदाज़ा नहीं लगाती।
जानकारी
लेखक का मूल विवरण
Use the imsg CLI from OpenClaw agents for iMessage/SMS DMs, groups, replies, reactions, polls, watching, and private-API actions.
repo: openclaw/openclaw
लोकप्रियता
- GitHub स्टार
- 394k
- रैंकिंग में स्थान
- #24
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
मिलती-जुलती skills
to-questionnaire
310kवह सवाल जिसका जवाब आप अकेले नहीं दे सकते, उसे ईमेल या मीटिंग में किसी और व्यक्ति के भरने के लिए लिखित प्रश्नावली में बदलती है।
email-ops
280kएजेंट को emails मैनेज करने देता है, inbox व्यवस्थित करता है और भेजे गए emails की पुष्टि करता है। ज़रूरी संदेश सही तरीके से भेजे और ट्रैक किए जाएँ, यह सुनिश्चित करने में मदद करता है।
messages-ops
280kआपके एजेंट को messages और verification codes पढ़ने में मदद करता है। जवाब देने से पहले बातचीत जाँचने या यह साबित करने के लिए उपयोगी है कि कौन सा मैसेज देखा गया था।