企業固有のデータ分析スキルを生成または改善します。アナリスト(データ分析担当者)の知識を抽出して活用します。 **ブートストラップモード** — 次のようなトリガーで起動: 「データコンテキストスキルを作成」「ウェアハウス用のデータ分析をセットアップ」「データベース用のスキルを作成するのを手伝って」「[企業名]用のデータスキルを生成」 → データベーススキーマを検出し、重要な質問をしてから、参考資料を含めた初期スキルを生成します **反復改善モード** — 次のようなトリガーで起動: 「[分野]について情報を追加」「このスキルには[トピック]についての詳細が必要」「データスキルを[指標/テーブル/専門用語]で更新」「[分野]の参考資料を改善」 → 既存スキルを読み込み、焦点を絞った質問をしてから、参考資料を追加または更新します **次のような場合に使用:** データアナリストがClaudeに対して、企業固有のデータウェアハウス(データ倉庫)、専門用語、指標の定義、一般的なクエリパターンを理解させたいとき
Generate or improve a company-specific data analysis skill by extracting tribal knowledge from analysts. BOOTSTRAP MODE - Triggers: "Create a data context skill", "Set up data analysis for our warehouse", "Help me create a skill for our database", "Generate a data skill for [company]" → Discovers schemas, asks key questions, generates initial skill with reference files ITERATION MODE - Triggers: "Add context about [domain]", "The skill needs more info about [topic]", "Update the data skill with [metrics/tables/terminology]", "Improve the [domain] reference" → Loads existing skill, asks targeted questions, appends/updates reference files Use when data analysts want Claude to understand their company's specific data warehouse, terminology, metrics definitions, and common query patterns.
アナリストから企業固有のデータ知識を引き出し、カスタマイズされたデータ分析スキルを生成するメタスキルです。
このスキルには2つのモードがあります:
次のような場合に使用: ユーザーが自社のデータウェアハウス向けに新しいデータコンテキストスキルを作成したい場合。
ステップ1: データベースの種類を特定する
質問: 「どのデータウェアハウスをお使いですか?」
一般的な選択肢:
~~data warehouse ツール(クエリおよびスキーマ)を使用して接続します。
不明な場合は、現在のセッションで利用可能なMCPツールを確認してください。
ステップ2: スキーマを探索する
~~data warehouse スキーマツールを使用して以下を行います:
方言別のサンプル探索クエリ:
-- BigQuery: データセットの一覧表示
SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA
-- BigQuery: データセット内のテーブル一覧表示
SELECT table_name FROM `project.dataset.INFORMATION_SCHEMA.TABLES`
-- Snowflake: スキーマの一覧表示
SHOW SCHEMAS IN DATABASE my_database
-- Snowflake: テーブルの一覧表示
SHOW TABLES IN SCHEMA my_schema
スキーマの探索後、以下の質問を会話形式で行います(一度にすべて聞かないこと)。
エンティティの明確化(重要)
「こちらで『ユーザー』や『顧客』という言葉を使う場合、正確には何を指しますか?種類はありますか?」
聞き取るべき点:
主要な識別子
「[顧客/ユーザー/アカウント]の主要な識別子は何ですか?同一エンティティに複数のIDがありますか?」
聞き取るべき点:
主要メトリクス
「よく問い合わせのある指標を2〜3つ教えてください。それぞれどのように計算されていますか?」
聞き取るべき点:
データの品質管理
「クエリで常に除外すべきデータはありますか?(テストデータ、不正データ、社内ユーザーなど)」
聞き取るべき点:
よくある落とし穴
「新しいアナリストがこのデータで犯しがちなミスは何ですか?」
聞き取るべき点:
以下の構成でスキルを作成します:
[company]-data-analyst/
├── SKILL.md
└── references/
├── entities.md # エンティティの定義と関係性
├── metrics.md # KPIの計算方法
├── tables/ # ドメインごとに1ファイル
│ ├── [domain1].md
│ └── [domain2].md
└── dashboards.json # 任意: 既存ダッシュボードのカタログ
SKILL.md テンプレート: references/skill-template.md を参照してください。
SQLダイアレクトのセクション: references/sql-dialects.md を参照し、適切な方言に関する注記を含めてください。
リファレンスファイルのテンプレート: references/domain-template.md を参照してください。
次のような場合に使用: ユーザーが既存のスキルを持っており、さらにコンテキストを追加したい場合。
ユーザーに既存スキル(zip またはフォルダ)のアップロードを依頼するか、すでにセッション内にある場合はそれを参照します。
現在の SKILL.md とリファレンスファイルを読み込み、すでに何が文書化されているかを把握します。
質問: 「どのドメインやトピックにコンテキストが不足していますか?失敗しているクエリや誤った結果を返しているクエリはありますか?」
よくある不足点:
特定されたドメインに対して:
関連テーブルの探索: ~~data warehouse スキーマツールを使用して該当ドメインのテーブルを検索する
ドメイン固有の質問を行う:
新しいリファレンスファイルを生成する: ドメインテンプレートを使用して references/[domain].md を作成する
各リファレンスファイルには以下を含めてください。
生成されたスキルを納品する前に、以下を確認してください:
A meta-skill that extracts company-specific data knowledge from analysts and generates tailored data analysis skills.
This skill has two modes:
Use when: User wants to create a new data context skill for their warehouse.
Step 1: Identify the database type
Ask: "What data warehouse are you using?"
Common options:
Use ~~data warehouse tools (query and schema) to connect. If unclear, check available MCP tools in the current session.
Step 2: Explore the schema
Use ~~data warehouse schema tools to:
Sample exploration queries by dialect:
-- BigQuery: List datasets
SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA
-- BigQuery: List tables in a dataset
SELECT table_name FROM `project.dataset.INFORMATION_SCHEMA.TABLES`
-- Snowflake: List schemas
SHOW SCHEMAS IN DATABASE my_database
-- Snowflake: List tables
SHOW TABLES IN SCHEMA my_schema
After schema discovery, ask these questions conversationally (not all at once):
Entity Disambiguation (Critical)
"When people here say 'user' or 'customer', what exactly do they mean? Are there different types?"
Listen for:
Primary Identifiers
"What's the main identifier for a [customer/user/account]? Are there multiple IDs for the same entity?"
Listen for:
Key Metrics
"What are the 2-3 metrics people ask about most? How is each one calculated?"
Listen for:
Data Hygiene
"What should ALWAYS be filtered out of queries? (test data, fraud, internal users, etc.)"
Listen for:
Common Gotchas
"What mistakes do new analysts typically make with this data?"
Listen for:
Create a skill with this structure:
[company]-data-analyst/
├── SKILL.md
└── references/
├── entities.md # Entity definitions and relationships
├── metrics.md # KPI calculations
├── tables/ # One file per domain
│ ├── [domain1].md
│ └── [domain2].md
└── dashboards.json # Optional: existing dashboards catalog
SKILL.md Template: See references/skill-template.md
SQL Dialect Section: See references/sql-dialects.md and include the appropriate dialect notes.
Reference File Template: See references/domain-template.md
Use when: User has an existing skill but needs to add more context.
Ask user to upload their existing skill (zip or folder), or locate it if already in the session.
Read the current SKILL.md and reference files to understand what's already documented.
Ask: "What domain or topic needs more context? What queries are failing or producing wrong results?"
Common gaps:
For the identified domain:
Explore relevant tables: Use ~~data warehouse schema tools to find tables in that domain
Ask domain-specific questions:
Generate new reference file: Create references/[domain].md using the domain template
Each reference file should include:
Before delivering a generated skill, verify:
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。