standard-deviation

standard-deviation is a skill for Claude Code, Codex from danielrosehill/Claude-Data-Analyst-plugin. It costs 64 tokens per session (1,332 once invoked), scanned A, original, MIT.

A data-analysis workflow that measures standard deviation, a number showing how much numeric values differ from their average. It also compares other ways to describe spread and warns when standard deviation may give a misleading picture.

In plain words
What is it for?
Use it to analyse numeric columns in CSV, Parquet, Excel, or DuckDB data, including separate calculations for groups and sample or whole-population formulas.
Why use it?
It prevents you from applying the wrong formula or summarising unsuitable columns, such as IDs and row numbers. It also helps distinguish ordinary variation from skewed data and outliers.

Skill for Claude CodeCodex

Part of the claude-data-analyst plugin — 14 skills shipped together

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.

agentmods
npx agentmods add skills/danielrosehill/claude-data-analyst-plugin/standard-deviation
Any agent
npx skills add danielrosehill/Claude-Data-Analyst-plugin --skill standard-deviation
Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-Data-Analyst-plugin

Made for: Claude Code, Codex.

Or install claude-data-analyst, the plugin that ships this one along with the rest of its 14 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 standard-deviation

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/standard-deviation.svg)](https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/standard-deviation)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/standard-deviation"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/standard-deviation.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00064 $0.01332
Opus 5 $0.00032 $0.00666
Sonnet 5 $0.00013 $0.00266
Haiku 4.5 $0.00006 $0.00133

Measured 4d ago against content hash 6a72db61fbea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

standard-deviation 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 4d 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/standard-deviation/SKILL.md · 98 lines

How it starts

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

Standard Deviation

Compute standard deviation for one or more numeric columns, plus the context needed to actually use the number: sample vs. population formula, comparison to related spread measures, and warnings when SD is the wrong summary.

Inputs

  • Path to a dataset (CSV / Parquet / Excel / DuckDB table).
  • Optional: specific columns. Default: all numeric columns.
  • Optional: grouping column — compute SD within each group.
  • Optional: formula — sample (n-1 denominator, default) or population (n denominator). Default is sample, because almost all real data is a sample of something.
  • duckdb — built-in stddev_samp(), stddev_pop(), variance(), quantile_cont().
  • uv run --with pandas --with scipy python -c '...' — MAD, trimmed SD, bootstrap CI for SD.

Procedure

Step 1 — Pick the right columns

For each candidate numeric column:

  • Skip if it's an ID, code, or row index (monotonic increasing, all-unique integer). SD is meaningless.
  • Skip if it's a boolean-coded 0/1 column unless the user asks (SD = sqrt(p(1-p)), rarely the useful summary).
  • Include continuous measurements, counts, ratios, currency, scores.

Report any column you skipped and why.

Step 2 — Compute the core statistics

For each column (and each group, if grouping):

Statistic What it tells you
n (non-null count) Sample size the SD is based on.
mean, median Centre. If they differ substantially, distribution is skewed.
stddev_samp Standard deviation, n-1 denominator. Default report value.
variance_samp Square of SD. Report if user explicitly wants it.
min, max Range. Flag if max is >10× the 99th percentile — outlier pulling SD up.
q25, q75, IQR Robust spread — compare to SD.
mad (median absolute deviation) Robust SD analogue. MAD × 1.4826 ≈ SD if data is normal.
cv (coefficient of variation) = SD / mean Dimensionless spread. Only meaningful when mean > 0 and the column has a natural zero (not temperatures-in-C).

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 64 tokens per session scan A 6a72db61fbea

Subscribe to this mod's changes

standard-deviation is a skill published in the GitHub repository danielrosehill/Claude-Data-Analyst-plugin (11 stars, last pushed 4mo ago), licensed MIT. It adds 64 tokens to every session and 1,332 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories