/be:transactional-emailfrom Backend Skills
Sending email from a Next.js API — transactional and marketing mail on separate providers and domains, a sender per purpose, SPF, DKIM and aligned DMARC, sends that never throw into the caller, one claim per message, per-recipient budgets, retries through a queue, bounce and complaint suppression, one-click unsubscribe where it's required, escaped input and header values, HTML that survives mail clients with a plain-text part, link scanners, local previews, and per-tier audiences. Use when adding or changing an email the app sends.
Ships in Backend Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The API sends every email the product owes someone — a receipt, a sign-in link, an alert — through the project's own provider, from code that can be tested and previewed. A send never decides whether the work that caused it succeeds, never reaches an address that bounced or complained, and never goes twice. What the email says is emails'; this skill is how it gets there.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
mail. for transactional, news. for marketing), so a marketing campaign's complaints never sink a receipt or a sign-in link into spam.From Gmail's sender guidelines and Yahoo's, which most providers follow:
p=none with reports (rua) to start, moving to quarantine once the reports are clean.clients/ kind, with its tokens from env (env); one service per email, building the subject, the HTML, the text and the headers, and calling the client.false.auth, OWASP). Only a send every address gets, like a sign-in link that also creates the account, may report its failure (503) so the person can try again.claim:email:order-receipt:<orderId>), so a retried request or a redelivered webhook doesn't send twice; released if the send fails (redis). Where the provider takes an idempotency key, the claim key goes with the send, so a retried timeout can't deliver twice either.rate-limiting).Retry-After; a 4xx is a bug or a bad address and isn't retried. Bulk sends — a broadcast, a digest — go through a queue at the provider's rate, never a loop in a request.api-architecture) and keeps a suppression list.List-Unsubscribe header with one HTTPS URI, List-Unsubscribe-Post: List-Unsubscribe=One-Click, and both headers covered by the DKIM signature — plus a visible unsubscribe link in the body. Gmail and Yahoo require it of bulk senders.GET to the same URI shows a confirmation page — it never unsubscribes on a GET, which scanners send.http(s) URL checked with the safe URL schema (schemas-and-contracts).role="presentation", and the HTML stays under about 100 KB — Gmail clips longer messages, unsubscribe link and all.\r\n can inject headers.alt on every meaningful image, lang on the root, and buttons made of text. Accessibility checks are accessibility's.multipart/alternative), generated from the same content.width and height; no SVG, which major clients don't render. Logos sit on a solid plate, never an added outline, so they show on light and dark backgrounds (logos-and-icons).color-scheme for the clients that honour it.generateSignInWithEmailLink and its siblings) and sent through the project's provider, never the auth provider's templates (auth).GET changes nothing and a single-use token survives.fetch (testing).env), so development never adds people to production's lists. A person joins an audience only after confirming their address (a confirmation email), and the app keeps the proof of consent — when, where and to what they agreed; the provider's unsubscribe and suppression records show only who left.GET; use SVG images; track opens or rewrite links on security mail; hard-code a link's origin.Auth links and which emails auth sends auth · per-recipient budgets rate-limiting · claims redis · provider webhooks api-architecture · tokens and per-tier constants env · the safe URL schema schemas-and-contracts · the fetch mock testing · email accessibility accessibility · what the email says emails · its voice copywriting.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin be22 skills in this plugin
/access-controlAccess control for a Next.js API on Firebase — roles, relationships and attributes (RBAC, ReBAC, ABAC) behind permission verbs and one pure can(); guards as the only gate, 404 before 403; tenant scoping; invitations; escalation limits; two-person approval and access reviews; stale claims; API-key scopes; share links and passcodes; where plan and flag checks sit; UI gates that only hide; and tests. Use when adding a permission, role, guarded route, API key, share link, or a control only some people see./access-control-auditManually invoked. Access-control audit — guards on every route and Server Action (BFLA), 404 before 403 and tenant scoping (BOLA), allowlisted writes and projected reads (BOPLA), verbs never role names, roles that add up, escalation and invitations, claims and revocation, sessions and sign-in, API keys and share links, the plan and flag order, UI gates, data rules and the tests. Verifies each finding and writes a prioritised report./api-architectureHow an API route is built in a Next.js API — the fixed order of rate limit, authorise, validate, delegate, audit, respond; thin routes over services; the response envelope and typed errors; caching headers; concurrent edits; long-running work; cursor pagination and allowlisted sorts; resource paths, versions, deprecation and state-transition sub-routes; and what every new route ships with. Cron, webhooks and audit logs are references. Use when adding, changing or reviewing a route handler or the API layer's structure.Other plugins' skills for the same job