build-dashboard
它能做什么
这项技能构建一个可重复使用的仪表板,用于随时间跟踪业务或产品数字。适合需要共享关键指标视图、而不是一次性报告的团队。
适用场景
- ✓当你需要一个会反复查看的仪表板的时候。
- ✓当你希望指标具有清晰的定义、筛选器和数据新鲜度检查的时候。
- ✓当你希望一个页面展示主要成果及其背后驱动因素的时候。
技能链接
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/build-dashboard/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想要一个仪表板,跟踪每周收入、流失率和注册人数,并可以按地区筛选。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会定义每个指标、检查数据,并把页面从概览、驱动因素到细节依次组织起来。根据你的需求,它会构建独立的 HTML 页面或 Streamlit 应用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Build a Dashboard
Use this workflow when the user needs a reusable monitoring or exploration surface rather than a one-time report. Read the relevant analysis and KPI workflows first when metric definitions or decision logic are not already settled.
Select a portable surface
Honor the user's destination. Otherwise choose the simplest surface supported by the harness:
- Existing BI/product analytics platform when the user wants a governed shared dashboard there.
- Streamlit when Python execution and local/server operation are appropriate; read
specifications/streamlit-dashboard.md. - Self-contained plain HTML/CSS/vanilla JavaScript for a portable local dashboard; read
specifications/html-dashboard.md.
Do not require React, Vite, Recharts, MCP Apps, or widget runtimes.
Workflow
- Define the audience, operating decision, monitoring cadence, and questions the dashboard must answer.
- Define each metric: formula, numerator/denominator, unit, grain, time window, filters, exclusions, owner, source, and freshness expectation.
- Validate joins, completeness, duplicates, missingness, comparability, and refresh status before presenting metrics as trustworthy.
- Design the information hierarchy:
- Overview and primary outcomes.
- Drivers and diagnostic cuts.
- Guardrails and risks.
- Detail tables or drill-down paths.
- Add only decision-relevant filters. Make default date ranges, segments, comparison periods, and filter state visible.
- Use
../visualize-data/SKILL.mdfor each chart and keep exact lookup values accessible in tables. - Show data freshness, source context, definitions, and material caveats in the dashboard.
- Implement and test the real artifact with representative, empty, partial, and error states when feasible.
QA and handoff
- Reconcile displayed totals and KPIs against reviewed source results.
- Test filters, date boundaries, sorting, responsive layout, and refresh behavior.
- Check chart labels, units, legends, accessibility, and table readability.
- Ensure the artifact does not expose secrets, credentials, unnecessary personal data, or temporary local paths.
- Deliver the dashboard artifact or governed platform link plus metric definitions, source/query files, refresh instructions, and known limitations.
常见问题
仪表板可以用什么构建?
可以使用现有的 BI 平台、使用 Python 的 Streamlit,或普通的 HTML 和 JavaScript。
它需要 React 吗?
不需要。这项技能说明仪表板不需要 React 或 Vite。
为什么要先定义每个指标?
这项技能要求写明公式、数据来源和时间范围,以便数字可以被信任。
详情
作者的原始描述
Build a source-backed dashboard or monitoring view with clear metrics, filters, visual hierarchy, definitions, refresh context, and QA.
repo: XiaomiMiMo/MiMo-Code
热度
- GitHub 星标
- 14k
- 排名
- #11309
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
effect
14k帮你的智能体通过查看源代码和文档来回答关于 Effect TypeScript 框架的问题,而不是依赖记忆。
arxiv
14k帮你的智能体在 arXiv 上搜索、阅读、引用和跟踪学术论文,包括摘要、BibTeX 引用、PDF 下载和引用关系。
claude-code
14k帮你的智能体把编程任务交给 Claude Code 命令行工具,可以是一次性运行、交互式会话或后台任务。
codex
14k帮你的智能体在没有聊天窗口的情况下运行 OpenAI Codex 命令行工具,用于编程任务、脚本和自动化流程。