CommunityImagegithub.com

iamk3nnyt/claude-skills

QAs a project's transactional and digest emails by rendering every template without DB or network, screenshotting at 600 and 375 px in light, dark and images-off, and checking for placeholder leaks (undefined, NaN, {{…}}), preheader, unsubscribe, alt text, absolute links, Outlook-safe buttons, viewport meta and Gmail's 102 KB clip. Use when email templates change, before sending a campaign, or when asked to check how emails look.

What is claude-skills?

claude-skills is a Claude Code agent skill that qAs a project's transactional and digest emails by rendering every template without DB or network, screenshotting at 600 and 375 px in light, dark and images-off, and checking for placeholder leaks (undefined, NaN, {{…}}), preheader, unsubscribe, alt text, absolute links, Outlook-safe buttons, viewport meta and Gmail's 102 KB clip. Use when email templates change, before sending a campaign, or when asked to check how emails look.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/iamk3nnyt/claude-skills/tree/HEAD/skills/email-qa

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

email-qa

Filter: $ARGUMENTS Renderer: ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/render-html.mjs

1. Get final HTML for every template

  • Gallery script exists? Look in package.json for email-gallery, email:preview or emails. If one writes every template with fixture data, run it and use its output dir.
  • Otherwise write a harness in /tmp/email-qa/render.ts (outside the repo unless the user wants it kept):
    • import each renderer (React Email render(), template-literal functions, MJML);
    • call it with realistic fixtures, including edge cases: a long name, a missing optional field, 0 and 1 and many items, and both locales;
    • write <template>-<case>.html;
    • stub anything that reads env, DB or network. Run it with the repo's tsx.
  • Always QA the final generated HTML, never the JSX.

2. Render + static checks

node ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/render-html.mjs /tmp/email-qa/out/*.html --out /tmp/email-qa/shots

For each file this produces @600/@375 light and dark, plus @600-noimg, and render.json with static issues. Read the sheets for every template.

3. Checklist (beyond what the script flags)

  • Placeholders: none of undefined, NaN, null, [object Object], {{…}}, Invalid Date, empty kr, 0 st where it should be hidden.
  • Preheader: present, meaningful, and not a repeat of the subject. Padded so body text doesn't leak into the inbox preview.
  • Unsubscribe: required for digests and marketing (plus List-Unsubscribe + List-Unsubscribe-Post headers in the send code). Transactional mail is exempt; say which kind each template is.
  • Images off: the message still makes sense, there's alt text on every meaningful image, alt="" on spacers, and the CTA is live text, not an image.
  • Dark mode: logos have a transparent or dark-safe variant, there's no dark text on a now-dark background, and the brand colour still passes 3:1. Gmail/Outlook forced inversion can't be emulated, so flag hard-coded #000 text on transparent backgrounds as a risk.
  • Outlook desktop: table layout, no flex/grid, VML or mso padding fallback for buttons, widths in width= attributes, no margin on block elements for spacing.
  • Links: absolute https://, UTM where the project uses them, no localhost or preview hosts, and no tracking on unsubscribe.
  • Copy: right locale throughout (run copy-check rules on the strings), sender name, and reply-to (matches what the project expects).
  • CTA visible without scrolling at 375 and not clipped. The total stays under ~102 KB.

Exit criteria

  • Every template is rendered in all variants and the sheets have been read.
  • No placeholder leaks or relative links, and the viewport meta is present.
  • Each remaining issue is labelled bug (fixed) or risk (reported).
  • A short summary to the user, plus the shots dir.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

iamk3nnyt/claude-skills

Turns a feature idea into a one-page spec covering problem, audience, MVP scope, non-goals, numbered Given/When/Then acceptance criteria, affected routes, data and emails, and open questions. Use when the user says "brief", "spec this", "scope this" or "what would it take", or before starting a feature whose scope is unclear.

iamk3nnyt/claude-skills

Checks UI copy across locales by comparing key parity between next-intl message catalogs and in-code sv/en COPY objects, finding placeholder and array mismatches and words from the other language leaking in (the "och" in English bug), then manually reviewing claims against terms and pricing and the project's banned phrases. Use after editing copy or translations, before shipping a page with new text, or when asked to proofread or check translations.

iamk3nnyt/claude-skills

Applies an agreed visual direction to a page or component by reusing existing components first, then verifies every width and dark mode with the headless-Chrome audit plus a before/after pixel diff, and reviews against Refactoring UI, Nielsen and WCAG 2.2. Use when asked to redesign, restyle, polish or "make it look like the reference", after design-ref or when the direction is already clear.

iamk3nnyt/claude-skills

Extracts the visual system from a reference site or pasted HTML (colour roles, type scale, spacing scale, radii, shadows, button/card/eyebrow anatomy, tone) and maps it onto the current project's existing tokens as a short token table. Use when the user shares a reference ("make it look like <site>", "in this style", a URL or HTML paste) before a redesign.

Related Skills