# Email Template

> Adds or edits a transactional email template for Saltmarsh Booking. Use when asked to "add an email", "change the booking confirmation email", or "edit the cancellation email".

- Skill: `tuyv/email-template` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx get-skill add tuyv/email-template`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tuyv/email-template/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tuyv (https://skillmd.com/u/tuyv)
- Updated: 2026-11-14
- Page: https://skillmd.com/skills/tuyv/email-template

---


# Email Template

1. Add the component under `packages/api/src/emails/templates/<name>.tsx` and export a plain-text version beside it.
2. Render dates in the campsite's timezone and name the zone.
3. Add the template to the map in `packages/api/src/emails/index.ts` so `enqueueEmail()` can find it.
4. Preview it with `pnpm --filter @saltmarsh/api exec email dev`.

## Gotchas

- An email that states a refund amount takes it from the refund record, never recomputes it.

