PluginBench
Skill
Pass
Audit score 90

social-media-analyzer

alirezarezvani/claude-skills

Analyze social media campaign performance with engagement rates, ROI calculations, and platform benchmarks.

What is social-media-analyzer?

Social media campaign analysis and performance tracking tool that calculates engagement rates, ROI, and benchmarks across platforms. Use when analyzing social media performance, calculating engagement rates, measuring campaign ROI, comparing platform metrics, or benchmarking against industry standards.

  • Calculate engagement rates, CTR, reach rate, virality rate, and save rate across posts
  • Compute ROI metrics including cost per engagement, cost per click, and return on ad spend
  • Compare campaign performance against platform-specific benchmarks (Instagram, Facebook, Twitter/X, LinkedIn, TikTok)
  • Identify top and bottom performing posts with actionable recommendations
  • Validate input data completeness and perform sanity checks on metrics
  • Generate campaign-level performance summaries with performance ratings (Excellent/Good/Average/Poor)

How to install social-media-analyzer

npx skills add https://github.com/alirezarezvani/claude-skills --skill social-media-analyzer
Prerequisites
  • Social media campaign data including platform, post metrics (likes, comments, shares, reach)
  • Optional: ad spend data for ROI calculations
  • Optional: impressions, clicks, and saves data for detailed analysis
Claude Code
Cursor
Windsurf
Cline

How to use social-media-analyzer

  1. 1.Gather your social media post data including platform, engagement metrics (likes, comments, shares, saves), reach, and impressions
  2. 2.Optionally include total ad spend if you want ROI calculations
  3. 3.Run the analysis tool with your data to calculate engagement rates and compare against platform benchmarks
  4. 4.Review the output for campaign-level metrics, post-by-post breakdown, and benchmark comparisons
  5. 5.Use the recommendations to identify top performers, content gaps, and optimization opportunities

Use cases

Good for
  • Analyze Instagram campaign performance to determine if engagement rates exceed platform benchmarks
  • Calculate ROI on a $500 Facebook ad spend across multiple posts to justify budget allocation
  • Compare engagement metrics across platforms to identify which channel performs best for your audience
  • Audit social media performance when follower growth stalls to identify content quality issues
  • Benchmark competitor social media metrics against your own campaign performance
Who it's for
  • Social media managers and marketers
  • Digital marketing agencies
  • Content creators and influencers
  • E-commerce and brand marketing teams
  • Marketing analysts and performance specialists

social-media-analyzer FAQ

What engagement rate is considered good?

It varies by platform: Instagram 3-6% is good (>6% excellent), Facebook 0.5-1% is good (>1% excellent), LinkedIn 3-5% is good (>5% excellent), and TikTok 8-15% is good (>15% excellent).

How is ROI calculated?

ROI is calculated as (Value - Spend) / Spend × 100, where value is estimated from engagement actions (likes=$0.50, comments=$2.00, shares=$5.00, saves=$3.00, clicks=$1.50).

What data do I need to provide?

Required: platform name, post data with likes, comments, reach. Optional: impressions, shares, saves, clicks, and total ad spend for more detailed analysis.

Can I compare performance across multiple platforms?

Yes, the tool includes platform-specific benchmarks for Instagram, Facebook, Twitter/X, LinkedIn, and TikTok, allowing you to compare your metrics against platform averages.

What does the tool recommend if engagement is low?

The tool identifies performance issues (e.g., high impressions but low engagement indicates content quality issues) and recommends analyzing top performers for patterns or testing content improvements.

Full instructions (SKILL.md)

Source of truth, from alirezarezvani/claude-skills.


name: "social-media-analyzer" description: Social media campaign analysis and performance tracking. Calculates engagement rates, ROI, and benchmarks across platforms. Use when analyzing social media performance, calculating engagement rate, measuring campaign ROI, comparing platform metrics, or benchmarking against industry standards. Also use when the user mentions "social media audit," "engagement rate," or "which platform performs best." 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:

  1. Validate input data completeness (reach > 0, dates valid)
  2. Calculate engagement metrics per post
  3. Aggregate campaign-level metrics
  4. Calculate ROI if ad spend provided
  5. Compare against platform benchmarks
  6. Identify top and bottom performers
  7. Generate recommendations
  8. Validation: Engagement rate < 100%, ROI matches spend data

Input Requirements

FieldRequiredDescription
platformYesinstagram, facebook, twitter, linkedin, tiktok
posts[]YesArray of post data
posts[].likesYesLike/reaction count
posts[].commentsYesComment count
posts[].reachYesUnique users reached
posts[].impressionsNoTotal views
posts[].sharesNoShare/retweet count
posts[].savesNoSave/bookmark count
posts[].clicksNoLink clicks
total_spendNoAd spend (for ROI)

Data Validation Checks

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

MetricFormulaInterpretation
Engagement RateEngagements / Reach × 100Audience interaction level
CTRClicks / Impressions × 100Content click appeal
Reach RateReach / Followers × 100Content distribution
Virality RateShares / Impressions × 100Share-worthiness
Save RateSaves / Reach × 100Content value

Performance Categories

RatingEngagement RateAction
Excellent> 6%Scale and replicate
Good3-6%Optimize and expand
Average1-3%Test improvements
Poor< 1%Analyze and pivot

ROI Calculation

Calculate return on ad spend:

  1. Sum total engagements across posts
  2. Calculate cost per engagement (CPE)
  3. Calculate cost per click (CPC) if clicks available
  4. Estimate engagement value using benchmark rates
  5. Calculate ROI percentage
  6. Validation: ROI = (Value - Spend) / Spend × 100

ROI Formulas

MetricFormula
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

ActionValueRationale
Like$0.50Brand awareness
Comment$2.00Active engagement
Share$5.00Amplification
Save$3.00Intent signal
Click$1.50Traffic value

ROI Interpretation

ROI %RatingRecommendation
> 500%ExcellentScale budget significantly
200-500%GoodIncrease budget moderately
100-200%AcceptableOptimize before scaling
0-100%Break-evenReview targeting and creative
< 0%NegativePause and restructure

Platform Benchmarks

Engagement Rate by Platform

PlatformAverageGoodExcellent
Instagram1.22%3-6%>6%
Facebook0.07%0.5-1%>1%
Twitter/X0.05%0.1-0.5%>0.5%
LinkedIn2.0%3-5%>5%
TikTok5.96%8-15%>15%

CTR by Platform

PlatformAverageGoodExcellent
Instagram0.22%0.5-1%>1%
Facebook0.90%1.5-2.5%>2.5%
LinkedIn0.44%1-2%>2%
TikTok0.30%0.5-1%>1%

CPC by Platform

PlatformAverageGood
Facebook$0.97<$0.50
Instagram$1.20<$0.70
LinkedIn$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

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

Proactive Triggers

  • Engagement rate below platform average → Content isn't resonating. Analyze top performers for patterns.
  • Follower growth stalled → Content distribution or frequency issue. Audit posting patterns.
  • High impressions, low engagement → Reach without resonance. Content quality issue.
  • Competitor outperforming significantly → Content gap. Analyze their successful posts.

Output Artifacts

When you ask for...You get...
"Social media audit"Performance analysis across platforms with benchmarks
"What's performing?"Top content analysis with patterns and recommendations
"Competitor social analysis"Competitive social media comparison with gaps

Communication

All output passes quality verification:

  • Self-verify: source attribution, assumption audit, confidence scoring
  • Output format: Bottom Line → What (with confidence) → Why → How to Act
  • Results only. Every finding tagged: 🟢 verified, 🟡 medium, 🔴 assumed.

Related Skills

  • social-content: For creating social posts. Use this skill for analyzing performance.
  • campaign-analytics: For cross-channel analytics including social.
  • content-strategy: For planning social content themes.
  • marketing-context: Provides audience context for better analysis.

Related skills

More from alirezarezvani/claude-skills and the wider catalog.

SOsocial-media-manager logo

social-media-manager

alirezarezvani/claude-skills

When the user wants to develop social media strategy, plan content calendars, manage community engagement, or grow their social presence across platforms. Also use when the user mentions 'social media strategy,' 'social calendar,' 'community management,' 'social media plan,' 'grow followers,' 'engagement rate,' 'social media audit,' or 'which platforms should I use.' For writing individual social posts, see social-content. For analyzing social performance data, see social-media-analyzer.

950 installsAudited
SPspawn logo

spawn

alirezarezvani/claude-skills

Launch N parallel subagents in isolated git worktrees to compete on solving the same task.

1.5k installsAudited
SQsql-database-assistant logo

sql-database-assistant

alirezarezvani/claude-skills

Use when the user asks to write SQL queries, optimize database performance, generate migrations, explore database schemas, or work with ORMs like Prisma, Drizzle, TypeORM, or SQLAlchemy.

610 installsAudited
STstatus logo

status

alirezarezvani/claude-skills

View experiment dashboard with results, active loops, and progress for autoresearch experiments.

1.6k installsAudited
STstress-test logo

stress-test

alirezarezvani/claude-skills

Break business assumptions before the market does—stress-test revenue, market size, moats, and execution plans.

1.5k installsAudited
TDtdd-guide logo

tdd-guide

alirezarezvani/claude-skills

Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and Mocha. Use when the user asks to write tests, improve test coverage, practice TDD, generate mocks or stubs, or mentions testing frameworks like Jest, pytest, or JUnit.

934 installs