Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

sales-mailgun销售邮枪

Agent Skill

sales-mailgun 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

939

周安装

38

GitHub Stars

13

下载量

295
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sales-mailgun(销售邮枪)
来源仓库:https://github.com/sales-skills/sales
仓库路径:skills/sales-mailgun
安装命令:
npx skills add https://github.com/sales-skills/sales --skill sales-mailgun
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sales-skills/sales --skill sales-mailgun

简介

sales-mailgun 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于基于关键词或任务场景的信息检索需求。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 安装前应评估权限范围、维护状态及潜在的网络或执行操作。
  • 可查阅原始 README 进一步确认功能细节。

SKILL.md

Mailgun Platform Help

Help the user with Mailgun (Sinch) platform questions — from sending transactional email via the REST API and SMTP relay through Inbound Email Routing, Templates, Mailing Lists, Domains, Routes, Webhooks, Metrics, and Mailgun Optimize. Mailgun is a developer-first transactional email API service founded in 2010 by Ev Kontsevoy and Taylor Wakefield, acquired by Rackspace (2012), Thoma Bravo (2019), and Sinch (2021). Josh Odom is President of the Sinch Developer & Email unit.

Step 1 — Gather context

If references/learnings.md exists, read it first for accumulated knowledge.

Ask the user:

  1. What area of Mailgun do you need help with?

- A) Email API — sending transactional email via REST API (POST /v3/{domain}/messages) or SMTP relay - B) SMTP relay — traditional SMTP integration (ports 25/465/587) - C) Inbound Email Routing — receiving and parsing incoming email with custom rules (regex/JSONPath), webhook delivery with attachments - D) Templates — account-level and domain-level stored templates with Handlebars-like variables - E) Mailing Lists — programmatic list management, member CRUD - F) Domains API — domain management, DNS verification, DKIM/SPF setup - G) Routes — forwarding inbound email to HTTP endpoints or email addresses, or storing for 3 days - H) Webhooks — event notifications (accepted, delivered, opened, clicked, permanent_fail, temporary_fail, complained, unsubscribed) - I) Metrics API — analytics on deliverability, engagement, and sending health - J) Mailgun Optimize — inbox placement seed testing, email validation (single + bulk CSV), sender reputation monitoring, blocklist alerts - K) Tags — categorizing and tracking sends - L) Account / Billing — plans, pricing, API keys, custom message limits - M) Something else — describe it

  1. What's your role?

- A) Developer / engineer - B) DevOps / infrastructure - C) Admin / account owner - D) Founder / solo operator - E) Agency / freelancer - F) Other

  1. What are you trying to accomplish? (describe your specific goal or question)

If the user's request already provides most of this context, skip directly to the relevant step. Lead with your best-effort answer using reasonable assumptions (stated explicitly), then ask only the most critical 1-2 clarifying questions at the end — don't gate your response behind gathering complete context.

Note: If the user needs a specialized skill, route them there with a brief explanation of why that skill is a better fit.

Step 2 — Route or answer directly

If the request maps to a specialized skill, route:

  • General email deliverability strategy / best practices -> /sales-deliverability
  • Cross-platform email marketing strategy -> /sales-email-marketing
  • Email open/click tracking strategy -> /sales-email-tracking
  • SendGrid-specific questions -> /sales-sendgrid
  • Postmark-specific questions -> /sales-postmark
  • Connecting Mailgun to other tools via Zapier or middleware -> /sales-integration
  • Funnel strategy / conversion optimization -> /sales-funnel

Otherwise, answer directly from platform knowledge using the reference below.

Step 3 — Mailgun platform reference

Read references/platform-guide.md for detailed module documentation, pricing, integrations, and data model.

*You no longer need the platform guide details — focus on the user's specific situation.*

Step 4 — Actionable guidance

Based on the user's specific question:

  1. Sending transactional email via the API:

1. Sign up for a Mailgun account and copy your API key from the dashboard 2. Add and verify a sending domain — add the required DNS records (MX, SPF TXT with include:mailgun.org, DKIM CNAME/TXT) 3. Wait for DNS propagation and verify the domain in the Mailgun UI or via GET /v3/domains/{domain} 4. Send your first email: POST /v3/{domain}/messages with Basic Auth (api:YOUR_API_KEY), passing from, to, subject, and text/html fields 5. Optionally create a Domain Sending Key for production — restricts the key to /messages endpoints only for security 6. Add tags (o:tag) and custom variables (v:my-var) for tracking and analytics 7. Monitor delivery via the Events API (GET /v3/{domain}/events) or set up webhooks for real-time notifications

  1. Setting up inbound email routing:

1. Add an MX record for your receiving domain pointing to Mailgun's inbound servers 2. Verify the domain in the Mailgun UI 3. Create a route via the API (POST /v3/routes) or UI — define a match expression and action 4. Match expression examples: match_recipient("support@yourdomain.com"), match_header("subject", ".*order.*"), catch_all() 5. Action examples: forward("https://yourapp.com/webhook"), forward("team@company.com"), store(notify="https://yourapp.com/notify") 6. Implement your webhook endpoint to receive the parsed email as multipart/form-data (sender, subject, body, attachments) 7. Use custom parsing rules with regex or JSONPath for advanced routing logic

  1. Setting up domain-level templates:

