update-email-templates

update-email-templates is a skill for Claude Code from authgear/authgear-server. It costs 36 tokens per session (677 once invoked), scanned A, original, Apache-2.0.

A workflow for editing Authgear email templates using source template files and translation files, then generating the final email files.

In plain words
What is it for?
Changing email text, layout, or subject lines and preparing the resulting templates for the project.
Why use it?
It prevents edits from being lost in generated files and keeps English wording, subjects, translations, and generation steps in the correct order.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

About the project

Authgear is an open-source identity and authentication service that provides login, account management, multi-factor authentication, passkeys, and single sign-on for applications. SaaS and mobile-app developers can run it themselves or use Authgear Cloud to manage consumer and enterprise user access. The catalogue entries relate to operating and configuring Authgear's authentication workflows.

authgear/authgear-server · 2,028 stars · on GitHub · authgear.com

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 skills/authgear/authgear-server/update-email-templates
Any agent
npx skills add authgear/authgear-server --skill update-email-templates
Clone the repo
git clone --depth 1 https://github.com/authgear/authgear-server

Made for: Claude Code.

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 update-email-templates

README.md
[![agentmods](https://agentmods.dev/badge/skills/authgear/authgear-server/update-email-templates.svg)](https://agentmods.dev/skills/authgear/authgear-server/update-email-templates)
Your own site
<a href="https://agentmods.dev/skills/authgear/authgear-server/update-email-templates"><img src="https://agentmods.dev/badge/skills/authgear/authgear-server/update-email-templates.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 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.00036 $0.00677
Opus 5 $0.00018 $0.00338
Sonnet 5 $0.00007 $0.00135
Haiku 4.5 $0.00004 $0.00068

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

Security

Grade A, and why

update-email-templates 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.

.claude/skills/update-email-templates/SKILL.md · 59 lines

How it starts

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

Update Email Templates

Follow this workflow whenever updating email templates.

Scope Rules

  1. Only edit source template files:
    • resources/authgear/templates/en/messages/*.txt.gotemplate
    • resources/authgear/templates/en/messages/*.mjml.gotemplate
  2. Do not edit generated template files directly:
    • resources/authgear/templates/en/messages/*.txt
    • resources/authgear/templates/en/messages/*.mjml
  3. In *.txt.gotemplate and *.mjml.gotemplate, use translations from:
    • resources/authgear/templates/en/messages/translation.json
  4. Always edit English templates only at source stage.
    • Do not manually update non-en locales in source-edit commits.
  5. Email subject translations are defined in:
    • resources/authgear/templates/en/translation.json

Workflow

  1. Edit source templates first:
    • resources/authgear/templates/en/messages/*.txt.gotemplate
    • resources/authgear/templates/en/messages/*.mjml.gotemplate
    • resources/authgear/templates/en/messages/translation.json (body/content translations)
    • resources/authgear/templates/en/translation.json (subject translations)
  2. Generate .mjml from .mjml.gotemplate:
    • go run ./scripts/generatemjml/main.go -i resources/authgear/templates
  3. Commit source edits and generated .mjml in one commit.
  4. Before regenerating non-English translations, delete the changed keys from all non-en locale files so the generator knows to recreate them:
    • For en/messages/translation.json changes, delete the top-level key (e.g. UsageAlert, not UsageAlert.Alert.Title) from all non-en messages/translation.json files:
      • make templates-translation-json-del-key KEY=<TopLevelKey>
    • For en/translation.json subject changes, delete the changed key from all non-en translation.json files:
      • make translation-json-del-key KEY=<key>
    • Run once per changed top-level key.
  5. In a separate commit, generate non-English translations:
    • make -C scripts/python generate-translations
    • Requires being logged in to Claude: claude login
    • If not logged in, stop and ask the user to run claude login first.
  6. Finally, generate HTML emails:
    • make html-email

Read the full file on GitHub · 59 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 · 59 lines · 36 tokens per session scan A 050d93d31dcb

Subscribe to this mod's changes

update-email-templates is a skill published in the GitHub repository authgear/authgear-server (2,028 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 677 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.