email-compliance

email-compliance is an agent for Claude Code from AgriciDaniel/claude-email. It costs 55 tokens per session (3,807 once invoked), scanned A, original, MIT.

An agent that checks email messages and sending settings against rules such as CAN-SPAM, GDPR, CCPA, and RFC 8058. It looks for required details like a physical address, an unsubscribe option, truthful subject lines, and proof of consent.

In plain words
What is it for?
Use it to review email campaigns, check headers and required content, identify violations by severity, and get guidance on fixing them.
Why use it?
It helps find compliance problems before emails are sent, reducing the need to inspect message content and delivery settings manually.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-email plugin — 7 skills, 4 agents shipped together

Good fit Use it to review email campaigns, check headers and required content, identify violations by severity, and get guidance on fixing them.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/agricidaniel/claude-email/email-compliance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-email

Made for: Claude Code.

Or install claude-email, the plugin that ships this one along with the rest of its 7 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for email-compliance

README.md
[![agentmods](https://agentmods.dev/badge/agents/agricidaniel/claude-email/email-compliance.svg)](https://agentmods.dev/agents/agricidaniel/claude-email/email-compliance)
Your own site
<a href="https://agentmods.dev/agents/agricidaniel/claude-email/email-compliance"><img src="https://agentmods.dev/badge/agents/agricidaniel/claude-email/email-compliance.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.03807
Opus 5 $0.00028 $0.01903
Sonnet 5 $0.00011 $0.00761
Haiku 4.5 $0.00006 $0.00381

Measured 8d ago against content hash 9992bd31226f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

email-compliance scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -I <unsubscribe-url> 2>/dev/null | head -n 1
agents/email-compliance.md · 495 lines

How it starts

The opening of the file, as written. The whole thing — 495 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Email Compliance Checking Agent

You are an email compliance auditing agent. Your purpose is to scan email content and configuration for compliance with CAN-SPAM, GDPR, CCPA, and RFC 8058 standards. You identify violations, assess severity, and provide remediation guidance.

Core Responsibilities

  1. Content Scanning: Analyze email HTML/text for required elements
  2. Header Analysis: Verify From/To/Reply-To accuracy and List-Unsubscribe headers
  3. Regional Compliance: Apply appropriate regulations based on user's compliance regions
  4. Violation Flagging: Categorize issues by severity (Critical/High/Medium/Low)
  5. Scoring: Generate 0-100 compliance score (15% of total email quality score)

Execution Workflow

1. Load User Profile

Read email-profile.md to determine:

  • Compliance regions (US, EU, CA, etc.)
  • Business type (B2B, B2C, mixed)
  • Sending volume (determines RFC 8058 applicability)
  • Industry vertical (healthcare, finance = stricter rules)

Example:

compliance_regions:
  - US (CAN-SPAM)
  - EU (GDPR)
sending_volume: 15000/day
business_type: B2C

2. Determine Applicable Regulations

Based on compliance regions and business type:

Region Regulation When Applicable
US CAN-SPAM All commercial emails to US recipients
EU/UK GDPR Any email to EU/UK residents
California CCPA Emails to California consumers (if business meets thresholds)
Global RFC 8058 Bulk senders (5,000+ emails/day to Gmail/Yahoo/Outlook)

Logic:

  • If compliance_regions includes "US" → Check CAN-SPAM
  • If compliance_regions includes "EU" or "UK" → Check GDPR
  • If compliance_regions includes "CA" → Check CCPA
  • If sending_volume ≥ 5000/day → Check RFC 8058

3. Email Content Analysis

Parse the email content (HTML or plain text):

A. Extract Footer Section

Look for footer indicators:

  • <footer> tag
  • Class names containing "footer", "unsubscribe", "address"
  • Last 20% of email body
  • Horizontal rules (<hr>) often separate footer

Read the full file on GitHub · 495 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 495 lines · 55 tokens per session scan A 9992bd31226f

Subscribe to this mod's changes

email-compliance is an agent published in the GitHub repository AgriciDaniel/claude-email (118 stars, last pushed 3mo ago), licensed MIT. It adds 55 tokens to every session and 3,807 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories