correlation-analysis

correlation-analysis is a skill for Claude Code, Codex from danielrosehill/Claude-Data-Analyst-plugin. It costs 57 tokens per session (474 once invoked), scanned A, original, MIT.

A data-analysis skill that measures how numeric columns in a CSV, Parquet, or Excel dataset move together, using Pearson, Spearman, or Kendall correlation.

In plain words
What is it for?
Use it to inspect a dataset, rank the strongest positive or negative variable pairs, or compare other columns with a chosen target.
Why use it?
It provides a first report of strong relationships between variables and flags missing, constant, suspicious, or highly similar columns.

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/correlation-analysis
Any agent
npx skills add danielrosehill/Claude-Data-Analyst-plugin --skill correlation-analysis
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 correlation-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/correlation-analysis.svg)](https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/correlation-analysis)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/correlation-analysis"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/correlation-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 474 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.00057 $0.00474
Opus 5 $0.00028 $0.00237
Sonnet 5 $0.00011 $0.00095
Haiku 4.5 $0.00006 $0.00047

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

Security

Grade A, and why

correlation-analysis 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 3d 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/correlation-analysis/SKILL.md · 43 lines

What it actually says

Correlation Analysis

Produce a first-pass correlation report for a dataset in a folder.

Inputs

  • Path to a dataset file (CSV, TSV, Parquet, XLSX) or folder containing one.
  • Optional: correlation method (pearson default, spearman for non-linear/ranked, kendall for small-n or many ties).
  • Optional: target variable — if given, rank all other numeric columns by absolute correlation to it.
  • duckdb — fastest way to load mixed formats and run CORR(x, y) in SQL.
  • uv run --with pandas --with scipy python -c '...' — for Spearman/Kendall and heatmap export.
  • csvstat (csvkit) — quick column types and null counts before correlating.

Procedure

  1. Load and profile: identify file format, row count, and column dtypes. Drop or flag non-numeric columns.
  2. Null/variance screen: exclude columns with >50% nulls or zero variance — note them in the report.
  3. Compute correlation matrix using the chosen method.
  4. Rank pairs by absolute correlation. Report:
    • Top 5 positive (r > 0.3)
    • Top 5 negative (r < -0.3)
    • Any suspicious pairs (|r| > 0.95 — likely duplicates or derived columns)
  5. Caveats: correlation is not causation; check for confounders; Pearson assumes linearity; small-n results are unreliable (flag if n < 30).

Output

Write a markdown report next to the dataset (<dataset>-correlations.md) with:

  • Method used and sample size
  • Ranked pair table
  • Flagged column exclusions
  • One-paragraph plain-English summary of the strongest relationships

If a --target was given, lead with a ranked list of predictors of that target.

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. 3d ago First seen · 43 lines · 57 tokens per session scan A a54ddfe025f1

Subscribe to this mod's changes

correlation-analysis is a skill published in the GitHub repository danielrosehill/Claude-Data-Analyst-plugin (11 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 474 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

fixing-streamlit-ci

Analyze and fix failed GitHub Actions CI jobs for the current branch/PR. Use when CI checks fail, PR checks show failures, or you need to diagnose lint/type/test errors and verify fixes locally.

streamlit/streamlit · 47 tokens

improving-python-coverage

Runs Python unit tests with coverage, analyzes coverage reports, and implements meaningful tests to increase coverage by 0.2%. Use when you want to systematically improve Python test coverage with high-value test cases.

streamlit/streamlit · 47 tokens

improving-frontend-coverage

Runs frontend unit tests with coverage, analyzes coverage reports, and implements meaningful tests to increase coverage by 0.2%. Use when you want to systematically improve frontend test coverage with high-value test cases.

streamlit/streamlit · 48 tokens

developing-with-streamlit

Use for ALL Streamlit tasks: creating, editing, debugging, beautifying, styling, theming, optimizing, or deploying Streamlit apps. Also custom components, st.components.v2, HTML/JS/CSS work. Discovers and loads version-matched reference docs from the user's installed Streamlit (>=1.57). Triggers: streamlit, st.…

streamlit/streamlit · 128 tokens

reviewing-readability

Evaluates comments, docstrings, and naming in code for readability by a developer new to the codebase — is the documentation clear and concise, and is non-obvious logic documented? Produces findings with concrete proposed rewrites (or additions where documentation is missing); the caller decides whether to apply them…

streamlit/streamlit · 108 tokens

sn-da-excel-workflow

Excel 数据分析多步编排器。覆盖:(1) 读取多 Sheet Excel 文件并统计行数,(2) 大文件检测(≥10k 行自动 Parquet 优化),(3) 数据清洗(缺失值、文本标准化、无效字符),(4) 条件筛选与分类提取,(5) 跨 Sheet 统计聚合,(6) 导出 Excel/CSV 并提供下载链接。覆盖从数据读取到报告生成全流程,按步骤编排 capability 子 skill。遇到以下任一情况就主动使用本 skill,不要自行写几行 pandas 就回答:①用户出现触发词:Excel 分析 / 表格分析 / 数据分析 / 数据清洗 / 数据统计 / 数据筛选 / 数据可视化 / 数据导出 / 汇总统计 /…

OpenSenseNova/SenseNova-Skills · 348 tokens