gclaw

GClaw provides Gmail inbox intelligence for AI agents, reading, classifying, and digesting emails to surface important information without the noise. It uses a zero-LLM-token heuristic classifier for efficiency.

3,556 stars
Complexity: medium

About this skill

GClaw is an AI agent skill designed for OpenClaw and similar coding agent environments, offering comprehensive Gmail inbox intelligence. It automates the process of fetching, parsing, classifying, and storing emails, ensuring that only the most relevant messages come to an agent's attention. Key features include a BotContext for per-bot label isolation, an EmailFetcher to retrieve new and deduplicated emails, an EmailParser, and an EmailClassifier that categorizes messages into 15 predefined types like 'newsletter', 'finance', 'work', and 'action_required'. All classified emails can be stored in a deduplicated JSONL format by the EmailStore. This skill is highly useful for various applications such as building automated inbox digests, creating custom email classification systems, or powering downstream bots that require structured email data. Its primary advantage is the use of a heuristic classifier, which enables rapid and cost-effective email categorization without consuming LLM tokens for this core task. LLMs are only engaged when a more nuanced summary or digest narrative is specifically requested. By leveraging GClaw, AI agents can efficiently manage email workflows, prioritize critical communications, and transform a cluttered inbox into an organized data stream. It enhances agent productivity by reducing manual email processing and focusing on actionable information, making it an indispensable tool for automated email management.

Best use case

gclaw is best used when you need a repeatable workflow & productivity workflow instead of a one-off prompt. It is especially useful for teams working in multi. GClaw provides Gmail inbox intelligence for AI agents, reading, classifying, and digesting emails to surface important information without the noise. It uses a zero-LLM-token heuristic classifier for efficiency.

GClaw provides Gmail inbox intelligence for AI agents, reading, classifying, and digesting emails to surface important information without the noise. It uses a zero-LLM-token heuristic classifier for efficiency.

Users should expect a more consistent workflow & productivity output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "gclaw" skill to help with this workflow & productivity task. Context: GClaw provides Gmail inbox intelligence for AI agents, reading, classifying, and digesting emails to surface important information without the noise. It uses a zero-LLM-token heuristic classifier for efficiency.

Example output

A structured workflow & productivity result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
  • Use it when you are solving a workflow & productivity task and want a more structured operating flow.
  • Use it when you can invest a small amount of setup effort for a more repeatable workflow.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/gclaw/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/yhyatt/gclaw/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/gclaw/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gclaw Compares

Feature / AgentgclawStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

GClaw provides Gmail inbox intelligence for AI agents, reading, classifying, and digesting emails to surface important information without the noise. It uses a zero-LLM-token heuristic classifier for efficiency.

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# GClaw — Gmail Intelligence for OpenClaw

<div align="center">
<img src="assets/banner.jpg" alt="GClaw — Gmail inbox intelligence" width="100%">
</div>

Reads, classifies, and digests your Gmail so the important stuff surfaces without the noise.

**Zero LLM tokens for classification** — heuristic classifier covers 15 categories. LLM only fires when you need a summary or digest narrative.

## Setup

```bash
# Requires the gog skill (Google OAuth CLI)
export GCLAW_GMAIL_ACCOUNT="your@gmail.com"
export GOG_KEYRING_PASSWORD="your-keyring-password"

pip install -e .
```

## Quick Usage

```python
from kaimail.bot_context import BotContext
from kaimail.fetcher import EmailFetcher
from kaimail.classifier import EmailClassifier
from kaimail.store import EmailStore

# Each bot declares its own label scope
ctx = BotContext(
    bot_id="digest",
    allowed_labels=["INBOX", "CATEGORY_UPDATES"],
    max_results=50
)

fetcher = EmailFetcher(context=ctx)
emails = fetcher.fetch_new()  # deduped — never processes the same email twice

classifier = EmailClassifier()
store = EmailStore(bot_id="digest")

for email in emails:
    email.category = classifier.classify(email)
    store.save(email)
    print(f"[{email.category}] {email.subject}")
```

## Classification Categories (15)

`newsletter` · `finance` · `travel` · `work` · `action_required` · `social` ·
`shopping` · `security` · `calendar` · `health` · `legal` · `ads` · `receipt` · `personal` · `other`

All heuristic — no LLM cost.

## Architecture

```
Gmail (via gog CLI)
    └─► EmailFetcher      — fetch, cache, deduplicate
        └─► EmailParser   — extract sender, clean body, detect forwards
            └─► EmailClassifier  — 15-category heuristic classification
                └─► EmailStore  — JSONL persistence (per bot_id)
```

## BotContext — Per-Bot Isolation

Multiple bots can share one Gmail account without interfering:

```python
# Digest bot — only newsletters + inbox
digest_ctx = BotContext(bot_id="digest", allowed_labels=["Thoughts", "INBOX"])

# Travel bot — only travel senders
travel_ctx = BotContext(
    bot_id="travel",
    allowed_labels=["Travel"],
    allowed_senders=["booking.com", "airbnb.com", "kayak.com"]
)
```

## Running Tests

```bash
pip install pytest
pytest tests/
```

## Requirements

- Python 3.10+
- [gog skill](https://clawhub.com/skills/gog) installed and authenticated
- `GOG_KEYRING_PASSWORD` env var set

## License

MIT

Related Skills

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

Meeting Prep

3891
from openclaw/skills

Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.

Workflow & Productivity

obsidian

3891
from openclaw/skills

Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.

Workflow & Productivity

Obsidian CLI 探索记录

3891
from openclaw/skills

Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.

Workflow & Productivity

📝 智能摘要助手 (Smart Summarizer)

3891
from openclaw/skills

Instantly summarize any content — articles, PDFs, YouTube videos, web pages, long documents, or pasted text. Extracts key points, action items, and insights. Use when you need to quickly digest long content, create meeting notes, or extract takeaways from any source.

Workflow & Productivity

Customer Onboarding

3891
from openclaw/skills

Systematically onboard new clients with checklists, welcome sequences, milestone tracking, and success metrics. Reduce churn by nailing the first 90 days.

Workflow & Productivity

CRM Manager

3891
from openclaw/skills

Manages a local CSV-based CRM with pipeline tracking

Workflow & Productivity

Invoice Generator

3891
from openclaw/skills

Creates professional invoices in markdown and HTML

Workflow & Productivity

Productivity Operating System

3891
from openclaw/skills

You are a personal productivity architect. Your job: help the user design, execute, and optimize their daily system so they consistently ship high-impact work while protecting energy and avoiding burnout.

Workflow & Productivity

Product Launch Playbook

3891
from openclaw/skills

You are a Product Launch Strategist. You guide users through planning, executing, and optimizing product launches — from pre-launch validation through post-launch growth. This system works for SaaS, physical products, services, marketplaces, and content products.

Workflow & Productivity

Procurement Manager

3891
from openclaw/skills

You are a procurement specialist agent. Help teams evaluate vendors, manage purchase orders, negotiate contracts, and optimize spend.

Workflow & Productivity

Procurement Operations Agent

3891
from openclaw/skills

You are a procurement operations analyst. When the user provides company details, run a full procurement assessment.

Workflow & Productivity