agentleFS
cboonecboone/fm/skills/review-email/SKILL.md

review-email

Skill1 starsChanged 3 months agoMITView on GitHub

Guided email triage workflow using the fm CLI. Walks through an 8-phase inbox review process with safety gates for personal messages, batch operations by sender cohort, draft reply composition, and session handoff tracking. Use when the user says "review email", "review my email", "triage email", "check my inbox", "email triage", "process my inbox", "triage my inbox", "clean up my inbox", "go through my email", "inbox zero", "email review", or any variant involving reviewing, triaging, or cleaning up Fastmail email.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the handoff document does not exist, create it on the first session start.

    line 30
  2. Distinctive:

    Keep history current: Update the handoff document after meaningful work.

    line 37
  3. Very specific:

    Report fm issues: When you encounter obstacles, missing features, bugs, or unexpected behavior in fm, tell the user and file a GitHub issue …

    line 38
  4. Very specific:

    Check today's date against the Last updated date in the project's handoff document.

    line 44
  5. Distinctive:

    Before processing any batch, spot-check subjects and previews for personal signals:

    line 62
  6. Very specific:

    Check for and remove orphaned flags in non-inbox mailboxes.

    line 133
  7. Distinctive:

    Update the project's handoff document in place:

    line 137
  8. Distinctive:

    Update the unread total and last-updated date

    line 139
  9. Distinctive:

    Update the flagged inbox list if it changed

    line 140
  10. Distinctive:

    Update active rules and holds if they changed

    line 141
  11. Distinctive:

    Update the remaining unread landscape

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review Email

Guided email triage using the fm CLI. Processes the inbox in priority order: personal messages first, then spam, promotional, transactional, newsletters, community mail, and stale flags.

Prerequisites

This skill requires a handoff document in the consuming project. This is a Markdown file (typically docs/fastmail/handoff.md) that tracks session state between triage runs. It contains:

  • Last updated date
  • Current unread and flagged totals
  • Flagged inbox message list
  • Active rules and holds (sender/domain)
  • Remaining unread landscape (categorized sender distribution)
  • Recent session log

If the handoff document does not exist, create it on the first session start. See ./references/runbook.md for the session end protocol that keeps it current.

Core Principles

  1. Personal-message gate: Surface direct personal communication before bulk actions. If uncertain, ask the user.
  2. Respect active holds: Honor sender and domain holds recorded in the project's handoff document.
  3. Batch safely: Work in sender cohorts, verify post-action counts after each batch.
  4. Keep history current: Update the handoff document after meaningful work.
  5. Report fm issues: When you encounter obstacles, missing features, bugs, or unexpected behavior in fm, tell the user and file a GitHub issue on cboone/fm.

Workflow

1. Session Start

Check today's date against the Last updated date in the project's handoff document. If it is a different day, treat this as a new session and start from Phase 1.

Verify connectivity:

fm session

2. Get the Landscape

fm summary --unread --format text

Review the sender and domain distribution. Identify high-volume, low-risk groups and any senders that might be personal. Use --newsletters to detect senders with List-Id or List-Unsubscribe headers, and --subjects to sample subject lines per sender.

3. Personal-Message Gate

Before processing any batch, spot-check subjects and previews for personal signals:

fm list --unread --limit 50 --format text

For ambiguous messages, inspect the full content:

fm read <id>

Apply the personal vs. bulk heuristics from ./references/runbook.md to classify ambiguous messages. If uncertain, surface to the user before processing.

4. Process by Phase

Work through the triage phases in order. See ./references/triage-phases.md for detailed phase descriptions.

Phase sequence:

  1. High-priority messages (personal, time-sensitive)
  2. Spam removal
  3. Unwanted promotional email
  4. Transactional cleanup
  5. Newsletters worth reading
  6. Community and organization email
  7. Flagged email review for staleness
  8. Ongoing maintenance

5. Batch Operations

For each sender cohort:

  1. Preview with --dry-run:
fm archive --from <sender> --dry-run
  1. Execute the batch:
fm mark-read --from <sender>
fm unflag --from <sender>
fm archive --from <sender>
  1. Verify remaining counts:
fm summary --unread --format text

"Archive" implies mark-read and unflag first, then archive. "Spam" implies mark-read and unflag first, then spam.

See ./references/runbook.md for detailed batch operation patterns.

6. Draft Replies

During any phase, offer to draft replies when the user wants to respond to an email. Drafts are safe: they are created in the Drafts mailbox with the $draft keyword and cannot be sent by fm. The user must review and send drafts manually from Fastmail.

fm draft --reply-to <id> --body "Reply text"
fm draft --reply-all <id> --body "Reply text"
fm draft --forward <id> --to <addr> --body "FYI"

See ./references/runbook.md for additional composition patterns, including unsubscribe requests.

7. Clean Up Stale Flags

Check for and remove orphaned flags in non-inbox mailboxes. See ./references/flag-semantics.md for the cleanup procedure and the distinction between fully unflagging (fm unflag <id>) and removing only the color (fm unflag --color <id>).

8. Session End

Update the project's handoff document in place:

  • Update the unread total and last-updated date
  • Update the flagged inbox list if it changed
  • Update active rules and holds if they changed
  • Update the remaining unread landscape
  • Append a session summary to the recent session log

Git history preserves previous snapshots automatically.

Reference Navigation

Triage phases:

  • ./references/triage-phases.md - Detailed description of each phase with specific actions

Operational procedures:

  • ./references/runbook.md - Batch safety, personal vs. bulk heuristics, draft composition patterns, flag workflows, session checklists

Flag semantics:

  • ./references/flag-semantics.md - Color flag meanings and usage patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.