Reading Mailcatcher API
bitwarden/ai-plugins
Retrieves a link from Mailcatcher. An agent skill from bitwarden/ai-plugins.
Complete documentation of the email subsystem including template resolution, variable pipeline, rendering engines, SMTP config, and default templates.
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install gjovanovicst/golang-auth-api email-system --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/email-system .claude/skills/email-system && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .claude/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-systemType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install gjovanovicst/golang-auth-api email-system --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.opencode/skills/email-system .agents/skills/email-system && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .agents/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install gjovanovicst/golang-auth-api email-system --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.opencode/skills/email-system .cursor/skills/email-system && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .cursor/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/gjovanovicst/golang-auth-api.git --path .opencode/skills/email-system--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install gjovanovicst/golang-auth-api email-system --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.opencode/skills/email-system .gemini/skills/email-system && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .gemini/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install gjovanovicst/golang-auth-api email-systemInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .github/skills && cp -r skills-src/.opencode/skills/email-system .github/skills/email-system && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .github/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add gjovanovicst/golang-auth-api --skill email-system -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install gjovanovicst/golang-auth-api email-system --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gjovanovicst/golang-auth-api.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.opencode/skills/email-system .opencode/skills/email-system && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "email-system" agent skill from https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/email-system into .opencode/skills/email-system/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "email-system", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
email-systemComplete documentation of the email subsystem including template resolution, variable pipeline, rendering engines, SMTP config, and default templates.
Email System is an agent skill from gjovanovicst/golang-auth-api. Complete documentation of the email subsystem including template resolution, variable pipeline, rendering engines, SMTP config, and default templates.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Transactional email and Authentication. The repository describes itself as: A modern, production-ready Go REST API for authentication and authorization, featuring social login, email verification, JWT, and Redis integration. The licence is MIT.
Read from SKILL.md and the folder at commit 795d18d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Email System loads about 1.7k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 473 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from gjovanovicst/golang-auth-api at commit 795d18d, republished under its MIT licence (© gjovanovicst). 473 words, ~1,722 tokens.
.claude/skills/email-system/SKILL.md (or your agent's skills folder).The email system is in internal/email/ and follows a multi-layered pipeline:
Service (orchestrator)
|-- VariableResolver -> resolves template variables from 4 sources
|-- Renderer -> renders templates with 3 supported engines
|-- Sender -> sends via SMTP (or logs in dev mode)
|-- Repository -> DB access for types, templates, server configsEntry point: email.Service.SendEmailWithContext(appID, emailTypeCode, toEmail, userID, vars)
1. VariableResolver.ResolveVariables() -- build final variable map
2. resolveTemplate() -- find the right template
3. Renderer.RenderTemplate() -- render subject, HTML, text
4. resolveSMTPConfigForTemplate() -- find the right SMTP config
5. Sender.Send() -- deliver via SMTPDefined in internal/email/service.go method resolveTemplate:
1. DB: app-specific template
WHERE app_id = ? AND email_type_id = ? AND is_active = true
2. DB: global default template
WHERE app_id IS NULL AND email_type_id = ? AND is_active = true
3. Hardcoded fallback
defaults.go -> GetDefaultTemplate(typeCode)Defined in internal/email/service.go method resolveSMTPConfig:
1. DB: per-app config
WHERE app_id = ? AND is_active = true AND is_default = true
2. DB: global config
WHERE app_id IS NULL AND is_active = true AND is_default = true
3. Empty config -> dev/fallback mode (log to stdout)With template override (resolveSMTPConfigForTemplate):
1. If template has ServerConfigID -> use that specific config by ID
2. Otherwise -> standard chain above
3. Apply template-level FromEmail/FromName overrides on topDefined in internal/email/resolver.go. Resolution priority (lowest to highest):
| Layer | Source | Method | Example Variables |
|---|---|---|---|
| 1 (lowest) | Static defaults | applyStaticDefaults | DefaultValue from email_types.variables JSONB |
| 2 | App/system settings | applySettingsVars | app_name, frontend_url |
| 3 | User profile | applyUserVars | user_email, user_name, first_name, last_name, locale, profile_picture |
| Always | Fallback | -- | user_email = toEmail if not set |
| 4 (highest) | Explicit caller vars | direct map copy | verification_link, code, reset_link, etc. |
| Source | Variables | How Resolved |
|---|---|---|
user (auto) | user_email, user_name, first_name, last_name, locale, profile_picture | From DB user record |
setting (auto) | app_name, frontend_url | app name from DB/env, frontend_url from env |
explicit (caller) | verification_link, verification_token, reset_link, code, expiration_minutes, change_time, magic_link | Must be passed by calling code |
All variable constants are in internal/email/types.go.
Defined in internal/email/renderer.go:
| Engine | Constant | Syntax | HTML Escaping |
|---|---|---|---|
| Go Template | go_template | {{.AppName}} or {{.app_name}} | Yes (automatic) |
| Placeholder | placeholder | {app_name} | No |
| Raw HTML | raw_html | {{.AppName}} | No (unsafe) |
The renderer converts all variables to both snake_case and PascalCase forms, so templates can use either style.
Subject lines always use Go template syntax regardless of engine.
Constants in internal/email/types.go:
| Code | Constant | Variables Used |
|---|---|---|
email_verification | TypeEmailVerification | app_name, verification_link, user_email |
password_reset | TypePasswordReset | app_name, reset_link, expiration_minutes |
two_fa_code | TypeTwoFACode | app_name, code, expiration_minutes |
welcome | TypeWelcome | app_name, user_email |
account_deactivated | TypeAccountDeactivated | app_name, user_email |
password_changed | TypePasswordChanged | app_name, change_time, user_email |
magic_link | TypeMagicLink | app_name, magic_link, expiration_minutes |
Defined in internal/email/defaults.go. All use go_template engine, provide both HTML and plain text bodies, and use responsive table-based layout with consistent styling (indigo #4f46e5 primary color, 600px max width).
internal/email/service.go)| Method | Email Type | Extra Vars |
|---|---|---|
SendVerificationEmail | email_verification | verification_link (built from FRONTEND_URL + token) |
SendPasswordResetEmail | password_reset | reset_link, expiration_minutes=60 |
Send2FACodeEmail | two_fa_code | code, expiration_minutes=5 |
SendWelcomeEmail | welcome | (none) |
SendAccountDeactivatedEmail | account_deactivated | (none) |
SendPasswordChangedEmail | password_changed | change_time |
SendMagicLinkEmail | magic_link | magic_link, expiration_minutes=10 |
SendAdmin2FACodeEmail | N/A (hardcoded HTML) | Bypasses app-scoped resolution |
SendAdminMagicLinkEmail | N/A (hardcoded HTML) | Bypasses app-scoped resolution |
Template CRUD: GetTemplatesByApp, GetGlobalDefaultTemplates, GetTemplateByID, SaveAppTemplate, SaveGlobalTemplate, DeleteTemplate, ResetTemplateToDefault, PreviewTemplate
Email type CRUD: GetAllEmailTypes, GetEmailTypeByCode, CreateEmailType, UpdateEmailType, DeleteEmailType
Server config CRUD: GetServerConfig, SaveServerConfig, DeleteServerConfig, GetAllServerConfigs, etc.
internal/email/sender.go)Uses gopkg.in/mail.v2.
Dev mode: If SMTP host is empty or "smtp.example.com", logs email to stdout (no error).
TLS handling:
d.SSL = true)MandatoryStartTLS, MinVersion TLS 1.2Error behavior:
Send(): on SMTP failure, logs email as fallback and returns nil (email failure doesn't break business flow)SendTest(): always returns errors (for admin testing)EmailType (pkg/models/email_type.go) -- types with variable definitions as JSONBEmailTemplate (pkg/models/email_template.go) -- templates scoped to app or globalEmailServerConfig (pkg/models/email_server_config.go) -- SMTP configs scoped to app or globalLoad this skill when working on email sending, email templates, SMTP configuration, template variables, or any email-related feature.
© gjovanovicst, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .opencode/skills/email-system of gjovanovicst/golang-auth-api.
Open the folder on GitHubat commit 795d18d
Email System next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Email System this skillgjovanovicst/golang-auth-api | 130 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Reading Mailcatcher APIbitwarden/ai-plugins | 155 | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| Configuration Messaginggreenpau/caddy-security | 2.3k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| ResendLeoYeAI/openclaw-master-skills | 2.2k | — | ~5.1k | Automated safety check: Pass | MIT | |
| Fortify Developmentcoollabsio/coolify | 63k | 4 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Supabase Development and Debuggingsupabase/agent-skills | 2.7k | 3 repos | ~3.6k | Automated safety check: Pass | MIT |
bitwarden/ai-plugins
Retrieves a link from Mailcatcher. An agent skill from bitwarden/ai-plugins.
greenpau/caddy-security
Configure email and file messaging providers, SMTP transport, sender/authentication, templates, and registration delivery wiring.
LeoYeAI/openclaw-master-skills
Resend API integration with managed authentication. An agent skill from LeoYeAI/openclaw-master-skills.
coollabsio/coolify
ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.
supabase/agent-skills
General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.
latitude-dev/latitude-llm
Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables.
gjovanovicst/golang-auth-api
Documentation of the HTMX admin GUI including template rendering, session management, CRUD patterns, and the GUIHandler structure.
gjovanovicst/golang-auth-api
Detailed documentation of the 4 authentication systems, token lifecycle, middleware pipeline, session management, and RBAC authorization.
gjovanovicst/golang-auth-api
All 17 GORM database models with fields, relationships, indexes, and the entity relationship diagram for the Auth API.
gjovanovicst/golang-auth-api
Complete module inventory of the Auth API project with file paths, dependencies, and architecture overview.
gjovanovicst/golang-auth-api
Complete HTTP route structure with auth layers, middleware chains, rate limiting, and handler mappings for all API and GUI endpoints.
Categories
Complete documentation of the email subsystem including template resolution, variable pipeline, rendering engines, SMTP config, and default templates. Email System is an agent skill from gjovanovicst/golang-auth-api. Complete documentation of the email subsystem including template resolution, variable pipeline, rendering engines, SMTP config, and default templates.
Email System fits situations like: tasks that involve Transactional email; tasks that involve Authentication.
Run `npx skills add gjovanovicst/golang-auth-api --skill email-system -a claude-code`. Or copy the skill folder (.opencode/skills/email-system in gjovanovicst/golang-auth-api) into .claude/skills/email-system in your project. Claude Code loads it when a task matches its description.
Run `npx skills add gjovanovicst/golang-auth-api --skill email-system -a codex`. Or copy the skill folder (.opencode/skills/email-system in gjovanovicst/golang-auth-api) into .agents/skills/email-system in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gjovanovicst/golang-auth-api --skill email-system -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/email-system, .gemini/skills/email-system, .github/skills/email-system and .opencode/skills/email-system in your project.
SKILL.md names no scripts, command-line tools or credentials: Email System is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Email System is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Email System: Reading Mailcatcher API (bitwarden/ai-plugins, 155 stars), Configuration Messaging (greenpau/caddy-security, 2.3k stars), Resend (LeoYeAI/openclaw-master-skills, 2.2k stars) and Fortify Development (coollabsio/coolify, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
gjovanovicst (a GitHub user) maintains it in gjovanovicst/golang-auth-api, which has 130 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 30, 2026.
Source: gjovanovicst/golang-auth-api on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.