Email Unsubscribe, Bulk Cleanup & Inbox Management Skill: Turning Unsubscribe Requests into Actionable Plans

Introduction

With a large volume of subscription emails, a common situation in an inbox is that the unsubscribe entry at the bottom of each email varies in format: some are hidden in one-click links, some require logging into the official website, and some only allow replying to a specific address. Manually opening each one is slow and prone to clicking the wrong domain. A safer approach is to let the Agent first understand the unsubscribe intent in the email, extract the links, classify them by method, and then provide step-by-step guidance or a batch list for you to execute in the browser—rather than relying on the tool to send unsubscribe requests on your behalf.

Below is an introduction to the SkillHub community skill @user_a10ab3ad/gmail-ai-unsub (Email Unsubscribe, Batch Clean, Inbox Management). It is positioned as parsing and solution generation, not replacing you from clicking links or calling the Gmail API.

What is this

This is a set of Agent Skills based on the generic SKILL.md format: parsing email unsubscribe-related requests and outputting structured JSON (intent, confidence, unsubscribe method, list of links, suggested actions, and risk warnings), accompanied by operational guidance.

Item Description
Coordinates @user_a10ab3ad/gmail-ai-unsub
Version 1.0.2
Source community (SkillHub)
Category office-efficiency
Publisher user_a10ab3ad
Requires API Key No (requires_api_key=false)
SkillHub Page https://www.skillhub.cn/skills/user_a10ab3ad/gmail-ai-unsub
Package Address https://api.skillhub.cn/user_a10ab3ad/gmail-ai-unsub

Official description: Parses email unsubscribe requests and generates structured processing plans and operational guidance. The package includes an MIT-licensed standalone script (scripts/main.py) that performs rule-based parsing on local text or JSON-formatted email content.

Core Features

The following capabilities come from the Skill documentation and package description. Once installed, the Agent triggers them via SKILL.md, and calls the package scripts when necessary.

  1. Unsubscribe Intent Recognition: Determines if a request is for unsubscribing from the subject and body, outputting intent and confidence.
  2. Unsubscribe Link Extraction: Collects unsubscribe URLs from the body and records the source context to facilitate verification of potential phishing links.
  3. Unsubscribe Method Classification: Distinguishes between one_click (one-click link), login_required (login required), email_reply (email reply), etc., and annotates operation difficulty and risk_level.
  4. Batch Processing Plan: Generates a JSON array or a batch operation list for multiple emails to facilitate processing by priority.
  5. Confidence Gate: When confidence is low, uses placeholders (e.g., [需核实:字段]) or prompts for manual review; the documentation specifies that when it is below 0.5, it can be marked as requires_manual.
  6. Error Codes: Both the documentation and the script define error codes such as E001–E010 to facilitate locating issues like missing input, invalid format, or link parsing failure.

Clearly what is NOT done (Document boundaries):

  • Does not send unsubscribe requests on your behalf, does not access Gmail accounts, and does not require OAuth.
  • Does not persist email content; the actual success of unsubscribing depends on the policies of each sender.

Common trigger words include: 邮件退订 (Email Unsubscribe), 批量退订 (Batch Unsubscribe), 取消订阅 (Cancel Subscription), unsubscribe, gmail ai unsub, 邮件清理 (Email Cleanup), etc.

Installation and Activation

Install SkillHub CLI

If skillhub is not installed on your machine, you can check or install it according to the official installation instructions:

command -v skillhub && skillhub --version

