email-deliverability-debugger

用于诊断交易邮件和营销邮件送达问题的工具。检查 SPF/DKIM/DMARC 对齐情况、发送 IP 信誉、邮件内容中的垃圾邮件触发因素以及退信模式。当邮件进入垃圾箱、丢失或意外退信时使用。触发词示例:邮件垃圾箱、送达率、邮件未送达、退信率、垃圾邮件文件夹、邮件信誉、SPF 失败、DKIM 失败、DMARC、交易邮件、SendGrid、Postmark、SES。

仓库最近推送
GitHub Stars
219
Forks
38
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "email-deliverability-debugger":https://skillpi.com/zh/skills/deepskill-e8ca5d5c4adb1bb8f980cdec1dfe9bb5ad6bb09150d3eb969c0eab09744cf8e8。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于诊断交易邮件和营销邮件送达问题的工具。检查 SPF/DKIM/DMARC 对齐情况、发送 IP 信誉、邮件内容中的垃圾邮件触发因素以及退信模式。当邮件进入垃圾箱、丢失或意外退信时使用。触发词示例:邮件垃圾箱、送达率、邮件未送达、退信率、垃圾邮件文件夹、邮件信誉、SPF 失败、DKIM 失败、DMARC、交易邮件、SendGrid、Postmark、SES。

0 下载

介绍来源: third_party · TerminalSkills · 1.0.0 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: email-deliverability-debugger
description: >-
  Diagnoses email deliverability problems for transactional and marketing
  emails. Checks SPF/DKIM/DMARC alignment, sending IP reputation, email
  content spam triggers, and bounce patterns. Use when emails land in spam,
  go missing, or bounce unexpectedly. Trigger words: email spam, deliverability,
  emails not arriving, bounce rate, spam folder, email reputation, SPF fail,
  DKIM fail, DMARC, transactional email, SendGrid, Postmark, SES.
license: Apache-2.0
compatibility: "Requires dig/nslookup for DNS checks; works with any email provider"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: devops
  tags: ["email", "deliverability", "spam", "authentication", "dns"]

Email Deliverability Debugger

Overview

This skill systematically diagnoses why emails fail to reach inboxes by checking the entire delivery chain: DNS authentication (SPF, DKIM, DMARC), sending IP reputation, email content, headers, and provider-specific configuration. It produces actionable fixes ranked by impact.

Instructions

Step 1: Check DNS Authentication Records

# SPF record
dig +short TXT example.com | grep "v=spf1"

# DKIM (check common selectors)
for sel in s1 s2 k1 google default sendgrid; do
  dig +short TXT ${sel}._domainkey.example.com
done

# DMARC
dig +short TXT _dmarc.example.com

Validate each:

  • SPF: Must include all sending services, ≤10 DNS lookups, end with -all (hardfail)
  • DKIM: Each sending service needs its own selector with valid key
  • DMARC: Should have p=quarantine or p=reject; p=none provides no protection

Step 2: Count SPF Lookups

SPF has a hard limit of 10 DNS lookups. Count each include:, a:, mx:, and redirect= as 1 lookup. Nested includes count too.

# Check SPF record and count includes
dig +short TXT example.com | grep spf
# Then recursively check each include
dig +short TXT _spf.google.com
dig +short TXT sendgrid.net

If at or near 10, recommend SPF flattening or removing unused services.

Step 3: Analyze Email Headers (if provided)

Key headers to check:

  • Authentication-Results: Shows SPF, DKIM, DMARC pass/fail
  • X-MS-Exchange-Organization-SCL: Microsoft spam confidence (0-9, >5 = spam)
  • X-Spam-Score: Generic spam score
  • Received-SPF: SPF result with detail
  • DKIM-Signature: Which domain signed and which selector used
  • Return-Path: Must align with From domain for SPF alignment

Step 4: Check IP Reputation

Query major blacklists:

# Reverse IP for DNSBL queries (e.g., 1.2.3.4 becomes 4.3.2.1)
REVERSED="4.3.2.1"
for bl in zen.spamhaus.org b.barracudacentral.org bl.spamcop.net; do
  dig +short ${REVERSED}.${bl}
