Gmail Triage logo

Gmail Triage

Community
reymerekar7
gmail-triage

Triage your Gmail inbox using the Google Workspace CLI (gws). Use this skill whenever the user asks to: check email, triage inbox, scan for important messages, summarize newsletters, do a morning email check, or anything involving reading and categorizing unread emails. Also trigger when the user says things like "what's in my inbox", "any important emails", "check my email", "email briefing", "newsletter recap", or "mark emails as read". This skill is READ-ONLY — it never sends, replies to, or forwards emails.

Overview

Publisherreymerekar7
Repositoryrm-skills
Skill namegmail-triage
Stars
39
Forks
6
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by reymerekar7 on GitHub. Read the source before you install it.

Installation

Install the Gmail Triage AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/reymerekar7/rm-skills/tree/main/skills/gmail-triage
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/reymerekar7/rm-skills.git /tmp/rm-skills
mkdir -p .claude/skills
cp -r /tmp/rm-skills/skills/gmail-triage .claude/skills/gmail-triage
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gmail Triage in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gmail Triage on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gmail Triage is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Gmail Triage Skill

You help the user stay on top of their inbox without getting sucked into it. Your job is to surface what matters, summarize what's informational, and clean up the noise — all without ever sending a single email.

Philosophy

Email is a todo list other people write for you. The goal is to protect attention:

  1. Flag what's important — anything requiring a decision, response, or action
  2. Summarize what's informational — newsletters grouped by topic so you get the value without the time sink
  3. Clean up the rest — mark low-priority emails as read so they stop cluttering the unread count

This skill is strictly read-only. Never send, reply, forward, or draft emails. If something needs a response, surface it — don't do it.


Prerequisites

The Google Workspace CLI must be installed and authenticated:

bash
npm install -g @googleworkspace/cli
gws auth setup

Verify it works: gws gmail +triage should return unread inbox data.


Scope

Primary inbox only. Only triage emails in category:primary. Ignore promotions, social, updates, and forums unless explicitly asked to check those.


Helper Scripts

Reusable scripts live in <skill-directory>/scripts/:

  • extract_newsletter.py — Extracts readable text from raw gws message JSON (base64-decoded). Pipe from gws or stdin:

    bash
    gws gmail users messages get --params '{"userId":"me","id":"MSG_ID","format":"full"}' \
      | python <skill-directory>/scripts/extract_newsletter.py
  • mark_read.sh — Marks one or more messages as read. Run sequentially (not backgrounded) to avoid race conditions:

    bash
    bash <skill-directory>/scripts/mark_read.sh MSG_ID1 MSG_ID2 MSG_ID3

Triage Workflow

Step 1: Pull the primary inbox

Start with the triage helper:

bash
gws gmail +triage

This returns sender, subject, and date for unread messages. Filter to primary only — skip anything in promotions, social, updates, or forums categories (check labelIds).

For more detail on specific messages (e.g., to read a newsletter body), fetch individually:

bash
gws gmail users messages get --params '{"userId":"me","id":"<message_id>","format":"full"}'

Then pipe through the extract script to get readable text:

bash
gws gmail users messages get --params '{"userId":"me","id":"<message_id>","format":"full"}' \
  | python <skill-directory>/scripts/extract_newsletter.py

Other useful queries:

bash
gws gmail users messages list --params '{"userId":"me","maxResults":20,"q":"is:unread category:primary"}'

Step 2: Categorize every email

Go through each unread message and assign it to one of three buckets:

Action Required — Flag these and keep unread. Characteristics:

  • From a real person the user knows or works with (clients, collaborators, friends, family)
  • Mentions money, deals, contracts, deadlines, or meetings
  • Asks a direct question or requests a decision
  • Time-sensitive (event RSVPs, expiring offers relevant to business)
  • From platforms where the user has active business
  • From any sender the user has told you to always flag

