/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-queries skill 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-visualization skill 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
1---
2name: analyze
3description: 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.
4argument-hint: "<question>"
5---
6
7# /analyze - Answer Data Questions
8
9> If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md).
10
11Answer a data question, from a quick lookup to a full analysis to a formal report.
12
13## Usage
14
15```
16/analyze <natural language question>
17```
18
19## Workflow
20
21### 1. Understand the Question
22
23Parse the user's question and determine:
24
25- **Complexity level**:
26 - **Quick answer**: Single metric, simple filter, factual lookup (e.g., "How many users signed up last week?")
27 - **Full analysis**: Multi-dimensional exploration, trend analysis, comparison (e.g., "What's driving the drop in conversion rate?")
28 - **Formal report**: Comprehensive investigation with methodology, caveats, and recommendations (e.g., "Prepare a quarterly business review of our subscription metrics")
29- **Data requirements**: Which tables, metrics, dimensions, and time ranges are needed
30- **Output format**: Number, table, chart, narrative, or combination
31
32### 2. Gather Data
33
34**If a data warehouse MCP server is connected:**
35
361. Explore the schema to find relevant tables and columns
372. Write SQL query(ies) to extract the needed data
383. Execute the query and retrieve results
394. If the query fails, debug and retry (check column names, table references, syntax for the specific dialect)
405. If results look unexpected, run sanity checks before proceeding
41
42**If no data warehouse is connected:**
43
441. Ask the user to provide data in one of these ways:
45 - Paste query results directly
46 - Upload a CSV or Excel file
47 - Describe the schema so you can write queries for them to run
482. If writing queries for manual execution, use the `sql-queries` skill for dialect-specific best practices
493. Once data is provided, proceed with analysis
50
51### 3. Analyze
52
53- Calculate relevant metrics, aggregations, and comparisons
54- Identify patterns, trends, outliers, and anomalies
55- Compare across dimensions (time periods, segments, categories)
56- For complex analyses, break the problem into sub-questions and address each
57
58### 4. Validate Before Presenting
59
60Before sharing results, run through validation checks:
61
62- **Row count sanity**: Does the number of records make sense?
63- **Null check**: Are there unexpected nulls that could skew results?
64- **Magnitude check**: Are the numbers in a reasonable range?
65- **Trend continuity**: Do time series have unexpected gaps?
66- **Aggregation logic**: Do subtotals sum to totals correctly?
67
68If any check raises concerns, investigate and note caveats.
69
70### 5. Present Findings
71
72**For quick answers:**
73- State the answer directly with relevant context
74- Include the query used (collapsed or in a code block) for reproducibility
75
76**For full analyses:**
77- Lead with the key finding or insight
78- Support with data tables and/or visualizations
79- Note methodology and any caveats
80- Suggest follow-up questions
81
82**For formal reports:**
83- Executive summary with key takeaways
84- Methodology section explaining approach and data sources
85- Detailed findings with supporting evidence
86- Caveats, limitations, and data quality notes
87- Recommendations and suggested next steps
88
89### 6. Visualize Where Helpful
90
91When a chart would communicate results more effectively than a table:
92
93- Use the `data-visualization` skill to select the right chart type
94- Generate a Python visualization or build it into an HTML dashboard
95- Follow visualization best practices for clarity and accuracy
96
97## Examples
98
99**Quick answer:**
100```
101/analyze How many new users signed up in December?
102```
103
104**Full analysis:**
105```
106/analyze What's causing the increase in support ticket volume over the past 3 months? Break down by category and priority.
107```
108
109**Formal report:**
110```
111/analyze Prepare a data quality assessment of our customer table -- completeness, consistency, and any issues we should address.
112```
113
114## Tips
115
116- Be specific about time ranges, segments, or metrics when possible
117- If you know the table names, mention them to speed up the process
118- For complex questions, Claude may break them into multiple queries
119- Results are always validated before presentation -- if something looks off, Claude will flag it