Logotipo de Gmail Triage

Gmail Triage

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

Descripción general

Editorreymerekar7
Repositoriorm-skills
Nombre de la habilidadgmail-triage
Estrellas
39
Forks
6
Archivos incluidos
3
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 3

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por reymerekar7 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Gmail Triage en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/reymerekar7/rm-skills/tree/main/skills/gmail-triage
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Gmail Triage en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Gmail Triage automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Gmail Triage no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Gmail Triage en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Gmail Triage está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Gmail Triage en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/reymerekar7/rm-skills/tree/main/skills/gmail-triage. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Gmail Triage?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Gmail Triage?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Gmail Triage con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Gmail Triage?

Sí. reymerekar7 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