跳到正文
Skillpedia
分析与电子表格16k · #10842

build-a-dashboard

它能做什么

这个技能把反复出现的生产环境问题变成一个会自动刷新的仪表板。适合每次部署后都要反复查看同样数字的团队。

适用场景

  • ✓当你反复查看同样的生产环境数字,例如错误率或注册数的时候。
  • ✓当你想要一个周期性的视图或报告,而不是一次性的提问的时候。
  • ✓当你想要一个能显示某次部署是否顺利的仪表板的时候。

技能链接

https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/build-a-dashboard/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/build-a-dashboard/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请构建一个仪表板,按服务显示错误日志,并列出最慢的路由,这样我就不用手动查看日志了。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查是否已有仪表板,确认它需要的日志字段是否存在,然后把每个面板起草为一个带数字的问题。保存之前它会验证仪表板,并检查每个面板都能返回数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

A dashboard is a saved question

A Sazabi dashboard is a page of live panels, each running a log query when the dashboard opens. Build one for questions that come back every day or every deploy; answer one-off questions with sazabi/logs.ask instead.

0. How the tools work

The Sazabi MCP server lists only two tools, search and execute. Browse Sazabi's operations with search and namespace: "sazabi" (an empty query without a namespace lists connected connectors, not Sazabi operations). Before calling one, repeat search with namespace: "sazabi", the hit's full name as the query, and includeInputSchema: true to load its arguments. Then run it with execute as { name, arguments }, the name copied from the hit (for example sazabi/logs.ask). Dashboard operations: sazabi/dashboards.list, .get, .validate, .create, .update, .render, .delete.

1. Check what exists

Run sazabi/dashboards.list. Every project has built-in dashboards (issues and alerts, log health) that can't be edited but can be copied. If a close match exists, propose editing or copying it rather than adding another.

2. Find the real fields

Pin down each panel as a question with a number: "error lines by service per 15 minutes", "p95 request duration by route". Use sazabi/logs.ask to confirm the logs actually carry the fields each panel needs (service, route, duration, event name). If a signal isn't in the logs, leave that panel out and say what would provide it, for example the add-logging skill. Never invent a field.

3. Write, validate, save

A dashboard is one MDX document: a DashboardMeta block (title, description, default time range) and a grid of panels, each with an inline log query. A panel's query never names a time range; the dashboard supplies it. Copy the document shape from dashboards.validate and from an existing dashboard via dashboards.get.

Run sazabi/dashboards.validate and fix every diagnostic (each names its line and a repair hint), then sazabi/dashboards.create. Generate the dashboard id yourself and reuse it if you retry. To change a dashboard, dashboards.get it, edit the whole document, and dashboards.update with the edit base it returned. If the update is rejected because someone saved a newer revision, re-read and re-apply; don't overwrite.

4. Prove it renders

Run sazabi/dashboards.render over the default window and check every panel returns ok, not empty or rejected. Fix or drop panels that don't. Reply with the dashboard link and one line per panel.

Anti-patterns

  • Twenty panels. Five panels that answer the question beat twenty that don't.
  • Deleting shared dashboards. A delete removes it for the whole project and can't be undone; ask first.
  • Shipping an empty panel. A panel that renders "No data" on day one teaches people to ignore the dashboard.
常见问题

什么时候应该用仪表板,而不是一次性提问?

对于每天或每次部署都会重复出现的问题使用仪表板,其他情况则使用一次性提问。

它会重复已有的仪表板吗?

不会。它会建议编辑或复制一个相近的已有仪表板,然后再新增。

它会确认面板显示了数字吗?

会。在完成之前,它会确认每个面板都返回了数据。

详情

作者的原始描述

Turn a question the user keeps asking about production (error rates, latency, signups, cost) into a saved Sazabi dashboard built from live log queries — check the fields exist, validate before saving, and confirm every panel returns data. Use when the user asks for a dashboard, a recurring view or report, or says they keep checking the same numbers.

repo: ParadevAI/Paradev

热度

GitHub 星标
16k
排名
#10842
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能