📊analyze
- プラグイン
- Data
- 引数
- <question>
- ソース
- GitHub で見る ↗
説明
データに関する質問に回答します — 簡単なルックアップから本格的な分析まで対応。 次のような場合に使用: 単一の指標を調べたいとき、トレンドや数値の変動要因を調査したいとき、セグメントを時系列で比較したいとき、またはステークホルダー向けの正式なデータレポートを作成したいとき。
原文を表示
Answer data questions -- from quick lookups to full analyses. Use when looking up a single metric, investigating what's driving a trend or drop, comparing segments over time, or preparing a formal data report for stakeholders.
ユースケース
- ✓単一の指標を調べたいとき
- ✓トレンドや数値の変動要因を調査したいとき
- ✓セグメントを時系列で比較したいとき
- ✓ステークホルダー向けの正式なレポートを作成するとき
本文(日本語訳)
/analyze - データに関する質問への回答
見慣れないプレースホルダーがある場合や、接続中のツールを確認したい場合は、CONNECTORS.md を参照してください。
簡単なルックアップから本格的な分析、正式なレポートまで、データに関するあらゆる質問に回答します。
使い方
/analyze <自然言語による質問>
ワークフロー
1. 質問を理解する
ユーザーの質問を解析し、以下を判断します:
- 複雑さのレベル:
- クイック回答: 単一の指標・シンプルなフィルター・事実の検索 (例: 「先週の新規ユーザー登録数は?」)
- 本格的な分析: 多次元的な探索・トレンド分析・比較 (例: 「コンバージョン率が下がっている原因は何か?」)
- 正式なレポート: 方法論・注意事項・推奨事項を含む包括的な調査 (例: 「サブスクリプション指標の四半期ビジネスレビューをまとめてほしい」)
- データ要件: 必要なテーブル・指標・ディメンション・期間
- 出力形式: 数値・表・グラフ・文章、またはそれらの組み合わせ
2. データを収集する
データウェアハウスの MCP サーバーが接続されている場合:
- スキーマを探索し、関連するテーブルとカラムを特定する
- 必要なデータを抽出する SQL クエリを作成する
- クエリを実行して結果を取得する
- クエリが失敗した場合はデバッグして再試行する (カラム名・テーブル参照・対象方言の構文を確認)
- 結果が想定外に見える場合は、先に進む前にサニティチェックを実施する
データウェアハウスが接続されていない場合:
- 以下のいずれかの方法でデータを提供するようユーザーに依頼する:
- クエリ結果を直接貼り付ける
- CSV または Excel ファイルをアップロードする
- スキーマを説明してもらい、ユーザーが実行するクエリを代わりに作成する
- 手動実行用のクエリを作成する場合は、方言ごとのベストプラクティスとして
sql-queriesスキルを使用する - データが提供され次第、分析を進める
3. 分析する
- 関連する指標・集計・比較を計算する
- パターン・トレンド・外れ値・異常を特定する
- 複数のディメンション(期間・セグメント・カテゴリ)をまたいで比較する
- 複雑な分析の場合は、問題をサブ質問に分解してそれぞれに対処する
4. 提示前に検証する
結果を共有する前に、以下の検証チェックを実施します:
- レコード件数のサニティチェック: レコード数は妥当か?
- Null チェック: 結果を歪める可能性のある予期しない Null はないか?
- 数値の大きさチェック: 数値は合理的な範囲に収まっているか?
- トレンドの連続性: 時系列に予期しないギャップはないか?
- 集計ロジック: 小計の合算が合計と一致しているか?
チェックで懸念事項が生じた場合は、原因を調査したうえで注意事項として明記します。
5. 結果を提示する
クイック回答の場合:
- 関連するコンテキストとともに、回答を直接提示する
- 再現性のために使用したクエリを(折りたたみまたはコードブロックで)掲載する
本格的な分析の場合:
- 主要な発見・インサイトを冒頭に提示する
- データテーブルやビジュアライゼーションで裏付けを示す
- 方法論と注意事項を記載する
- フォローアップの質問を提案する
正式なレポートの場合:
- 主要なポイントをまとめたエグゼクティブサマリー
- アプローチとデータソースを説明する方法論セクション
- 根拠となる証拠を含む詳細な調査結果
- 注意事項・制約事項・データ品質に関するメモ
- 推奨事項と次のステップの提案
6. 効果的な場面でビジュアライズする
表よりもグラフの方が結果をより効果的に伝えられる場合:
data-visualizationスキルを使用して適切なグラフタイプを選択する- Python でビジュアライゼーションを生成するか、HTML ダッシュボードに組み込む
- 明確さと正確さのためにビジュアライゼーションのベストプラクティスに従う
使用例
クイック回答:
/analyze 12月に新規登録したユーザーは何人ですか?
本格的な分析:
/analyze 過去3か月でサポートチケット数が増加している原因は何ですか?カテゴリと優先度別に分析してください。
正式なレポート:
/analyze 顧客テーブルのデータ品質評価をまとめてください — 完全性・一貫性・対処すべき問題点を含めてください。
ヒント
- 可能な限り期間・セグメント・指標を具体的に指定してください
- テーブル名がわかっている場合は記載すると処理が速くなります
- 複雑な質問の場合、Claude が複数のクエリに分解して処理することがあります
- 結果は常に提示前に検証されます — 何かおかしい点があれば Claude が指摘します
原文(English)を表示
/analyze - Answer Data Questions
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Answer a data question, from a quick lookup to a full analysis to a formal report.
Usage
/analyze <natural language question>
Workflow
1. Understand the Question
Parse the user's question and determine:
- Complexity level:
- Quick answer: Single metric, simple filter, factual lookup (e.g., "How many users signed up last week?")
- Full analysis: Multi-dimensional exploration, trend analysis, comparison (e.g., "What's driving the drop in conversion rate?")
- Formal report: Comprehensive investigation with methodology, caveats, and recommendations (e.g., "Prepare a quarterly business review of our subscription metrics")
- Data requirements: Which tables, metrics, dimensions, and time ranges are needed
- Output format: Number, table, chart, narrative, or combination
2. Gather Data
If a data warehouse MCP server is connected:
- Explore the schema to find relevant tables and columns
- Write SQL query(ies) to extract the needed data
- Execute the query and retrieve results
- If the query fails, debug and retry (check column names, table references, syntax for the specific dialect)
- If results look unexpected, run sanity checks before proceeding
If no data warehouse is connected:
- Ask the user to provide data in one of these ways:
- Paste query results directly
- Upload a CSV or Excel file
- Describe the schema so you can write queries for them to run
- If writing queries for manual execution, use the
sql-queriesskill for dialect-specific best practices - Once data is provided, proceed with analysis
3. Analyze
- Calculate relevant metrics, aggregations, and comparisons
- Identify patterns, trends, outliers, and anomalies
- Compare across dimensions (time periods, segments, categories)
- For complex analyses, break the problem into sub-questions and address each
4. Validate Before Presenting
Before sharing results, run through validation checks:
- Row count sanity: Does the number of records make sense?
- Null check: Are there unexpected nulls that could skew results?
- Magnitude check: Are the numbers in a reasonable range?
- Trend continuity: Do time series have unexpected gaps?
- Aggregation logic: Do subtotals sum to totals correctly?
If any check raises concerns, investigate and note caveats.
5. Present Findings
For quick answers:
- State the answer directly with relevant context
- Include the query used (collapsed or in a code block) for reproducibility
For full analyses:
- Lead with the key finding or insight
- Support with data tables and/or visualizations
- Note methodology and any caveats
- Suggest follow-up questions
For formal reports:
- Executive summary with key takeaways
- Methodology section explaining approach and data sources
- Detailed findings with supporting evidence
- Caveats, limitations, and data quality notes
- Recommendations and suggested next steps
6. Visualize Where Helpful
When a chart would communicate results more effectively than a table:
- Use the
data-visualizationskill to select the right chart type - Generate a Python visualization or build it into an HTML dashboard
- Follow visualization best practices for clarity and accuracy
Examples
Quick answer:
/analyze How many new users signed up in December?
Full analysis:
/analyze What's causing the increase in support ticket volume over the past 3 months? Break down by category and priority.
Formal report:
/analyze Prepare a data quality assessment of our customer table -- completeness, consistency, and any issues we should address.
Tips
- Be specific about time ranges, segments, or metrics when possible
- If you know the table names, mention them to speed up the process
- For complex questions, Claude may break them into multiple queries
- Results are always validated before presentation -- if something looks off, Claude will flag it
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。