officecli-data-dashboard
它能做什么
这个技能指导智能体根据表格数据构建多部分的 Excel 仪表板。适合希望一眼看清数字的经理和分析人员。
适用场景
- ✓当你有一个 CSV 文件,并希望把它做成带有关键数字的 Excel 仪表板时。
- ✓当你需要一个带有图表和条件格式的管理层仪表板时。
- ✓当你希望仪表板能通过公式从原始数据自动更新时。
技能链接
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-data-dashboard/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能把这份销售 CSV 做成 Excel 仪表板吗?要有 KPI 卡片和每月趋势图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会创建一个仪表板工作表,其中的 KPI 卡片由公式驱动,图表链接到数据,然后用颜色规则进行格式设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Data Dashboard (scene-layer on officecli-xlsx)
A dashboard is not "a spreadsheet with charts". It is a composition: one Dashboard sheet the user lands on with formula-driven KPI cards, cell-range-linked charts, sparklines, and semantic conditional formatting. Everything else (raw data, aggregations) is upstream infrastructure the user should never need to open. This skill teaches the composition pattern. Everything about the xlsx engine — cells, formulas, batch JSON, shell quoting, validate, HTML preview — comes from officecli-xlsx and is not re-taught here.
Setup
If officecli is missing:
- macOS / Linux:
curl -fsSL https://d.officecli.ai/install.sh | bash - Windows (PowerShell):
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.
⚠️ Help-First Rule
When a prop name, enum value, or alias is uncertain, consult help before guessing.
officecli help xlsx # element list
officecli help xlsx chart # full schema for charts
officecli help xlsx sparkline # sparklines
officecli help xlsx conditionalformatting # all CF rule types
Help reflects the installed CLI version. When this skill and help disagree, help wins. DeferredAddKeys (combosplit, holesize) work on add only — see Reference.
Mental Model & Inheritance
This skill inherits every xlsx hard rule from officecli-xlsx — shell quoting, zero formula errors, visual delivery floor, batch JSON shape ({"command":"set"|"add","path":...,"props":{...}} — key is command, NOT action), batch JSON dotted-name rule, chart data-feed forms, batch+resident limits, validate discipline. Read officecli-xlsx first; honour those rules, do not re-teach them here.
Reverse handoff — do NOT use this skill when:
- The ask is a single-sheet CSV-with-formatting tracker (no Dashboard sheet, no KPI cards, ≤ 1 chart) → go back to
officecli-xlsx. - The ask is a 3-statement / DCF / LBO financial model with blue-inputs / black-formulas / cross-sheet drivers → use
officecli-financial-model. - The ask is a weekly status report with one SUMIF summary and one chart over < 10 rows →
officecli-xlsx.
This skill only accepts: "a Dashboard sheet the user opens first, multiple KPI cards, multiple charts, some CF / sparklines".
Shell & Execution Discipline
→ see officecli-xlsx §Shell & Execution Discipline for the baseline (quoting, heredoc for !, incremental execution).
Two increments specific to dashboards:
- Long chart
addcommands exceed 180 chars. Always split across lines with trailing\; never pack a chart command onto a single line. The longer the command, the higher the chance a shell-escape bug hides inside it. - Multi-instance counts use
query --json | jq length, neverraw-get | grep -c. Example:officecli query "$FILE" chart --json | jq '.data.results | length'for "how many charts do I have?".
Core Principles
Five non-negotiable principles. If any one is violated the output is not a dashboard, it is a spreadsheet that happens to have a chart.
Formula-driven KPIs. Every KPI value on the Dashboard sheet is a formula —
SUM,AVERAGE,IFERROR((...-...)/...,0), whatever — referring to cells on the Data / Summary sheet. Never hardcode a computed number. When the underlying data changes tomorrow, KPIs update on open.Cell-range references for charts. Every chart series reads from a cell range:
series1.values="Sheet1!B2:B13". Inlinedata="Revenue:100,200,300"is for a 5-minute demo, not a delivered dashboard. The one exception: data requires an aggregation Excel cannot express (rare) — document the exception in a comment cell.Dashboard-first architecture. KPI label cells, KPI value cells, charts, sparklines all live on the Dashboard sheet — the single sheet a user lands on. Raw imports and
SUMIFSrollups live on Data / Summary sheets, upstream of the Dashboard. The user should never need to switch tabs to find the answer.Visible cells only for chart sources. LibreOffice does not evaluate formulas in hidden columns or hidden sheets at render time. A chart whose
series1.valuespoints at a hidden-columnSUMIFSrenders blank. Pattern: aggregate into a visible Summary sheet, point charts at Summary cells
常见问题
它生成什么类型的文件?
它生成一个 .xlsx Excel 文件。
仪表板使用公式吗?
是的。KPI 卡片由读取数据的公式驱动。
需要 Excel 技能吗?
技能以通用 Excel 规则为基础,并在此之上添加仪表板版式。
详情
作者的原始描述
Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to dashboard', 'data visualization'. Output is a single .xlsx. Scene-layer on officecli-xlsx: inherits every xlsx hard rule. DO NOT invoke for: a single budget tracker / one-sheet CSV-with-formatting (use xlsx), a 3-statement / DCF / LBO financial model (use financial-model), a week
repo: iOfficeAI/OfficeCLI
热度
- GitHub 星标
- 33k
- 排名
- #9131
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
officecli
33k帮你的智能体用 officecli 工具创建、读取、检查和编辑 Word、Excel、PowerPoint 文件,无需安装 Office。
morph-ppt-3d
33k帮你的智能体制作带有 3D GLB 模型、并在幻灯片之间使用流畅 Morph 切换效果的 PowerPoint 演示文稿。
morph-ppt
33k帮你的智能体制作带有 Morph 流畅切换效果的 PowerPoint 文件,让形状在幻灯片之间移动、放大或旋转。
officecli-academic-paper
33k帮你的智能体把研究论文、学位论文或书稿排版成 Word 文件,包含引用、公式和期刊式版式。