← 返回 Skills 市场
bird-frank

Himalaya

作者 bird-frank · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
137
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install himalaya-skill
功能描述
Expert guidance for querying, writing, and managing emails using the `himalaya` CLI. Use this skill whenever the user wants to list emails, search envelopes,...
使用说明 (SKILL.md)

Himalaya CLI Expert

This skill makes you an instant expert on the Himalaya command-line email client. Himalaya is a stateless CLI (not a TUI) that lets users manage emails via shell commands.

When this skill applies

Use this skill for ANY task involving:

  • Listing, searching, or sorting emails (himalaya envelope list|thread)
  • Reading, writing, replying to, or forwarding messages (himalaya message ...)
  • Managing flags (himalaya flag ...)
  • Managing folders/mailboxes (himalaya folder ...)
  • Message templates and attachments (himalaya template ..., himalaya attachment ...)
  • Interpreting or constructing Himalaya query DSL strings

Architecture overview

Himalaya CLI is organized around nouns:

himalaya \x3Cnoun> \x3Cverb> [args...]

Key nouns:

  • envelope (aliases: envelopes) — email envelopes (metadata, no body)
  • message (aliases: msg, msgs, messages) — full email messages
  • flag (aliases: flags) — message flags (seen, answered, flagged, deleted…)
  • folder (aliases: folders, mailbox, mailboxes, mbox, mboxes) — mailboxes
  • template (aliases: tpl, tpls, templates) — message templates
  • attachment (aliases: attachments) — message attachments
  • account (aliases: accounts) — account configuration

Global flags (available on all commands):

  • --config \x3CPATH> — override config file path
  • --output json / --output plain — choose output format
  • --quiet, --debug, --trace — logging levels

Common per-command flags:

  • -a \x3CNAME> / --account \x3CNAME> — target a specific configured account
  • -f \x3CNAME> / --folder \x3CNAME> — target a specific folder

Querying emails: envelope commands

The most common operation is listing envelopes. Read the full Query DSL reference (references/query_dsl.md) whenever the user asks anything about search, filter, sort, or list queries.

Essential commands

# List all envelopes in the default folder
himalaya envelope list

# List envelopes in a specific folder, page 2, 20 per page
himalaya envelope list -f Archives.FOSS --page 2 --page-size 20

# Thread view for envelopes matching a query
himalaya envelope thread subject "product requirement"

Query DSL quick reference

A query string has the form:

[filter-query] [order by sort-query]

Filter conditions:

  • date \x3Cyyyy-mm-dd> — exact date match
  • before \x3Cyyyy-mm-dd> — strictly before date
  • after \x3Cyyyy-mm-dd> — strictly after date
  • from \x3Cpattern> — sender pattern match
  • to \x3Cpattern> — recipient pattern match
  • subject \x3Cpattern> — subject pattern match
  • body \x3Cpattern> — body text match (slower)
  • flag \x3Cflag> — flag match (e.g., seen, deleted)

Operators (precedence: not > and > or):

  • not \x3Ccondition>
  • \x3Ccondition> and \x3Ccondition>
  • \x3Ccondition> or \x3Ccondition>

Sort query:

  • order by date [asc|desc]
  • order by from [asc|desc]
  • order by to [asc|desc]
  • order by subject [asc|desc]
  • Multiple fields are allowed: order by from asc date desc

Quoting and escaping:

  • Use double quotes for values containing spaces: subject "meeting notes"
  • Or escape with backslash: subject meeting\ notes
  • In shell, the entire query may need to be passed as a single string or joined args.

Query examples (detailed)

# Unread emails, newest first
himalaya envelope list "not flag seen order by date desc"

# From boss or CEO, sorted by date desc
himalaya envelope list "from [email protected] or from [email protected] order by date desc"

# Subject contains "周报" AND body contains "进度"
himalaya envelope list "subject 周报 and body 进度"

# Date range: after March 31 and before April 11, 2025
himalaya envelope list "after 2025-03-31 and before 2025-04-11"

# Complex grouped condition: (subject urgent OR body error) AND from ops
himalaya envelope list '(subject 紧急 or body 报错) and from [email protected]'

# Specific folder + pagination + query
himalaya envelope list -f INBOX --page 2 --page-size 20 'subject "release plan" order by date desc'

Performance tip: Prefer from, to, subject over body because body triggers a server-side full-text scan.

Reference: For the complete Query DSL specification, IMAP mapping, and compatibility notes, read references/query_dsl.md.

Writing and sending emails: message commands

Composing a new message

Himalaya uses your $EDITOR to compose messages from a template.

# Compose a new message interactively
himalaya message write

# Pre-fill headers via CLI arguments
himalaya message write --to "[email protected]" --subject "Sprint review"

# Compose using a saved template
himalaya message write --template /path/to/template.eml

Reply and forward

# Reply to message ID 42
himalaya message reply 42

# Reply-all
himalaya message reply 42 --all

# Forward message ID 42
himalaya message forward 42 --to "[email protected]"

