Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

gws-gmail-triage — Claude skill: unread inbox summary

Lists unread Gmail messages with sender, subject and date. Useful when you want to clear your inbox from the terminal.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill gws-gmail-triage -a claude-code
Open on GitHub

What gws-gmail-triage does

The skill runs gws gmail +triage and prints a table of unread messages. By default it shows 20 emails matching is:unread. Use --max to change the limit, --query to pass any Gmail search query, and --labels to include label names.

It is read-only, so your mailbox stays untouched. Output defaults to a table, but --format json gives JSON you can pipe into jq.

You need gws installed and auth configured first: the skill relies on ../gws-shared/SKILL.md for global flags and security rules. If that file is missing, gws generate-skills creates it. Worth installing if you triage mail from a terminal; skip it if you live in the Gmail web UI.

What it helps with

  • check unread mail from the terminal
  • filter inbox by sender
  • export subjects as JSON for a script
  • list messages that carry labels
  • cap the output at a few messages

Example prompts for the agent

  • show my unread emails
  • gws gmail +triage --max 5 --query 'from:boss'
  • dump the inbox summary as JSON

How to install gws-gmail-triage

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill gws-gmail-triage -a claude-code

2Manually: put the files in place

~/.claude/skills/gws-gmail-triage/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gws-gmail-triage/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

Questions about gws-gmail-triage

How do I install gws-gmail-triage in Claude?

Run npx skills add googleworkspace/cli --skill gws-gmail-triage -a claude-code. The skill file lands in ~/.claude/skills/gws-gmail-triage/SKILL.md.

What does gws-gmail-triage do?

It shows a summary of unread Gmail messages with sender, subject and date. By default that is 20 messages matching is:unread.

What do I need before running it?

A working gws install and configured auth. The skill depends on ../gws-shared/SKILL.md for global flags and security rules.

Source text

SKILL.md · Apache-2.0
---
name: gws-gmail-triage
description: "Gmail: Show unread inbox summary (sender, subject, date)."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws gmail +triage --help"
---

# gmail +triage

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Show unread inbox summary (sender, subject, date)

## Usage

```bash
gws gmail +triage
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--max` | — | 20 | Maximum messages to show (default: 20) |
| `--query` | — | — | Gmail search query (default: is:unread) |
| `--labels` | — | — | Include label names in output |

## Examples

```bash
gws gmail +triage
gws gmail +triage --max 5 --query 'from:boss'
gws gmail +triage --format json | jq '.[].subject'
gws gmail +triage --labels
```

## Tips

- Read-only — never modifies your mailbox.
- Defaults to table output format.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor