Analysis Qaのロゴ

Analysis Qa

組織
okou-ai
analysis-qa

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

概要

公開者okou-ai
リポジトリokou-skills
スキル名analysis-qa
スター
81
フォーク
19
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    okou-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Analysis Qa」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/okou-ai/okou-skills/tree/main/analysis-qa
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/okou-ai/okou-skills.git /tmp/okou-skills
mkdir -p .claude/skills
cp -r /tmp/okou-skills/analysis-qa .claude/skills/analysis-qa
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAnalysis Qaを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAnalysis Qaを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Analysis Qaは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Review Checklist

Work through every section below before presenting findings to stakeholders.

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: Row counts confirm no double-counting from faulty joins or repeated source records
  • 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: Compared periods span equal durations; partial periods are either excluded or called out
  • 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

  • Order of magnitude: Key figures fall within a believable range; revenue is non-negative; percentages stay within 0-100%
  • Trend coherence: Time series show no unexplained jumps or drops
  • External agreement: Headline numbers align with dashboards, finance reports, or earlier analyses
  • 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: Limitations and assumptions are stated up front
  • Reproducibility: Another analyst could recreate the work from the provided documentation

Recognizing Common Mistakes

Inflated Counts from Many-to-Many Joins

What goes wrong: Joining two tables with a many-to-many relationship silently multiplies rows, blowing up counts and sums.

Detection method:

sql
-- 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:

  • Always compare pre-join and post-join row counts
  • Verify the actual cardinality of the join relationship
  • Use COUNT(DISTINCT o.id) to count entities accurately through multi-row joins

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, ask: "Who is absent from this dataset, and would their presence change the story?"

Partial Period Comparisons

What goes wrong: A month, week, or quarter that is still in progress gets compared to a completed one.

Typical scenarios:

  • "January revenue is $500K vs. December's $800K" when January is only half over
  • "Signups are down this week" when checked on Tuesday against a full prior week

Prevention: Restrict comparisons to completed periods, or normalize by matching the same number of elapsed days.

Shifting Denominators

What goes wrong: The population used as a denominator changes between periods, making rate comparisons invalid.

Typical scenarios:

  • Conversion rate appears to improve because the definition of "eligible visitor" was narrowed
  • Churn rate shifts because "active user" was redefined mid-analysis

Prevention: Lock in consistent definitions across every period being compared. Flag any definition changes.

Averaging Pre-Computed Averages

What goes wrong: Taking the mean of group-level averages ignores differences in group size, producing an incorrect overall figure.

Illustration:

  • Segment A: 100 customers, $50 average order
  • Segment B: 10 customers, $200 average order
  • Incorrect overall average: ($50 + $200) / 2 = $125
  • Correct weighted average: (100 * $50 + 10 * $200) / 110 = $63.64

Prevention: Always compute averages from individual records. Never take the mean of already-aggregated means.

Timezone Inconsistencies

What goes wrong: Different source systems record timestamps in different zones, causing misaligned daily rollups and join mismatches.

Typical scenarios:

  • Backend events logged in UTC while the reporting layer uses US Pacific
  • Two tables that define "today" with different cutoff hours

Prevention: Convert all timestamps to a single reference zone (UTC is the safest default) before any analysis. State the timezone in the deliverable.

Circular Segmentation

What goes wrong: Segments are defined using the very outcome being measured, creating tautological findings.

Typical scenarios:

  • "Users who finished onboarding retain better" — finishing onboarding is itself a retention signal
  • "Power users drive more revenue" — revenue generation is what made them power users

Prevention: Base segment definitions on characteristics measured before the outcome period, not on the outcome itself.

Sanity-Checking Results

Quick Magnitude Tests

Metric CategoryValidation Approach
User countsCross-reference against known DAU/MAU benchmarks
Revenue totalsCompare to known ARR or recent financial reports
Conversion ratesMust be 0-100%; compare to dashboard baselines
Growth ratesIs 50%+ month-over-month realistic, or does it signal a data problem?
AveragesGiven the distribution, does this number feel right?
Segment sharesDo percentage breakdowns sum to approximately 100%?

Cross-Validation Approaches

  1. Dual calculation: Derive the same metric via two independent query paths and confirm they match
  2. Record-level spot checks: Select a handful of specific entities and manually trace their numbers end to end
  3. Benchmark comparison: Verify against published dashboards, finance systems, or prior analysis outputs
  4. Arithmetic reversal: If total revenue is X and there are N users, does X / N approximate the reported per-user figure?
  5. Micro-slice testing: Filter to a single day, user, or category and confirm the micro-result is sensible

Signals That Demand Investigation

  • Any metric swinging more than 50% period-over-period without a clear explanation
  • Totals or sums that land on suspiciously round numbers (possible filter or default-value artifact)
  • Rates pegged at exactly 0% or 100% (may indicate missing data rather than perfect outcomes)
  • Results that confirm the hypothesis too neatly (real data is almost always messy)
  • Identical values appearing across different time periods or segments (suggests a dimension is being ignored)

Ensuring Reproducibility

Analysis Write-Up Template

Every substantial analysis should ship with this documentation:

markdown

## 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]

Annotating Analytical Code

For SQL or Python that others may reuse:

python
"""
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).
"""

Maintaining an Audit Trail

  • Store all queries and scripts in version control or a shared knowledge base
  • Record the exact data snapshot date used for each analysis run
  • When refreshing a recurring analysis, document what changed and why
  • Link current results to prior versions so trends in the analysis itself are traceable

よくある質問

AIスキル「Analysis Qa」では何ができますか?

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

TypingMindでAnalysis Qaを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Analysis Qaはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAnalysis Qaをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/okou-ai/okou-skills/tree/main/analysis-qaを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Analysis Qaを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Analysis Qaで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAnalysis Qaを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Analysis Qa」は無料ですか?

okou-aiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