Agent Skills
› Datus-ai/Datus-agent
› sql-analysis
sql-analysis
GitHub提供基于 db_tools 的 SQL 数据分析结构化工作流,涵盖模式发现、数据探索、查询构建及结果解读。
Trigger Scenarios
需要分析数据库表结构
执行 SQL 查询以获取数据洞察
Install
npx skills add Datus-ai/Datus-agent --skill sql-analysis -g -y
SKILL.md
Frontmatter
{
"name": "sql-analysis",
"tags": [
"sql",
"analysis",
"workflow"
],
"version": "1.0.0",
"description": "Guided workflow for SQL data analysis using db_tools"
}
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.
Version History
- 8fb79f6 Current 2026-08-20 12:34


