AgentSkillsCN

sql-analysis

借助 db_tools 实现 SQL 数据分析的引导式工作流

SKILL.md
--- frontmatter
name: sql-analysis
description: Guided workflow for SQL data analysis using db_tools
tags:
  - sql
  - analysis
  - workflow
version: 1.0.0

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:

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

code
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.