# Gmail

> Gmail is an open-source agent skill for communication. Lets an agent handle Gmail tasks through the gws command-line tool. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/richardgill/nix/tree/main/built/ai-agents/ampcode/skills/gmail
- **Repository:** https://github.com/richardgill/nix
- **GitHub stars:** 39
- **License:** MIT
- **Skill name:** gmail
- **Collection:** https://github.com/richardgill/nix
- **Categories:** [communication](https://ai-powered.com/categories/communication), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-03

## About

This skill points an agent at the `gws` command-line tool for Gmail work. It does not carry its own instructions for each operation. Instead it tells the agent to read a set of official `gws` skill reference files before touching Gmail.

The references cover shared setup plus individual Gmail operations: reading, sending, replying, replying to all, forwarding, triaging and watching a mailbox. The agent loads these first so it follows the documented `gws` usage for each action.

The skill is a single SKILL.md with no scripts. The reference paths are absolute Nix store paths from the author's own setup, so the files must exist at those locations (or the paths be adapted) for it to work elsewhere. It also expects `gws` to be installed and authenticated.

## When your agent uses it

> Gmail via gws.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/gmail)
- [License: MIT](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/gmail)

## Features

- **gws-based Gmail access:** Routes all Gmail operations through the `gws` command-line tool.
- **Read and triage:** References cover reading messages and triaging the inbox.
- **Send, reply, forward:** References cover sending mail, replying, replying to all and forwarding.
- **Mailbox watching:** Includes a reference for watching Gmail for changes.
- **Read-first workflow:** Requires the agent to read the shared and Gmail-specific gws skills before acting.

## Good for

- Triage unread email in my inbox
- Reply to a specific message from the terminal
- Forward an email to a colleague
- Send a new email through Gmail
- Watch my mailbox for new messages

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/gmail` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gmail &&
cp -R "$tmp/built/ai-agents/ampcode/skills/gmail" ~/.claude/skills/gmail &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/gmail` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/gmail` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gmail &&
cp -R "$tmp/built/ai-agents/ampcode/skills/gmail" ~/.agents/skills/gmail &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/gmail` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/gmail` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gmail &&
cp -R "$tmp/built/ai-agents/ampcode/skills/gmail" ~/.cursor/skills/gmail &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/gmail` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/ampcode/skills/gmail
```

Or copy the folder to `~/.gemini/skills/gmail` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/gmail`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gmail &&
cp -R "$tmp/built/ai-agents/ampcode/skills/gmail" ~/.copilot/skills/gmail &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/gmail` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/richardgill/nix.git
```

Then copy `nix/built/ai-agents/ampcode/skills/gmail` into your agent's skills folder as `gmail`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Gmail need?

The `gws` tool, plus the official gws skill reference files at the paths listed in the SKILL.md.

### Does Gmail include scripts?

No. It is a single SKILL.md that directs the agent to other skill files.

### Which Gmail actions are covered?

Reading, sending, replying, reply-all, forwarding, triage and watch, via the referenced gws skills.

### Will the paths work on my machine?

They are Nix store paths from the author's configuration, so you will likely need to adjust them.

### How do I install Gmail in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gmail to use it in all your projects, or to .claude/skills/gmail in one project.

### Does Gmail run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Gmail?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Gmail?

The closest alternatives to Gmail are Google calendar, Email marketing bible, Implementing google workspace phishing protection, Email ops and Cloudflare email service.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Google calendar](https://ai-powered.com/skills/google-calendar-richardgill): Google calendar is an open-source agent skill for productivity.
- [Email marketing bible](https://ai-powered.com/skills/email-marketing-bible): Email marketing bible is an open-source agent skill for marketing and seo.
- [Implementing google workspace phishing protection](https://ai-powered.com/skills/implementing-google-workspace-phishing-protection): Implementing google workspace phishing protection is an open-source agent skill for communication.
- [Email ops](https://ai-powered.com/skills/email-ops-smartworldarafath): Email ops is an open-source agent skill for productivity.
- [Cloudflare email service](https://ai-powered.com/skills/cloudflare-email-service): Cloudflare email service is an open-source agent skill for cloud and infrastructure.
- [GitHub issues](https://ai-powered.com/skills/github-issues): GitHub issues is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/gmail-richardgill
