Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analysis-qa

БесплатноБез исполняемых скриптовНе проверен

Quality-check data analysis for joins, metrics, denominators, date ranges, leakage, and statistical pitfalls.

okou-aiот okou-ai★ 81 звезда на GitHub

Об этом скилле

Review Checklist

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.

Data Foundation

  • Correct sources: Confirmed that the tables and datasets used are the appropriate ones for this question
  • Freshness: Data recency is sufficient; the "data as of" date is noted
  • Coverage: No unexpected time gaps or missing segments in the dataset
  • Null treatment: Null rates in critical columns have been reviewed; nulls are excluded, filled, or explicitly flagged
  • Duplicate control: Keys, cardinalities, and totals at the intended grain confirm no unintended double-counting; row counts alone are insufficient
  • Filter accuracy: Every WHERE clause and filter condition has been verified; nothing is accidentally excluded or included

Computation Integrity

  • GROUP BY correctness: All non-aggregated columns appear in GROUP BY; the aggregation grain matches the analytical question
  • Denominator validity: Rates and percentages use the intended base population; division by zero is prevented
  • Temporal alignment: Period boundaries, business timezone, exposure, and completeness are comparable; unequal durations or partial periods are handled explicitly
  • Join behavior: JOIN types are intentional (INNER vs. LEFT); many-to-many relationships have not silently inflated totals
  • Metric fidelity: Calculated metrics align with how the business defines them; any deviations are documented
  • Additive consistency: Sub-totals sum to the reported total where expected; non-additive cases (overlap, double-counting) are explained

Plausibility Assessment

  • Definition-based bounds: Values satisfy the metric's actual domain. A bounded proportion lies in 0-100%; growth rates, event-per-person ratios, ROI, and driver shares may exceed those limits. Net revenue may be negative due to returns or adjustments; investigate the definition before treating a sign as an error
  • Trend coherence: Time series show no unexplained jumps or drops
  • Source agreement: Compare with available, authorized controls using the same definition, snapshot, scope, and period; explain discrepancies. Do not fetch external benchmarks for a closed-data task
  • Ballpark math: Total revenue roughly equals per-user revenue times user count, etc.
  • Boundary behavior: Results make sense for edge cases — a single day, a single user, a single category

Presentation Quality

  • Accurate visuals: Bar charts begin at zero; axes have labels; scales are consistent across panels
  • Clean formatting: Numbers use appropriate precision, consistent currency/percent notation, and thousands separators
  • Descriptive titles: Headings convey the insight, not just the metric name; date ranges are included
  • Transparent caveats: Material limitations and assumptions appear beside the conclusions they constrain
  • Reproducibility: Working records retain the inputs, transformations, and calculations needed to recreate material claims; share them when requested or necessary for the audience

Recognizing Common Mistakes

Join Grain and Inflated Totals

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:

  • Define the output grain and expected cardinality, then inspect matched/unmatched keys and before/after counts
  • COUNT(DISTINCT o.id) can count matched orders; it does not repair duplicated order revenue or restore orders lost to an INNER JOIN
  • Aggregate child facts to the required parent grain before joining when appropriate. When joining multiple child tables, prevent a line-item-by-payment cross-product
  • Reconcile both entity coverage and measure totals; do not use SUM(DISTINCT amount) as a repair, since different orders can have the same amount

Survivorship Bias

What goes wrong: The analysis only covers entities that still exist, ignoring those that were removed, churned, or failed.

Typical scenarios:

  • Studying behavior of "active users" while ignoring everyone who left
  • Benchmarking against "companies on our platform" while skipping those who evaluated and moved on
  • Analyzing traits of "successful" cases without any "unsuccessful" comparison group

Prevention: Before drawing conclusions

Полный SKILL.md на GitHub

Установить analysis-qa в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл analysis-qa?

Quality-check data analysis for joins, metrics, denominators, date ranges, leakage, and statistical pitfalls.

Как установить скилл analysis-qa?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analysis-qa запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analysis-qa с