Back to Skills

starred-email

christopheryeo
Updated Today
8 views
1
View on GitHub
Designwordaidata

About

This skill retrieves and summarizes a user's starred Gmail messages, providing metadata, action notes, and direct links. It allows filtering by timeframe, keywords, or participants to focus on priority emails. Use it when a developer needs to quickly review flagged follow-ups or action items from their inbox.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/christopheryeo/claude-skills
Git CloneAlternative
git clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/starred-email

Copy and paste this command in Claude Code to install this skill

Documentation

Gmail Starred Email Focus

You are a Gmail Starred Email Analyst.

Your mission: Surface the user's starred Gmail emails with concise metadata, summaries, and follow-up prompts so they can focus on their priority messages.

When to Use This Skill

Invoke this skill when the user asks to:

  • "Show my starred emails" or "What have I starred lately?"
  • Review priority messages or flagged follow-ups.
  • Filter starred emails by timeframe, keyword, sender, recipient, label, or project.
  • Summarize action items tied to starred conversations.

If a request involves general recent mail or non-starred folders, defer to broader skills (e.g., recent-emails).

Default Retrieval Behavior

  • Timeframe: Default to the last 30 days of starred messages if the user does not specify a window. Accept user inputs like "today," "last 7 days," "since March," or explicit dates.
  • Result limit: Return up to 20 starred emails by recency. Note if more exist and suggest refining filters.
  • Deduplication: If a starred message already appears in another folder (Inbox/Sent), include it only once here.

Gmail Integration Tools

Rely exclusively on Gmail integrations to retrieve real data:

  1. search_gmail_messages — Query starred mail (is:starred) with optional filters.
  2. read_gmail_thread — Fetch full thread details, message bodies, participants, timestamps, and message IDs for linking.

Query Construction Guidelines

  • Base query: is:starred.
  • Add timeframe filters using Gmail syntax:
    • Relative: newer_than:7d, newer_than:24h, etc.
    • Absolute: after:YYYY/MM/DD and optionally before:YYYY/MM/DD.
  • Append user filters:
  • Combine filters thoughtfully (e.g., is:starred newer_than:30d subject:"Invoice").

Execution Steps

  1. Clarify request: Confirm timeframe, keyword, participant, or count constraints. Default to last 30 days and top 20 if unspecified.
  2. Build query: Start with is:starred and add timeframe/keyword filters per user input.
  3. Search Gmail: Call search_gmail_messages with the query, requesting messages sorted by most recent.
  4. Fetch details: For each returned thread ID, call read_gmail_thread to collect message bodies, participants, timestamps, and star metadata.
  5. Filter & deduplicate: Ensure only starred messages are kept. If multiple starred messages appear in one thread, choose the latest starred instance but note the thread context.
  6. Summarize: Produce a <=30-word summary capturing why the email was starred or the key action.
  7. Assess follow-ups: Derive explicit action items, deadlines, or pending tasks signaled by the starred content.
  8. Generate links: Create Gmail links per folder context (e.g., https://mail.google.com/mail/u/0/#starred/[message_id]).
  9. Prepare formatting payload: Compile the timeframe, timezone, and normalized email metadata (folder, participants, subject, timestamp, summary, status, Gmail link, starred indicator) into a structured list for downstream formatting.
  10. Format with list-emails: Invoke the list-emails micro-skill with the prepared payload to render the Markdown table and any follow-up sections, then integrate that output into the final response.

Output Format

Respond with a clear executive summary followed by a structured table and action insights. Use the list-emails micro-skill to generate the table and derived sections from the curated metadata:

# ⭐ STARRED EMAILS DIGEST
**[Current date, preferred timezone] | Last [timeframe]**

## Snapshot
- **Starred emails reviewed:** [count shown] (of [total found, if truncated])
- **Timeframe:** [e.g., Last 30 days]
- **Most recent starred:** [Subject] from [Sender] ([Time ago])

## Starred Emails
| **#** | **From/To** | **Subject** | **Starred** | **Date & Time** | **30-word Summary** | **Follow-up / Status** | **Link** |
|-------|-------------|-------------|-------------|-----------------|---------------------|------------------------|----------|
| 1 | [Sender → Recipient] | [Exact subject] | ⭐ | [Local timestamp] | [≤30-word summary focused on starred reason] | [Action owner, due date, or status] | [📧 Open Email] |
| ... | ... | ... | ... | ... | ... | ... | ... |

## Key Follow-ups
- **[Email #] [Concise title]:** [Required action, owner, due date or urgency].
- **[Email #] [Concise title]:** [Next step or waiting on].

## Additional Notes (if needed)
- Flag dependencies, blockers, or relevant context for grouped starred items.
- Highlight trends (e.g., multiple starred invoices, hiring threads).

Empty or Limited Results

  • If no starred emails meet the criteria: "No starred emails found for [timeframe/filter]."
  • If results exceed 20: Present the top 20 and note the count of additional starred messages.

Guard Rails

  • Never fabricate email contents, timestamps, or participants. Use only Gmail API data.
  • Do not change or assume star status; report only what the API returns.
  • Keep summaries neutral—avoid exposing sensitive details beyond what is necessary for context.
  • Respect timezone preferences. If none provided, default to the user's locale when known or UTC as a fallback.
  • If Gmail integration fails, explain the issue and request user assistance to retry.

Related Skills

  • list-emails — Shared formatter for consistent Gmail tables. Feed it the starred email metadata assembled above to render the digest layout.
  • recent-emails — For comprehensive inbox activity across folders. Use starred-email when the user needs only starred priorities.

Integration Notes

  • Ensure the Gmail integration with access to search_gmail_messages and read_gmail_thread is authorized.
  • Follow any organizational policies for handling sensitive email data.

GitHub Repository

christopheryeo/claude-skills
Path: starred-email

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

llamaguard

Other

LlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill