| name | himalaya |
| description | **UNIVERSAL TRIGGER**: Use when user wants to READ/SEND email.
Common patterns:
- "check my email/inbox", "show unread"
- "send email to [recipient]"
- "проверить почту", "отправить письмо"
**Reading**:
- "check inbox", "show unread emails", "what's in my mail"
- "read email from [sender]", "find emails about [topic]"
- "show email folders", "list mail folders"
- "проверить входящие", "непрочитанные", "что в почте", "покажи папки"
**Sending**:
- "send email to [address]", "compose email"
- "reply to email", "forward email"
- "отправить письмо", "ответить на письмо", "написать письмо"
**Accounts**:
- "list email accounts", "switch to work email"
- "список почтовых аккаунтов", "использовать рабочую почту"
❌ **Should NOT activate**:
- "what is SMTP protocol" (general question)
- "email regex validation" (programming)
- "install himalaya" (setup)
TRIGGERS: email, mail, inbox, send, check, read, show, list, get,
compose, reply, forward, unread, fetch, view, display, folder, folders,
отправить, проверить, прочитать, показать, получить, письмо, почта, папка, папки
|
| allowed-tools | Bash |
Email Skill
CLI-based email management using Himalaya.
Prerequisites
Himalaya must be installed and configured by the user. Check availability:
himalaya account list
If this fails, inform the user they need to install and configure himalaya first.
Reading Emails
List messages
himalaya envelope list -f INBOX -s 20
himalaya envelope list "not flag seen"
himalaya envelope list "from boss@company.com"
himalaya envelope list "subject meeting"
himalaya envelope list "after 2025-01-20"
himalaya envelope list "from support@example.com and after 2025-01-01"
himalaya envelope list -a "work@company.com" -s 10
Read a message
himalaya message read <id>
himalaya message read -p <id>
List folders
himalaya folder list
Sending Emails
IMPORTANT: Before sending, ASK the user:
- From: which account to send from (use
himalaya account list to show options)
- To: recipient email address
- Subject: email subject
- Body: where to get the text (type now / from file / describe what to write)
Send new email
himalaya template send <<'EOF'
From: sender@example.com
To: recipient@example.com
Subject: Email subject
Body text here.
Unicode supported.
EOF
With CC/BCC
himalaya template send <<'EOF'
From: me@example.com
To: main@example.com
Cc: copy@example.com
Bcc: hidden@example.com
Subject: Important message
Message body.
EOF
From specific account
himalaya template send -a "work@company.com" <<'EOF'
From: work@company.com
To: client@example.com
Subject: Project update
Status report.
EOF
Account Management
himalaya account list
himalaya envelope list -a "personal@gmail.com" -s 10
himalaya template send -a "work@company.com" <<'EOF'
...
EOF
Query Syntax Reference
Operators
not <condition> - negation
<cond> and <cond> - both conditions
<cond> or <cond> - either condition
Conditions
date <yyyy-mm-dd> - exact date
before <yyyy-mm-dd> - before date
after <yyyy-mm-dd> - after date
from <pattern> - sender contains
to <pattern> - recipient contains
subject <pattern> - subject contains
body <pattern> - body contains
flag <flag> - has flag (seen, answered, flagged, deleted, draft)
Examples
himalaya envelope list "not flag seen and after 2025-01-18"
himalaya envelope list "from boss@company.com or subject urgent"
Error Handling
If himalaya returns an error, show it to the user. Common errors:
himalaya: command not found — himalaya not installed
no account found — no configured accounts
connection refused — IMAP/SMTP server unreachable
authentication failed — wrong password/credentials