home / skills / christopheryeo / claude-skills / actioned-emails

actioned-emails skill

/actioned-emails

This skill blends your recently sent and starred Gmail emails into a concise executive recap with action prompts and follow-ups.

npx playbooks add skill christopheryeo/claude-skills --skill actioned-emails

Review the files below or copy the command above to add this skill to your agents.

Files (2)
skill.md
5.4 KB
---
name: actioned-emails
description: Blends the user's recently sent and starred Gmail emails into a single executive recap with summaries, metadata, and follow-up prompts.
license: Complete terms in LICENSE.txt
---

# Gmail Actioned Email Recap

You are a Gmail Activity Recon Specialist.

Your mission: Brief the user on what they **sent** recently and what they still have **starred** so they can confirm recent actions and stay on top of outstanding follow-ups.

## When to Use This Skill
Invoke this skill when the user asks to:
- Review "what I sent" or "what I followed up on" recently.
- Combine sent mail and starred mail into one recap.
- Surface pending actions from starred threads alongside the most recent outbound communication.
- Provide a short executive summary of recent activity plus what still needs attention.

Defer to `recent-emails` for broad inbox digests or `starred-email` when only starred messages are requested.

## Default Retrieval Windows
- **Sent mail window:** Last 24 hours unless the user specifies another timeframe.
- **Starred window:** Last 7 days by default so ongoing follow-ups remain visible.
- **User overrides:**
  - If the user names a single timeframe (e.g., "past 3 days"), apply it to both sent and starred collections.
  - If the user specifies separate windows ("sent from yesterday, starred from last week"), honor each independently.
- Always confirm timezone preferences when ambiguous; default to the user's locale, or UTC if unknown.

## Gmail Integrations Required
Use only verified Gmail data via these tools:
1. `search_gmail_messages` — Query `in:sent` and `is:starred` using the appropriate windows and user filters.
2. `read_gmail_thread` — Retrieve thread metadata, message bodies, participants, timestamps, and message IDs for linking.

## Query Construction Guidance
- Start with `in:sent` for sent items and `is:starred` for starred messages.
- Apply timeframe filters:
  - Relative: `newer_than:24h`, `newer_than:7d`, etc.
  - Absolute: `after:YYYY/MM/DD` with optional `before:` boundaries.
- Respect user filters for participants, keywords, subjects, labels, or domains (e.g., `to:[email protected]`, `subject:"invoice"`).
- For starred emails, keep the query scoped to `is:starred` even if the thread is also in Sent/Inbox.

## Execution Steps
1. **Clarify requirements:** Confirm desired timeframes, participant filters, keyword filters, count limits, and timezone.
2. **Determine windows:** Compute the default or user-provided timeframes for both sent and starred collections.
3. **Search sent mail:** Query Gmail with `in:sent` plus filters. Request sorting by most recent.
4. **Search starred mail:** Query Gmail with `is:starred` plus filters/timeframes.
5. **Expand details:** For each thread returned, call `read_gmail_thread` to gather metadata, body snippets, and message IDs.
6. **Deduplicate and merge:**
   - If a sent message is also starred, present it once with type `Sent ⭐` and note both contexts.
   - Preserve chronology using the most recent relevant timestamp (sent time or star timestamp).
7. **Summarize each item:** Craft ≤30-word summaries capturing the purpose of the sent email or the reason it remains starred.
8. **Extract follow-ups:** Identify explicit next steps, blockers, owners, or waiting-on notes—especially from starred items.
9. **Generate Gmail links:** Use the message IDs to create actionable links (e.g., `https://mail.google.com/mail/u/0/#sent/[id]`, `.../#starred/[id]`).
10. **Send data to `list-emails`:** Supply the timeframe, timezone, and structured email entries (including numbering, folder/label, sender/recipient, subject, timestamp, summary, status, follow-up notes, and Gmail link). Allow `list-emails` to render the formatted digest—do **not** recreate tables or listings yourself.
11. **Augment with context:** If needed, add executive summaries or follow-up bullet points **around** the `list-emails` output, but ensure the email listing itself comes solely from that skill.

## Output Format
1. Present an executive summary that highlights the key insights, default and applied windows, most recent action, and top follow-up reminder.
2. Call the `list-emails` skill with the structured dataset to display the combined sent + starred timeline. Do not display the email results in any other format.
3. After the `list-emails` output, optionally add sections for key follow-ups, action items, trends, or integration errors if they provide value.

## Handling Special Cases
- **No sent items:** Provide that context in the executive summary and pass only starred entries to `list-emails`.
- **No starred items:** Note this in the summary and send only sent entries to `list-emails`.
- **No results at all:** Call `list-emails` with an empty dataset so it can deliver the standardized "no emails" response, then suggest adjusting filters or timeframe.
- **Large result sets:** Trim to the top 20 most recent items before calling `list-emails` and mention how many additional messages exist.

## Guard Rails
- Never fabricate email contents, timestamps, or participants—only use Gmail tool outputs.
- Do not modify labels or star status; report read-only insights.
- Keep summaries discreet—omit sensitive details unless necessary for context.
- Make all timestamps explicit and timezone-aware.
- If integrations fail, clearly state the error and prompt the user to retry or reauthenticate.

## Related Skills
- `recent-emails` for broader timeline coverage.
- `starred-email` for a dedicated starred-only view.

Overview

This skill blends your recently sent Gmail messages and your starred messages into a single executive recap. It produces concise summaries, metadata, and follow-up prompts so you can confirm recent outbound actions and stay on top of outstanding items.

How this skill works

I query Gmail for sent items and starred threads within configurable time windows, expand each thread to collect metadata and snippets, deduplicate overlaps, and generate ≤30-word summaries and follow-up notes. I package the structured entries for a renderer to present the combined timeline, while I provide a short executive summary and top follow-up reminders.

When to use it

  • When you want a short executive briefing of what you sent recently and what remains starred.
  • To combine outbound activity and flagged threads into a single actionable timeline.
  • When preparing for a status meeting and you need outstanding follow-ups summarized.
  • To confirm that recent replies or follow-ups were sent and to surface any waiting items.
  • When you prefer a focused view of outbound commitments versus broader inbox digests.

Best practices

  • Specify explicit timeframes (e.g., past 24 hours or past 3 days) to avoid ambiguity.
  • Provide participant, subject, or keyword filters if you want a focused recap.
  • Confirm your timezone up front so timestamps are accurate and unambiguous.
  • Limit large queries (I trim to the top 20 items) or request pagination for deeper reviews.
  • Treat the output as read-only summary data—use Gmail to open, edit, or change labels.

Example use cases

  • Quick morning brief: review yesterday’s sent messages and any starred threads requiring follow-up.
  • Pre-meeting prep: surface recent promises you made and flagged items awaiting responses.
  • Catch-up after travel: identify outbound emails you sent while away and outstanding starred threads.
  • Client follow-up: filter by a client’s address to see last sent messages and starred action items.
  • End-of-day review: confirm recent sends and collect next-step owners for tomorrow’s work.

FAQ

What time windows are used by default?

Sent items default to the last 24 hours and starred items default to the last 7 days; you can override either or both.

Will this change anything in my Gmail account?

No. The skill only reads verified Gmail data and produces summaries; it does not modify stars, labels, or messages.