kmaruthi2002/universal-llm-skills/data-analysis
Claude Code and agent skill by kmaruthi2002/universal-llm-skills
- community
Checking that the SKILL.md file is still in the repository.
Answer real questions with data: frame the question as a decision, establish the data's provenance, grain and coverage, explore before concluding, segment and compare like with like, reason about confounders and selection effects, and report findings with honest uncertainty and caveats. Use when someone asks "why did X change", "what drives Y", "is A better than B", "how many / how much", wants insights from a dataset, a metric investigation, a funnel or cohort analysis, or an ad-hoc analytical answer — in SQL, pandas, R, a spreadsheet or a BI tool. Not for choosing statistical tests (see statistical-analysis), cleaning raw data (data-cleaning-and-validation), designing experiments (experiment-design), or building a recurring dashboard (dashboard-building).
Install
npx vskill@latest install kmaruthi2002/universal-llm-skills/data-analysisSKILL.md
The same SKILL.md was published earlier as kmaruthi2002/universal-llm-skills/data-analysis.
Data Analysis
Data analysis is the work of turning a question into a defensible answer using data. The output is not a chart or a table; it is a claim about the world, with the evidence for it, the strength of that evidence, and what would change it. Most analyses that go wrong do so not because of arithmetic errors but because the question was vague, the data did not mean what the analyst assumed, or the comparison was not fair.
Scope
This skill covers the end-to-end analytical loop: framing, understanding the data, exploration, comparison, causal reasoning, and reporting. It leans on siblings for specialised parts:
statistical-analysis— which test, interval or model to use and how to check its assumptions.data-cleaning-and-validation— profiling, fixing and documenting raw data problems.data-visualization— turning findings into charts that communicate honestly.experiment-design— when the right answer is "run a controlled test" rather than mine observational data.sql-and-queries— writing correct and efficient queries.root-cause-analysis— when the question is "why did this system fail", not "what does the data say".dashboard-building— when the deliverable is a recurring view, not a one-time answer.
Core principles
1. The question comes before the data
An analysis is only as good as the question it answers. "Look at the sales data and find insights" has no stopping condition and no way to be wrong, so it produces a pile of observations nobody acts on. "Should we extend the spring promotion to the northern region?" tells you which metric matters, which comparison is relevant, what precision is enough, and when you are done.
Why: the question decides the grain, the population, the time window, the comparison group and the metric. Without it, every one of those choices is arbitrary, and arbitrary choices are where bias creeps in — you end up choosing the cut that looks most interesting.
2. Know what a row is
Every dataset has a grain: one row per order, per order line, per user-day, per session, per event. Almost every serious analytical bug — double counting, inflated averages, impossible conversion rates — is a grain mistake. State the grain in words before computing anything, and re-state it after every join.
Why: "average order value" computed over order lines is a different (and wrong) number from the same metric computed over orders. Nothing in the query will warn you.
3. Data is a record of a process, not the world
Every column was produced by something: a form, a sensor, a tracking script, an ETL job, a human typing. That process has gaps, defaults, delays, and changes over time. A spike in "signups" may be a tracking change; a drop in "errors" may be a logging outage; "country" may be the billing address, the IP location, or whatever the user picked from a dropdown that defaulted to the first option.
Why: if you do not know how a number was produced, you do not know what it means, and you cannot tell a real change from a measurement change.
4. Compare like with like
A number on its own means almost nothing. Meaning comes from comparison: against last period, a control group, a benchmark, another segment, an expectation. And the comparison must be fair — same definitions, same population, same time window length, same maturity (a 3-day-old cohort cannot be compared with a 30-day-old cohort on 30-day retention).
Why: unfair comparisons produce confident, wrong conclusions. "Users who use feature X retain better" is usually "engaged users retain better, and engaged users find feature X".
5. Correlation is cheap; causation needs an argument
Observational data can show you that two things move together. To claim that one causes the other you need either a randomized comparison or a specific argument for why the obvious alternative explanations (confounding, reverse causation, selection, chance) do not apply. When you cannot make that argument, say so in plain words.
Why: decisions are causal ("if we do X, Y will improve"). Presenting an association as if it were causal leads people to pull levers that do nothing.
6. Uncertainty is part of the answer
Every estimate has error: sampling noise, measurement error, definitional ambiguity, and the possibility that your model of the situation is wrong. A finding reported without its uncertainty invites over-reaction to noise. A finding buried in caveats is useless. The skill is to state the answer, how sure you are, and what would most likely make it wrong — in that order.
Process
Step 1 — Frame the question
Turn the request into a question you could, in principle, be wrong about. Clarify:
- The decision. What will someone do differently depending on the answer? If nothing, ask whether the analysis is needed or reframe it.
- The metric. Which number, defined how? "Revenue" — gross or net of refunds? booked or recognised? including tax?
- The population. Which users, products, regions, time window? Who is excluded and why?
- The comparison. Versus what? Last year, a control group, a target, other segments?
- The precision needed. Does the decision flip at 2% or at 20%? This sets how much rigour is worth spending.
- The deadline. A rough answer today is often worth more than a rigorous one next month. Say which you are delivering.
If the request is ambiguous in a way that changes the answer, ask (see clarify-requirements). If you cannot ask, state your interpretation explicitly at the top of the result.
Write a one-paragraph analysis plan before querying: the question, the metric definition, the comparison, the data sources, and what result would lead to which conclusion. Writing down what you expect protects you from the temptation to declare whatever you find "interesting".
Step 2 — Understand the data before trusting it
For each source, establish:
| Question | Why it matters | |
|---|---|---|
| What is the grain (one row per what)? | Determines how to count and aggregate. | |
| What is the primary key? Is it actually unique? | Duplicate keys silently inflate joins and counts. | |
| Where does it come from, and how is it produced? | Tells you what the values mean and what they miss. | |
| What period does it cover, and when was it last refreshed? | Partial recent periods look like drops. | |
| What is excluded (test accounts, bots, internal users, deleted records, refunds)? | Inclusion rules change totals. | |
| Have definitions or tracking changed over the window? | Changes look like trends. | |
| Are there known incidents, outages or backfills? | These create artefacts. | |
| What units, currencies, timezones? | Mixed units produce nonsense averages. |
Sources for these answers, in rough order of reliability: the code or pipeline that produces the data; data dictionaries and model docs; the people who own the source; the data itself (profiling); and last, column names (which lie).
Run a profile: row counts by period, null rates by column, distinct counts, min/max, top values (see data-cleaning-and-validation). Plot the row count over time — gaps, steps and spikes in volume are the single fastest way to find tracking and pipeline problems.
Step 3 — Reconcile to a known number
Before any analysis, reproduce one number someone already trusts: last month's revenue from finance, the user count on the official dashboard, the order count in the operational system. If you cannot match it, find out why before going further. Differences of a few tenths of a percent may be explainable (timezones, refund timing); differences of 10% mean you have misunderstood something.
Why: if your baseline is wrong, every downstream number is wrong in a way you cannot see. And when you present results, the first question will be "why doesn't this match the dashboard?" — have the answer ready.
Step 4 — Explore
Exploration is looking at the data with an open but disciplined mind. Useful moves:
- Distributions before averages. Look at histograms or percentiles (p1, p10, p50, p90, p99) of key metrics. Means hide skew, bimodality and outliers; most business metrics (revenue per user, session length, order value) are heavily right-skewed, so the mean is driven by a small tail.
- Time series at more than one resolution. Daily data shows day-of-week cycles and incidents; weekly smooths them; monthly shows trends and seasonality. Compare with the same period last year to separate seasonality from change.
- Counts alongside rates. A conversion rate going up because the denominator collapsed is a different story from one going up because conversions grew. Always show numerator and denominator.
- Top-N and bottom-N. Which customers, products, regions dominate? Concentration (e.g., top 1% of customers = 40% of revenue) changes how to interpret every aggregate.
- Look at raw rows. Pull 20 random records and 20 extreme ones and read them. Many problems (test data, duplicates, bot traffic, unit errors) are obvious to the eye and invisible in aggregates.
Keep a running log of what you looked at and what you found, including dead ends. It protects you from the garden of forking paths (see pitfalls) and makes the analysis reproducible.
Step 5 — Segment and decompose
Aggregate changes are almost always the sum of different movements in different segments. Decompose:
- By dimension. Break the metric down by the dimensions most likely to matter: platform, region, channel, customer tenure, product line, plan tier. Look for where the change is concentrated.
- Rate vs mix. A total rate can change because rates within segments changed, or because the mix of segments shifted, or both. Compute both components. Example: overall conversion fell from 4.0% to 3.6%, but conversion within both mobile and desktop was flat — the drop is entirely because mobile (lower-converting) went from 40% to 60% of traffic. The action is completely different from "conversion is broken".
- Funnel stages. For multi-step processes, find which step moved.
- Cohorts. Group entities by when they started (signup month, first purchase) and track them over age, not calendar time. This separates "new users behave differently" from "everyone's behaviour changed".
Simpson's paradox is the extreme case of mix effects: a trend that holds in every segment reverses in the aggregate. Whenever segments differ greatly in size and in the metric, check the segmented view before trusting the aggregate — and decide, based on the causal story, which view answers the question.
Watch the size of segments as you slice: with many dimensions you will always find some small segment with a dramatic change. Report segment sizes, and treat findings in small segments as hypotheses.
Step 6 — Reason about causes
When the question is "why" or "what if", lay out the candidate explanations explicitly and test each:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/data-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kmaruthi2002/universal-llm-skills/data-analysis)