/ccxp-skills:inbox-clean [--window 7d] [--dry-run] [--routine <name>]from ccxp-skills
Use when the user explicitly asks to clean the Gmail inbox — archive, label and draft replies for review, never send
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
Cleans the inbox after /email-triage has read it: archives noise, labels what stays, drafts replies for the owner to review. It never sends.
IC=<skills-root>/inbox-clean/scripts/inbox-clean.sh./inbox-clean: default 7d window.--window 24h: narrower sweep.--dry-run: print the planned calls (bash $IC plan --dry-run); no mutating call, no undo note.--routine <name>: unattended run for that routine; capabilities are checked (below).bash $IC tools is the whole list. Anything else is refused.
| Tool | Capability | Use |
|---|---|---|
search_threads, get_thread, get_message, list_labels | none | read |
create_label, label_thread | gmail.label | tag a thread |
unlabel_thread (label INBOX only) | gmail.archive | archive = remove INBOX |
create_draft | gmail.draft | a draft for the owner to review, never sent |
send_message, reply, forward, trash, spam, delete, update_draft, any *_message_labels call. bash $IC check-tool <tool> exits 4 for these.gmail.* capabilities come from the profile file's allow: only (bash <skills-root>/routine/scripts/run-routine.sh allowed <routine> <cap>). An interactive run has the owner present and checks none; an unattended run (the job prompt says unattended or CCXP_CRON_MODE=1, any routine step; the script can only see the env var) must pass --routine to plan.search_threads for in:inbox newer_than:<window>; classify as /email-triage does (notification vs actionable). Read bodies only for a thread that may need a draft; bodies never go to repo files, the journal, Slack or the plan.thread_id<TAB>archive|label|draft[<TAB>label]:
archive: notifications and newsletters. The script adds the ccxp/archived label first so the mail stays findable.label: actionable threads that stay in the inbox, with a label in the ccxp/ namespace such as ccxp/needs-reply (the script refuses any other label).draft: only a thread that is a plain human question you can answer from the thread itself. Anything involving money, commitments, legal or a customer is label, not draft.bash $IC plan [--dry-run] [--routine <name>]. Exit 4 means a refused action, 5 a missing capability: fix the plan, never work around it. Without --dry-run it prints undo=<file>; no Gmail call before that line.ccxp/draft-for-review label right after create_draft./slack unless --no-slack): counts per action, the draft threads as Gmail links, and the undo file path. No subjects of sensitive mail, no body text.bash $IC undo <file> prints the reverse calls; drafts are listed for removal by hand.INBOX label removal; verified on a throwaway thread by T20261116-211561, until then the first live run starts with a single archived thread.needs-human.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status/agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge./autopilotUse when the user explicitly asks to turn the unattended background /drive loop on or off, pause or resume it, or check its status — "/autopilot on", "/autopilot off", "/autopilot pause", "/autopilot resume", "/autopilot status", "/autopilot config"/bottomUse when the user explicitly asks to move a task (or several) to the back of the dev/TODO priority queue