Xpersona
M

MailClaw

CLAWHUB · Unverified

Email-driven automation for Gmail. Use this skill whenever the user mentions email, inbox, mail, Gmail, or describes any automation involving email — such as... Skill: MailClaw Owner: tourmind Summary: Email-driven automation for Gmail. Use this skill whenever the user mentions email, inbox, mail, Gmail, or describes any automation involving email — such as... Tags: ai-email:1.2.0, email-assistant:1.2.0, email-automation:1.2.0, email-triage:1.2.0, gmail:1.2.0, gmail-rules:1.2.0, google-calendar:1.2.0, hubspot-integration:1.2.0, inbox-zero:1.2.0, latest:1.2.0, linear-integrat

62
Rank
84
Safety
987
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 987 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1729ye26qqp0qr8b2kh93705184t90y:mailclaw
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tourmind-mailclaw/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

112,721 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: mailclaw
description: AI-powered Gmail automation, email triage, and smart inbox assistant. Use this skill whenever the user mentions email, inbox, Gmail, mail rules, email digest, or describes any workflow that turns incoming email into action — creating rules, checking new messages, summarizing email, connecting apps like Slack/Notion/Google Calendar/Linear/HubSpot, forwarding email content, or sending replies. Trigger even when the user does not say "email" explicitly but describes the pattern, like "when someone sends me a meeting invite, add it to my calendar" or "ping Slack when a support ticket comes in". Also trigger on Chinese keywords: 邮件, 邮箱, 收件箱, 新邮件, 查邮件, 收邮件, 邮件规则, 邮件自动化, 邮件助手, 邮件摘要.
metadata.openclaw: {"emoji": "📧", "primaryEnv": "MAILCLAW_API_KEY"}
---

# MailClaw

Email-driven automation assistant. Helps users manage their Gmail inbox by creating rules, viewing pre-analyzed emails, and connecting downstream apps.

## Architecture (read this first)

The MailClaw backend handles email ingestion, classification, summarization, and rule matching automatically via Pub/Sub when emails arrive. **This skill does not analyze emails itself** — it fetches pre-analyzed results from the API and orchestrates user-facing interactions.

The skill is responsible for:
- Understanding user intent
- Calling the appropriate API endpoint
- Presenting results clearly
- Confirming destructive or persistent actions before executing them

