wave-dashboard-builder
Skill1 starsChanged 54 days agoMITView on GitHub
创建或更新已保存图表、Dashboard、KPI 卡片与布局。探索问数走 wave-analytics。
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wave-analyticsSkill
- wave-catalog-governanceSkill
- wave-cohort-miningSkill
- wave-marketing-automationSkill
- wave-product-helpSkill
- waveSkill
- wave-sql-querySkill
- wave-trackingSkill
- wave-tracking-validationSkill
The file
Files
Wave 看板构建
目标
创建或更新 Wave 的已保存分析资产:图表、Dashboard 和 Dashboard 布局。
工具
- 发现资产:
list_charts、list_dashboards、get_chart_detail、get_dashboard_detail - 创建 Dashboard:
create_dashboard - 创建图表:
create_event_chart、create_event_charts、create_funnel_chart、create_retention_chart、create_custom_sql_chart - 需要时验证查询形态:
query_event_analysis、query_funnel、query_retention、get_sql_schema、query_custom_sql - 整理布局:
set_dashboard_chart_layouts - 更新已有资产:
update_dashboard、update_chart
项目门禁
<!-- wave:project-gate -->在调用其他项目级 MCP 工具前:
- 调用
list_projects,展示project_id | name表格。 - 等待用户回复数字
project_id。 - 仅当本轮对话已经固定到一个项目,或用户明确说继续使用当前项目时,才跳过重新选择。
禁止静默挑选项目,也禁止在此步骤前列出、创建、更新或排布图表/Dashboard。
<!-- /wave:project-gate -->工作流
- 先通过项目门禁,再明确资产目标:独立图表、新 Dashboard、已有 Dashboard,还是刷新 Dashboard。
- 用户点名某个资产或要求更新时,先发现已有 Dashboard/图表,避免重复创建。用户问「有哪些看板/图表」时,调用
list_dashboards/list_charts且不传search_key,展示全部条目(total加分页)。不要用「看板」「dashboard」「概览」「图表」这类类型词去搜索。 - 确认指标/查询形态。用户没有明确指标时,交给
wave-analytics或wave-sql-query,或者在创建资产前先跑一次轻量验证查询。 - 有意识地选择图表类型:
- KPI 汇总值 →
Metric - 时间趋势 →
Line - 分类对比 →
Column或Bar - 构成占比 →
StackedLine、StackedColumn或Pie - 漏斗转化 →
FunnelColumn - 留存曲线 →
Line - SQL/明细表 →
Table
- KPI 汇总值 →
- 为 Dashboard 一次创建多个事件图表时,优先用
create_event_charts批量调用。 - 图表和 Dashboard 一起创建时用
new_dashboards;挂到已有 Dashboard 时用dashboard_ids。创建或挂载时服务端已经套上默认双列布局(w=6 h=7),不要再立刻调用set_dashboard_chart_layouts。 - 只有用户明确要求改成单列/三列、整理布局或自定义坐标时,才先调用
get_dashboard_detail,再set_dashboard_chart_layouts。list_dashboards/get_resource(dashboard)/list_charts不含坐标。
布局默认值
遵循 Wave 概览编辑器的快捷布局(Speedy Layout)。所有图表类型高度一致,包括 Metric/KPI 卡片。
- 12 列栅格。始终
h=7。min_w=3、min_h=4。 create_*_chart/create_event_charts挂到 Dashboard 时已经套用 2 列(w=6 h=7)。不要为了「整理一下」再写一次布局。- 快捷布局只在用户明确要求时使用。优先用
set_dashboard_chart_layouts传speedy_columns,由服务端按视觉顺序(先y再x)排序并套用:- 1 列:
w=12 h=7 - 2 列:
w=6 h=7 - 3 列:
w=4 h=7
- 1 列:
- 不要给 Metric/KPI 更矮的高度或单独的顶部一行,把它们当普通图表处理。
- 用户要求时,自定义
layouts可以改x/w,但除非用户明确要求其他高度,保持h=7。 x+w必须落在 12 列栅格内。矩形之间不能重叠,也不能与本次调用未列出的图表重叠。出现重叠时,把受影响的图表全部带上,或改用speedy_columns。
边界
- 项目门禁未通过前,不要发现或写入项目资产。
- 指标定义不清楚时不要臆造分析含义;用
wave-analytics或wave-sql-query验证。 - 不要在这里做 Tracking Plan 质检,交给
wave-tracking-validation。 - 不要在这里设计新埋点事件,交给
wave-tracking。 - 除非用户明确要求并确认了准确的资产名称,不要删除图表或 Dashboard。优先创建/更新/布局操作。
输出
返回:
- 创建或更新的 Dashboard id/名称
- 创建或更新的图表 id/名称/类型
- 应用的布局改动(
speedy_columns或逐图表的x,y,w,h) - 被跳过的图表请求及原因
- 若数据验证或指标定义仍不清楚,给出后续建议
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

