New guide:Claude skills vs prompt templates for marketing work
Chartroom Search

Home/Analytics and reporting/Social Media Analyzer

Social Media Analyzer skill for Claude

Social Media Analyzer turns your post numbers and ad spend into engagement rate, CTR, cost per engagement and ROI, then grades them against averages for each platform

A 3-minute read with a 7-step sample run and a 17 KB download, updated

Download the skill

Works in claude.ai and Claude Code

How it works

Step 1 of 6

Step 1 of 6

Starts from your post numbers

You give it likes, comments and reach per post, plus shares, saves, impressions and clicks if you have them, and total ad spend only if you want cost figures

Step 2 of 6

Checks the data before any maths

Reach must be above zero on every post, counts can't be negative, the start date must come before the end date and spend must be above zero for ROI

Step 3 of 6

Rates each post and the campaign

Engagement rate is likes, comments, shares and saves divided by reach, and CTR is clicks divided by impressions

Step 4 of 6

What each engagement and click cost

Spend is split over total engagements and total clicks, and ROI comes from an assumed dollar value per action

Step 5 of 6

Against the platform's own average

An 8% engagement rate counts as excellent on Instagram, where the average is 1.22%, and only good on TikTok, where excellent starts above 15%

Step 6 of 6

A ranked list with a budget call

You get posts ranked by engagement rate, a rating for each metric and a budget call such as scale, optimize or pause

In detail

Ratios from a few counts

The skill works out engagement rate (engagements over reach), CTR (clicks over impressions), reach rate (reach over followers), virality rate (shares over impressions) and save rate (saves over reach). Each is multiplied by 100 to read as a percentage. A final check confirms that engagement rate stays under 100% and that ROI matches the spend data.

Benchmarks per platform

Engagement rate is rated against averages for Instagram (1.22%), Facebook (0.07%), X (0.05%), LinkedIn (2.0%) and TikTok (5.96%). CTR and cost per click have their own tables, for example $1.20 average CPC on Instagram and $5.26 on LinkedIn. A reference file adds averages by industry and content type, such as 1.95% for Instagram Reels and 1.18% for single images, plus suggested posting times.

ROI from assumed values

Without sales data, the skill prices each action: $0.50 a like, $2.00 a comment, $5.00 a share, $3.00 a save and $1.50 a click. ROI is that value minus spend, divided by spend. The skill is told to say these values are assumptions and to use real conversion or revenue figures when you have them, reported as ROAS (revenue divided by ad spend).

The scripts and their known gap

Two Python scripts run the maths on a JSON file: one calculates totals, rates, costs and top posts, the other adds benchmark comparison, overall health, strengths, weaknesses and recommendations. The scripts leave saves out of engagements, value every engagement at a flat $2.50 and use their own platform averages, which differ from the tables above in places (0.54% engagement for LinkedIn instead of 2.0%). When saves matter, Claude calculates by hand with the per-action values and says which method it used.

How the answer is laid out

The report opens with the bottom line, then what was found, why, and how to act. Each finding is tagged as verified, medium confidence or assumed, so you can see which numbers rest on estimates.

Rules it follows

Limits written into the skill, with the reason for each

  • Engagement rate above 6% is excellent, 3 to 6% good, 1 to 3% average and below 1% poor

    Each band comes with an action, from scale and replicate down to analyze and pivot

  • ROI above 500% means scale the budget, 200 to 500% increase it moderately, 100 to 200% optimize first, 0 to 100% review targeting and creative, below 0% pause

    This turns the ROI figure into a budget decision

  • Reach must be above 0 for every post before any rate is calculated

    Reach is the divisor in engagement rate and save rate, so a zero would break the maths

  • Engagement rate below the platform average flags content that isn't landing

    The next step is to look at the top performers for patterns to repeat

  • High impressions with low engagement is read as a content quality problem

    Many people saw the post and few of them reacted to it

What it needs and what you get

What you provide

  • Platform: Instagram, Facebook, X, LinkedIn or TikTok
  • Likes, comments and reach per post
  • Shares, saves, impressions and clicks, if available
  • Total ad spend, for cost and ROI figures

What you get back

