搜索

PythonReactSEOPDF
OpenClaw

email-summary

Fetches recent emails from Gmail and provides concise summaries. Use when the user wants to check emails, get email summaries, or review their inbox.

bbdyno0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install bbdyno/email-summary

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Email Summary Skill

This skill fetches recent emails from your Gmail account and provides AI-powered summaries.

How it works

When invoked, this skill will:

  1. Authenticate with Gmail API using credentials at $GMAIL_CREDENTIALS_PATH
  2. Fetch recent emails (default: last 10 unread emails)
  3. Summarize each email with:
    • Sender and subject
    • Key points from the email body
    • Recommended actions or responses
  4. Present results in an organized, easy-to-scan format

Instructions for the Agent

When this skill is invoked:

  1. First, verify that the Gmail API credentials exist at the path specified in $GMAIL_CREDENTIALS_PATH environment variable
  2. Run the helper script located at {baseDir}/scripts/fetch_emails.py with the appropriate arguments:
    • Default: python3 {baseDir}/scripts/fetch_emails.py --count 10
    • With arguments: python3 {baseDir}/scripts/fetch_emails.py $ARGUMENTS
  3. Parse the JSON output from the script
  4. For each email, provide a concise summary including:
    • From: Sender name and email
    • Subject: Email subject line
    • Summary: 2-3 sentence summary of key points
    • Action: Suggested action (reply, archive, flag for follow-up, etc.)
  5. Present all summaries in a well-formatted list

Usage Examples

/email-summary

Fetches and summarizes the last 10 unread emails.

/email-summary --count 20

Fetches and summarizes the last 20 unread emails.

/email-summary --all

Fetches and summarizes all unread emails.

Setup Requirements

Before using this skill, ensure:

  • Gmail API credentials are configured
  • Environment variable GMAIL_CREDENTIALS_PATH points to your credentials JSON file
  • Python 3 and required packages are installed (see setup guide in README.md)

来源信息

Source
github
Repository
openclaw/skills
Path
skills/bbdyno/email-summary
Version
—
Commit
6c65208d8daa3c414aa8b472c8cbbcc064216d11
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Email Summary Skill for OpenClaw

AI-powered email summarization skill that fetches your Gmail messages and provides concise, actionable summaries.

Features

  • Fetch recent unread emails from Gmail
  • AI-generated summaries with key points
  • Suggested actions for each email
  • Configurable number of emails to fetch
  • Secure OAuth2 authentication

Installation

1. Install Python Dependencies
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
2. Set Up Gmail API Credentials
  1. Go to Google Cloud Console
  2. Create a new project (or select an existing one)
  3. Enable the Gmail API:
    • Navigate to "APIs & Services" > "Library"
    • Search for "Gmail API"
    • Click "Enable"
  4. Create OAuth2 credentials:
    • Go to "APIs & Services" > "Credentials"
    • Click "Create Credentials" > "OAuth client ID"
    • Choose "Desktop app" as application type
    • Download the credentials JSON file
  5. Save the credentials file to a secure location (e.g., ~/.config/gmail/credentials.json)
3. Set Environment Variable

Add this to your shell configuration (~/.zshrc, ~/.bashrc, etc.):

export GMAIL_CREDENTIALS_PATH="$HOME/.config/gmail/credentials.json"

Reload your shell:

source ~/.zshrc  # or ~/.bashrc
4. Install the Skill

Option A: Install to OpenClaw local skills

cp -r email-summary ~/.openclaw/skills/

Option B: Install to workspace

# In your OpenClaw workspace directory
cp -r email-summary ./skills/

First-Time Setup

The first time you run the skill, you'll need to authorize access:

  1. A browser window will open automatically
  2. Sign in to your Google account
  3. Grant permissions to access Gmail (read-only)
  4. The authorization token will be saved for future use

Usage

In OpenClaw, use the /email-summary command:

Fetch last 10 unread emails (default)
/email-summary
Fetch specifi...

来源内容

SKILL.md
# Email Summary Skill

