AgentSkillsCN

marketing-classifier

根据元数据JSONL、白名单/黑名单规则,以及List-Unsubscribe邮件头,对Gmail邮件进行营销类别的精准分类。当您需要决定哪些邮件应当退订或直接跳过时,此工具便是理想之选。

SKILL.md
--- frontmatter
name: marketing-classifier
description: Classify Gmail messages as marketing using metadata JSONL, allowlist/denylist patterns, and List-Unsubscribe headers. Use when you need to decide which emails should be unsubscribed or skipped.

Marketing Classifier

Quick start

  1. Confirm the metadata JSONL schema matches references/data-schema.md.
  2. Update allowlist/denylist patterns in assets/allowlist.txt and assets/denylist.txt.
  3. Run scripts/classify_marketing.py to produce decisions JSONL.
  4. Review the summary before passing decisions to execution skills.

Safety rules

  • Default to skip for protected labels and sensitive categories.
  • Require a dry-run summary before any destructive actions.

Resources

  • scripts/classify_marketing.py: Classifier for marketing signals.
  • references/policy.md: Classification policy and defaults.
  • references/data-schema.md: Input/output schema.
  • assets/allowlist.txt: Allowlist template.
  • assets/denylist.txt: Denylist template.
  • assets/sample_messages.jsonl: Sample input file for tests.