hey
Installation
SKILL.md
/hey - HEY Email Workflow Command
CLI for HEY: mailboxes, labels, collections, email threads, contacts, replies, compose, calendars, todos, habits, time tracking, and journal entries.
Agent Invariants
MUST follow these rules:
- Choose the right structured output — use
--jq '<expression>'to filter or extract fields and--jsonfor the full response. Never pipe to an externaljq;--jqis built in and implies--json. - Reuse stored authentication — run the requested data command; it uses stored credentials and refreshes expiring OAuth tokens automatically. If it returns an auth error, report the task as blocked. Use
hey auth status --jsonwhen an explicit authentication check is needed. Never runhey auth loginunattended; use it only for interactive recovery with the user present. - HTML output is available via
--htmlfor commands that return HTML content - Linked mail accounts share one login — use
hey account list --json, then--account <id|all>when a task must target one account - Local HEY configuration requires human trust — never run
hey config trust-localwithout the user's explicit approval
Output Filtering
--jq filters the full JSON success envelope, so result data is under .data. String results print as plain text; objects and arrays print as formatted JSON. Use --quiet --jq when the expression should run against result data directly. Errors retain their complete structured envelope. Commands with dedicated raw output (auth token, completion, skill, tui, and --version) reject --jq.