email-flows
Skill1 starsChanged 24 days agoMITView on GitHub
Maps and designs the product's transactional and lifecycle email: the flow map, triggers, templates (React Email or MJML), copy, and the deliverability checklist (SPF, DKIM, DMARC, unsubscribe). Use when adding email to the product, planning onboarding or re-engagement sequences, or fixing deliverability. Never sends email.
In this repository100 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- add-ai-featureSkill
- add-authSkill
- add-cmsSkill
- add-i18nSkill
- add-paymentsSkill
- add-realtimeSkill
- adoptSkill
- analytics-planSkill
- api-contractSkill
- architecture-decisionSkill
- architecture-reviewSkill
- brainstormSkill
- brand-identitySkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- ci-setupSkill
- client-demoSkill
- competitor-auditSkill
- consistency-checkSkill
- content-calendarSkill
- content-strategySkill
- create-architectureSkill
- create-epicsSkill
- create-storiesSkill
- cro-reviewSkill
- data-modelSkill
- db-migrationSkill
- dependency-auditSkill
- deploy-setupSkill
- design-reviewSkill
- design-systemSkill
- design-tokensSkill
- dev-storySkill
- e2eSkill
- estimateSkill
- experimentSkill
- feature-specSkill
- funnel-reviewSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- incidentSkill
- install-depsSkill
- launch-checklistSkill
- load-testSkill
- market-researchSkill
- milestone-reviewSkill
- observability-setupSkill
- onboardSkill
- perf-auditSkill
- personasSkill
- postmortemSkill
- privacy-auditSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- refactorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
If stack.email is unset, ask: Resend (Recommended for TS stacks), Postmark (best transactional deliverability), SendGrid, Amazon SES …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Email Flows
Produces docs/content/email-flows.md (template
.claude/docs/templates/email-flow.md) and, on approval, implementation
stories. It never sends to real recipients: previews and tests go to an
inbox capture (Mailpit, the provider's sandbox or test mode).
Inputs
docs/product/prd.md,docs/specs/features/*.md(events that trigger email)production/analytics/tracking-plan.md(behavioural triggers for lifecycle email)docs/design/brand-guide.md(voice, colours, logo)project.yaml:stack.email,stack.auth,stack.payments,privacy.regions,i18n.locales
Phases
Phase 1: Provider
If stack.email is unset, ask: Resend (Recommended for TS stacks), Postmark (best transactional deliverability),
SendGrid, Amazon SES (cheapest at volume). Recording it in project.yaml needs a yes.
Phase 2: Flow map
Spawn email-specialist to draft the map; in parallel growth-lead for
lifecycle goals. Two streams, kept separate (different sending subdomains or
message streams):
| Stream | Typical emails | Trigger |
| Transactional | verify email, magic link/OTP, password reset, receipt/invoice, payment failed, plan changed, security alert, export ready | system event, sent from a queue with retries |
| Lifecycle | welcome, activation nudge (no activation event after 24 h), feature education, trial ending, win-back | behaviour from the tracking plan, with frequency caps |
For each email: trigger, audience, delay, subject + preview text, goal, CTA, suppression rules (e.g. stop the nudge once activated).
Phase 3: Templates and copy
copywriter drafts subject lines and body copy in the brand voice. Templates
use React Email (TS stacks) or MJML: shared layout component, plain-text
alternative, dark-mode-safe colours, 600 px max width, alt text on images,
localised strings when i18n.locales has more than one.
Phase 4: Deliverability and compliance checklist
- SPF, DKIM and DMARC (
p=none→quarantineonce reports are clean) on a dedicated sending subdomain - Bounce and complaint webhooks handled (suppress hard bounces)
- One-click
List-Unsubscribe+List-Unsubscribe-Poston lifecycle/marketing mail - Consent recorded for marketing email under
privacy.regions; physical address where required (CAN-SPAM) - Absolute links; UTM tags on lifecycle links only
- Rate limits on user-triggered emails (reset, magic link)
Spawn privacy-compliance-specialist to check the consent column.
Phase 5: Write
Show the map and checklist; ask "May I write this to docs/content/email-flows.md?"
Then offer implementation stories (provider setup, layout, one story per
email group, webhook handling, inbox-capture setup for dev) under production/stories/.
Output
docs/content/email-flows.md; optional stories.
Next step
/dev-story for the email stories; DNS records are added by the user at their DNS provider.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

