一键导入
emailcampaigner
Email campaign management using SendGrid. Use when sending marketing emails, creating campaigns, or managing audience communication at scale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Email campaign management using SendGrid. Use when sending marketing emails, creating campaigns, or managing audience communication at scale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Craft Docs API integration for document management, collaboration, and knowledge organization. Use when managing documentation, syncing content, or organizing knowledge bases.
Generate clear, patient educational voiceovers (130-150 WPM). Optimized for courses, tutorials, and instructional content with authoritative, calm delivery.
Generate energetic, persuasive marketing voiceovers (150-170 WPM). Optimized for promotional content, ads, and sales materials with confident, motivating delivery.
Generate calm, soothing meditation voiceovers with slow, deliberate pacing. Optimized for relaxation, mindfulness, and guided meditation content.
Generate professional podcast voiceovers with conversational, warm tone (140-160 WPM). Optimized for natural, engaging delivery in multi-segment episodes.
Generate professional voiceovers in the user's voice using ElevenLabs AI. Use when creating audio for videos, podcasts, courses, or any content requiring spoken narration.
| name | emailcampaigner |
| description | Email campaign management using SendGrid. Use when sending marketing emails, creating campaigns, or managing audience communication at scale. |
| version | 1.0.0 |
Note: Review PROFILE.md for user-specific email templates, branding, and campaign preferences.
Master Briefing: Global brand voice at
~/.superskills/master-briefing.yamlapplies automatically. Skill profile overrides when conflicts exist.
Manage and execute email campaigns with professional templates, personalization, and delivery tracking using SendGrid.
EmailCampaigner.py (in src/):
Send Single Email:
from superskills.emailcampaigner.src import EmailCampaigner
emailer = EmailCampaigner(
output_dir="output/emails",
templates_dir="templates/email"
)
result = emailer.send_email(
to_email="student@example.com",
subject="Welcome to the Course!",
content="<h1>Welcome!</h1><p>Thanks for joining...</p>",
content_type="text/html"
)
print(f"Status: {result.status}")
print(f"Message ID: {result.message_id}")
Send Campaign with Template:
recipients = [
{"email": "student1@example.com", "name": "Alice"},
{"email": "student2@example.com", "name": "Bob"}
]
for recipient in recipients:
result = emailer.send_email(
to_email=recipient["email"],
subject=f"Hey {recipient['name']}, here's your course!",
content="welcome_template.html",
template_data={"name": recipient["name"]}
)
Batch Campaign:
campaign_results = emailer.send_campaign(
recipient_list=["email1@example.com", "email2@example.com"],
subject="New Training Available",
template="campaign_template.html",
template_data={"course_name": "AI Automation 101"}
)
success_count = sum(1 for r in campaign_results if r.status == "sent")
print(f"Successfully sent: {success_count}/{len(campaign_results)}")
# Required: SendGrid API key
SENDGRID_API_KEY=your_sendgrid_api_key
# Optional: Default sender email (must be verified in SendGrid)
SENDGRID_FROM_EMAIL=your@verified-email.com
Setup Instructions:
.env fileWith Craft (Draft Campaigns in Craft):
from superskills.craft.src import CraftClient
from superskills.emailcampaigner.src import EmailCampaigner
craft = CraftClient()
emailer = EmailCampaigner()
doc = craft.get_document("email_campaign_draft")
emailer.send_campaign(
recipient_list=["student1@example.com", "student2@example.com"],
subject=doc.title,
content=doc.content
)
With Author (Generate Email Content):
from superskills.author.src import ContentWriter
from superskills.emailcampaigner.src import EmailCampaigner
writer = ContentWriter()
email_content = writer.create_email_copy(
topic="New Course Launch",
tone="professional",
length="short"
)
emailer = EmailCampaigner()
emailer.send_campaign(
recipient_list=["list@example.com"],
subject="Exciting News: New Course Available!",
content=email_content
)
pip install sendgrid jinja2