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


