Iván

Mail

Officev1.2.0
By IvánUpdated 2026-05-116 versions · latest released 2026-02-16mail@clawhub_ivangdavila/mail
Email#Email

According to AlphaMoat, as of 2026-09, Mail has 4,877 downloads and 4 stars — ranked #1,920 of 5,078 AI skills overall, and #172 of 435 in Office.

Installs
217
Downloads
4.9K
Stars
4
Overall Rank
#1,920
Top 38% overall · Top 40% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗1554.9K4-
SkillHub ↗2174.5K4—

Platforms count differently and update at different times.

What this skill does

The skill supports reading, searching, filtering, and sending email, using the Himalaya CLI or Apple Mail data depending on the platform. Sending follows a draft-review-send workflow; messages are not deleted without explicit confirmation and are not sent automatically without user review. The source says Gmail app passwords are stored in macOS Keychain and credentials are never modified by the skill. Email content and attachments can be sensitive; review recipients and message content before sending, and protect local mail databases and exported files.

Profile published 2026-10-27

What you can do with it

  • Search and filter email
  • Prepare a reply or review a message before sending

When to use it

  • When the user wants to read, find, or manage email
  • Before sending or deleting a message, when confirmation and review boundaries apply

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Find this email and prepare a reply draft for me to review
Show the message to be sent and wait for my confirmation

Monthly Trend

Downloads4.9K
2.6K3.8K5.0K2026-03 · Downloads 2.8K2026-05 · Downloads 3.6K2026-06 · Downloads 3.8K2026-07 · Downloads 4.2K2026-08 · Downloads 4.4K2026-09 · Downloads 4.9K26-0326-09
Stars4
3452026-03 · Stars 42026-05 · Stars 42026-06 · Stars 42026-07 · Stars 42026-08 · Stars 42026-09 · Stars 426-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.9K—4
2026-084.4K+6.2%4
2026-074.2K+10.1%4
2026-063.8K+5.6%4
2026-053.6K—4
2026-032.8K—4

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.8 KB · ClawHub v1.2.0
---
name: Mail
slug: mail
version: 1.2.0
description: Execute email operations with platform-specific optimizations and secure credential handling.
changelog: Added explicit scope, requirements, and data access documentation
metadata: {"clawdbot":{"emoji":"📧","requires":{"bins":["himalaya"]},"os":["darwin","linux"]}}
---

## Requirements
Show all (77 lines)

**Binaries:**
- `himalaya` - IMAP/SMTP CLI (`brew install himalaya` or `cargo install himalaya`)
- `osascript` - macOS only, built-in

**Credentials:**
- App Password for Gmail (not regular password), stored in macOS Keychain
- Configure in `~/.config/himalaya/config.toml`

## Data Access

**Read-only paths:**
- `~/Library/Mail/V*/MailData/Envelope Index` - Apple Mail SQLite database (macOS only)
- `~/Library/Mail/V*/MAILBOX/Messages/` - attachment files (macOS only)

## Scope

This skill:
- ✅ Reads email via himalaya CLI or Apple Mail SQLite
- ✅ Sends email via himalaya (draft-review-send workflow)
- ✅ Searches and filters messages
- ❌ NEVER modifies credentials
- ❌ NEVER deletes emails without explicit confirmation
- ❌ NEVER auto-sends without user review

## Quick Reference

| Topic | File |
|-------|------|
| Apple Mail SQLite queries | `apple-mail.md` |
| himalaya CLI patterns | `himalaya.md` |
| Send/reply protocol | `sending.md` |

## Core Rules

### 1. Platform Detection
- **macOS with Apple Mail**: Use SQLite queries (100x faster than AppleScript)
- **Cross-platform**: Use himalaya CLI for full IMAP/SMTP
- **Never mix approaches** in same task - commit to one to avoid state conflicts

### 2. Apple Mail SQLite
- Query path: `~/Library/Mail/V*/MailData/Envelope\ Index`
- **Force sync first**: `osascript -e 'tell app "Mail" to check for new mail'` - SQLite reads stale data otherwise
- Recent mail filter: `WHERE date_received > strftime('%s','now','-7 days')`
- Join `messages→addresses` on `message_id` for sender lookup

### 3. himalaya CLI
- **Always use**: `--output json` flag for programmatic parsing
- List emails: `himalaya envelope list -o json` (NOT `message list`)
- Folder names are case-sensitive
- Run `himalaya folder list` after server-side folder changes

### 4. Send Protocol
- **Draft-review-send workflow**: Compose → show user full content → send after explicit OK
- Reply threading: Include `In-Reply-To` and `References` headers or thread breaks
- Some SMTP servers reject if From header doesn't match authenticated user

### 5. Credential Management
- macOS Keychain: `security add-internet-password -s imap.gmail.com -a [email protected] -w 'app-password'`
- Gmail/Google Workspace: Requires App Password with 2FA enabled
- OAuth: himalaya supports XOAUTH2 via token_cmd in config.toml

### 6. Thread Intelligence
- Thread by `In-Reply-To` chain, not subject matching
- "Re:" prefix is unreliable
- Polling intervals: 15-30 min max; use `himalaya envelope watch` for real-time

Popular in Office

More from Iván

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.