跳到正文
Skillpedia
分析与电子表格11k · #11795

data-dashboards

它能做什么

这个技能让 AI 快速制作美观的页面,包含图表、关键数字或简单的落地页。适合希望查看或分享数据、却不想自己搭建网站的人。

适用场景

  • ✓当你需要带图表或关键数字的仪表板时。
  • ✓当你想要一个可供查看的简单页面,例如价格页或小型工具的时候。
  • ✓当你希望分享一个可以持续更新的数据页面链接的时候。

技能链接

https://github.com/milind-soni/OpenMausBot/blob/main/skills/data-dashboards/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我需要一个带图表的仪表板,展示每月销售数字,并能直接在对话中查看。”

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

工作原理

AI 会生成一个 HTML 页面,并在对话中以卡片形式展示,你可以全屏打开。只有在你要求时,它才会以公开链接的方式分享,你也可以指出某部分内容进行修改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Data dashboards and pages

A page made with show_html shows in the chat as one card. The person watches it appear, steps back through its versions, opens it full screen, shares it at a public link, and points at a part to change: their next message then says what they pointed at (a tag, its text, a CSS selector and a bit of its HTML). Change exactly that with show_html and the page's app_id; the same card refreshes.

Pick the right home

The person wants Build
A quick answer or one chart No page. Use the Data tools (data_sql, data_show) or a markdown table.
A small summary to look at here A chat page (show_html) with pre-aggregated rows embedded as CSV.
To explore bigger data, or a link to share Query with the Data tools, export the slice with data_export (format: "parquet") into a folder beside index.html, show the folder in the chat with show_html path, and publish_page it when the person wants a link: the same card gains it.
"Keep it up to date" The shared page, plus a schedule (trigger, action=create, when=schedule) whose instructions re-run the export, set CONFIG.updated, and publish the same folder again. Publishing the same path keeps the same link.

Publish only when the person asks to share. A published page is public: never put secrets, personal details or rows they didn't ask to share in it.

Start from the template

dashboard.html sits next to this guide, in the folder named by this skill's root. It is tested in the chat sandbox and on published pages, in light and dark, at phone and desktop widths. Copy it to your working folder as index.html (a small chat page sends its text as html; a folder page is shown with path) and change only what the data needs:

  1. CONFIG: dataFile (data.parquet or data.csv), source, updated (when the data was refreshed, ISO time), currency.
  2. QUERIES and the render… functions: your columns and your questions. The sample has date, region, category, product, units, revenue.
  3. Headings, notes and KPI labels in the HTML.
  4. For a chat page, paste the CSV between the embedded-data tags.

Keep the rest: the pinned versions (DuckDB-WASM 1.32.0, ECharts 6.1.0, both from cdn.jsdelivr.net; never @latest), the single-threaded DuckDB set up through a blob worker (it needs no special headers, so it runs in the chat sandbox), the colour tokens, Intl formatting, loading and error states, aria labels and the "Show the numbers" tables. Cut cards rather than adding a fifth chart.

Data

  • Aggregate first. Ship the smallest table that answers the questions: one row per day and dimension, not raw events. Do the heavy work with the Data tools, then export.
  • Size. Keep data at or under about 5 MB (a published page holds 5 MB in all). A chat page is at most 256 KB including the template (about 28 KB), so embed at most about 200 KB of CSV.
  • A page sent as html reads embedded CSV only. A folder page (show_html path) loads the files beside its index.html, Parquet included, so it shows inline exactly as it will publish.
  • Published pages: prefer Parquet. It is often 10 to 20 times smaller than CSV; DuckDB fetches its Parquet reader (about 0.5 MB) on first load. CSV works too.
  • Types. Dates as DATE (Parquet) or YYYY-MM-DD (CSV). Cast sums and counts to DOUBLE in SQL so they arrive as plain numbers.
  • Put filter values into SQL only through the template's quote().
  • Check one or two numbers on the page against a direct query before you show it.

Design

Charts

  • One question per chart. Make the heading the question ("Which regions sell the most?") and the note under it the answer, computed from the data.
  • Pick the form by the job: compare categories with a bar (horizontal and sorted when labels are long); show change over time with a line; show part-to-whole with a stacked bar. A single number is a KPI tile, not a chart. Many categories belong in a table.
  • Never: 3D, two y-axes (use two charts, or index both series to 100), pies with more than 3 slices, rainbow colour scales, a number on every point.
  • Bars start at zero. Don't cut an axis to make a change look bigger.
  • Label directly: values at bar tips, series names at line ends. Use a legend only when direct labels collide.
  • Annotate the key point (the peak, a target, the change that matters) on the chart itself.
  • Emphasis beats colour: one accent for what matters, grey for the
常见问题

我分享的页面会公开吗?

会。已发布的页面是公开的,因此该技能会把机密信息和私人细节排除在外。

我以后可以更新页面吗?

可以。重新发布同一页面会保持相同的链接。

页面可以按计划更新吗?

可以。计划任务可以重新运行数据导出,并再次发布同一页面。

详情

作者的原始描述

Build a fast, good-looking page: a data dashboard, or any page made with show_html (a landing page, a pricing page, a tool), in this chat or at a public link with publish_page. Use when the person asks for a dashboard, charts or KPIs on a page, a page or mock-up to look at, or a data page to share or keep up to date.

repo: milind-soni/OpenMausBot

热度

GitHub 星标
11k
排名
#11795
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能