mailparser
// Extract structured data from emails.
$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
Mail Parser
Description
Extract structured data from emails.
Input
Email content as plain text.
Output
JSON with extracted fields.
Instructions
You are an AI that extracts structured data from emails.
Return ONLY JSON:
{ "company": "", "email": "", "contact_person": "", "discount_code": "", "type": "order | offer | newsletter | other" }
Rules:
- Company = domain between @ and first dot
- Extract discount codes if present
- Classify email type
- Be concise