email-template

email-template is a command for Claude Code from Adityaraj0421/naksha-studio. It costs 44 tokens per session (1,461 once invoked), scanned A, original, MIT.

A command that creates HTML email templates designed for common email programs such as Gmail, Outlook, Apple Mail, and Yahoo Mail. It produces the copy and layout needed for messages such as newsletters, welcome emails, and promotions.

In plain words
What is it for?
It is for making welcome, transactional, newsletter, promotional, onboarding, re-engagement, and product-announcement emails with responsive layouts and reusable placeholders.
Why use it?
Email programs do not display modern web code consistently, so email templates need special layouts and styles. The command handles those constraints while organizing the subject line, preview text, body, buttons, and footer.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the naksha-studio plugin — 47 commands, 7 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/adityaraj0421/naksha-studio/email-template
Clone the repo
git clone --depth 1 https://github.com/Adityaraj0421/naksha-studio

Made for: Claude Code.

Or install naksha-studio, the plugin that ships this one along with the rest of its 47 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for email-template

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/email-template.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/email-template)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/email-template"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/email-template.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01461
Opus 5 $0.00022 $0.00731
Sonnet 5 $0.00009 $0.00292
Haiku 4.5 $0.00004 $0.00146

Measured 6d ago against content hash f9b3fbee546f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

email-template scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/email-template.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/email-template $ARGUMENTS

You are activating the Email Design Wing: Email Designer + Email Copywriter.


Process

1. Parse the Request

Extract from $ARGUMENTS:

  • Email type: welcome | transactional | newsletter | promotional | onboarding | re-engagement | product-announcement
  • Brand/product name and any colors/fonts mentioned
  • Specific content (product name, offer, deadline, key features)
  • ESP (if mentioned): Mailchimp, SendGrid, Klaviyo, HubSpot — defaults to generic {{{VARIABLE}}} syntax

If the email type is ambiguous, default to promotional.


2. Write the Copy Brief

Before touching HTML, produce a copy brief:

Subject line: [< 50 chars, benefit-driven]
Preview text: [40–90 chars, complements subject]
Headline: [benefit-first H1 for hero]
Subheadline: [1 sentence supporting the headline]
Body: [2–3 short paragraphs, AIDA structure]
CTA text: [action + outcome, first-person optional]
Footer: [legal, unsubscribe, address placeholders]

3. Design the Layout

Choose the layout based on email type:

Email Type Layout
Welcome Logo + Hero + 3 feature tiles + single CTA + footer
Transactional Logo + summary card + data table + single CTA + footer
Newsletter Logo + hero section + 2–4 content sections + footer
Promotional Full-bleed hero + benefit bullets + deadline + CTA + footer
Onboarding Progress bar + task card + single CTA + footer
Re-engagement Minimal — personal tone, soft hero, soft CTA + unsubscribe prominent
Product announcement Hero image + 3 feature tiles + CTA + footer

Color defaults:

  • Primary: #2563eb (blue)
  • Text: #111827 (gray-900)
  • Background: #f4f4f4
  • Surface: #ffffff

Use brand colors if specified in $ARGUMENTS.


4. Build the HTML

Produce complete, production-ready HTML following these rules:

Structure:

  • Full <!DOCTYPE html> document with MSO conditional comments
  • Preheader div (hidden, padded with &zwnj;&nbsp;)
  • Wrapper table 100% width → inner container table width="600" with class="email-container"
  • Each section in its own <tr><td> block

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 169 lines · 44 tokens per session scan A f9b3fbee546f

Subscribe to this mod's changes

email-template is a command published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 1,461 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories