Skip to content
Skill

Gmail

Lets an agent handle Gmail tasks through the gws command-line tool

Gmail is an open-source agent skill for communication. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
39
Last commit
License
MIT
Listing updated

Similar skills

About Gmail

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (948 bytes) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Gmail 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.

More from richardgill/nix

  1. Lets your agent manage Todoist tasks through the todoist command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity
  2. Creates git worktrees in tmux sessions and starts an AI agent on a prompt

    • Open source
    • 39 GitHub stars
    • Developer tools
  3. Plans a clean-room rewrite of existing behavior, from requirements through phased

    • Open source
    • 39 GitHub stars
    • Developer tools
  4. Delegates work to supervised Pi agents running in tmux sessions and worktrees

    • Open source
    • 39 GitHub stars
    • Developer tools
  5. Lets your agent run web searches, fetch page content and quick answers via Kagi CLI

    • Open source
    • 39 GitHub stars
    • Web search and scraping
  6. Lets your agent work with Google Calendar through the gws command-line tool

    • Open source
    • 39 GitHub stars
    • Productivity