# Email Dunning Setup

> Audits payment-failed and dunning email flows — Stripe built-in emails vs custom webhook emails. Use when the user asks "payment failed email", "dunning emails", "billing emails setup", or "notify users when card fails".

- **Type:** Skill
- **Install:** `agentstack add skill-appeeky-stripe-skills-email-dunning-setup`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [appeeky](https://agentstack.voostack.com/s/appeeky)
- **Installs:** 0
- **Category:** [Communication](https://agentstack.voostack.com/c/communication)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [appeeky](https://github.com/appeeky)
- **Source:** https://github.com/appeeky/stripe-skills/tree/main/skills/email-dunning-setup
- **Website:** https://www.appeeky.com/

## Install

```sh
agentstack add skill-appeeky-stripe-skills-email-dunning-setup
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Email & Dunning Setup

## Two Layers

### 1. Stripe-native (Dashboard)

Settings → Billing → **Customer emails**:
- Failed payment
- Expiring card
- Trial ending
- Receipts

Verify toggles ON for production.

### 2. Custom (your app)

Webhook `invoice.payment_failed` → send email with Portal link.

## Codebase Audit

Grep: `payment_failed`, `payment-failed`, `invoice.payment_failed`, `sendPaymentFailed`, Resend/SendGrid/Postmark.

## MCP + Code Workflow

1. Confirm webhook handler exists (`webhook-reliability`)
2. Sample past_due subs (`past-due-dunning`) — were emails sent? (logs/DB)
3. Customer Portal URL in email template?

## Output Template

```
Dunning Email Audit

Stripe emails: [on/off per type]
Custom email on payment_failed: yes/no
Portal link in email: yes/no
Gap: [description]

Recommended sequence:
Day 0 fail → Stripe retry
Day 3 → custom email + portal
Day 7 → final notice
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [appeeky](https://github.com/appeeky)
- **Source:** [appeeky/stripe-skills](https://github.com/appeeky/stripe-skills)
- **License:** MIT
- **Homepage:** https://www.appeeky.com/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-appeeky-stripe-skills-email-dunning-setup
- Seller: https://agentstack.voostack.com/s/appeeky
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
