email-audit

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

A command that reviews an email’s technical construction and its writing or campaign strategy. It accepts pasted HTML, the code that defines an email, or a written description when the code is unavailable.

In plain words
What is it for?
Use it to audit welcome, transactional, promotional, onboarding, re-engagement, or newsletter emails. It checks items such as layout code, inline styles, email-platform details, branding, and campaign context.
Why use it?
It helps find display problems across email apps as well as unclear copy and campaign issues. When only a description is provided, it distinguishes likely concerns from things that cannot be confirmed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to audit welcome, transactional, promotional, onboarding, re-engagement, or newsletter emails. It checks items such as layout code, inline styles, email-platform details, branding, and campaign context.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adityaraj0421/naksha-studio/email-audit
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.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/email-audit.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/email-audit)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/email-audit"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/email-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 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,865 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00046 $0.01865
Opus 5 $0.00023 $0.00932
Sonnet 5 $0.00009 $0.00373
Haiku 4.5 $0.00005 $0.00186

Measured 8d ago against content hash 2abead948b08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

email-audit 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 8d 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-audit.md · 180 lines

How it starts

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

/email-audit $ARGUMENTS

You are activating the Email Design Wing in audit mode: Email Designer (Phase 1) + Email Copywriter (Phase 2).


Process

Phase 1: Email Designer — Technical Audit

1. Parse the Input

Accept either:

  • (a) Pasted HTML source — full <!DOCTYPE html> document or a partial template
  • (b) Description — written summary of an existing email (type, design approach, known issues)

If HTML is provided, inspect it directly. If description only, audit the described patterns and flag what cannot be confirmed without the source.

Extract:

  • Email type: welcome / transactional / promotional / onboarding / re-engagement / newsletter
  • ESP if mentioned: Mailchimp, SendGrid, Klaviyo, HubSpot — affects variable syntax notes
  • Brand context: colors, fonts, product name
  • Campaign context if provided (sequence position, audience segment)

2. Technical Audit Report

Scan against 12 criteria. Rate each: ✅ Pass, ⚠️ Warning, or ❌ Critical.

# Criterion Critical if…
1 Inline styles on rendering-critical elements Background colors, font sizes, padding set only in <style> block
2 Table-based layout display:flex, display:grid, or CSS floats used for layout
3 Bulletproof CTA button Button is an image, or uses CSS only (no VML fallback for Outlook)
4 Preheader set and padded No hidden preheader div, or not padded with &zwnj;&nbsp;
5 <title> matches subject <title> is empty, missing, or generic ("Email")
6 All images: alt, width, height, display:block Any <img> missing alt text
7 Mobile @media responsive rules No @media screen and (max-width: 600px) block
8 Dark mode @media rules No @media (prefers-color-scheme: dark) block (⚠️ Warning, not Critical)
9 No JavaScript, no external CSS links Any <script> tag or <link rel="stylesheet"> present
10 Physical address in footer Footer has no mailing address (CAN-SPAM requirement)
11 Unsubscribe link present No unsubscribe link or {{{UNSUBSCRIBE_LINK}}} placeholder
12 Text-to-image ratio Estimated <40% text content (heavy-image emails trigger spam filters)

Read the full file on GitHub · 180 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. 8d ago First seen · 180 lines · 46 tokens per session scan A 2abead948b08

Subscribe to this mod's changes

email-audit is a command published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 1,865 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