Back to list
Eddale

imessage-sender

by Eddale

0🍴 0📅 Jan 25, 2026

SKILL.md


iMessage Sender

Send iMessages via the imsg CLI. Supports text, file attachments, and URLs.

Workflow

Step 1: Parse the Request

Extract from the user's message:

  • Recipient: Name or phone number
  • Message content: Text to send
  • Attachments: Files to include (if any)
  • URLs: Links to share (included in message text)

Step 2: Resolve Recipient

  1. Read contacts config:

    cat ~/.config/imessage-contacts.yaml
    
  2. Look up the recipient name (case-insensitive match)

  3. If contact not found:

    • Ask the user for the phone number using AskUserQuestion
    • Format: "+1XXXXXXXXXX" (E.164 format, US numbers need +1 prefix)
    • Offer to add the contact to the config for future use

Step 3: Prepare Message

Text only:

imsg send --to "+1XXXXXXXXXX" --text "Message here" --service imessage

With file attachment:

imsg send --to "+1XXXXXXXXXX" --text "Here's the file" --file "/path/to/file.pdf" --service imessage

With URL (include in text body):

imsg send --to "+1XXXXXXXXXX" --text "Check this out: https://example.com" --service imessage

Multiple files: Send as separate messages (imsg handles one file per message)

Step 4: Execute and Confirm

  1. Run the imsg send command
  2. Report success or failure to the user
  3. If failed, explain the error and suggest fixes

Common Errors

ErrorFix
permissionDeniedTerminal needs Full Disk Access in System Settings
automation deniedTerminal needs Automation permission for Messages.app
Invalid phone numberMust be E.164 format: +1XXXXXXXXXX
File not foundVerify file path exists

Examples

"text myself hello" → Look up "myself" in contacts → Send "hello"

"send to taki: check this out https://example.com" → Look up "taki" → Send message with URL

"share this PDF with mom" → Look up "mom" → Send current file as attachment

"iMessage +14155551234: running late" → Use number directly → Send message

Notes

  • URLs in the message text render as rich link previews in iMessage
  • The --service imessage flag ensures iMessage; imsg falls back to SMS if needed
  • This skill is send-only; it does not read message history

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon