社媒营销效果一站式分析
简介
基于行业标准基准的社交媒体营销分析工具,纯本地计算 engagement rate、ROI 及跨平台对比,为营销人员提供数据驱动的优化建议。
原始描述
Social media campaign analysis and performance tracking. Calculates engagement rates, ROI, and benchmarks across platforms. Use for analyzing social media performance, calculating engagement rate, measuring campaign ROI, comparing platform metrics, or benchmarking against industry standards.
通过你的 Agent 添加
安装目录:social-media-analyzer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Social Media Analyzer 是一款专注于社交媒体营销活动分析的本地计算工具。用户需提供结构化的 campaign 数据(包括平台类型、帖子互动数据、投放预算等),工具将自动完成:数据完整性校验 → 单帖互动指标计算 → 活动级指标聚合 → ROI 计算(如有预算数据)→ 平台基准对比 → 优劣内容识别 → 优化建议生成。支持 Instagram、Facebook、Twitter/X、LinkedIn、TikTok 五大主流平台,输出包含 engagement rate、CTR、CPE、ROAS 等核心指标及可视化评级。
显著优点
- 行业标准基准内置:预置各平台 engagement rate、CTR、CPC 的行业均值与优秀区间,无需用户自行调研对照数据
- 多维度 ROI 计算:不仅计算基础 ROAS,还提供 CPE、CPC、CPM 等细分成本指标,并赋予不同互动行为(点赞/评论/分享/保存/点击)以经济价值估算
- 纯本地隐私安全:所有计算在本地完成,无网络传输,营销敏感数据不会外泄
- 零依赖轻量部署:仅依赖 Python 标准库,无第三方包安装负担,开箱即用
- ** actionable 输出**:直接给出"Scale/Optimize/Test/Pivot"四级行动建议,降低决策门槛
潜在缺点与局限性
- 数据输入门槛:需人工整理或从各平台导出结构化数据,无法直连 Meta/TikTok 等官方 API 自动拉取
- 静态基准更新滞后:内置行业基准为文档固化数据,若平台算法或行业趋势变化,对比结果可能失真
- 价值估算主观性:$0.50/点赞、$2.00/评论等价值系数为预设估算,未考虑品牌差异与行业特性
- T3 来源可信度:开发者为个人账号,虽代码安全但长期维护与更新承诺存疑
- 无历史趋势分析:单次 campaign 分析,不支持多期数据对比与趋势预测
适合的目标群体
- 中小品牌社媒运营者:预算有限,需快速评估投放效果并生成汇报材料
- 营销代理公司分析师:为客户制作数据驱动的 campaign review 报告
- 独立创作者/自媒体:量化内容表现,优化发布策略
- 市场专业学生/研究者:学习社媒指标计算逻辑与行业基准对照方法
使用风险
- 输入数据质量依赖:若提供的 reach、spend 等数据不准确,所有输出指标将产生系统性偏差
- 除零与边界处理:虽代码有 safe_divide 保护,但极端小样本(如 reach=1)可能导致指标失真
- 无实时性:无法获取平台最新算法变化对 organic reach 的影响,基准对比可能过时
- 无协作版本控制:多人使用时若输入文件版本混乱,可能导致分析结果不一致
- 数据输入门槛:需人工整理或从各平台导出结构化数据,无法直连 Meta/TikTok 等官方 API 自动拉取
- 静态基准更新滞后:内置行业基准为文档固化数据,若平台算法或行业趋势变化,对比结果可能失真
- 价值估算主观性:$0.50/点赞、$2.00/评论等价值系数为预设估算,未考虑品牌差异与行业特性
- T3 来源可信度:开发者为个人账号,虽代码安全但长期维护与更新承诺存疑
- 无历史趋势分析:单次 campaign 分析,不支持多期数据对比与趋势预测
适合的目标群体
- 中小品牌社媒运营者:预算有限,需快速评估投放效果并生成汇报材料
- 营销代理公司分析师:为客户制作数据驱动的 campaign review 报告
- 独立创作者/自媒体:量化内容表现,优化发布策略
- 市场专业学生/研究者:学习社媒指标计算逻辑与行业基准对照方法
使用风险
- 输入数据质量依赖:若提供的 reach、spend 等数据不准确,所有输出指标将产生系统性偏差
- 除零与边界处理:虽代码有 safe_divide 保护,但极端小样本(如 reach=1)可能导致指标失真
- 无实时性:无法获取平台最新算法变化对 organic reach 的影响,基准对比可能过时
- 无协作版本控制:多人使用时若输入文件版本混乱,可能导致分析结果不一致
- 输入数据质量依赖:若提供的 reach、spend 等数据不准确,所有输出指标将产生系统性偏差
- 除零与边界处理:虽代码有 safe_divide 保护,但极端小样本(如 reach=1)可能导致指标失真
- 无实时性:无法获取平台最新算法变化对 organic reach 的影响,基准对比可能过时
- 无协作版本控制:多人使用时若输入文件版本混乱,可能导致分析结果不一致
技能正文
name: social-media-analyzer description: Social media campaign analysis and performance tracking. Calculates engagement rates, ROI, and benchmarks across platforms. Use for analyzing social media performance, calculating engagement rate, measuring campaign ROI, comparing platform metrics, or benchmarking against industry standards. triggers:
- analyze social media
- calculate engagement rate
- social media ROI
- campaign performance
- compare platforms
- benchmark engagement
- Instagram analytics
- Facebook metrics
- TikTok performance
- LinkedIn engagement
Social Media Analyzer
Campaign performance analysis with engagement metrics, ROI calculations, and platform benchmarks.
Table of Contents
Analysis Workflow
Analyze social media campaign performance:
- Validate input data completeness (reach > 0, dates valid)
- Calculate engagement metrics per post
- Aggregate campaign-level metrics
- Calculate ROI if ad spend provided
- Compare against platform benchmarks
- Identify top and bottom performers
- Generate recommendations
- Validation: Engagement rate < 100%, ROI matches spend data
Input Requirements
Field
Required
Description
platform
Yes
instagram, facebook, twitter, linkedin, tiktok
posts[]
Yes
Array of post data
posts[].likes
Yes
Like/reaction count
posts[].comments
Yes
Comment count
posts[].reach
Yes
Unique users reached
posts[].impressions
No
Total views
posts[].shares
No
Share/retweet count
posts[].saves
No
Save/bookmark count
posts[].clicks
No
Link clicks
total_spend
No
Ad spend (for ROI)
Data Validation Checks
| Field | Required | Description |
|---|---|---|
| platform | Yes | instagram, facebook, twitter, linkedin, tiktok |
| posts[] | Yes | Array of post data |
| posts[].likes | Yes | Like/reaction count |
| posts[].comments | Yes | Comment count |
| posts[].reach | Yes | Unique users reached |
| posts[].impressions | No | Total views |
| posts[].shares | No | Share/retweet count |
| posts[].saves | No | Save/bookmark count |
| posts[].clicks | No | Link clicks |
| total_spend | No | Ad spend (for ROI) |
Before analysis, verify:
- Reach > 0 for all posts (avoid division by zero)
- Engagement counts are non-negative
- Date range is valid (start < end)
- Platform is recognized
- Spend > 0 if ROI requested
Engagement Metrics
Engagement Rate Calculation
Engagement Rate = (Likes + Comments + Shares + Saves) / Reach × 100
Metric Definitions
Metric
Formula
Interpretation
Engagement Rate
Engagements / Reach × 100
Audience interaction level
CTR
Clicks / Impressions × 100
Content click appeal
Reach Rate
Reach / Followers × 100
Content distribution
Virality Rate
Shares / Impressions × 100
Share-worthiness
Save Rate
Saves / Reach × 100
Content value
Performance Categories
Rating
Engagement Rate
Action
Excellent
> 6%
Scale and replicate
Good
3-6%
Optimize and expand
Average
1-3%
Test improvements
Poor
< 1%
Analyze and pivot
ROI Calculation
| Metric | Formula | Interpretation |
|---|---|---|
| Engagement Rate | Engagements / Reach × 100 | Audience interaction level |
| CTR | Clicks / Impressions × 100 | Content click appeal |
| Reach Rate | Reach / Followers × 100 | Content distribution |
| Virality Rate | Shares / Impressions × 100 | Share-worthiness |
| Save Rate | Saves / Reach × 100 | Content value |
| Rating | Engagement Rate | Action |
|---|---|---|
| Excellent | > 6% | Scale and replicate |
| Good | 3-6% | Optimize and expand |
| Average | 1-3% | Test improvements |
| Poor | < 1% | Analyze and pivot |
ROI Calculation
Calculate return on ad spend:
- Sum total engagements across posts
- Calculate cost per engagement (CPE)
- Calculate cost per click (CPC) if clicks available
- Estimate engagement value using benchmark rates
- Calculate ROI percentage
- Validation: ROI = (Value - Spend) / Spend × 100
ROI Formulas
Metric
Formula
Cost Per Engagement (CPE)
Total Spend / Total Engagements
Cost Per Click (CPC)
Total Spend / Total Clicks
Cost Per Thousand (CPM)
(Spend / Impressions) × 1000
Return on Ad Spend (ROAS)
Revenue / Ad Spend
Engagement Value Estimates
Action
Value
Rationale
Like
$0.50
Brand awareness
Comment
$2.00
Active engagement
Share
$5.00
Amplification
Save
$3.00
Intent signal
Click
$1.50
Traffic value
ROI Interpretation
ROI %
Rating
Recommendation
> 500%
Excellent
Scale budget significantly
200-500%
Good
Increase budget moderately
100-200%
Acceptable
Optimize before scaling
0-100%
Break-even
Review targeting and creative
< 0%
Negative
Pause and restructure
Platform Benchmarks
Engagement Rate by Platform
Platform
Average
Good
Excellent
Instagram
1.22%
3-6%
>6%
Facebook
0.07%
0.5-1%
>1%
Twitter/X
0.05%
0.1-0.5%
>0.5%
LinkedIn
2.0%
3-5%
>5%
TikTok
5.96%
8-15%
>15%
CTR by Platform
Platform
Average
Good
Excellent
Instagram
0.22%
0.5-1%
>1%
Facebook
0.90%
1.5-2.5%
>2.5%
LinkedIn
0.44%
1-2%
>2%
TikTok
0.30%
0.5-1%
>1%
CPC by Platform
Platform
Average
Good
Facebook
$0.97
<$0.50
Instagram
$1.20
<$0.70
LinkedIn
$5.26
<$3.00
TikTok
$1.00
<$0.50
| Metric | Formula |
|---|---|
| Cost Per Engagement (CPE) | Total Spend / Total Engagements |
| Cost Per Click (CPC) | Total Spend / Total Clicks |
| Cost Per Thousand (CPM) | (Spend / Impressions) × 1000 |
| Return on Ad Spend (ROAS) | Revenue / Ad Spend |
| Action | Value | Rationale |
|---|---|---|
| Like | $0.50 | Brand awareness |
| Comment | $2.00 | Active engagement |
| Share | $5.00 | Amplification |
| Save | $3.00 | Intent signal |
| Click | $1.50 | Traffic value |
ROI Interpretation
ROI %
Rating
Recommendation
> 500%
Excellent
Scale budget significantly
200-500%
Good
Increase budget moderately
100-200%
Acceptable
Optimize before scaling
0-100%
Break-even
Review targeting and creative
< 0%
Negative
Pause and restructure
Platform Benchmarks
Engagement Rate by Platform
Platform
Average
Good
Excellent
Instagram
1.22%
3-6%
>6%
Facebook
0.07%
0.5-1%
>1%
Twitter/X
0.05%
0.1-0.5%
>0.5%
LinkedIn
2.0%
3-5%
>5%
TikTok
5.96%
8-15%
>15%
CTR by Platform
Platform
Average
Good
Excellent
Instagram
0.22%
0.5-1%
>1%
Facebook
0.90%
1.5-2.5%
>2.5%
LinkedIn
0.44%
1-2%
>2%
TikTok
0.30%
0.5-1%
>1%
CPC by Platform
Platform
Average
Good
Facebook
$0.97
<$0.50
Instagram
$1.20
<$0.70
LinkedIn
$5.26
<$3.00
TikTok
$1.00
<$0.50
| ROI % | Rating | Recommendation |
|---|---|---|
| > 500% | Excellent | Scale budget significantly |
| 200-500% | Good | Increase budget moderately |
| 100-200% | Acceptable | Optimize before scaling |
| 0-100% | Break-even | Review targeting and creative |
| < 0% | Negative | Pause and restructure |
Engagement Rate by Platform
| Platform | Average | Good | Excellent |
|---|---|---|---|
| 1.22% | 3-6% | >6% | |
| 0.07% | 0.5-1% | >1% | |
| Twitter/X | 0.05% | 0.1-0.5% | >0.5% |
| 2.0% | 3-5% | >5% | |
| TikTok | 5.96% | 8-15% | >15% |
| Platform | Average | Good | Excellent |
|---|---|---|---|
| 0.22% | 0.5-1% | >1% | |
| 0.90% | 1.5-2.5% | >2.5% | |
| 0.44% | 1-2% | >2% | |
| TikTok | 0.30% | 0.5-1% | >1% |
CPC by Platform
Platform
Average
Good
Facebook
$0.97
<$0.50
Instagram
$1.20
<$0.70
LinkedIn
$5.26
<$3.00
TikTok
$1.00
<$0.50
| Platform | Average | Good |
|---|---|---|
| $0.97 | <$0.50 | |
| $1.20 | <$0.70 | |
| $5.26 | <$3.00 | |
| TikTok | $1.00 | <$0.50 |
See references/platform-benchmarks.md for complete benchmark data.
Tools
Calculate Metrics
python scripts/calculate_metrics.py assets/sample_input.json
Calculates engagement rate, CTR, reach rate for each post and campaign totals.
Analyze Performance
python scripts/analyze_performance.py assets/sample_input.json
python scripts/analyze_performance.py assets/sample_input.json
Generates full performance analysis with ROI, benchmarks, and recommendations.
Output includes:
- Campaign-level metrics
- Post-by-post breakdown
- Benchmark comparisons
- Top performers ranked
- Actionable recommendations
Examples
Sample Input
See assets/sample_input.json:
{
"platform": "instagram",
"total_spend": 500,
"posts": [
{
"post_id": "post_001",
"content_type": "image",
"likes": 342,
"comments": 28,
"shares": 15,
"saves": 45,
"reach": 5200,
"impressions": 8500,
"clicks": 120
}
]
}
Sample Output
See assets/expected_output.json:
{
"campaign_metrics": {
"total_engagements": 1521,
"avg_engagement_rate": 8.36,
"ctr": 1.55
},
"roi_metrics": {
"total_spend": 500.0,
"cost_per_engagement": 0.33,
"roi_percentage": 660.5
},
"insights": {
"overall_health": "excellent",
"benchmark_comparison": {
"engagement_status": "excellent",
"engagement_benchmark": "1.22%",
"engagement_actual": "8.36%"
}
}
}
Interpretation
The sample campaign shows:
- Engagement rate 8.36% vs 1.22% benchmark = Excellent (6.8x above average)
- CTR 1.55% vs 0.22% benchmark = Excellent (7x above average)
- ROI 660% = Outstanding return on $500 spend
- Recommendation: Scale budget, replicate successful elements
Reference Documentation
Platform Benchmarks
references/platform-benchmarks.md contains:
- Engagement rate benchmarks by platform and industry
- CTR benchmarks for organic and paid content
- Cost benchmarks (CPC, CPM, CPE)
- Content type performance by platform
- Optimal posting times and frequency
- ROI calculation formulas
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。