Skill109 starsChanged 4 months agoMITView on GitHub
Send and diagnose transactional email through Twilio SendGrid from a terminal or agent: send messages, check deliverability (bounces and spam reports), and verify Signed Event Webhook signatures (ECDSA P-256) — with a bundled email-cli script that is read-only by default and gates every send behind a --dry-run/--yes confirmation. Use when an agent needs to send a transactional email, triage bounces or spam complaints, or confirm an inbound SendGrid webhook is authentic. Do not use for marketing or bulk email campaigns (that is SendGrid Marketing Campaigns), building email template systems, or other email providers (that is their own tooling).
32 other projects use a version of this.
Adopted by
Most recently taken up by
- Littlpinguin/marketing-cockpit-templatetheir own version, first seen Oct 5, 2026
- lawless-m/claude-skillstheir own version, first seen Oct 4, 2026
- yahyabedirhan/skillstheir own version, first seen Oct 1, 2026
- fworks-tech/agenthoodtheir own version, first seen Sep 28, 2026
- zrong/skillstheir own version, first seen Sep 20, 2026
- raymassie/crucibletheir own version, first seen Sep 7, 2026
Used with
Projects with it also use calendar, content and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jacobraskSkillcalendar
Interact with Apple Calendar via AppleScript. Use when the user asks to check calendar, view events, create events, manage schedule, find free time, or list calendars. Triggers include "my calendar", "my schedule", "calendar events", "create event", "add to calendar", "what's on my calendar", "free time", "available slots", "upcoming events", "today's events". Requires macOS with Calendar.app.
Also in 4 projects that use this
Rayan55050Skillcontent
Создание контента: посты, статьи, тексты
Also in 3 projects that use this
ffsshhttiikkSkilli18n
Internationalization and localization
Also in 4 projects that use this
xiaobei930Skilldatabase
Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing migrations.
Also in 3 projects that use this
SentrySkillanalytics
Instrument and discover analytics events in Sentry's frontend UI. Use when adding tracking to buttons, pages, modals, or custom interactions, when defining new analytics events, when searching for existing events, when auditing analytics coverage for a feature, or when answering questions about how users interact with a feature. Trigger on "add analytics", "track event", "instrument analytics", "analytics event", "track click", "track page view", "add tracking", "what events exist for", "audit analytics", "how many people", "how many users", "are people using", "is anyone clicking", "usage of", "who is using".
Also in 3 projects that use this
SupabaseSkillcopywriting
Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.
Also in 3 projects that use this
Other versions32 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 32
- openai/plugins★ 7.3ksame name
- AgriciDaniel/claude-email★ 127same name
- yjwong/lark-cli★ 54same name
- analystacademy/claude-skills★ 39same name
- lightpointventures/claude-code-starter★ 36same name
- Merit-Systems/agentcash-skills★ 21same name
- wildsurfer/your-mail-mcp★ 16same name
- zrong/skills★ 11same name
- Littlpinguin/marketing-cockpit-template★ 8same name
- YepAPI/skills★ 8same name
22 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository180 other files it gives its agents.
- agent-production-operations/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- forward-deployed-engineering/AGENTS.mdAGENTS.md
- production-excellence/AGENTS.mdAGENTS.md
- product-lifecycle/AGENTS.mdAGENTS.md
- tailscale/AGENTS.mdAGENTS.md
- workflow-architect/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- actuarial-risk-modelingSkill
- adr-authoringSkill
- agent-councilSkill
- agent-evals-and-observabilitySkill
- agent-production-operationsSkill
- agent-skillsSkill
- ai-governanceSkill
- ai-operating-economicsSkill
- analog-occultismSkill
- anydocSkill
- api-design-and-evolutionSkill
- artifact-pyramidsSkill
- ascii-city-engineSkill
- autogenSkill
- backend-engineeringSkill
- binary-analysisSkill
- bmadSkill
- brand-designerSkill
- c4-diagrammingSkill
- capacity-and-cost-engineeringSkill
- chief-of-staff-methodologySkill
- cli-builderSkill
- cncf-landscapeSkill
- color-managementSkill
- community-guidesSkill
- conditional-customer-successSkill
- confluence-cliSkill
- constrained-optimizationSkill
- crewaiSkill
- crmSkill
- crowdsecSkill
- cryptpadSkill
- cyberpunkSkill
- daily-life-discoverySkill
- data-architectSkill
- data-cleaningSkill
- data-engineeringSkill
- data-scientistSkill
- de-spinSkill
- digital-twinSkill
- docker-composeSkill
- documentsSkill
- dsm5Skill
- dspySkill
- electronicsSkill
- enterprise-architectureSkill
- epubSkill
- esp32-developmentSkill
- ffmpegSkill
- financial-modelingSkill
- firefliesSkill
- flaresolverr-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read-only discovery before any mutation: Check deliverability signals (bounces, spam reports) freely.
- Very specific: line 62
Act with confirmation: only a human directive to send, previewed with --dry-run and confirmed with --yes.
- Very specific: line 83
Check X-Twilio-Email-Event-Webhook-Timestamp is recent (replay protection.
- Very specific: line 114
Never send email without a human directive, --dry-run preview, and --yes confirmation — sent mail is durable, external, and in recipients' …
- Distinctive: line 115
Never trust an inbound webhook without ECDSA signature and timestamp verification.
- Very specific: line 116
Never page reads past --limit.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Transactional Email Operations (SendGrid)
Use this skill to send transactional email through Twilio SendGrid and to diagnose delivery: bounces, spam complaints, and the Signed Event Webhook. This is a tool skill for one vendor (SendGrid). Marketing campaigns, template builders, and other providers are out of scope; this skill owns the operational loop for application-triggered email: send it, check it landed, and verify the events claiming so are authentic.
Operating contract
- Read-only discovery before any mutation. Check deliverability signals (bounces, spam reports) freely. The bundled
email-cliscript makes reads without writing anything. - Confirm the target, scope, and rollback path before acting. Sending email puts words in recipients' inboxes in your organization's name: it requires an explicit human directive naming the recipients, sender, and content, plus
--dry-runpreview and--yesconfirmation throughemail-cli. There is no reliable "un-send" for delivered mail. - Respect bounded reads. Suppression listings cap results with
--limit; never page past what the task needs. - Verify webhooks before trusting them. SendGrid's Signed Event Webhook signs every request; verify the ECDSA signature and timestamp before acting on event data. Unverified webhook endpoints accept forged delivery/bounce events.
- Keep evidence bounded. Quote short message previews and email addresses; never paste API keys, full message bodies, or suppression lists into chat.
- Never send to unverified addresses or real users without a directive. Deliverability triage reads are safe; the send path is always gated.
The email-cli script
scripts/email-cli is an agent-first, stdlib-only CLI over the SendGrid v3 API, including a self-contained ECDSA P-256 signature verifier with no third-party crypto dependency.
email/scripts/email-cli --help # no key or network needed
email/scripts/email-cli --json --limit 20 deliverability bounces
email/scripts/email-cli --json --limit 20 deliverability spam-reports
email/scripts/email-cli send --to user@example.com --from no-reply@example.com \
--subject "Password reset" --body "..." --dry-run # preview only
email/scripts/email-cli send --to user@example.com --from no-reply@example.com \
--subject "Password reset" --body "..." --yes # confirmed send
email/scripts/email-cli webhook verify --body-file body.json \
--signature "MEUC..." --timestamp 1712345678 --public-key-file public-key.pemExit codes: 0 success, 1 API error or failed verification, 2 usage error. Sends are guarded: without --dry-run or --yes the script refuses with exit 1 and never calls the API. Reads are bounded by --limit (default 20, max 100).
Operating loop
- Scope the delivery question: is this a send (mutation) or a deliverability investigation (read)? Who is the sender, who receives, what is the content?
- Read with bounds:
deliverability bouncesanddeliverability spam-reportsto see who failed to receive and why. - Triage the signal: map the evidence to the cause (hard bounce → bad or typo'd address; spam complaint → content or frequency problem; suppression list → prior bounce). Check SendGrid's event webhook payloads for delivery/bounce events — after verifying the signature.
- Act with confirmation: only a human directive to send, previewed with
--dry-runand confirmed with--yes. - Verify: confirm the send response (
x-message-id), then later confirm delivery via webhook/API evidence rather than assuming.
Sending transactional email
- Compose the message: verified sender (
from), one or moretorecipients,subject, plain-textbody, and optionally anhtmlbody. SendGrid requires the from-address to be a verified sender identity on your account. - Preview before sending:
--dry-runprints the exact from/to/subject/body preview and never calls the API.--yesconfirms and posts toPOST /v3/mail/send, which returns 202 Accepted with thex-message-idheader. - Do not send secrets or tokens by email. Email is a leak channel; a password-reset link is fine, a raw credential is not.
- SendGrid returns 202 (accepted) — acceptance is not delivery. Confirm delivery from the event webhook or the activity feed before claiming success.
Deliverability checks
- Bounces (
GET /suppression/bounces): recipients whose mail bounced, with reason and status. Hard bounces (5.x.x permanent) indicate invalid addresses; repeated bounces hurt sender reputation. - Spam reports (
GET /suppression/spam_reports): recipients who marked mail as spam. Frequent complaints indicate a content or targeting problem. - Deliverability triage is read-only: diagnose from the suppression lists and webhook events, then change the next send (a mutation) only with confirmation.
Webhook signature verification
SendGrid's Signed Event Webhook signs each request with an ECDSA key pair. To verify:
- Take the exact raw request body bytes — any re-encoding breaks the signature.
- Check
X-Twilio-Email-Event-Webhook-Timestampis recent (replay protection;email-clidefault window 300s, disable with--max-age 0). - Compute SHA-256 over
timestamp + raw body(bytes concatenated, no separator) and verify the ECDSA P-256 signature (X-Twilio-Email-Event-Webhook-Signature, base64-decoded ASN.1 DER) against the webhook public key. - Reject with 401 if the timestamp is stale or the signature does not verify.
email-cli webhook verify --body-file body.json --signature <header> --timestamp <header> --public-key-file public-key.pem runs exactly this check with a stdlib-only P-256 implementation. The public key is shown in the Event Webhook settings when Signed Webhook is enabled; store it as a file, never in code.
Reference routing
| Load when | Reference |
| Sources, refresh procedure | references/00-source-index.md |
| API surface, webhook verification details, deliverability semantics | references/01-sendgrid-operations.md |
Included artifacts
scripts/email-cli: bounded, stdlib-only CLI (send, deliverability bounces/spam-reports, webhook verify with self-contained ECDSA P-256;--json;--limit; send gated by--dry-run/--yes).tests/test_email_cli.py: 15 deterministic tests against a stub SendGrid API plus OpenSSL-generated ECDSA webhook vectors (independent cross-check of the verifier).references/: dated source index + SendGrid operations reference.evals/evals.json: six output-quality evaluation cases for agent runs.
Verification boundary
| Claim | Minimum evidence |
| A message was accepted | email-cli send --yes exits 0 and returns the x-message-id |
| A recipient bounced | email-cli deliverability bounces --json lists the address with reason and status |
| A webhook is authentic | email-cli webhook verify exits 0 with verified: true for the exact body/signature/timestamp |
| Delivery actually happened | Delivery webhook event (verified) or activity feed shows the message as delivered |
Hard boundaries
- Never send email without a human directive,
--dry-runpreview, and--yesconfirmation — sent mail is durable, external, and in recipients' inboxes. - Never trust an inbound webhook without ECDSA signature and timestamp verification.
- Never page reads past
--limit; never dump full message bodies, API keys, or suppression lists into chat. - This skill covers SendGrid transactional email only. Marketing campaigns, template systems, and other providers are out of scope.
When not to use
- Marketing or bulk email campaigns (SendGrid Marketing Campaigns, segmentation, blast sends) — that is a different product surface with its own tooling.
- Other email providers (Postmark, SES, Mailgun, Resend) — each has its own API; this skill covers SendGrid.
- Designing email deliverability strategy or domain reputation policy at org scale — that is operational policy work; this skill operates the SendGrid surface.
- Building an email feature into an application (template rendering, transactional flows) — that is application development; see backend-engineering.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

