imsg
Qué hace
Guía a un agente de IA para usar el comando imsg y trabajar con Mensajes en un Mac, tanto en chats directos como de grupo. Es para personas que quieren que un agente les ayude con sus conversaciones de iMessage.
Cuándo usarla
- ✓Cuando quieres que tu agente encuentre una conversación de iMessage en tu Mac.
- ✓Cuando necesitas enviar una respuesta o una reacción a un chat concreto de iMessage o SMS.
- ✓Cuando quieres vigilar una conversación por si llegan mensajes nuevos a través de la app Mensajes.
Link de la skill
https://github.com/openclaw/openclaw/blob/main/extensions/imessage/skills/imsg/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Busca mi último hilo de iMessage con Alex y envíale una respuesta diciendo que llego diez minutos tarde.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill identifica primero el chat exacto y te muestra la coincidencia y el mensaje. Envía o actúa solo después de que confirmes, usando el comando más limitado que encaja.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Funciona en Windows?
No. Necesita macOS 14 o posterior con Mensajes iniciado para enviar y reaccionar.
¿Por qué recomienda el modo Private API?
Ese modo desbloquea más funciones, como respuestas, tapbacks, efectos y gestión de grupos.
¿Puede enviar un mensaje a la persona equivocada?
Está diseñada para evitarlo. No adivina un destinatario a partir de un nombre informal cuando varios chats podrían coincidir.
Detalles
Descripción original del autor
Use the imsg CLI from OpenClaw agents for iMessage/SMS DMs, groups, replies, reactions, polls, watching, and private-API actions.
repo: openclaw/openclaw
Popularidad
- Estrellas en GitHub
- 394 mil
- Posición en el ranking
- #24
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
discord-user-post
394 milPermite que tu agente publique en Discord, como tú y desde la app de escritorio, un mensaje que hayas aprobado, después de confirmar el canal exacto.
discrawl
394 milPermite que tu agente busque y resuma un archivo local guardado de mensajes de Discord, revise qué tan actual es y lea mensajes directos.
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
graincrawl
394 milPermite que tu agente busque tus notas y transcripciones guardadas de reuniones de Granola, revise qué tan recientes son y las cuente en un periodo.
Skills parecidas
to-questionnaire
310 milConvierte una pregunta que no puedes responder por ti mismo en un cuestionario escrito para que otra persona lo rellene, por correo o en una reunión.
email-ops
280 milPermite que tu agente gestione correos, organizando la bandeja de entrada y verificando los envíos. Ayuda a asegurar que los mensajes importantes se envían y se registran.
messages-ops
280 milAyuda a tu agente a leer mensajes y códigos de verificación. Es útil para revisar conversaciones antes de responder o demostrar qué mensaje se vio.