# SQL Analysis

> Guided workflow for SQL data analysis using db_tools

- Skill: `datus-ai/sql-analysis` (Agent Skill)
- Install (CLI): `npx skillmds@latest add datus-ai/sql-analysis`
- Raw SKILL.md: https://api.skillmd.com/api/skills/datus-ai/sql-analysis/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: datus-ai (https://skillmd.com/u/datus-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/datus-ai/sql-analysis

---


# SQL Analysis Workflow

This skill guides you through a structured data analysis workflow using database tools.

## Workflow Steps

### Step 1: Schema Discovery
First, understand the database schema:
```
Use db_tools.list_tables() to see available tables
Use db_tools.describe_table(table_name) for each relevant table
```

### Step 2: Data Exploration
Explore the data with sample queries:
```
Use db_tools.execute_sql("SELECT * FROM {table} LIMIT 10")
```

### Step 3: Analysis Query
Based on the user's question, construct and execute the analysis query.

### Step 4: Result Interpretation
Analyze the results and provide insights.