done
# Non-empty result = listed on that blacklist

Common blacklists to check: Spamhaus, Barracuda, SpamCop, SORBS, CBL, URIBL.

Step 5: Check Content Issues

Flag common spam triggers:

  • Subject line with ALL CAPS or excessive punctuation (!!!)
  • HTML-only email without text/plain alternative
  • High image-to-text ratio
  • URL shorteners (bit.ly, etc.) in email body
  • Missing unsubscribe header (required for bulk, good practice for all)
  • Missing List-Unsubscribe header

Step 6: Produce Fix Report

Organize by priority:

  1. Critical: Authentication failures (SPF/DKIM/DMARC fail)
  2. High: IP blacklisting
  3. Medium: Content issues, missing headers
  4. Low: Best practice improvements

Include exact DNS records to add/modify and provider-specific configuration steps.

Examples

Example 1: Full Deliverability Audit

User prompt:

Our emails to Gmail users are going to spam. Domain: notifications.myapp.com

Agent output:

Deliverability Audit — notifications.myapp.com

❌ CRITICAL: DMARC alignment failure
   From: notifications.myapp.com
   Return-Path: bounces.sendgrid.net (different domain)
   → SPF passes for sendgrid.net but doesn't align with From domain
   Fix: Configure SendGrid authenticated domain so Return-Path uses your domain

⚠  HIGH: DMARC policy too weak
   Current: v=DMARC1; p=none
   → Gmail honors DMARC but p=none means failures aren't acted on
   Fix: v=DMARC1; p=quarantine; rua=mailto:dmarc@myapp.com; pct=100

✅ SPF: Valid (7 lookups)
✅ DKIM: Valid (s1 selector, 2048-bit)
✅ IP reputation: Clean on all major blacklists

Priority fix order:
1. Configure SendGrid domain authentication (fixes Return-Path alignment)
2. Update DMARC to p=quarantine
3. Monitor DMARC reports for 2 weeks before moving to p=reject

Example 2: Specific Bounce Diagnosis

User prompt:

Getting 550 5.7.1 rejections from outlook.com. What's wrong?

Agent output:

550 5.7.1 from Outlook = message rejected due to content or policy

Diagnosis checklist:
1. ✅ SPF passes for your domain
2. ❌ DKIM signature uses d=sendgrid.net, not your domain
   → Microsoft strict mode rejects misaligned DKIM
3. ❌ Your sending IP 149.72.x.x is on Spamhaus PBL
   → This is a policy listing, not spam — means IP is flagged as dynamic/cloud

Fixes:
1. Set up DKIM custom domain in SendGrid (Settings → Sender Authentication)
   Add CNAMEs: s1._domainkey.yourdomain.com → s1.domainkey.u1234.wl.sendgrid.net
2. Request Spamhaus PBL removal at spamhaus.org/pbl/query/
3. After fixes, use mail-tester.com to verify score >8/10 before bulk sending

Guidelines

  • Check authentication FIRST — 80% of deliverability issues are DNS authentication failures
  • Alignment matters more than pass/fail — SPF can pass but still fail DMARC if domains don't align
  • Separate transactional from marketing — different subdomains and IPs protect transactional reputation
  • DMARC reports are gold — always recommend setting up rua aggregate reports
  • Don't recommend p=reject immediately — go none → quarantine → reject over 4-6 weeks while monitoring
  • IP reputation recovers slowly — blacklist removal is quick, but reputation rebuilding takes 2-4 weeks of clean sending
  • Test with real recipients — mail-tester.com, Gmail postmaster tools, and Microsoft SNDS are free and essential

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 解决企业邮件送达的核心痛点,直接影响业务转化和用户体验
  • 提供系统性的诊断流程和具体修复方案,实用价值高
  • 覆盖交易邮件和营销邮件两大高频场景
触发精准95/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • 包含中英文触发词和具体技术术语,便于用户识别
  • 触发条件明确,不易与其他Skill重叠
结构规范90/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行,结构规范
  • 文档组织良好,易于理解和执行
执行可靠88/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制,执行可靠性高
  • 提供了具体的修复步骤和验证方法
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。