Reviews data analysis for correctness: checks joins, metrics, denominators, date ranges, leakage, and statistical pitfalls. Useful when validating SQL or Python analysis outputs.
Ships in data-analysis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Select checks relevant to the question, data, and method. Prioritize failures that could change the conclusion or action. Keep calculations and source traces in working notes; include methods, caveats, and supporting detail in the user's requested format where they affect interpretation. Preserve the task's permitted sources and deliverable scope.
What goes wrong: A join changes the row grain, and a measure is then aggregated as if its original grain were preserved. Even a legitimate one-to-many join repeats the parent's measures.
Detection method:
-- Compare row counts before and after the join
SELECT COUNT(*) FROM orders; -- 1,000 order rows
SELECT COUNT(*) FROM orders o
JOIN line_items li ON o.id = li.order_id; -- 3,500 may be correct line-item rows
Prevention:
COUNT(DISTINCT o.id) can count matched orders; it does not repair duplicated order revenue or restore orders lost to an INNER JOINSUM(DISTINCT amount) as a repair, since different orders can have the same amountWhat goes wrong: The analysis only covers entities that still exist, ignoring those that were removed, churned, or failed.
Typical scenarios:
Prevention: Before drawing conclusions, ask: "Who is absent from this dataset, and would their presence change the story?"
What goes wrong: A month, week, or quarter that is still in progress gets compared to a completed one.
Typical scenarios:
Prevention: Compare completed or matched elapsed periods where possible. Equal day counts alone do not adjust for weekdays, holidays, exposure, or late-arriving data; disclose those differences. Extrapolation of a partial period is a separate assumption, not an observed total.
What goes wrong: The population used as a denominator changes between periods, making rate comparisons invalid.
Typical scenarios:
Prevention: Lock in consistent definitions across every period being compared. Flag any definition changes.
What goes wrong: Taking the mean of group-level averages ignores differences in group size, producing an incorrect overall figure.
Illustration:
Prevention: Recompute from raw records or combine group sums and the correct denominator counts. An unweighted mean of group means answers a different question (equal weight per group) and equals the pooled mean only under appropriate conditions, such as equal group sizes.
What goes wrong: Different source systems record timestamps in different zones, causing misaligned daily rollups and join mismatches.
Typical scenarios:
Prevention: Parse each source's timezone and align timestamps as instants before joining. Bucket dates in the requested business/reporting timezone, accounting for daylight-saving changes. UTC storage is compatible with local reporting, but UTC calendar days need not match business days. If the source timezone is unknown and boundary records matter, disclose the ambiguity rather than assuming it away.
What goes wrong: Segments are defined using the very outcome being measured, creating tautological findings.
Typical scenarios:
Prevention: Base segment definitions on characteristics measured before the outcome period, not on the outcome itself.
| Metric Category | Validation Approach |
|---|---|
| User counts | Cross-reference against known DAU/MAU benchmarks |
| Revenue totals | Reconcile to a comparable revenue control; ARR is a run-rate measure, not interchangeable with period revenue |
| Conversion proportions | 0-100% only when the numerator is a subset of unique eligible trials; event-per-user ratios can exceed 100% |
| Growth rates | Verify the base, sign, and coverage; a zero base is undefined and rapid growth is not itself an error |
| Averages | Verify sums, weights, and denominator grain; inspect the relevant distribution |
| Segment shares | Sum to 100% only for an exhaustive, mutually exclusive partition; explain overlap or missing segments |
Retain enough detail internally to reproduce the material calculations. Use the fields below as relevant working notes or as a methods appendix when requested; they are not a mandatory report structure. A concise answer or requested Office artifact need not ship all SQL/code, a separate audit file, or a second deliverable.
## Analysis: [Title]
### Business Question
[The precise question this work answers]
### Sources
- Table: [schema.table_name] (snapshot date: [date])
- Table: [schema.other_table] (snapshot date: [date])
- External file: [filename] (origin: [description])
### Metric and Segment Definitions
- [Metric A]: [Precise calculation formula]
- [Segment X]: [Exact inclusion/exclusion criteria]
- [Time window]: [Start] through [end], [timezone]
### Analytical Approach
1. [First step and its purpose]
2. [Second step]
3. [Third step]
### Assumptions and Known Limitations
- [Assumption and why it holds]
- [Limitation and its potential effect on conclusions]
### Results
1. [Finding with supporting evidence]
2. [Finding with supporting evidence]
### Calculations and Queries
[Relevant workings, source locations, query/code versions, and reconciliation checks]
### Warnings for the Reader
- [Anything the audience should weigh before acting on these results]
For SQL or Python that others may reuse:
"""
Title: Monthly Cohort Retention
Author: [Name]
Created: [Date]
Sources: events, users
Last cross-checked: [Date] — matched dashboard within 2%
Objective:
Build monthly retention cohorts anchored on each user's first event date.
Assumptions:
- "Active" = at least one recorded event in the calendar month
- Internal and test accounts excluded (user_type != 'internal')
- Event timestamps aligned as instants; cohort months use [reporting timezone]
Output:
Retention grid: rows are cohort months, columns are months since first event.
Cell values are retention percentages (0-100).
"""
What SKILL.md sets; muted values are Claude Code's defaults
/data-analysis:analysis-qafrom data-analysis
npx claudepluginhub okou-ai/okou-skills --plugin data-analysis4 skills in this plugin
/data-profilingProfile datasets for schema, distributions, nulls, cardinality, outliers, relationships, and data quality./sql-cookbookCraft and optimize SQL for any warehouse dialect — Snowflake, BigQuery, Databricks, Redshift, PostgreSQL. Covers window functions, CTEs, aggregations, joins, funnel queries, cohort retention, deduplication, dialect translation, slow query tuning, and cross-platform syntax differences./stats-methodsApply statistics for summaries, tests, distributions, experiments, outliers, and trends.Other plugins' skills for the same job