1. Create a template: POST /v3/{domain}/templates with name, description, and initial version content 2. Use Handlebars-like variables in the template: {{first_name}}, {{order_number}}, {{items}} 3. Create additional versions for A/B testing or iteration 4. Send using the template: include template parameter with the template name and h:X-Mailgun-Variables with the JSON data object 5. Manage templates programmatically — list, update, delete via the Templates API

  1. Configuring webhooks for delivery tracking:

1. Create a webhook: POST /v3/domains/{domain}/webhooks with the event type (e.g., delivered, opened, permanent_fail) and your endpoint URL 2. Implement your webhook endpoint to receive JSON payloads 3. Verify webhook signatures using your API key — Mailgun signs every webhook for security 4. Handle batch delivery — your endpoint may receive multiple events in a single POST 5. Return a 200 status code quickly — move heavy processing to a background queue 6. Set up webhooks for all 8 event types for complete visibility: accepted, delivered, opened, clicked, permanent_fail, temporary_fail, complained, unsubscribed

  1. Using Mailgun Optimize for deliverability:

1. Subscribe to an Optimize add-on plan (Pilot at $49/mo or Starter at $99/mo) — this is separate from your Send plan 2. Run inbox placement tests: send test emails to Mailgun's seed list and see provider-by-provider inbox vs spam results 3. Validate email addresses before sending: GET /v4/address/validate?address=user@example.com — returns risk level (deliverable, undeliverable, risky, unknown) 4. Bulk validate via CSV upload for list cleaning 5. Monitor sender reputation and blocklist status in the Optimize dashboard 6. Set up blocklist alerts to get notified immediately when your IP or domain is listed

Gotchas

*Best-effort from research — review these, especially items about plan-gated features and integration gotchas that may be outdated.*
  1. US vs EU regions require the correct base URL, and you cannot switch after domain creation. US domains use https://api.mailgun.net/v3/, EU domains use https://api.eu.mailgun.net/v3/. Once a domain is created in a region, it cannot be moved to the other. If you need EU data residency for GDPR compliance, create the domain in the EU region from the start. Using the wrong base URL will return authentication errors that can be confusing to debug.
  2. Mailgun Optimize is a SEPARATE paid add-on ($49+/mo), not included in any Send plan. Inbox placement seed testing, email validation, sender reputation monitoring, and blocklist alerts all require an Optimize subscription on top of your Send plan. Do not assume these features come with Foundation or Scale plans — they do not.
  3. Domain Sending Keys can ONLY send messages — they cannot manage domains, routes, or webhooks. If your application needs to create routes, manage domains, or configure webhooks, you must use your main API key. Domain Sending Keys are restricted to /messages endpoints for security isolation. Using a Domain Sending Key for other API calls will return 401 errors.
  4. Dedicated IPs cost $59/mo each and need warmup — do not assume they are included. Dedicated IPs are an add-on available on Scale and Enterprise plans. New dedicated IPs start with no reputation and must be warmed up gradually (start with low volume and increase over 2-4 weeks). Sending high volume on a cold dedicated IP will result in poor deliverability. For lower volumes, Mailgun's shared IP pools often deliver better results.
  5. The Free plan is 100 emails per DAY (not month) — very limited for testing. This is significantly more restrictive than it sounds for development and testing workflows. If you need to test bulk sending, webhook handling, or template rendering at any meaningful scale, you will need at least the Foundation plan ($35/mo for 50,000/mo). The daily limit resets at midnight UTC.
  • Self-improving: If you discover something not covered here, append it to references/learnings.md with today's date.

Step 5 — Related skills

  • /sales-deliverability — Cross-platform email deliverability — SPF/DKIM/DMARC, warmup, inbox placement
  • /sales-email-marketing — Opt-in email marketing strategy across tools
  • /sales-email-tracking — Email engagement tracking strategy
  • /sales-integration — Connect Mailgun to CRM, Slack, or other tools via webhooks/Zapier
  • /sales-sendgrid — SendGrid platform help — primary Mailgun competitor
  • /sales-postmark — Postmark platform help — primary Mailgun competitor
  • /sales-customerio — Customer.io platform help — uses Mailgun-like APIs for transactional
  • /sales-do — Not sure which skill to use? The router matches any sales objective to the right skill. Install: npx skills add sales-skills/sales --skill sales-do

Examples

Example 1: Sending transactional email via the REST API in a Node.js app

