Email review

From shenxingy/Clade · View interactive version

Email review is an AI agent skill from the GitHub repository shenxingy/Clade. Pre-send email quality review and scoring across 5 dimensions (subject line, copy quality, technical/HTML, deliverability, compliance). Analyzes subject lines, body copy, HTML structure, spam triggers, and CAN-SPAM compliance. Scores 0-100 with detailed recommendations for improvement. Use when user

How to use this skill

Skill file

Email Review Sub-Skill

Purpose

Reviews email content before sending and provides a comprehensive quality score (0-100) across 5 weighted dimensions. Identifies critical issues, suggests improvements, and provides a rewritten version for low-scoring emails.

When to Activate

Input Formats

Accept email content in any of these formats:

  1. Pasted text - Subject line + body in conversation
  2. File path - Path to HTML email file
  3. Gmail draft ID - Fetch via gmail_get_draft MCP tool
  4. Raw HTML - HTML email source code

Scoring Framework

Overall Score Calculation

Total score = weighted sum of 5 categories:

| Category | Weight | Focus |

|----------|--------|-------|

| Subject Line | 25% | Length, power words, spam triggers, personalization |

| Copy Quality | 25% | Word count, CTA clarity, framework structure, readability |

| Technical/HTML | 20% | Size, responsiveness, dark mode, alt text, preheader |

| Deliverability | 15% | Spam signals, link count, sender reputation factors |

| Compliance | 15% | CAN-SPAM, unsubscribe, physical address, RFC 8058 |


1. Subject Line Scoring (25% weight)

Base Score: 0-100, then weighted at 25%

Length Check (0-25 points)

Spam Trigger Detection (-5 points each)

Penalize for each occurrence:

Power Words (+5 points each, max +15)

Bonus for strategic use of:

Personalization (+10 points)

Emoji Usage (+5 or -5)


2. Copy Quality Scoring (25% weight)

Base Score: 0-100, then weighted at 25%

Word Count (0-20 points)

CTA Count (0-25 points)

CTA Clarity (0-15 points)

Score based on:

Framework Structure (0-15 points)

Check if email follows proven framework:

Readability (0-15 points)

Personalization Beyond Name (0-10 points)


3. Technical/HTML Scoring (20% weight)

Base Score: 100, deduct points for violations

Total Size (-20 if fail)

Text-to-Image Ratio (-15 if fail)

Responsive Design (-10 if fail)

Check for:

Dark Mode Support (-5 if fail)

Check for:

Alt Text on Images (-5 per missing)

Table-Based Layout (-5 if fail)

Font Safety (-5 if fail)

CTA Button Size (-5 if fail)

Plain-Text Version (-10 if fail)

Preheader Text (-5 if missing)


4. Deliverability Signals (15% weight)

Base Score: 100, deduct points for red flags

Spam Word Density (-5 per word)

Count occurrences of spam triggers in body:

Link Count (warn at 5+)

Image-Only Email (-20 if fail)

Unsubscribe Link (-25 if missing)

Sender Name (-10 if generic)

Link Shorteners (-10 if detected)


5. Compliance Scoring (15% weight)

Base Score: 100, deduct points for violations

Physical Address (-20 if missing)

Unsubscribe Mechanism (-25 if missing)

Honest Subject Line (-15 if misleading)

RFC 8058 Headers (-10 if missing for bulk)

For bulk/marketing emails, check for:

List-Unsubscribe: <mailto:unsub@example.com>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

Sender Identification (-10 if missing)


Score Interpretation

| Score | Rating | Status | Recommendation |

|-------|--------|--------|----------------|

| 90-100 | Excellent | ✅ Ready to send | Minor tweaks optional |

| 75-89 | Good | ⚠️ Review suggested | Address medium-priority issues |

| 60-74 | Fair | ⚠️ Fix before sending | Resolve high-priority issues |

| 40-59 | Poor | ❌ Needs rework | Significant changes required |

| 0-39 | Critical | ❌ DO NOT SEND | Major compliance/deliverability issues |


Output Format

Structure the review report as:

  1. Header: ## Email Quality Review with overall score, rating, status
  2. Score table: 5 categories with raw score, weight, and weighted score
  3. Issues Found: Grouped by severity (Critical/High/Medium/Low) with specific fixes
  4. Detailed Breakdown: Per-category analysis (subject length/triggers/power words, word count/CTA/framework, HTML size/responsive/dark mode, spam words/links, address/unsubscribe/RFC 8058)
  5. Improved Version (if score < 75): Rewritten subject line, copy fix recommendations, HTML fixes

Use status badges: ✅ Ready to send (90+), ⚠️ Review suggested (75-89), ⚠️ Fix before sending (60-74), ❌ Needs rework (40-59), ❌ DO NOT SEND (0-39).


Workflow

Step 1: Intake

Identify input format and extract:

Step 2: Run Analysis Scripts (if available)

Check for and execute:

# Subject line scoring
python scripts/score_subject_line.py --subject "[subject]"

# HTML email analysis
python scripts/analyze_email_html.py --file [path]

Step 3: Manual Scoring

For each category:

  1. Start with base score
  2. Apply positive adjustments
  3. Apply penalties
  4. Calculate weighted score

Step 4: Reference Checks

Consult knowledge files for edge cases:

Step 5: Generate Report

Format output per template above, ensuring:

Step 6: User Confirmation

Ask user if they want to:


Quality Gates

Hard Rules (Automatic Failure)

These issues result in "DO NOT SEND" status regardless of total score:

  1. Missing unsubscribe link (for marketing emails)
  2. Missing physical address (CAN-SPAM violation)
  3. Email size > 102 KB (Gmail will clip)
  4. Image-only email (no text content)
  5. Deceptive subject line (FTC violation)

Edge Cases

Gmail Drafts

If user provides draft ID:

  1. Use gmail_get_draft MCP tool to fetch
  2. Extract subject from payload.headers
  3. Extract HTML body from payload.parts (mimeType = text/html)
  4. Proceed with normal review

Plain-Text Emails

If email has no HTML:

  1. Skip technical/HTML scoring (default to 80/100)
  2. Focus on copy quality, subject line, compliance
  3. Adjust weighting: Subject 30%, Copy 35%, Deliverability 20%, Compliance 15%

Non-English Emails

  1. Note language in report
  2. Skip spam word detection (English-specific)
  3. Focus on structural/technical issues
  4. Provide caveats about readability scoring

Transactional Emails

If email is transactional (receipts, confirmations):

  1. Relax compliance rules (unsubscribe not required)
  2. Focus on technical delivery and clarity
  3. Note in report: "Transactional email - relaxed marketing rules"

Tools Integration

Available Scripts

Run these scripts from the scripts/ directory:

score_subject_line.py

analyze_email_html.py

MCP Tools

gmail_get_draft

gmail_send_message


Examples

High-scoring email (92/100): Subject "New guide: 5 proven SEO tactics for 2026" -- 8 words, power word, no spam triggers, 280 words, 1 CTA, responsive HTML, all compliance elements present. Status: Ready to send.

Low-scoring email (23/100): Subject "FREE MONEY!!! ACT NOW GUARANTEED WINNER!!!" -- all caps, 4 spam triggers, 50 words, 5 CTAs, missing unsubscribe and address. Status: DO NOT SEND (CAN-SPAM violations).


Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.