If not installed, you can execute the following (full installation, including default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install this Skill

The SkillHub page prompts to install @user_a10ab3ad/gmail-ai-unsub via the SkillHub Installation Documentation. When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the skill will not be loaded.

skillhub search gmail-ai-unsub
skillhub install gmail-ai-unsub --namespace user_a10ab3ad --dir <你的 Agent skills 目录>

Examples of skills directories for different environments (from SkillHub installation documentation):

Agent skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Gemini CLI ~/.gemini/skills/

After installation, using the trigger words mentioned above in a conversation will allow the Agent to load this Skill. This Skill is marked as not requiring an API Key, so generally no additional key configuration is needed.

Optional: Local Script

The scripts/main.py inside the package is a standalone Python 3 script. The description notes: It processes plain text or JSON-structured email content and does not directly parse EML/MIME; if you have a .eml file, you need to export it to text/JSON first via an email client or Gmail, and then hand it to the script or Agent for parsing. The execution method depends on the argparse definition inside the package, for example:

python3 scripts/main.py --help

Typical Usage

Conversational Use in Agent

Suitable for single or few emails; simply paste the subject and body, or say “Help me see how to unsubscribe from this email”.

  1. Trigger the skill (for example, send: “邮件退订,帮我分析下面这封订阅信” - “Email unsubscribe, help me analyze the following subscription email”).
  2. Provide the email subject, body, and available metadata such as the List-Unsubscribe header.
  3. View the JSON output from the Agent: confirm method, unsubscribe_links, and suggested_action.
  4. Perform manual review before clicking links for items with a risk_level of medium/high or low confidence.

Example scenario mapping in the documentation: When “unsubscribe link not found”, focus on extracting all links and marking suspicious items; when “still receiving emails after unsubscribing”, provide a troubleshooting checklist.

Batch Cleanup Following Documented Process

Suitable for directories where multiple emails have been exported as files (the documentation suggests naming them like YYYYMMDD_sender_subject and backing up to backup/ before processing):

  1. Input Preparation: Place emails in the same directory and first cp to backup/.
  2. Test Run: Process 1–2 representative emails first to verify if the intent and links match manual judgment.
  3. Batch Execution: Generate a batch JSON for all files (the documentation example command is gmail ai unsub --dir ./emails --output result.json; if you use the package script, refer to the actual parameters of main.py).
  4. Result Validation: Randomly check about 10% of the entries and verify link non-emptiness and method classification against the source emails.

Single output field example (from Skill documentation):

{
  "file": "20260115_newsletter_daily.eml",
  "intent": "unsubscribe",
  "confidence": 0.92,
  "method": "one_click",
  "unsubscribe_links": [
    {
      "url": "https://example.com/unsub?token=abc123",
      "context": "邮件底部灰色小字",
      "requires_login": false
    }
  ],
  "suggested_action": "点击链接完成退订",
  "risk_level": "low"
}

After batch processing is complete, the documentation will summarize the counts for one-click unsubscribe, login required, reply required, and unrecognizable, making it easy for you to execute batches in the browser.

Applicable Scenarios and Notes

Who is this for

  • Users with Gmail (or other clients) where marketing/subscription emails are piling up, who want to get a structured list first before manually unsubscribing.
  • Scenarios where distinguishing between unsubscribe methods is necessary to reduce the risk of clicking phishing links.
  • Users who want to use natural language to drive “parsing + guidance” in environments like Cursor or Claude Code that already support Skills.

Limitations and Pitfalls

  • No Auto-Unsubscribe: The output is a plan and guidance; automation requires coordinating with a browser or script yourself, and you must bear the risk of accidental unsubscribing (also noted in the Skill user agreement).
  • Input Format: The SKILL.md mentions .eml/.txt workflows in many places, while scripts/main.py explicitly does not parse EML directly, relying on JSON/text. Mixing formats may lead to parsing failure or low confidence.
  • Security: The extracted links need to be verified to ensure the domain matches the sender to avoid directly clicking unknown domains in batches.
  • Batch Size: The documentation suggests a single batch of about 50 emails, and processing large batches in segments with random checks to avoid amplifying errors.
  • Ratings and Downloads: Data is based on SkillHub scraping (Rating 100000, Downloads 876, Install count 0); page data changes over time, please refer to the store.

Conclusion

@user_a10ab3ad/gmail-ai-unsub transforms “how to unsubscribe from this email” into a structured output that can be verified and batch-sorted, emphasizing confidence gating and manual review. It is suitable as a pre-analysis layer for inbox cleanup, rather than a one-click empty tool.

Official entry points:

  • SkillHub: https://www.skillhub.cn/skills/user_a10ab3ad/gmail-ai-unsub
  • API Coordinate: https://api.skillhub.cn/user_a10ab3ad/gmail-ai-unsub
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye