analysis-qa
Quality-check data analysis for joins, metrics, denominators, date ranges, leakage, and statistical pitfalls.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Quality-check data analysis for joins, metrics, denominators, date ranges, leakage, and statistical pitfalls.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create, edit, inspect, run, schedule, pause, or delete Zero workflows and automations.
Operate apps on the desktop host the user connected to Zero Computer Use, when APIs are not enough. Not for remote browser sessions, which are Zero Browser (`zero browser use`).
Google Slides API for reading and editing presentations and speaker notes. Use when user mentions "Google Slides", "slides", "presentation", "speaker notes", or shares a docs.google.com/presentation link.
Use vm0's managed banking gateway backed by Finicity to list enabled bank accounts, balances, and transactions. Use when the user mentions Finicity, connected bank accounts, banking balances, or bank transactions.
Reconcile accounts, ledgers, bank statements, subledgers, variances, and supporting schedules.
Prepare audit workpapers, control tests, samples, evidence, deficiencies, and remediation tracking.
| name | analysis-qa |
| description | Quality-check data analysis for joins, metrics, denominators, date ranges, leakage, and statistical pitfalls. |
Work through every section below before presenting findings to stakeholders.
What goes wrong: Joining two tables with a many-to-many relationship silently multiplies rows, blowing up counts and sums.
Detection method:
-- Compare row counts before and after the join
SELECT COUNT(*) FROM orders; -- 1,000
SELECT COUNT(*) FROM orders o
JOIN line_items li ON o.id = li.order_id; -- 3,500 (unexpected inflation)
Prevention:
COUNT(DISTINCT o.id) to count entities accurately through multi-row joinsWhat 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: Restrict comparisons to completed periods, or normalize by matching the same number of elapsed days.
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: Always compute averages from individual records. Never take the mean of already-aggregated means.
What goes wrong: Different source systems record timestamps in different zones, causing misaligned daily rollups and join mismatches.
Typical scenarios:
Prevention: Convert all timestamps to a single reference zone (UTC is the safest default) before any analysis. State the timezone in the deliverable.
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 | Compare to known ARR or recent financial reports |
| Conversion rates | Must be 0-100%; compare to dashboard baselines |
| Growth rates | Is 50%+ month-over-month realistic, or does it signal a data problem? |
| Averages | Given the distribution, does this number feel right? |
| Segment shares | Do percentage breakdowns sum to approximately 100%? |
Every substantial analysis should ship with this documentation:
## 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]
### Queries
[All SQL and code used, annotated with comments]
### 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')
- All timestamps normalized to UTC
Output:
Retention grid: rows are cohort months, columns are months since first event.
Cell values are retention percentages (0-100).
"""