A report with campaign and per-post metrics, top posts ranked by engagement rate, ratings against platform benchmarks, an ROI estimate with a budget call, and recommendations, each finding tagged by confidence

  • Engagement rate and CTR for each post and the whole campaign, plus campaign CPC and cost per engagement
  • Top posts ranked by engagement rate
  • A rating for engagement rate and CTR against the platform average: below average, good or excellent
  • ROI from estimated engagement value, with a budget call such as scale or pause
  • Recommendations on what to repeat and what to fix

A piece of the output from the sample run

Campaign vs Instagram benchmarks

MetricYoursAverage
Engagement rate5.93%1.22%
CTR (paid)0.70%0.58%
Cost per click$1.06$1.20

What to do next month

  • Keep the $1,200, move the $395 image budget to carousels and reels
  • Turn product shots into how-to carousels, put the discount code on the last slide

When to use it

  • You ran a boosted Instagram campaign and want to know if the spend paid off
  • You post on LinkedIn and TikTok and need to see which one earns more engagement
  • A monthly report is due and you need engagement figures with benchmarks beside them

Sample run

One test task, shown exactly as it ran

Read the run as text

We boosted all 12 of our Instagram posts in October, $1,200 total. Which formats work, how do we compare to the average, and should we keep the budget?

  • fernhollow-instagram-oct.csv12 rows

Using the skill social-media-analyzer

Reading 12 posts from fernhollow-instagram-oct.csv, $1,200 spend
Input checks4 passed, 1 needs a look
  • passed: Reach above 0 on all 12 posts
  • passed: Dates valid: Oct 1 to Oct 29
  • passed: Platform recognized: Instagram
  • passed: Spend rows add up to $1,200
  • needs a look: Saves are 19% of engagements, counted by hand
Engagement rate, all posts and by format (Instagram average 1.22%)
  • All 12 posts5.93%4.9x the average
  • Carousel8.08%$0.87 per click
  • Reel7.58%$0.90 per click
  • Single image1.92%$1.76 per click
Campaign vs Instagram benchmarks
MetricYoursAverageRating
Engagement rate5.93%1.22%Good
CTR (paid)0.70%0.58%Above average
Cost per click$1.06$1.20Above average
Cost per engagement$0.19$0.15Below average

The 4 single-image posts took $395 (33% of spend) and returned 637 of 6,164 engagements (10%). The 20% off reminder had the most impressions (15,680) and the lowest rate, 1.23%.

Estimated ROI is 745%, using assumed values per like, comment, share, save and click. It measures cheap attention and says nothing about sales. Add store data for a real return.

What to do next month

  • Keep the $1,200, move the $395 image budget to carousels and reels
  • Turn product shots into how-to carousels, put the discount code on the last slide
  • Add a shop call to action, aim for 1% CTR and under $0.70 per click
  • Tag links with UTMs to measure real sales from Instagram

Example prompts

Here are our last 12 Instagram posts with likes, comments, saves, reach and clicks. Which formats work best and how do we compare to the average?

We spent $1,200 on Facebook ads in October. Here is the export. What did each engagement and each click cost, and should we keep the budget?

Compare our engagement rates on LinkedIn, Instagram and TikTok for the last quarter and tell me where to put more effort

How to install

In claude.ai

Download social-media-analyzer.zip, upload the zip as it is under Settings, Capabilities, Skills and ask for the job in a new chat

Step by step: Use skills in Claude

In Claude Code

unzip social-media-analyzer.zip -d ~/.claude/skills/

For one project only, move the social-media-analyzer folder into .claude/skills/ inside it

Step by step: Claude Code skills docs

social-media-analyzer.zipA 17 KB download with 9 files
  • social-media-analyzer/
  • CHANGES.md3 KB
  • HOW_TO_USE.md2 KB
  • SKILL.md14 KB
  • assets/
  • expected_output.json1 KB
  • sample_input.json1 KB
  • references/
  • platform-benchmarks.md6 KB
  • scripts/
  • analyze_performance.py8 KB
  • calculate_metrics.py6 KB

Questions

How does the Social Media Analyzer calculate ROI?

It gives each engagement an assumed dollar value and compares the total with your spend, so add sales or sign-up figures from social for a real return on ad spend

Where does the Social Media Analyzer get the post numbers?

It works on the numbers it is given, so export them from each platform's analytics or ads manager and attach the file, or paste the figures into the chat