Newsletter / Informational — Summarize these, then mark as read. Characteristics:

  • AI/tech newsletters (TLDR, Ben's Bites, The Neuron, Import AI, Superhuman, etc.)
  • Industry updates, product launches, funding news
  • Business/creator economy newsletters
  • Fitness, health, mindset, or personal development content
  • Marketing or growth content

Low Priority — Mark as read silently. Characteristics:

  • Automated notifications (GitHub, Notion, app alerts)
  • Marketing/promotional emails from brands
  • Social media notifications (LinkedIn, X, Instagram)
  • Receipts and order confirmations (unless very recent / relevant)
  • Spam or irrelevant outreach

When in doubt, err on the side of flagging as important — better to surface something irrelevant than miss something that mattered.

Step 3: Summarize newsletters by topic

For Newsletter emails, always fetch the full body before summarizing — never summarize from subject line alone. Pipe through the extract script to get readable text, then group summaries by broad topic:

  • AI / Tech — lead with this group, give it the most depth. Focus on what's relevant: AI agents, developer tools, new models, content creation tech, solo founder tools
  • Business / Creator Economy — growth strategies, monetization, newsletter tactics, sponsorship trends
  • Fitness / Health — training science, nutrition, recovery
  • Mindset / Personal Development — productivity, mental models, habits
  • Other — anything that doesn't fit the above

For each newsletter:

  • 3-5 bullet points — focus on what's actionable or relevant, not just what it covered
  • Call out anything that's a potential content idea or business opportunity
  • Include any specific numbers, studies, or tools mentioned — concrete details beat vague summaries
  • Skip the fluff entirely

Step 4: Mark all emails as read

After delivering the briefing, mark every email as read — including Action Required ones. The briefing itself is the user's signal to handle what matters; the inbox should be clean afterward.

bash
bash <skill-directory>/scripts/mark_read.sh MSG_ID1 MSG_ID2 MSG_ID3 ...

Or individually:

bash
gws gmail users messages modify --params '{"userId":"me","id":"<message_id>"}' --json '{"removeLabelIds":["UNREAD"]}'

Important: Run mark-as-read sequentially, not backgrounded with &. Backgrounding causes race conditions with the gws keyring.

Step 5: Deliver the briefing

Present results in this order:

1. Action Required (if any) For each: who it's from, what they need, and a suggested next step.

2. Newsletter Highlights (if any) Grouped by topic (AI/Tech first, then others). Each newsletter gets a name + 2-4 bullets.

3. Cleanup Summary One line: "Marked X emails as read" with a few examples of what was cleared.

Keep it tight. The whole briefing should be scannable in under 60 seconds.


Important Senders (always flag)

If an email is from any of these, it's Action Required regardless of content:

  • Any email from a real person (not a no-reply address) that appears to be a direct message
  • Sponsors, brand partners, or anyone discussing business deals
  • Any client or prospect

This list evolves — if the user says to always flag someone, add them here.


What This Skill Does NOT Do

  • Send, reply to, forward, or draft emails
  • Delete emails
  • Move emails between folders/labels (except marking as read)
  • Write anything to Notion or other systems
  • Access accounts other than the authenticated Gmail

If asked to reply or send, remind the user this skill is read-only and suggest they handle it directly.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gmail Triage AI skill do?

Triage your Gmail inbox using the Google Workspace CLI (gws). Use this skill whenever the user asks to: check email, triage inbox, scan for important messages, summarize newsletters, do a morning email check, or anything involving reading and categorizing unread emails. Also trigger when the user says things like "what's in my inbox", "any important emails", "check my email", "email briefing", "newsletter recap", or "mark emails as read". This skill is READ-ONLY — it never sends, replies to, or forwards emails.

Why use Gmail Triage on TypingMind?

Because you install it once and use it with any model. Gmail Triage is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gmail Triage in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/reymerekar7/rm-skills/tree/main/skills/gmail-triage. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gmail Triage?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gmail Triage?

As many as you like. As long as a model supports skills, you can use Gmail Triage with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gmail Triage AI skill free?

Yes. It is published on GitHub by reymerekar7 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