← ClaudeAtlas

wukong-email-template-generatorlisted

Use when creating or designing a WuKong/悟空 HTML email, EDM, campaign email, newsletter, notification email, or CRM email that must use the standard WuKong email shell.
dengshangli/dsl-skills · ★ 0 · AI & Automation · score 73
Install: claude install-skill dengshangli/dsl-skills
# 悟空邮件模板生成器 ## Mandatory execution contract For every email request, MUST execute `scripts/generate_email.py`. Writing or copying a complete HTML file directly is not a valid use of this Skill. Do not report completion or hand off an HTML file unless the command succeeds and prints both: ```text GENERATOR_EXECUTED=YES OUTPUT=<absolute-path> ``` The generated file at `OUTPUT` is the only deliverable. Exactly one new `.html` file may remain after the task. A body-fragment file is temporary work, never a second HTML deliverable. ## Required procedure 1. Design only the requested email body as an HTML fragment. Use email-compatible markup, tables where layout requires them, inline CSS, absolute image URLs, and the user's required template variables. When creating new variables, use Velocity template syntax by default as defined below. 2. Create the intermediate body fragment inside a dedicated system temporary directory, outside the user's open directory, and give it a `.txt` suffix such as `body-fragment.txt`. Never save the body fragment with an `.html` suffix. Do not include `<html>`, `<head>`, or `<body>` wrappers. 3. Resolve the directory containing this `SKILL.md`, then change to the user's current open directory. Run the bundled generator from that resolved skill directory: ```bash python3 <skill-directory>/scripts/generate_email.py \ --body-file <system-temp-dir>/body-fragment.txt ``` Never assume the author's home directory or a fixed installatio