.claude/skills/ts-aws-ses/SKILL.md
Send transactional and marketing emails with Amazon SES. Verify domains and identities, create reusable email templates, configure receipt rules for incoming mail, and handle bounces and complaints with SNS notifications.
npx skillsauth add eliferjunior/Claude aws-sesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Amazon Simple Email Service (SES) is a cost-effective email platform for sending transactional, marketing, and notification emails. It also receives incoming email and integrates with S3, SNS, and Lambda for processing.
# Verify a domain (creates DKIM records)
aws sesv2 create-email-identity --email-identity example.com
# Get DKIM tokens to add as DNS CNAME records
aws sesv2 get-email-identity --email-identity example.com \
--query 'DkimAttributes.Tokens'
# Verify a single email address (for testing)
aws sesv2 create-email-identity --email-identity [email protected]
# List verified identities
aws sesv2 list-email-identities --query 'EmailIdentities[].IdentityName'
# Send a simple email
aws sesv2 send-email \
--from-email-address "[email protected]" \
--destination '{"ToAddresses":["[email protected]"]}' \
--content '{
"Simple": {
"Subject": {"Data": "Order Confirmation #12345"},
"Body": {
"Html": {"Data": "<h1>Thank you!</h1><p>Your order has been confirmed.</p>"},
"Text": {"Data": "Thank you! Your order has been confirmed."}
}
}
}' \
--configuration-set-name prod-tracking
# Send email with boto3
import boto3
ses = boto3.client('sesv2')
ses.send_email(
FromEmailAddress='[email protected]',
Destination={
'ToAddresses': ['[email protected]'],
'BccAddresses': ['[email protected]']
},
Content={
'Simple': {
'Subject': {'Data': 'Your Invoice'},
'Body': {
'Html': {'Data': '<h1>Invoice #INV-001</h1><p>Amount: $99.99</p>'},
'Text': {'Data': 'Invoice #INV-001\nAmount: $99.99'}
}
}
},
ConfigurationSetName='prod-tracking'
)
# Create a template
aws sesv2 create-email-template \
--template-name order-confirmation \
--template-content '{
"Subject": "Order Confirmation #{{orderNumber}}",
"Html": "<h1>Hi {{customerName}},</h1><p>Your order #{{orderNumber}} for {{itemName}} has been confirmed.</p><p>Total: ${{total}}</p>",
"Text": "Hi {{customerName}},\nYour order #{{orderNumber}} for {{itemName}} has been confirmed.\nTotal: ${{total}}"
}'
# Send using a template
aws sesv2 send-email \
--from-email-address "[email protected]" \
--destination '{"ToAddresses":["[email protected]"]}' \
--content '{
"Template": {
"TemplateName": "order-confirmation",
"TemplateData": "{\"orderNumber\":\"12345\",\"customerName\":\"Alice\",\"itemName\":\"Widget Pro\",\"total\":\"99.99\"}"
}
}'
# Bulk templated sending with boto3
import boto3
ses = boto3.client('sesv2')
ses.send_bulk_email(
FromEmailAddress='[email protected]',
DefaultContent={
'Template': {
'TemplateName': 'weekly-newsletter',
'TemplateData': '{"week":"Jan 15"}'
}
},
BulkEmailEntries=[
{
'Destination': {'ToAddresses': ['[email protected]']},
'ReplacementEmailContent': {
'ReplacementTemplate': {
'ReplacementTemplateData': '{"name":"Alice","recommendations":"Widget A, Widget B"}'
}
}
},
{
'Destination': {'ToAddresses': ['[email protected]']},
'ReplacementEmailContent': {
'ReplacementTemplate': {
'ReplacementTemplateData': '{"name":"Bob","recommendations":"Gadget X, Gadget Y"}'
}
}
}
],
ConfigurationSetName='marketing-tracking'
)
# Create a configuration set with event destinations
aws sesv2 create-configuration-set --configuration-set-name prod-tracking
# Add SNS destination for bounces and complaints
aws sesv2 create-configuration-set-event-destination \
--configuration-set-name prod-tracking \
--event-destination-name bounce-handler \
--event-destination '{
"Enabled": true,
"MatchingEventTypes": ["BOUNCE", "COMPLAINT"],
"SnsDestination": {
"TopicArn": "arn:aws:sns:us-east-1:123456789:ses-bounces"
}
}'
# Lambda handler for bounce/complaint SNS notifications
import json
def handler(event, context):
for record in event['Records']:
message = json.loads(record['Sns']['Message'])
notification_type = message['notificationType']
if notification_type == 'Bounce':
bounce = message['bounce']
for recipient in bounce['bouncedRecipients']:
email = recipient['emailAddress']
bounce_type = bounce['bounceType'] # Permanent or Transient
if bounce_type == 'Permanent':
suppress_email(email)
elif notification_type == 'Complaint':
complaint = message['complaint']
for recipient in complaint['complainedRecipients']:
unsubscribe_email(recipient['emailAddress'])
# Create a receipt rule set
aws ses create-receipt-rule-set --rule-set-name inbound-rules
aws ses set-active-receipt-rule-set --rule-set-name inbound-rules
# Create rule to store incoming email in S3 and trigger Lambda
aws ses create-receipt-rule \
--rule-set-name inbound-rules \
--rule '{
"Name": "process-support-emails",
"Enabled": true,
"Recipients": ["[email protected]"],
"Actions": [
{"S3Action": {"BucketName": "incoming-email", "ObjectKeyPrefix": "support/"}},
{"LambdaAction": {"FunctionArn": "arn:aws:lambda:us-east-1:123456789:function:process-support-email"}}
]
}'
# Check sending quota and statistics
aws sesv2 get-account --query '{SendQuota:SendQuota,SendingEnabled:SendingEnabled}'
# Get sending statistics
aws ses get-send-statistics --query 'SendDataPoints[-5:]'
development
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.