antifragiletech/antifragile-claude-code/email-preview

Claude Code and agent skill by antifragiletech/antifragile-claude-code

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install antifragiletech/antifragile-claude-code/email-preview

SKILL.md

/email-preview — SendGrid Email Template Debugging Skill

Trigger

User says: "email-preview", "test email", "email template", "sendgrid debug", "email not sending", "preview email"

Purpose

Debug and preview SendGrid email templates in the backend.

Steps

1. Find Email Templates
bash
# Locate email-related code
grep -rn "sendgrid\|@sendgrid\|sgMail\|MailService" --include="*.ts" --include="*.tsx" -l
# Find template files
find . -path "*/email*" -o -path "*/mail*" | grep -E "\.(ts|tsx|html|hbs)$"
# Find email sending functions
grep -rn "sgMail.send\|sendMail\|sendEmail" --include="*.ts" -l
2. Configuration Check
bash
# Verify SendGrid env vars
env | grep SENDGRID
# Check API key is set (don't print the full key)
echo $SENDGRID_API_KEY | head -c 10
  • Verify sender email is configured and verified in SendGrid
  • Check for from address in email config
3. Template Inspection
  • Read the email template/function the user is working on
  • Check for:
  • Dynamic variables are properly interpolated
  • HTML is well-formed (no unclosed tags)
  • Inline CSS (email clients don't support external stylesheets)
  • Images use absolute URLs (not relative paths)
  • Unsubscribe link is present (required for marketing emails)
4. Email Log Check
bash
# Check email_logs table — uses sent_at NOT created_at
# First verify schema
npx prisma db execute --stdin <<< "SELECT column_name FROM information_schema.columns WHERE table_name = 'email_logs' LIMIT 20;"
# Then query recent logs
npx prisma db execute --stdin <<< "SELECT * FROM email_logs ORDER BY sent_at DESC LIMIT 5;"
  • CRITICAL: email_logs uses sent_at column, NOT created_at
  • Check for failed sends, bounces, or blocks
5. Test Send
  • Suggest using SendGrid's test mode or a test recipient
  • Generate a curl command for manual testing:
bash
# Template for test send (user fills in details)
curl --request POST \
--url https://api.sendgrid.com/v3/mail/send \
--header "Authorization: Bearer $SENDGRID_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"personalizations":[{"to":[{"email":"TEST_EMAIL"}]}],"from":{"email":"FROM_EMAIL"},"subject":"Test","content":[{"type":"text/html","value":"<p>Test</p>"}]}'
6. Common Issues
  • 429 rate limit: Check if too many emails sent in short period
  • 403 forbidden: API key doesn't have send permission
  • Bounced: Recipient email invalid or mailbox full
  • Spam folder: Check sender reputation, SPF/DKIM records
  • Template not rendering: Variables not passed to template function

Rules

  • NEVER send to real users during debugging — always use test recipients
  • NEVER log or echo full SendGrid API keys
  • Always check email_logs.sent_at (NOT created_at) for send history
  • Verify test/production mode before any send operations

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
Repository forks
1
7-day trend score
16

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/antifragiletech/antifragile-claude-code/email-preview/badge)](https://verified-skill.com/skills/antifragiletech/antifragile-claude-code/email-preview)

Something wrong with this skill or its page? Tell us.