This skill fetches recent emails from your Gmail account and provides AI-powered summaries.

## How it works

When invoked, this skill will:

1. **Authenticate with Gmail API** using credentials at `$GMAIL_CREDENTIALS_PATH`
2. **Fetch recent emails** (default: last 10 unread emails)
3. **Summarize each email** with:
   - Sender and subject
   - Key points from the email body
   - Recommended actions or responses
4. **Present results** in an organized, easy-to-scan format

## Instructions for the Agent

When this skill is invoked:

1. First, verify that the Gmail API credentials exist at the path specified in `$GMAIL_CREDENTIALS_PATH` environment variable
2. Run the helper script located at `{baseDir}/scripts/fetch_emails.py` with the appropriate arguments:
   - Default: `python3 {baseDir}/scripts/fetch_emails.py --count 10`
   - With arguments: `python3 {baseDir}/scripts/fetch_emails.py $ARGUMENTS`
3. Parse the JSON output from the script
4. For each email, provide a concise summary including:
   - **From**: Sender name and email
   - **Subject**: Email subject line
   - **Summary**: 2-3 sentence summary of key points
   - **Action**: Suggested action (reply, archive, flag for follow-up, etc.)
5. Present all summaries in a well-formatted list

## Usage Examples

```
/email-summary
```
Fetches and summarizes the last 10 unread emails.

```
/email-summary --count 20
```
Fetches and summarizes the last 20 unread emails.

```
/email-summary --all
```
Fetches and summarizes all unread emails.

## Setup Requirements

Before using this skill, ensure:
- Gmail API credentials are configured
- Environment variable `GMAIL_CREDENTIALS_PATH` points to your credentials JSON file
- Python 3 and required packages are installed (see setup guide in README.md)
README
# Email Summary Skill for OpenClaw

AI-powered email summarization skill that fetches your Gmail messages and provides concise, actionable summaries.

## Features

- Fetch recent unread emails from Gmail
- AI-generated summaries with key points
- Suggested actions for each email
- Configurable number of emails to fetch
- Secure OAuth2 authentication

## Installation

### 1. Install Python Dependencies

```bash
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
```

### 2. Set Up Gmail API Credentials

1. Go to [Google Cloud Console](https://console.cloud.google.com/)
2. Create a new project (or select an existing one)
3. Enable the Gmail API:
   - Navigate to "APIs & Services" > "Library"
   - Search for "Gmail API"
   - Click "Enable"
4. Create OAuth2 credentials:
   - Go to "APIs & Services" > "Credentials"
   - Click "Create Credentials" > "OAuth client ID"
   - Choose "Desktop app" as application type
   - Download the credentials JSON file
5. Save the credentials file to a secure location (e.g., `~/.config/gmail/credentials.json`)

### 3. Set Environment Variable

Add this to your shell configuration (`~/.zshrc`, `~/.bashrc`, etc.):

```bash
export GMAIL_CREDENTIALS_PATH="$HOME/.config/gmail/credentials.json"
```

Reload your shell:
```bash
source ~/.zshrc  # or ~/.bashrc
```

### 4. Install the Skill

**Option A: Install to OpenClaw local skills**
```bash
cp -r email-summary ~/.openclaw/skills/
```

**Option B: Install to workspace**
```bash
# In your OpenClaw workspace directory
cp -r email-summary ./skills/
```

## First-Time Setup

The first time you run the skill, you'll need to authorize access:

1. A browser window will open automatically
2. Sign in to your Google account
3. Grant permissions to access Gmail (read-only)
4. The authorization token will be saved for future use

## Usage

In OpenClaw, use the `/email-summary` command:

### Fetch last 10 unread emails (default)
```
/email-summary
```

### Fetch specifi...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

sixtyfour-skill

rxhxm

Agent Skill (SKILL.md) for Sixtyfour AI — People & company intelligence API. Enrich leads, find emails/phones, qualify prospects, search people. For Claude Code, Codex, OpenClaw, Cursor.