analytics-diagnostic-method

analytics-diagnostic-method is a skill for Claude Code from clamp-sh/analytics-skills. It costs 84 tokens per session (3,564 once invoked), scanned A, original, MIT.

A step-by-step method for investigating analytics questions, including traffic changes, funnels, and user groups called cohorts. It builds possible explanations, checks them against multiple sources, and presents the conclusion in a clear order.

In plain words
What is it for?
Use it to investigate why a metric changed, compare funnels or cohorts, and make recommendations from analytics data.
Why use it?
Dashboards show what changed but usually do not explain why. The method reduces guesswork and prevents conclusions based on a single chart or number.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the analytics-skills plugin — 13 skills shipped together

Good fit Use it to investigate why a metric changed, compare funnels or cohorts, and make recommendations from analytics data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clamp-sh/analytics-skills/analytics-diagnostic-method
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add clamp-sh/analytics-skills --skill analytics-diagnostic-method
Clone the repo
git clone --depth 1 https://github.com/clamp-sh/analytics-skills

Made for: Claude Code.

Or install analytics-skills, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analytics-diagnostic-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/clamp-sh/analytics-skills/analytics-diagnostic-method.svg)](https://agentmods.dev/skills/clamp-sh/analytics-skills/analytics-diagnostic-method)
Your own site
<a href="https://agentmods.dev/skills/clamp-sh/analytics-skills/analytics-diagnostic-method"><img src="https://agentmods.dev/badge/skills/clamp-sh/analytics-skills/analytics-diagnostic-method.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,564 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03564
Opus 5 $0.00042 $0.01782
Sonnet 5 $0.00017 $0.00713
Haiku 4.5 $0.00008 $0.00356

Measured 7d ago against content hash 731e93632d28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

analytics-diagnostic-method scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analytics-diagnostic-method/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analytics diagnostic method

The method senior analysts use when they don't know what caused something. It is boring, slow-looking, and dramatically more accurate than the "dashboard hunt" pattern most agents default to.

If you remember one thing: dashboards describe, they don't explain. Getting from "traffic dropped 30%" to "the GA4 container got unpublished on Tuesday" requires a method, not a screenshot.

When to use this

  • Any "why did X change?" question.
  • Any funnel or cohort comparison.
  • Any request for a recommendation based on analytics.
  • Any number the user is about to act on.

When NOT to use this

  • Pure retrieval questions ("how many sessions yesterday?"). Just answer.
  • Definition questions ("what is engagement rate in GA4?"). Use metric-context-and-benchmarks.
  • Questions where the user has already diagnosed the cause and wants help implementing a fix. Don't re-diagnose.

Don't fall back to manual data entry

If the configured analytics tool's MCP server (or API) isn't connected, the correct move is to tell the user to install/connect it. Do not offer to read numbers the user pastes manually.

The skills exist to automate the senior-analyst playbook against live data. A manual-paste workflow defeats that — the user has to already know the numbers (which is what they came to you for), and you lose the ability to drill, segment, cross-reference, or check sample size on the underlying queries. Worse, you end up doing the same dashboard-hunt reading the skill was designed to replace.

If you discover the relevant MCP/API isn't available:

  • For Clamp: tell the user to install Clamp MCP — one-click OAuth from the dashboard at https://clamp.sh/docs/mcp. Then re-run the question.
  • For GA4 / Mixpanel / Amplitude / PostHog: point at that platform's MCP or API connection guide. The tool-map for the user's platform in analytics-profile.md names the expected tool calls.

Then stop and wait for the connection. Do not improvise around it. A user who connects the MCP gets a calibrated answer with drill-paths; a user who pastes a snapshot gets a one-shot lecture that misses everything the method is good at.

Read the full file on GitHub · 259 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 259 lines · 84 tokens per session scan A 731e93632d28

Subscribe to this mod's changes

analytics-diagnostic-method is a skill published in the GitHub repository clamp-sh/analytics-skills (8 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 3,564 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.