email-templates by dglowacki/mega-agent-v2
npx skills add https://github.com/dglowacki/mega-agent-v2 --skill email-templates适用于各类报告和通知需求的专业 HTML 邮件模板。
渲染模板:
python scripts/render_template.py --template daily-summary --data data.json
使用模板格式化邮件:
python scripts/format_email.py --template github-digest --output email.html
daily-summary.html)涵盖所有系统的完整每日活动摘要。
适用于:
数据结构:
{
"date": "2026-01-14",
"sections": [
{
"title": "GitHub Activity",
"icon": "💻",
"items": [
{"label": "Commits", "value": "12", "color": "green"},
{"label": "PRs", "value": "3", "color": "blue"}
],
"details": "Brief summary text"
},
{
"title": "App Store",
"icon": "📱",
"items": [
{"label": "Downloads", "value": "1,234", "color": "yellow"},
{"label": "Revenue", "value": "$567", "color": "green"}
]
}
],
"summary": "Overall summary text"
}
Professional HTML email templates for various reporting and notification needs.
Render a template:
python scripts/render_template.py --template daily-summary --data data.json
Format email with template:
python scripts/format_email.py --template github-digest --output email.html
daily-summary.html)Complete daily activity summary across all systems.
Use for:
Data structure:
{
"date": "2026-01-14",
"sections": [
{
"title": "GitHub Activity",
"icon": "💻",
"items": [
{"label": "Commits", "value": "12", "color": "green"},
{"label": "PRs", "value": "3", "color": "blue"}
],
"details": "Brief summary text"
},
{
"title": "App Store",
"icon": "📱",
"items": [
{"label": "Downloads", "value": "1,234", "color": "yellow"},
{"label": "Revenue", "value": "$567", "color": "green"}
]
}
],
"summary": "Overall summary text"
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
github-digest.html)包含提交详情和贡献者排行榜的 GitHub 活动报告。
适用于:
数据结构:
{
"period": "Last 7 Days",
"date_range": "Jan 7-14, 2026",
"stats": {
"total_commits": 45,
"total_prs": 8,
"total_reviews": 12,
"contributors": 5
},
"top_contributors": [
{
"name": "John Doe",
"commits": 15,
"lines_changed": 1234,
"score": 45.2
}
],
"recent_commits": [
{
"sha": "abc123",
"author": "John Doe",
"message": "Add feature X",
"date": "2026-01-14T10:30:00Z",
"repo": "owner/repo"
}
]
}
appstore-metrics.html)应用商店销售、下载和分析摘要。
适用于:
数据结构:
{
"date": "2026-01-14",
"apps": [
{
"name": "My App",
"icon_url": "https://...",
"metrics": {
"downloads": 1234,
"revenue": 567.89,
"updates": 45,
"crashes": 2
},
"trending": "up"
}
],
"totals": {
"total_downloads": 5678,
"total_revenue": 2345.67,
"avg_rating": 4.5
}
}
calendar-reminder.html)会议和事件通知。
适用于:
数据结构:
{
"event": {
"title": "Team Meeting",
"start": "2026-01-14T14:00:00Z",
"end": "2026-01-14T15:00:00Z",
"location": "Conference Room A",
"attendees": ["john@example.com", "jane@example.com"],
"description": "Discuss Q1 planning"
},
"reminder_type": "1 hour before",
"actions": [
{"label": "Join Meeting", "url": "https://..."},
{"label": "View Calendar", "url": "https://..."}
]
}
所有模板均采用一致的新粗野主义设计美学:
Primary: #000000 (black)
Background: #FFFFFF (white)
Accent 1: #FFEB3B (yellow)
Accent 2: #4CAF50 (green)
Accent 3: #F44336 (red)
Accent 4: #2196F3 (blue)
Gray: #F5F5F5 (light gray)
每个模板都遵循以下基础结构:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Base styles */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.container { max-width: 600px; margin: 0 auto; border: 4px solid black; }
.header { background-color: black; color: white; padding: 20px; }
/* Template-specific styles */
</style>
</head>
<body>
<div class="container">
<div class="header"><!-- Title --></div>
<!-- Content sections -->
</div>
</body>
</html>
使用数据渲染模板。
用法:
python scripts/render_template.py \
--template daily-summary \
--data data.json \
--output email.html
参数:
--template: 模板名称 (daily-summary, github-digest 等)--data: 包含模板数据的 JSON 文件--output: 输出的 HTML 文件格式化并可选地发送邮件。
用法:
python scripts/format_email.py \
--template github-digest \
--data data.json \
--subject "GitHub Weekly Digest" \
--to user@example.com \
--send
参数:
--template: 模板名称--data: 包含数据的 JSON 文件--subject: 邮件主题--to: 收件人邮箱--send: 发送邮件 (可选,否则仅输出 HTML)from email_templates import render_template
# 渲染模板
html = render_template('daily-summary', data)
# 通过 Gmail 发送
gmail.send_email(
to='user@example.com',
subject='Daily Summary - Jan 14',
body_html=html
)
# 生成报告数据
report_data = {
'date': '2026-01-14',
'sections': [...]
}
# 渲染模板
html = render_template('appstore-metrics', report_data)
# 委托给通信智能体
orchestrator.delegate_to('communication-agent', {
'action': 'send_email',
'to': 'dave@example.com',
'subject': 'App Store Daily Report',
'html': html
})
查看 examples/ 目录以获取示例数据文件和渲染后的输出。
每周安装
1
仓库
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
github-digest.html)GitHub activity report with commit details and leaderboard.
Use for:
Data structure:
{
"period": "Last 7 Days",
"date_range": "Jan 7-14, 2026",
"stats": {
"total_commits": 45,
"total_prs": 8,
"total_reviews": 12,
"contributors": 5
},
"top_contributors": [
{
"name": "John Doe",
"commits": 15,
"lines_changed": 1234,
"score": 45.2
}
],
"recent_commits": [
{
"sha": "abc123",
"author": "John Doe",
"message": "Add feature X",
"date": "2026-01-14T10:30:00Z",
"repo": "owner/repo"
}
]
}
appstore-metrics.html)App Store sales, downloads, and analytics summary.
Use for:
Data structure:
{
"date": "2026-01-14",
"apps": [
{
"name": "My App",
"icon_url": "https://...",
"metrics": {
"downloads": 1234,
"revenue": 567.89,
"updates": 45,
"crashes": 2
},
"trending": "up"
}
],
"totals": {
"total_downloads": 5678,
"total_revenue": 2345.67,
"avg_rating": 4.5
}
}
calendar-reminder.html)Meeting and event notifications.
Use for:
Data structure:
{
"event": {
"title": "Team Meeting",
"start": "2026-01-14T14:00:00Z",
"end": "2026-01-14T15:00:00Z",
"location": "Conference Room A",
"attendees": ["john@example.com", "jane@example.com"],
"description": "Discuss Q1 planning"
},
"reminder_type": "1 hour before",
"actions": [
{"label": "Join Meeting", "url": "https://..."},
{"label": "View Calendar", "url": "https://..."}
]
}
All templates use a consistent neo-brutal design aesthetic:
Primary: #000000 (black)
Background: #FFFFFF (white)
Accent 1: #FFEB3B (yellow)
Accent 2: #4CAF50 (green)
Accent 3: #F44336 (red)
Accent 4: #2196F3 (blue)
Gray: #F5F5F5 (light gray)
Each template follows this base structure:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Base styles */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.container { max-width: 600px; margin: 0 auto; border: 4px solid black; }
.header { background-color: black; color: white; padding: 20px; }
/* Template-specific styles */
</style>
</head>
<body>
<div class="container">
<div class="header"><!-- Title --></div>
<!-- Content sections -->
</div>
</body>
</html>
Renders a template with data.
Usage:
python scripts/render_template.py \
--template daily-summary \
--data data.json \
--output email.html
Arguments:
--template: Template name (daily-summary, github-digest, etc.)--data: JSON file with template data--output: Output HTML fileFormats and optionally sends an email.
Usage:
python scripts/format_email.py \
--template github-digest \
--data data.json \
--subject "GitHub Weekly Digest" \
--to user@example.com \
--send
Arguments:
--template: Template name--data: JSON file with data--subject: Email subject--to: Recipient email--send: Send email (optional, otherwise just outputs HTML)from email_templates import render_template
# Render template
html = render_template('daily-summary', data)
# Send via Gmail
gmail.send_email(
to='user@example.com',
subject='Daily Summary - Jan 14',
body_html=html
)
# Generate report data
report_data = {
'date': '2026-01-14',
'sections': [...]
}
# Render template
html = render_template('appstore-metrics', report_data)
# Delegate to communication-agent
orchestrator.delegate_to('communication-agent', {
'action': 'send_email',
'to': 'dave@example.com',
'subject': 'App Store Daily Report',
'html': html
})
See examples/ directory for sample data files and rendered outputs.
Weekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
114,200 周安装