Gmail

From lightspeedwp/.github · View interactive version

Gmail is an AI agent skill from the GitHub repository lightspeedwp/.github. Manage Gmail inbox triage, mailbox search, thread summaries, action extraction, reply drafting, and email forwarding through connected Gmail data. Use when the user wants to inspect a mailbox or thread, search email with Gmail query syntax, summarize messages, extract decisions and follow-ups, prepa

How to use this skill

Skill file

Gmail

Overview

Use this skill to turn noisy email threads into clear summaries, action lists, and ready-to-send drafts. Prefer Gmail-native search and read workflows, preserve message context, and avoid changing message state without explicit user intent.

Preferred Deliverables

Workflow Skills

| Workflow | Skill |

| --- | --- |

| Inbox triage, urgency ranking, and follow-up detection | ../gmail-inbox-triage/SKILL.md |

Reference Notes

| Task | Reference |

| --- | --- |

| Search planning, refinement, pagination, and body-fetch strategy | references/search-workflow.md |

| Pasted Gmail URL recognition, exact-ID attempts, and fast-fail recovery | references/pasted-link-workflow.md |

| Label application, relabeling, and label-based cleanup | references/label-actions.md |

| Self-delivery requests such as "email me," "send this to me," or automation delivery | references/self-delivery.md |

| Reply drafting, reply-all decisions, and tone matching | references/reply-workflow.md |

| Email forwarding, context notes, and intent framing | references/forward-workflow.md |

When the user supplies a Gmail web URL, do not pass the URL directly to Gmail tools or turn it into a broad mailbox search. Follow the pasted-link workflow for a bounded exact-ID attempt and immediate recovery guidance when the link cannot be resolved.

Mailbox Analysis Pattern

For mailbox analysis requests such as triage, follow-up detection, topic summaries, cleanup, thread understanding, or "what matters here" questions, use this pattern:

  1. Strongly prefer Gmail-native search_emails first. Use Gmail query syntax for most mailbox tasks because it gives the model precise control over dates, senders, unread state, attachments, subjects, and exclusions, and search_emails returns richer summaries than search_email_ids without requiring an extra hop.
  2. search_emails returns message-level summaries, not thread-grouped results. If several messages look related or a conversation may matter, expand the specific items of interest with read_email_thread.
  3. Use tags only in the connector's expected shape: list[str]. Do not pass a single string. Prefer uppercase Gmail system labels when filtering by built-in labels.
  4. Label search is supported. Use Gmail query syntax for label-aware search, for example label:foo, and use tags for built-in/system-label filtering when that is cleaner.
  5. Common system labels to use in tags include INBOX, STARRED, TRASH, DRAFT, SENT, SPAM, UNREAD, and IMPORTANT. For All Mail, prefer Gmail query syntax such as in:anywhere rather than guessing a tag value.
  6. Use Gmail-native batch_read_email when you need the body of multiple shortlisted emails, and escalate to read_email_thread only when the surrounding conversation changes the answer.
  7. Use search_email_ids only when the next tool specifically needs message IDs and the richer search_emails response would not help you decide what to do.
  8. Summarize before writing when the request is ambiguous, and keep analysis separate from actions like send, archive, trash, or label changes unless the user explicitly asked for them.

Write Safety

Output Conventions

Example Requests

Light Fallback

If thread or inbox data is missing, say that Gmail access may be unavailable or scoped to the wrong account and ask the user to reconnect or clarify which mailbox or thread should be used.

Have questions? Ping us on GitHub! 🐙 Made with 💚 by LightSpeedWP

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.