Linkedin Analytics skill for Claude

Use when someone asks why their LinkedIn reach dropped, which posts worked, whether a pattern is real or how to test one. Analyzes posts with post_performance_analyzer.py, mines patterns with pattern_miner.py and plans tests with experiment_planner.py.

Linkedin Analytics SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

LinkedIn Analytics — describe honestly, then refuse to over-conclude

The characteristic sentence of LinkedIn analytics is "carousels do 3x better for me", built on four posts. With engagement as heavy-tailed as it is, four posts will show a 3x difference between almost any two groups you care to define. These three scripts stop that sentence becoming a strategy.

Your own data only. Nothing is fetched; scraping post or profile data is prohibited by User Agreement §8.2 and none of this analysis needs it.

Workflow

1. Get the export. LinkedIn Analytics → Post impressions → Export, or Settings → Data privacy → Get a copy of your data. CSV and JSON both work.

2. Describe it. Exit 0 analysed / 2 below the 10-post floor, descriptive only / 3 unusable. Reports median and MAD rather than mean and standard deviation — one breakout post makes a mean describe a distribution none of your posts belong to — plus Tukey percentile bands and a 1.5×IQR breakout threshold, so "this did well" has a number behind it.

python3 scripts/post_performance_analyzer.py --input posts.csv --csv --output human

3. Test the pattern they think they see.

python3 scripts/pattern_miner.py --input posts.json --output human

Exit 0 something survived / 2 nothing survived / 3 under 10 posts. Four gates: 5 posts in and 5 out; a 15% relative difference in medians; beating 90% of 2,000 seeded label shuffles; and a multiple-comparisons accounting of how many candidates would pass on noise alone.

"Nothing survived" is the most common honest answer and it is a real finding. Report it as one. Do not soften it into a hedge that reads like a conclusion.

4. Turn a survivor into a test.

python3 scripts/experiment_planner.py --hypothesis "..." --variable "..." \
  --cv 0.45 --effect 0.30 --posts-per-week 2 --max-weeks 12 --output human

CV comes from step 2: 1.4826 * MAD / median. Exit 0 feasible / 2 too long, with the minimum detectable effect in their window / 3 refused. It will frequently say the test needs more posts than a quarter allows — that is the honest answer, and more useful than a confident conclusion from retrospective data.

Rules

  • Under 10 posts, describe; do not conclude. Say so plainly.
  • A pattern in past posts is a hypothesis. Retrospective data is confounded — you made carousels when you had structured material, on topics you knew best, in weeks you had time. No statistics on the same data removes that.
  • Never benchmark against someone else's numbers. Different denominator, different audience, usually a vendor's sample.
  • Follower count is not a success metric. Track inbound conversations, specific references, invitations — the Tier 1 metrics you count by hand.
  • Report the confidence level. LinkedIn-official 🟢, third-party study 🟡, folklore 🔴.
  • One good post is not evidence. It is the most common cause of a strategy change and the least informative event available.

Scripts

ScriptRole
scripts/post_performance_analyzer.pyMedian/MAD, percentile bands, IQR outlier fence, per-post BREAKOUT→DUD classification; refuses conclusions below 10 posts.
scripts/pattern_miner.pyFour-gate permutation test with multiple-comparisons accounting; reports why every rejected candidate failed.
scripts/experiment_planner.pySizes a two-arm posting experiment, names the confounds to hold constant, and writes the falsification condition before the first post.

References and assets

Distinct from

  • marketing-skill/social-media-analyzer — cross-platform brand campaign reporting. This is one person's own LinkedIn export, with refusals attached.
  • linkedin-strategy — decides what to do next. This says what happened.
  • product-team/experiment-designer — product A/B tests with real traffic; here n is posts, and usually too small.

Version: 1.0.0

How to install Linkedin Analytics

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/marketing/linkedin/skills/linkedin-analytics#main ~/.claude/skills/linkedin-analytics

Codex

npx degit alirezarezvani/claude-skills/marketing/linkedin/skills/linkedin-analytics#main ~/.codex/skills/linkedin-analytics

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Linkedin Analytics skill do?

Use when someone asks why their LinkedIn reach dropped, which posts worked, whether a pattern is real or how to test one. Analyzes posts with post_performance_analyzer.py, mines patterns with pattern_miner.py and plans tests with experiment_planner.py.

+How do I install Linkedin Analytics in Claude Code?

Copy the skill folder into ~/.claude/skills/linkedin-analytics, for example with "npx degit alirezarezvani/claude-skills/marketing/linkedin/skills/linkedin-analytics#main ~/.claude/skills/linkedin-analytics". Claude Code loads it automatically and uses it when a task matches.

+Does Linkedin Analytics work with ChatGPT or Codex?

Yes. Linkedin Analytics uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/linkedin-analytics. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Linkedin Analytics free?

Linkedin Analytics is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related marketing skills

  1. Marketing Skills

    Use when looking for which of the 44 marketing skills fits a task. Lists them by pod and routes to one; does no marketing work itself.

    alirezarezvani/claude-skills★ 30k
  2. Image

    When the user wants to create, generate, edit, or optimize marketing images, or asks which approach to take (generate, design, or…

    coreyhaines31/marketingskills★ 61k
  3. Agent Reach

    只读读取各平台内容:搜索、读帖、看评论、取字幕、查行情和职位。 Use when 用户提到或贴出链接:小红书/xiaohongshu、B站/bilibili、Twitter/X、Reddit、…

    Panniantong/Agent-Reach★ 113k
  4. Linkedin Content

    Write, edit or review a LinkedIn post: story, how-to, carousel, video script or poll.

    alirezarezvani/claude-skills★ 30k
  5. Linkedin Engagement

    Use for LinkedIn comments, connection notes, DMs or outreach plans, or checking outreach volume is safe.

    alirezarezvani/claude-skills★ 30k
  6. Linkedin Profile

    Use when auditing or rewriting a LinkedIn profile (headline, About, experience, Featured).

    alirezarezvani/claude-skills★ 30k
  7. Linkedin Skills

    Use for any organic LinkedIn growth request (strategy, profile, posts, cadence, outreach, analytics).

    alirezarezvani/claude-skills★ 30k
  8. Linkedin Strategy

    Build a LinkedIn plan rather than a post: content pillars, positioning, a sustainable cadence, whether to start a newsletter.

    alirezarezvani/claude-skills★ 30k
  9. Marketing Context

    Use at the start of any marketing project, or when ICP, positioning or brand voice are missing, before other marketing skills.

    alirezarezvani/claude-skills★ 30k

See all marketing skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.