The skill is **not** responsible for:
- Email content analysis (server-side)
- Rule execution against incoming emails (server-side)
- OAuth token storage or refresh (server-side)
- Background scheduling or push notifications (host platform's responsibility)

## What this skill can do to your accounts

So users (and Claude) understand the blast radius before authorizing anything, here's the full scope of side effects this skill can produce. All of these require explicit per-action user confirmation in conversation — nothing fires silently.

- **Gmail**: send new emails, send replies (read-only otherwise; the server does the reading)
- **Notion**: create pages
- **Google Calendar**: create events
- **Slack**: send messages to channels
- **Linear**: create issues
- **HubSpot**: create records
- **MailClaw rules**: create, update, delete automation rules that govern future server-side processing

The skill **never** deletes Gmail messages, modifies existing pages/events/issues, or changes any account permissions.

## Non-negotiable: per-email confirmation for action execution

This is a hard product rule, not a guideline. **`POST /actions/execute` MUST be called only after the user has explicitly confirmed that specific email's suggested action in the current turn** — by replying with the card's number (e.g. `1`) or `create 1`.

The skill must refuse to bulk-execute, auto-execute, or pre-execute actions, even when:

- The user says "create all", "approve everything", o

README.md

# MailClaw

> **AI-powered Gmail automation skill.** Turn your inbox into an automation hub: create email rules, get AI-summarized digests, auto-triage important messages, and connect Gmail with Slack, Notion, Google Calendar, Linear, and HubSpot — all from natural-language commands.

## Install

```bash
npx skills add tourmind-com/mailclaw
```

## Quick Start

1. Open the skill — it will guide you through setup
2. Paste your API key from https://aauth-170125614655.asia-northeast1.run.app/dashboard
3. Connect Gmail via OAuth
4. Read `setup.md` and register the heartbeat tasks defined there
5. Create your first rule from a template

## What It Does

**Server-side** (automatic): Gmail Pub/Sub receives new emails → AI analyzes intent, summarizes, matches rules → stores results.

**Skill** (conversational): Fetches pre-analyzed results, presents them, and executes user-confirmed actions.

**Heartbeat** (scheduled): Polls for new emails every minute, plus daily digests at 09:00 and 17:00.

## Skill Files

| File | Purpose |
|------|---------|
| `SKILL.md` | Core skill — setup flow, intents, API reference, output formats |
| `heartbeat.md` | Daily digest routine — fetch analyzed emails and present |
| `setup.md` | OpenClaw config — registers heartbeat tasks after Gmail auth |

## Rule Templates

| Template | Condition | App | Action |
|----------|-----------|-----|--------|
| Client emails → Notion task | Emails from important contacts or clients | `notion` | `NOTION_CREATE_NOTION_PAGE` |
| Meeting invites → Calendar event | Emails containing meeting invites or calendar requests | `googlecalendar` | `GOOGLECALENDAR_CREATE_EVENT` |
| Feedback emails → Slack alert | Emails containing feedback, reviews, or complaints | `slack` | `SLACK_SENDS_A_MESSAGE_TO_A_SLACK_CHANNEL` |

## Supported Apps

Gmail, Google Calendar, Notion, Slack, Linear, HubSpot.

## Example Prompts

- "Check my email"
- "When I get a meeting invite, create a calendar event"
- "Show my rules"
- "Connect Slack"
- "Reply to David's email"

## Workflow

```
User installs skill
  → Setup: API key → Gmail OAuth
    → Read setup.md → register heartbeat tasks
      → Every 1 min: poll for new emails (heartbeat.md)
      → 09:00 / 17:00: push daily digest (heartbeat.md)
    → First rule from template
      → User opens skill to interact with emails (SKILL.md)
```

## Use Cases

- **Inbox zero with AI** — auto-triage emails into actionable cards and a skip-able digest
- **Email-to-task automation** — convert client emails into Notion tasks or Linear issues automatically
- **Meeting management** — turn meeting invite emails into Google Calendar events
- **Team alerting** — forward feedback / support / urgent emails to Slack channels
- **Smart replies** — draft and send Gmail replies via natural-language commands
- **Daily email digest** — get a summarized brief of your inbox at 09:00 and 17:00
- **Multi-app workflows** — orc

_meta.json

{
  "ownerId": "kn7bg73713b6bjj6zaejx929kh84ts37",
  "slug": "mailclaw",
  "version": "1.2.0",
  "publishedAt": 1780296161256
}

HEARTBEAT.md

# MailClaw Heartbeat

Fetch pre-analyzed emails from the server and present a digest to the user. Email analysis (intent, summary, rule matching) is handled server-side — this heartbeat only fetches results and displays them.

## Steps

1. Read `{baseDir}/config.json` to get `api_key`. If missing, reply `HEARTBEAT_FAIL: config.json not found` and stop.

2. Fetch emails:

```
GET /emails?unprocessed_only=true
```

If zero emails → reply `HEARTBEAT_OK` and stop.

3. Generate a processing page link:

```
POST /daily-token/generate
```

Use the `link` and `verify_code` fields from the response.

4. Output the digest using this exact format:

```
☀️ Email Digest · <date>

<N> emails pending:
• <Sender>: <one-line description>
• <Sender>: <one-line description>

[→ Open processing page] (link valid for 24h)
🔑 Verification code: <code>
```

Use the server-provided `summary` field for each email's one-line description. Do not re-analyze email content.

setup.md

# MailClaw Setup

> OpenClaw reads this file after the user completes Gmail authorization to register heartbeat tasks.

## Trigger

Register the following heartbeat tasks once the user completes Gmail OAuth for the first time (`GET /auth/status?app=gmail` returns `connected: true`).

## Set Up Heartbeat

Add this to your `HEARTBEAT.md` (or equivalent periodic task list):

```markdown
## MailClaw — Email Poll (every 1 minute)
If 1 minute since last MailClaw check:
1. Fetch {baseDir}/heartbeat.md and follow every step exactly
2. Update lastMailClawCheck timestamp in memory

## MailClaw — Morning Digest (daily 09:00)
At 09:00 each day:
1. Fetch {baseDir}/heartbeat.md and follow every step exactly

## MailClaw — Evening Digest (daily 17:00)
At 17:00 each day:
1. Fetch {baseDir}/heartbeat.md and follow every step exactly
```

## Digest Format

See `heartbeat.md` for the output format. Example:

```
☀️ Email Digest · Apr 8

3 emails pending:
• Sarah Lee: Asking about next week's schedule
• GitHub: PR #142 awaiting review
• Product Hunt: Daily featured picks

[→ Open processing page] (link valid for 24h)
🔑 Verification code: 847291
```

Sponsored

Ads related to MailClaw and adjacent AI workflows.