Skip to content
Back to skills

Inbox Cleanup

ASecurity

Tidy a crowded inbox by archiving newsletters, promotions and notifications in bulk, or all mail from a sender or older than an age the user names, with a card the user approves and undo for 30 days. Use when the user wants to clean up, declutter or sort their inbox, get rid of newsletters or promotions, archive a sender's mail or old mail, or has thousands of unread emails.

  • 166 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsrustgoshell

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add HybridAIOne/hybridclaw --skill inbox-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inbox Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inbox Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hybridaione-inbox-cleanup/badge)](https://www.skillsdirectory.com/skills/hybridaione-inbox-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inbox-cleanup
description: Tidy a crowded inbox by archiving newsletters, promotions and notifications in bulk, or all mail from a sender or older than an age the user names, with a card the user approves and undo for 30 days. Use when the user wants to clean up, declutter or sort their inbox, get rid of newsletters or promotions, archive a sender's mail or old mail, or has thousands of unread emails.
user-invocable: false
metadata:
  hybridclaw:
    category: productivity
    short_description: "Archive bulk mail in sender groups, with a preview and undo."
    tags:
      - email
      - inbox
      - cleanup
      - archive
      - newsletters
---
# Inbox Clean-up

You can archive mail in bulk with `inbox_cleanup`. You cannot delete mail, and
you never try to.

## How

1. Call `inbox_cleanup` with `action: plan`. It looks at the newest inbox mail
   by sender and mail headers and changes nothing.
2. Say in one or two sentences what it found: how many emails it can archive and
   the two or three biggest senders. The card shows the rest, so don't list
   every group.
3. Call `action: apply` with the plan's `preselected` groups. The user sees a
   card with the groups and decides there. Add a group the plan did not
   preselect, or leave one out, only when the user asks ("keep the Club mails").
4. Report the numbers from the result: archived, skipped and why, not moved.
   Say once that undo works for 30 days. If the result has `stopped_because`,
   say what moved before it stopped.
5. When the user wants it back, call `action: undo` with the same `plan_id`.

## A sender or an age the user names

When the user asks to archive a sender's mail, or mail older than some age,
call `plan` with `sender`, `older_than_days` or both, then go on as above.

- Pass only what the user said. `sender` is an address or a domain: take it from
  an earlier plan's groups or from the mailbox, never make it up from a name.
- This plan holds all mail that matches, bulk or not, so say what it covers.
  Starred mail stays out.
- Groups marked `kept` are from people the user writes to or replied to. They
  are not preselected and count in `left_alone`. Say how many emails that is,
  and add such a group only when the user asks for that sender's mail.
- When the user wants something kept, leave out its groups. If the plan has more
  groups than it shows, say that the card lists every sender.
- `not_looked_at` above 0 means the plan did not reach that many older emails.
  Say so. Another plan after `apply`, or a higher `max_messages`, reaches them.

## Rules

- Mail moves only through `inbox_cleanup`. Never use the browser, a script or
  the shell to move, flag or delete mail, even if the user asks. That is how
  accounts get locked and mail gets lost.
- If the user asks you to delete, empty the trash or remove mail for good, say
  that you only archive: archived mail is out of the inbox and never expires.
  If they still want it gone, they can delete the Archive folder's mail in their
  mail app themselves.
- Never decide by words in a subject. "Offer", "invoice" or "deal" says nothing
  about who sent it. Trust the plan's groups.
- Never say you read or checked emails you did not open. Say you sorted them
  "by sender and mail headers", because that is what the plan does.
- Numbers come from tool results. If the plan says 2,140, don't round it.
- A plan without a sender or an age leaves alone mail from people the user
  writes to, starred mail, senders the user replied to, this week's mail and
  mail without bulk headers. Don't offer to include them.
- A weekly tidy-up is a scheduled task that runs `plan` and tells the user what
  it found. It never archives without the user approving the card.
- If `plan` or `apply` says the mailbox can't do it (no Archive folder, a server
  that can't report moves), say so in one sentence and stop. Don't try another
  way.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.