User says: "I need to send password reset and order confirmation emails from my Node.js app using Mailgun." Skill does:

  1. Guides creating a Mailgun account and copying the API key from the dashboard
  2. Walks through adding and verifying a sending domain — adding MX, SPF (include:mailgun.org), and DKIM DNS records
  3. Shows how to use the mailgun.js SDK: initialize with API key and domain, then call mg.messages.create() with from, to, subject, html/text
  4. Creates two domain-level templates with Handlebars variables — one for password reset ({{reset_url}}, {{expiry_minutes}}) and one for order confirmation ({{order_number}}, {{items}}, {{total}})
  5. Recommends creating a Domain Sending Key for production to limit the key's scope to sending only
  6. Sets up webhooks for delivered, permanent_fail, and complained events to monitor delivery health and trigger alerts Result: User has production-ready transactional email with templates, scoped API keys, proper DNS authentication, and delivery monitoring

Example 2: Setting up inbound email routing for a support system

User says: "We want to receive customer reply emails at support@ourdomain.com and forward them to our ticketing webhook." Skill does:

  1. Guides adding an MX record for ourdomain.com pointing to Mailgun's inbound servers
  2. Verifies the domain in the Mailgun UI
  3. Creates a route via the API: match_recipient("support@ourdomain.com") with action forward("https://app.ourdomain.com/api/tickets/inbound")
  4. Explains the webhook payload format — sender, subject, stripped-text (clean body without quoted reply), attachments as file uploads
  5. Recommends a fallback route with catch_all() to store unmatched inbound email for 3 days (store(notify="https://app.ourdomain.com/api/catchall")) so nothing is silently dropped
  6. Shows how to use custom parsing rules with regex to extract ticket IDs from subject lines for routing to existing tickets Result: User has inbound email routing that forwards customer replies to their ticketing system with a catch-all safety net

Example 3: Improving deliverability with Mailgun Optimize

User says: "Our Mailgun emails are landing in spam at Gmail. How do we diagnose and fix this?" Skill does:

  1. Checks if the user has Mailgun Optimize — if not, recommends the Pilot plan ($49/mo) for inbox placement testing
  2. Runs an inbox placement seed test to confirm where emails land across Gmail, Outlook, Yahoo, and other providers
  3. Reviews domain DNS authentication — verifies SPF, DKIM, and DMARC records are properly configured via the Domains API
  4. Checks sender reputation in the Optimize dashboard for blocklist appearances and reputation scores
  5. Validates the sending list via bulk CSV upload to remove invalid, disposable, and risky addresses (reducing bounce rates by up to 21%)
  6. Reviews the complained webhook events to identify content or recipients generating spam complaints Result: User identifies the root cause of spam placement (e.g., missing DMARC, blocklisted IP, high bounce rate) and has a concrete remediation plan with ongoing monitoring

Troubleshooting

Emails rejected with 401 Unauthorized when using Domain Sending Key

Symptom: API calls return 401 Unauthorized for endpoints like GET /v3/domains or POST /v3/routes, but sending email works fine Cause: Domain Sending Keys are restricted to /messages endpoints only. They cannot be used to manage domains, routes, webhooks, mailing lists, or any other Mailgun resource. This is by design for security isolation. Solution: Use your main API key (found in the Mailgun dashboard under API Security) for non-sending operations. Reserve Domain Sending Keys for production sending code only. If you need to manage resources programmatically, store the main API key securely in environment variables and use it for admin operations in a separate service or deployment pipeline.

Webhook events not arriving at endpoint

Symptom: You configured webhooks in Mailgun but your endpoint is not receiving any events — no requests appear in your server logs Cause: Common causes include: (1) the webhook URL is not publicly accessible (localhost or behind a firewall), (2) the endpoint is returning non-2xx status codes causing Mailgun to back off after retries, (3) the webhook was configured for the wrong domain, or (4) the events are not being generated (e.g., open/click tracking is not enabled). Solution: Verify your endpoint is publicly accessible — use a tool like ngrok for local development. Check the Mailgun dashboard under Sending > Webhooks for delivery status and recent attempts. Ensure your endpoint returns a 200 status code quickly (within a few seconds). Confirm the webhook is configured for the correct domain. For open/click events, verify tracking is enabled in domain settings. Test with a simple endpoint (e.g., webhook.site) to isolate whether the issue is with Mailgun's delivery or your endpoint's handling.

Emails sending from US region but domain is in EU (or vice versa)

Symptom: API calls return 404 or authentication errors when trying to send email, even though the domain is verified and the API key is correct Cause: The domain was created in one region (US or EU) but the API calls are being made to the other region's base URL. US domains must use https://api.mailgun.net/v3/, EU domains must use https://api.eu.mailgun.net/v3/. Domains cannot be moved between regions after creation. Solution: Check which region your domain is in via the Mailgun dashboard (look for the region indicator on the domain page). Update your API base URL to match the domain's region. If you need to switch regions (e.g., for GDPR compliance), you must delete the domain and recreate it in the correct region — then re-verify DNS records. Update all application configuration, environment variables, and SDK initialization to use the correct regional URL.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

40.36%
按下载量换算119

Claude

28.84%
按下载量换算85

Cursor

17.76%
按下载量换算52

Gemini CLI

9.97%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills