agentmail-cli
Send and receive emails programmatically using the AgentMail CLI. Use when agents need to manage inboxes, send/receive emails, handle threads, drafts, webhooks, and domains via command line.
What this skill does
# AgentMail CLI Use the `agentmail` CLI to send and receive emails programmatically. Requires `AGENTMAIL_API_KEY` environment variable. ## Install ```bash npm install -g agentmail-cli ``` ## Core Commands ### Inboxes ```bash # Create an inbox (defaults to @agentmail.to; # pass --domain only if you have verified a custom domain) agentmail inboxes create --display-name "My Agent" --username myagent # List inboxes agentmail inboxes list # Get an inbox agentmail inboxes retrieve --inbox-id <inbox_id> # Delete an inbox agentmail inboxes delete --inbox-id <inbox_id> ``` ### Send Email ```bash # Send a message from an inbox agentmail inboxes:messages send --inbox-id <inbox_id> \ --to "[email protected]" \ --subject "Hello" \ --text "Message body" # Send with HTML agentmail inboxes:messages send --inbox-id <inbox_id> \ --to "[email protected]" \ --subject "Hello" \ --html "<h1>Hello</h1>" # Reply to a message agentmail inboxes:messages reply --inbox-id <inbox_id> --message-id <message_id> \ --text "Reply body" # Forward a message agentmail inboxes:messages forward --inbox-id <inbox_id> --message-id <message_id> \ --to "[email protected]" ``` ### Read Email ```bash # List messages in an inbox agentmail inboxes:messages list --inbox-id <inbox_id> # Get a specific message agentmail inboxes:messages retrieve --inbox-id <inbox_id> --message-id <message_id> # List threads agentmail inboxes:threads list --inbox-id <inbox_id> # Get a thread agentmail inboxes:threads retrieve --inbox-id <inbox_id> --thread-id <thread_id> ``` ### Drafts ```bash # Create a draft agentmail inboxes:drafts create --inbox-id <inbox_id> \ --to "[email protected]" \ --subject "Draft" \ --text "Draft body" # Send a draft agentmail inboxes:drafts send --inbox-id <inbox_id> --draft-id <draft_id> ``` ### Pods Pods group inboxes together. ```bash # Create a pod agentmail pods create --name "My Pod" # Create an inbox in a pod agentmail pods:inboxes create --pod-id <pod_id> --display-name "Pod Inbox" # List threads in a pod agentmail pods:threads list --pod-id <pod_id> ``` ### Webhooks ```bash # Create a webhook for new messages agentmail webhooks create --url "https://example.com/webhook" --event-type message.received # List webhooks agentmail webhooks list ``` ### Domains ```bash # Add a custom domain. --feedback-enabled is REQUIRED: # pass the flag to route bounce/complaint notifications to your inboxes. # The CLI has no way to create a domain without this flag. agentmail domains create --domain example.com --feedback-enabled # Verify domain DNS agentmail domains verify --domain-id <domain_id> # Get DNS records to configure agentmail domains get-zone-file --domain-id <domain_id> ``` ## Global Flags All commands support: `--api-key`, `--base-url`, `--environment`, `--format`, `--format-error`, `--transform`, `--transform-error`, `--debug`. ## Output Formats Use `--format` to control output: `auto` (default), `pretty`, `json`, `jsonl`, `yaml`, `raw`, `explore`.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.