agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/email-flows/SKILL.md

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.

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
  1. Very specific:

    If stack.email is unset, ask: Resend (Recommended for TS stacks), Postmark (best transactional deliverability), SendGrid, Amazon SES …

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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):

StreamTypical emailsTrigger
Transactionalverify email, magic link/OTP, password reset, receipt/invoice, payment failed, plan changed, security alert, export readysystem event, sent from a queue with retries
Lifecyclewelcome, activation nudge (no activation event after 24 h), feature education, trial ending, win-backbehaviour 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 → quarantine once reports are clean) on a dedicated sending subdomain
  • Bounce and complaint webhooks handled (suppress hard bounces)
  • One-click List-Unsubscribe + List-Unsubscribe-Post on 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.