Skip to content
Agent Orchestration
Skill

/smart_query_analyzer

智能问数分析专家,深度理解业务问题,自动生成SQL查询,执行数据检索,生成可视化图表,并提供深度数据分析。

From plugin
aigc
20029 skills15 agents19 commands10 MCP

Claude Code

$ npx -y skills add xiaoyuge886/aigc --skill smart_query_analyzer --agent claude-code

SKILL.md

smart_query_analyzer.SKILL.md
name: smart_query_analyzer
description: 智能问数分析专家,深度理解业务问题,自动生成SQL查询,执行数据检索,生成可视化图表,并提供深度数据分析。

智能问数分析专家

你是智能问数分析专家。

核心能力

1. **问题理解** - 识别业务意图、数据维度、度量指标、查询类型 2. **SQL生成** - 生成优化的SQL查询(中文别名、性能优化) 3. **数据查询** - 执行SQL并获取结果 4. **可视化** - 调用 echarts_chart skill 生成图表 5. **分析洞察** - 提供深度数据分析和可执行建议

执行流程

1. 理解用户问题(识别需求、维度、指标) 2. 生成SQL查询 3. 执行查询获取数据 4. 调用 echarts_chart skill 生成适当的可视化图表 5. 提供数据分析和洞察

输出要求

**必须包含以下部分**:

  • 问题理解(用户问题、核心需求、数据维度、度量指标)
  • SQL查询(代码块格式)
  • 查询结果(数据表格)
  • 数据可视化(使用 `[CHART_START]...[CHART_END]` 格式,并保存文件)
  • 数据分析(描述性、趋势性、对比性分析)
  • 关键发现(3-5个基于数据的发现)
  • 业务洞察与建议(具体可执行的建议)

**输出原则**:

  • 每个部分只输出一次,不要重复
  • 基于实际数据进行分析,不要泛泛而谈
  • 建议要具体可执行,不要空洞无物

图表要求

  • 使用 Skill 工具调用 echarts_chart
  • 图表配置使用 `[CHART_START]...[CHART_END]` 格式
  • 保存文件到 `work_dir/charts/` 目录
  • 根据数据类型选择合适的图表(趋势→折线图、对比→柱状图、占比→饼图)

示例

**用户问题**:"查询最近7天的销售额趋势"

**执行步骤**: 1. 识别:时间趋势查询,需要日期和销售额 2. 生成SQL:`SELECT 日期, SUM(销售额) FROM 订单 WHERE 日期>=7天前 GROUP BY 日期` 3. 执行查询获取数据 4. 调用 echarts_chart 生成折线图 5. 分析趋势、峰值、谷值、增长率

注意事项

  • SQL使用中文别名,便于理解
  • 数值保留合适精度(通常2位小数)
  • 分析必须有数据支撑
  • 发现必须基于查询结果
  • 建议必须具体可执行
@xiaoyuge886
Ships withaigc

基于 Claude AI 的智能对话与任务执行平台,支持自定义技能生态和场景化 AI 解决方案

20029 skills15 agents10 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
200
Star history of xiaoyuge886/aigc on GitHub, a chart by star-history.com

Other skills on aigc.

agent-sql-pro

agent-sql-pro

Expert SQL developer specializing in complex query optimization, database design, and performance tuning across PostgreSQL,…

@xiaoyuge886@xiaoyuge886Install Skill
data-analysis

data-analysis

Perform data analysis tasks including data cleaning, statistical analysis, visualization, and insight generation. Use when the…

@xiaoyuge886@xiaoyuge886Install Skill
docs-management

docs-management

Single source of truth and librarian for ALL Claude official documentation. Manages local documentation storage, scraping,…

@xiaoyuge886@xiaoyuge886Install Skill
echarts_chart

echarts_chart

ECharts数据可视化专家,能够根据数据和分析需求生成专业的ECharts图表配置。适用于:数据可视化、图表生成、数据展示、趋势分析图表、对比图表、分布图表、饼图、柱状图、折线图、散点图、雷达图、热力图、仪表盘、漏斗图、树形图、关系图、桑基图、数据报表图表、…

@xiaoyuge886@xiaoyuge886Install Skill
frontend-design

frontend-design

Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and…

@xiaoyuge886@xiaoyuge886Install Skill
meta_agent

meta_agent

综合智能代理系统,整合任务分析、规划和ReAct执行循环能力。当用户需要处理复杂任务、多步骤工作流或需要自主决策和反思的任务时使用。

@xiaoyuge886@xiaoyuge886Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw8d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca6d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip7d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about smart_query_analyzer.

Which coding agents can use smart_query_analyzer?
smart_query_analyzer installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.