Reading, saving, and exporting

# Read raw message content
himalaya message read 42

# Save message to local .eml file
himalaya message save 42 --path ./message42.eml

# Export message(s)
himalaya message export 42 --path ./exports/

Message template format

A template is a set of headers followed by a blank line and then the body:

From: [email protected]
To: Bob \[email protected]>
Subject: Hello from Himalaya

Hello, world!

Valid headers include: From, To, Cc, Bcc, Reply-To, Subject, Date, Message-ID, In-Reply-To.

Addresses can be:

  • Plain: user@domain
  • Named: Name \x3Cuser@domain>
  • Quoted named: "Name" \x3Cuser@domain>
  • Multiple addresses separated by commas.

Attachments

Attachments are handled via the attachment noun or MML syntax in templates.

# Download attachments from message 42
himalaya attachment download 42 --path ./downloads/

MML attachment example inside a template body:

From: [email protected]
To: [email protected]
Subject: Attaching a doc

\x3C#part filename=/path/to/file.pdf>\x3C#/part>

Managing emails: flags and folders

Flags

# Add flag(s) to envelope(s)
himalaya flag add 42,43 flagged answered

# Remove flag(s)
himalaya flag remove 42 flagged

# Set exact flags (replaces existing)
himalaya flag set 42 seen

Common flags: seen, answered, flagged, deleted, draft.

Folders

# List folders
himalaya folder list

# Add a folder
himalaya folder add MyFolder

# Delete a folder
himalaya folder delete MyFolder

# Purge deleted messages from a folder
himalaya folder purge MyFolder

# Expunge a folder
himalaya folder expunge MyFolder

Multi-account workflows

Himalaya supports multiple accounts via TOML config. Target a non-default account with -a:

himalaya envelope list -a work -f INBOX
himalaya message write -a personal --to "[email protected]"

Output format tips

  • Use --output json when you need structured data for piping into jq or scripts.
  • Use --output plain (default) for human-readable tables and text.

Common gotchas

  1. Trailing query args: himalaya envelope list accepts the query as trailing arguments. Shell escaping matters. If the query has spaces, quote the entire query string.
  2. Page numbering: --page starts at 1 (not 0).
  3. Date boundaries: before 2025-04-01 excludes April 1; after 2025-04-01 also excludes April 1 (Himalaya adjusts internally by adding a day to use SENTSINCE).
  4. Config location: Default is ~/.config/himalaya/config.toml. Run himalaya account configure \x3Cname> for the wizard.

External resources

安全使用建议
This skill appears to be a documentation/cheat-sheet for the Himalaya CLI and is internally coherent. Before using it: ensure you actually have the himalaya binary installed (the skill only suggests commands), review any commands it provides before running them (commands like message save/export or message forward will touch your mail and may write files), and be aware that the suggested commands operate on your local mail configuration and accounts (for example --config can point to a different config file). Because the skill is instruction-only and requests no credentials, it cannot itself exfiltrate secrets — but any commands you copy-and-run can access your mailbox, so only run commands you understand. If you want the agent to execute commands on your behalf, restrict that behavior to trusted commands and verify outputs.
能力评估
Purpose & Capability
The skill's name and description match the SKILL.md and reference files: it provides CLI command patterns, a query DSL reference, and examples for the Himalaya mail client. It does not request unrelated binaries, environment variables, or credentials.
Instruction Scope
The runtime instructions are limited to describing himalaya commands, query DSL semantics, and example command lines. The file references ($EDITOR, --config <PATH>, saving/exporting .eml files) are appropriate for an email-CLI guide and do not instruct reading/exfiltrating unrelated system files or secrets.
Install Mechanism
No install specification or downloaded artifacts are present (instruction-only). Nothing is written to disk or fetched during install by the skill package itself.
Credentials
The skill declares no required environment variables, no primary credential, and no config paths. The references to $EDITOR and possible --config overrides are normal for CLI usage and proportionate to an email-client helper.
Persistence & Privilege
The skill is not marked always:true and has no install-time persistence. It does not request to modify other skills or agent-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install himalaya-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /himalaya-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
himalaya-skill 1.0.0 - Initial release providing expert guidance for the Himalaya command-line email client. - Covers email listing, searching, composing, flag/folder management, attachments, and templates. - Includes full Query DSL reference, command patterns, and best CLI practices. - Triggers when users mention email CLI, terminal email, or the Himalaya client.
元数据
Slug himalaya-skill
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Himalaya 是什么?

Expert guidance for querying, writing, and managing emails using the `himalaya` CLI. Use this skill whenever the user wants to list emails, search envelopes,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 137 次。

如何安装 Himalaya?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install himalaya-skill」即可一键安装,无需额外配置。

Himalaya 是免费的吗?

是的,Himalaya 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Himalaya 支持哪些平台?

Himalaya 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Himalaya?

由 bird-frank(@bird-frank)开发并维护,当前版本 v1.0.0。

💬 留言讨论