traffic-change-diagnosis

traffic-change-diagnosis is a skill for Claude Code from clamp-sh/analytics-skills. It costs 88 tokens per session (3,570 once invoked), scanned A, original, MIT.

A method for investigating why website traffic changed. It separates tracking problems from real changes in visitors by checking measurement, timing, channels, audiences, and content.

In plain words
What is it for?
Use it to investigate traffic drops or spikes, test possible explanations, and decide whether an observed change is meaningful or likely random variation.
Why use it?
Traffic can rise or fall because analytics broke, bots appeared, or people actually changed their behaviour; the workflow helps distinguish these causes.

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 traffic drops or spikes, test possible explanations, and decide whether an observed change is meaningful or likely random variation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clamp-sh/analytics-skills/traffic-change-diagnosis
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 traffic-change-diagnosis
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 traffic-change-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/clamp-sh/analytics-skills/traffic-change-diagnosis/github.svg)](https://agentmods.dev/skills/clamp-sh/analytics-skills/traffic-change-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/clamp-sh/analytics-skills/traffic-change-diagnosis"><img src="https://agentmods.dev/badge/skills/clamp-sh/analytics-skills/traffic-change-diagnosis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for traffic-change-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/clamp-sh/analytics-skills/traffic-change-diagnosis"><img src="https://agentmods.dev/badge/skills/clamp-sh/analytics-skills/traffic-change-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00088 $0.03570
Opus 5 $0.00044 $0.01785
Sonnet 5 $0.00018 $0.00714
Haiku 4.5 $0.00009 $0.00357

Measured 11d ago against content hash 780aac200ef2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

traffic-change-diagnosis scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Add a post-deploy smoke test: `curl -s <blog page> | grep <analytics
skills/traffic-change-diagnosis/SKILL.md · 285 lines

How it starts

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

Traffic change diagnosis

The specialist version of the diagnostic method, applied to one question: why did traffic (sessions, pageviews, unique visitors) move?

Read analytics-diagnostic-method first if you haven't. This skill assumes you already know MECE, triangulation, sample size, and Pyramid presentation. It adds the traffic-specific fingerprints and drill paths.

Opening moves

  1. Read analytics-profile.md if present. The profile tells you the expected monthly traffic range and known measurement gaps. Both matter: a "spike" from 200 to 400 sessions/day on a <1k/month site is plausibly random; the same shape on a 1M/month site is an event.
  2. Restate the question precisely. "Traffic dropped" is not a question. "Daily sessions fell from ~1,400 to ~900 starting April 18, with no corresponding drop in pageviews" is.
  3. Decide: is this a real change at all? Apply the sample-size rule from analytics-diagnostic-method. Below ~300 observations per bucket, most "changes" are noise.

The hypothesis tree for traffic

Walk in this order. Cheap checks first.

Traffic change
├── 1. Measurement  (check first, always)
│   ├── Tracking regression (script missing, container unpublished, CSP block)
│   ├── Bot filter toggle (inclusion/exclusion changed)
│   └── Attribution shift (referrer policy, cookie policy, cross-domain)
├── 2. Time shape  (what does the curve look like?)
│   ├── Cliff (single hour/day step)           → discrete event
│   ├── Ramp (gradual over days/weeks)         → campaign / SEO / decay
│   ├── Spike (single-day anomaly)             → bot burst, viral, outage resolved
│   └── Cyclic (weekly/monthly pattern change) → seasonality, campaign cadence
├── 3. Channel
│   ├── One channel moved                       → campaign / algo / platform change
│   ├── All channels moved proportionally       → measurement or site-wide issue
│   └── One channel grew, another shrank        → mix shift (use Simpson's check)
├── 4. Cohort
│   ├── New users changed, returning didn't     → acquisition-side change
│   ├── Returning changed, new didn't           → retention / email / loyalty change
│   └── Both changed                            → site-wide or measurement
└── 5. Content / page
    ├── One page moved                          → deploy, SEO page, content change
    ├── Many pages moved proportionally         → site-wide (nav, header, domain)
    └── Entry pages moved, deep pages didn't    → acquisition landing change

Read the full file on GitHub · 285 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. 11d ago First seen · 285 lines · 88 tokens per session scan A 780aac200ef2

Subscribe to this mod's changes

traffic-change-diagnosis is a skill published in the GitHub repository clamp-sh/analytics-skills (8 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 3,570 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.