dashboard

GitHub

该技能用于规划业务数据仪表盘。通过单轮询问收集用户需求,动态生成包含多种图表组件的HTML看板文件,支持离线下载。

skills/dashboard/SKILL.md Zafer-Liu/Data-Analysis-Agent

Trigger Scenarios

用户需要创建或查看业务数据仪表盘 用户希望将数据可视化为HTML看板

Install

npx skills add Zafer-Liu/Data-Analysis-Agent --skill dashboard -g -y
More Options

Use without installing

npx skills use Zafer-Liu/Data-Analysis-Agent@dashboard

指定 Agent (Claude Code)

npx skills add Zafer-Liu/Data-Analysis-Agent --skill dashboard -a claude-code -g -y

安装 repo 全部 skill

npx skills add Zafer-Liu/Data-Analysis-Agent --all -g -y

预览 repo 内 skill

npx skills add Zafer-Liu/Data-Analysis-Agent --list

SKILL.md

Frontmatter
{
    "icon": "📊",
    "name": "dashboard",
    "description": "规划业务数据仪表盘\/看板(dashboard)",
    "allowedTools": [
        "get_schema",
        "query_data",
        "ask_user",
        "propose_dashboard_outline"
    ]
}

仪表盘规划

通过 ask_user 单轮询问收集用户需求,再动态生成 HTML 看板文件。

三阶段工作流

Phase 1 — 理解数据

Call get_schema ONCE. Run 1-3 lightweight queries to understand tables and columns. After data exploration, IMMEDIATELY proceed to Phase 2 in the SAME turn. Do NOT stop or wait.

Phase 2 — Collect requirements via ask_user (SINGLE question)

Call ask_user ONCE with a single multi-select question asking what the user wants on the dashboard. Derive 4-6 options from actual data columns. Use real column names. Ask in user language. After ask_user returns, IMMEDIATELY proceed to Phase 3 in the SAME turn. Do NOT ask again.

Phase 3 — Design and propose (SAME turn as Phase 2 answer)

Build 2-6 widgets using ONLY metrics the user selected. Each widget needs valid SQL, ONLY real table/column names. NEVER fabricate names. KPI_Card: SQL returns 1 row; col1=value, col2=subtitle, col3=trend_pct. Grid: w=3,h=2. Bar_Chart / Line_Chart: field_mapping: x, y Grouped_Bar_Chart: field_mapping: x, value_cols=[col1,col2,...] Stacked_Bar_Chart: field_mapping: x, y=[col1,col2,...] Pie_Chart: field_mapping: label, value Scatter_Plot: field_mapping: x, y, color(opt) Area_Chart: field_mapping: x, y Heatmap: field_mapping: x, y, value Layout: KPI cards at y=0 (w=3,h=2 each), charts below at y=2+. Total width=12 units. Call propose_dashboard_outline(name=..., widgets=[...]). Output NOTHING after the tool call.

CRITICAL RULES

  • Call ask_user EXACTLY ONCE. Never call it twice.
  • After the user answers ask_user, you MUST call propose_dashboard_outline in the same turn.
  • Do NOT output text after ask_user or propose_dashboard_outline.
  • Do NOT manually call generate_chart — the dashboard system handles chart creation.

HTML export note

After generate_dashboard succeeds, the result includes a download-HTML link. Mention it naturally: You can also download the HTML file to view offline.

Implementation reference

  • Proposal tool entry: agent/tools/business/export.py::_tool_propose_dashboard_outline
  • Generation tool entry: agent/tools/business/export.py::_tool_generate_dashboard

Version History

  • d6a2c3e Current 2026-07-24 12:12

Same Skill Collection

skills/bcg-matrix/SKILL.md
skills/business-model-canvas/SKILL.md
skills/swot-analysis/SKILL.md
skills/value-proposition/SKILL.md
skills/arima/SKILL.md
skills/chart/SKILL.md
skills/data/SKILL.md
skills/decile/SKILL.md
skills/export/SKILL.md
skills/funnel-analysis/SKILL.md
skills/gru/SKILL.md
skills/inset/SKILL.md
skills/kmeans/SKILL.md
skills/logistic/SKILL.md
skills/ppt/SKILL.md
skills/prophet/SKILL.md
skills/regression/SKILL.md
skills/report/SKILL.md
skills/sarima/SKILL.md
skills/screening/SKILL.md
skills/sql/SKILL.md
skills/tree/SKILL.md
skills/trimming/SKILL.md
skills/var/SKILL.md
skills/winsorize/SKILL.md

Metadata

Files
0
Version
d6a2c3e
Hash
3c97602e
Indexed
2026-07-24 12:12

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 01:14
浙ICP备14020137号-1 $방문자$