kai-email-system
Installation
SKILL.md
Build a complete email system for a product — from lifecycle mapping through batch production with quality gates. All emails target Loops (lifecycle + transactional).
Phase 0: Load Product Context (ALL /kai skills start here)
Check if MARKETING.md exists in the project root (same directory as CLAUDE.md, README.md, package.json).
If it exists: Read it. This is the product bible — it has everything you need. Skip to Phase 2.
If it does NOT exist: Auto-explore to create it. Do NOT ask the user what the product is. Discover it:
- Read CLAUDE.md, README.md, PROJECT.md, package.json, any project description files in the project root and additional working directories
- Search for existing email templates, Loops config, or email-related code (grep for "loops", "resend", "email", "transactional")
- Read landing pages, marketing copy, or product descriptions to understand the value prop
- Check for user flows, auth systems, billing integrations, database schemas, API routes
- Look at existing content, social profiles, or marketing materials
Then create MARKETING.md in the project root (next to CLAUDE.md) with this structure: