[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FNX6WZ9ENM9AD73AV4Z7N":3,"skill-same:01M78FNX6WZ9ENM9AD73AV4Z7N":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78FNX6WZ9ENM9AD73AV4Z7N","officecli-data-dashboard",null,"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 \u002F one-sheet CSV-with-formatting (use xlsx), a 3-statement \u002F DCF \u002F LBO financial model (use financial-model), a weekly report with ≤ 1 chart and \u003C 10 rows (use xlsx).","shixianghua\u002FOfficeCLI-Enhanced","shixianghua","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F185889825?v=4","01M78FMF4JT83THYX5CF50WP85","01M78FMF5Q3AG5XA5A6KS5TQZK",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-data-dashboard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: officecli-data-dashboard\ndescription: \"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 \u002F one-sheet CSV-with-formatting (use xlsx), a 3-statement \u002F DCF \u002F LBO financial model (use financial-model), a weekly report with ≤ 1 chart and \u003C 10 rows (use xlsx).\"\n---\n\n# Data Dashboard (scene-layer on officecli-xlsx)\n\nA 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.\n\n## Setup\n\nIf `officecli` is missing:\n\n- **macOS \u002F Linux**: `curl -fsSL https:\u002F\u002Fd.officecli.ai\u002Finstall.sh | bash`\n- **Windows (PowerShell)**: `irm https:\u002F\u002Fd.officecli.ai\u002Finstall.ps1 | iex`\n\nVerify with `officecli --version` (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI\u002Freleases.\n\n## ⚠️ Help-First Rule\n\n**When a prop name, enum value, or alias is uncertain, consult help before guessing.**\n\n```bash\nofficecli help xlsx                          # element list\nofficecli help xlsx chart                    # full schema for charts\nofficecli help xlsx sparkline                # sparklines\nofficecli help xlsx conditionalformatting    # all CF rule types\n```\n\nHelp reflects the installed CLI version. When this skill and help disagree, **help wins**. DeferredAddKeys (`combosplit`, `holesize`) work on `add` only — see Reference.\n\n## Mental Model & Inheritance\n\nThis 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.\n\n**Reverse handoff — do NOT use this skill when:**\n\n- The ask is a **single-sheet CSV-with-formatting tracker** (no Dashboard sheet, no KPI cards, ≤ 1 chart) → go back to `officecli-xlsx`.\n- The ask is a **3-statement \u002F DCF \u002F LBO financial model** with blue-inputs \u002F black-formulas \u002F cross-sheet drivers → use `officecli-financial-model`.\n- The ask is a **weekly status report** with one SUMIF summary and one chart over \u003C 10 rows → `officecli-xlsx`.\n\nThis skill only accepts: \"a Dashboard sheet the user opens first, multiple KPI cards, multiple charts, some CF \u002F sparklines\".\n\n## Shell & Execution Discipline\n\n→ see officecli-xlsx §Shell & Execution Discipline for the baseline (quoting, heredoc for `!`, incremental execution).\n\nTwo increments specific to dashboards:\n\n- **Long chart `add` commands 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.\n- **Multi-instance counts use `query --json | jq length`, never `raw-get | grep -c`.** Example: `officecli query \"$FILE\" chart --json | jq '.data.results | length'` for \"how many charts do I have?\".\n\n## Core Principles\n\nFive non-negotiable principles. If any one is violated the output is not a dashboard, it is a spreadsheet that happens to have a chart.\n\n1. **Formula-driven KPIs.** Every KPI value on the Dashboard sheet is a formula — `SUM`, `AVERAGE`, `IFERROR((...-...)\u002F...,0)`, whatever — referring to cells on the Data \u002F Summary sheet. Never hardcode a computed number. When the underlying data changes tomorrow, KPIs update on open.\n\n2. **Cell-range references for charts.** Every chart series reads from a cell range: `series1.values=\"Sheet1!B2:B13\"`. Inline `data=\"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.\n\n3. **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 `SUMIFS` rollups live on Data \u002F Summary sheets, upstream of the Dashboard. The user should never need to switch tabs to find the answer.\n\n4. **Visible cells only for chart sources.** LibreOffice does not evaluate formulas in hidden columns or hidden sheets at render time. A chart whose `series1.values` points at a hidden-column `SUMIFS` renders blank. Pattern: aggregate into a **visible** Summary sheet, point charts at Summary cells, hide only helper columns that are not chart sources.\n\n5. **Data-size-aware complexity.** A 10-row dataset does not get 5 KPIs and 4 charts. A 200-row dataset does not get 1 KPI and 1 chart. Scale up the composition with the input (table in §Design Ideas). Overbuilding is as wrong as underbuilding.\n\n## Requirements\n\nAll `officecli-xlsx` requirements apply (→ see officecli-xlsx §Requirements for Outputs). Dashboards add these:\n\n- **Dashboard sheet is the active tab on open.** Confirm 0-based sheet index with `officecli query \"$FILE\" sheet` BEFORE filling `activeTab=\"N\"`. Never guess the index.\n- **`calc.fullCalcOnLoad=true`.** Set via `officecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true`. Do NOT `raw-set` `\u003CcalcPr>` — it produces duplicate elements that fail validate.\n- **Refresh downstream cachedValue after every upstream edit.** `fullCalcOnLoad=true` schedules runtime recalc only; it does NOT refresh build-time `cachedValue`. After `set B=100 → set E==B+D → fix B=150`, E is stale until you re-issue E's formula (or close\u002Freopen). Stale cache ships \"Net Change = 0\" to the board.\n- **Every chart has a descriptive title and every series has a name.** `\"Series1\"` in a legend is unfinished work.\n- **Every KPI value cell has a formula.** Verifiable: `officecli query \"$FILE\" 'Dashboard!:has(formula)' --json | jq '.data.results | length'` should equal your planned KPI count.\n- **Header row fill on every data sheet.** Data sheet, Summary sheet, and any secondary data sheet need row 1 filled (e.g., `fill=1F3864 + font.color=FFFFFF + font.bold=true`).\n- **10+ rows on Data sheet → ≥ 1 CF rule on a numeric column.** A 20-row table with zero visual scanning aid is a quality miss.\n- **Dashboard value columns sized to the widest expected cachedValue — not a fixed 22.** Rule of thumb at 24pt bold + currency numFmt: `width ≈ ceil((visible_chars + 2) × 1.3)`. A KPI holding `¥1,958,414,250` (14 visible chars with currency + commas) needs `width ≥ 28`; a 4-digit KPI still needs `width ≥ 22` as the floor. Hardcoding `22` for a 10+ digit KPI is how `###` ships to the user.\n- **Sparkline row height ≥ 20.** A sparkline in a default 15pt row is a flat squiggle — set `\u002FDashboard\u002Frow[N] height=22` (or 24 when paired with a 24pt KPI value cell in the same row).\n- **Print deliverables set `_xlnm.Print_Area` scoped to Dashboard** + hide non-Dashboard sheets + add `\u003CpageSetup fitToPage\u002F>`. Without all three, the print pipeline emits every sheet and Dashboard lands on page 2+. See §Print-ready delivery for the exact commands.\n\n## Quick Start\n\nMinimal viable dashboard: 12-month revenue CSV → 4 KPIs + 1 line chart + activeTab + fullCalcOnLoad. Adapt the numbers, don't copy-paste blind. Broken into phases so a single failed phase is obvious.\n\n**Phase 1 — Data sheet: create, import, format.**\n\n```bash\nFILE=my_dashboard.xlsx\nofficecli create \"$FILE\"\nofficecli import \"$FILE\" \u002FSheet1 --file sales.csv --header\nofficecli set \"$FILE\" '\u002FSheet1\u002Fcol[A]' --prop width=12\nofficecli set \"$FILE\" '\u002FSheet1\u002Fcol[B]' --prop width=15\nofficecli set \"$FILE\" '\u002FSheet1\u002FB2:B13' --prop numFmt='$#,##0'\nofficecli set \"$FILE\" '\u002FSheet1\u002FA1:B1' --prop fill=1F3864 --prop font.color=FFFFFF --prop font.bold=true\n```\n\n**Phase 2 — Dashboard sheet + one KPI card.**\n\n```bash\nofficecli add \"$FILE\" \u002F --type sheet --prop name=Dashboard\nofficecli set \"$FILE\" '\u002FDashboard\u002Fcol[A]' --prop width=22\nofficecli set \"$FILE\" '\u002FDashboard\u002Fcol[B]' --prop width=12\nofficecli set \"$FILE\" \u002FDashboard\u002FA1 --prop value=\"Total Revenue\" --prop font.size=9 --prop font.color=666666 --prop bold=true\nofficecli set \"$FILE\" \u002FDashboard\u002FA2 --prop 'formula==SUM(Sheet1!B2:B13)' --prop numFmt='$#,##0' --prop font.size=24 --prop bold=true --prop font.color=2E7D32\n```\n\n**Phase 3 — Sparkline + chart.**\n\n```bash\nofficecli add \"$FILE\" \u002FDashboard --type sparkline --prop cell=B2 --prop range='Sheet1!B2:B13' --prop type=line --prop color=4472C4 --prop highPoint=true --prop highMarkerColor=FF0000\nofficecli add \"$FILE\" \u002FDashboard --type chart \\\n  --prop chartType=line \\\n  --prop title=\"Revenue Trend\" \\\n  --prop series1.name=\"Revenue\" \\\n  --prop series1.values='Sheet1!B2:B13' \\\n  --prop series1.categories='Sheet1!A2:A13' \\\n  --prop preset=dashboard --prop axisNumFmt='$#,##0' \\\n  --prop x=0 --prop y=5 --prop width=10 --prop height=15\n```\n\n**Phase 4 — fullCalcOnLoad → activeTab (LAST) → close → validate.**\n\n```bash\nofficecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true\n\n# Resolve Dashboard's 0-based index from the actual sheet list — never hardcode.\nDASH_IDX=$(officecli query \"$FILE\" sheet --json \\\n  | jq '[.data.results[].path] | index(\"\u002FDashboard\")')\nofficecli raw-set \"$FILE\" \u002Fworkbook --xpath \"\u002F\u002Fx:sheets\" --action insertbefore \\\n  --xml \"\u003CbookViews xmlns=\\\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fspreadsheetml\u002F2006\u002Fmain\\\">\u003CworkbookView activeTab=\\\"$DASH_IDX\\\" \u002F>\u003C\u002FbookViews>\"\nofficecli close \"$FILE\"\nofficecli validate \"$FILE\"\n```\n\nVerified end-to-end on a 12-row revenue CSV: `validate` reports no errors, Dashboard opens first, `Dashboard\u002FA2.cachedValue` resolves (2,075,000 for the test data), chart renders with values linked.\n\n## Design Ideas\n\nOptions, not templates. The user's data and audience drive the choices.\n\n### Layout patterns (pick one, stay consistent)\n\n**Pattern 1 — executive summary** (board packs): KPI strip A1:H4, charts stack from row 6.\n```\n┌ KPI1 │ KPI2 │ KPI3 │ KPI4 ┐  rows 1-4\n├──────┴──────┴──────┴──────┤\n│     Chart 1 (wide)        │  rows 6-18\n├───────────────┬───────────┤\n│   Chart 2     │  Chart 3  │  rows 20-32\n```\n\n**Pattern 2 — ops console** (live ops): KPIs down A:B, charts fill C:L.\n```\n│ KPI1 │                   │\n│ KPI2 │    Chart 1        │  rows 1-12\n│ KPI3 │                   │\n│ KPI4 ├───────────────────┤\n│ KPI5 │    Chart 2        │  rows 14-26\n```\n\n**Pattern 3 — scorecard** (≥ 6 KPIs, no dominant chart): grid of 2×3 cards (label \u002F value \u002F sparkline).\n```\n│ KPI1 │ KPI2 │ KPI3 │  rows 1-4\n│ KPI4 │ KPI5 │ KPI6 │  rows 5-8\n```\n\n### Complexity scaling by data size\n\n| Rows | KPIs | Charts | Sparklines | CF rules | Preset |\n|---|---|---|---|---|---|\n| \u003C 10 | 1–2 | 1 | skip | 0–1 | `minimal` |\n| 10–50 | 2–3 | 2 | only if sequential time-series | 1–2 | `dashboard` |\n| 50–200 | 3–5 | 2–3 | only if sequential time-series | 2–3 | `dashboard` |\n| 200+ | 3–5 | 3 | only if sequential time-series | 3–4 | `dashboard` |\n\n### Chart type selection\n\n| Data pattern | Chart type | Notes |\n|---|---|---|\n| Trend over time, one series | `line` | Add `trendline=linear` to show direction on noisy series |\n| Trend over time, multiple components | `line` (multi-series) or `columnStacked` | Stacked when components sum to a meaningful total |\n| Comparison across categories in time order | `column` | Not `bar` — horizontal bars break left-to-right time reading |\n| Part-of-whole breakdown | `doughnut` | Prefer over `pie`: `chartType=pie` has a known LibreOffice blank-render regression |\n| Budget vs actual | `combo` with `combosplit=1` | First series as bars, rest as lines |\n| Correlation | `scatter` | X-axis via `categories` \u002F `series1.categories` — `series1.xValues` is UNSUPPORTED |\n\n### Preset options\n\n`--prop preset=\u003Cname>` on every chart. Options: `minimal`, `dashboard`, `corporate`, `magazine`, `colorful`, `monochrome`, `dark`. Pick one and stay consistent across all charts on a single Dashboard — mixing presets reads as accidental.\n\n### Conditional formatting — semantic colors\n\nFour CF rule types; each uses `--type \u003Cshorthand>` at `add` time:\n\n| Intent | `--type` | Typical props |\n|---|---|---|\n| Magnitude bar (sales, spend) | `databar` | `sqref=B2:B13 color=4472C4` — explicit `min=0 max=\u003Cplausible>` recommended for predictable scaling, but omitting them is valid (defaults to data min\u002Fmax) |\n| Heat map (rates, growth) | `colorscale` | `sqref=D2:D13 mincolor=FFCDD2 midcolor=FFFFFF maxcolor=C8E6C9` |\n| Status indicator | `iconset` | `sqref=E2:E13 iconset=3Arrows` — see help for the full enum |\n| Custom business rule | `formulacf` | `sqref=B2:B13 'formula=$B2>=100000' fill=C8E6C9 font.color=2E7D32` — `font.bold` works on CF too |\n\nSemantic colors to stay consistent within a dashboard:\n\n- good \u002F positive: fill `C8E6C9`, font `2E7D32`\n- bad \u002F negative: fill `FFCDD2`, font `C62828`\n- neutral: fill `F5F5F5`, font `666666`\n\n### KPI card anatomy\n\nA card is a label cell + a value cell. The label is small gray (font.size=9, font.color=666666, bold); the value is large bold (font.size=24, bold=true, numFmt, font.color signals tone). One row of light fill (e.g. `F0F4FF`) across the card area gives the \"card\" read without building merged-cell scaffolds. Value column width must be sized to the largest cachedValue — never narrower than 22, often 26–32 for 8+ digit currency (see Requirements).\n\n### Chart width budget by title length\n\nAt the `dashboard` preset's default title font, the chart plot-box width (in column units) must stay ahead of the title string, or the title clips mid-word. Rule of thumb: `chart.width ≥ ceil(title.length × 0.18)`. A 35-character title (\"Department: Year-End Headcount vs Attrition Rate\") needs `width ≥ 7`; be safer and use 10–12. If the anchor cannot be widened, shorten the title to ≤ 25 characters — clipped titles in a board-ready deliverable are indefensible.\n\n`officecli get chart[N]` exposes numeric `width` (e.g. `width=480pt`) alongside `anchor` (e.g. `\"A6:K21\"`) at `.data.results[0].format`. Either is usable for Gate 2 — derive column span from anchor letters (A→K = 10 cols) when you need a column-unit budget.\n\n### Print-ready delivery (board-pack \u002F investor-send \u002F one-pager)\n\nTriggers: ask contains \"print\" \u002F \"一页\" \u002F \"董事会\" \u002F \"投资人\". Four artefacts on the Dashboard sheet; non-Dashboard sheets hidden so the print pipeline emits one page only.\n\n```bash\n# 1. Print_Area scoped to Dashboard (xlnm convention).\nofficecli add \"$FILE\" \u002F --type namedrange --prop name=_xlnm.Print_Area --prop scope=Dashboard --prop 'refersTo=Dashboard!$A$1:$H$36'\n# 2. fit-to-page on Dashboard.\nofficecli raw-set \"$FILE\" \u002FDashboard --xpath \"\u002F\u002Fx:worksheet\" --action prepend --xml '\u003CsheetPr xmlns=\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fspreadsheetml\u002F2006\u002Fmain\">\u003CpageSetUpPr fitToPage=\"1\"\u002F>\u003C\u002FsheetPr>'\n# 3. Landscape page setup.\nofficecli raw-set \"$FILE\" \u002FDashboard --xpath \"\u002F\u002Fx:sheetData\" --action insertafter --xml '\u003CpageSetup orientation=\"landscape\" paperSize=\"9\" fitToWidth=\"1\" fitToHeight=\"1\"\u002F>'\n# 4. Hide non-Dashboard sheets — Print_Area scope alone does NOT stop the print pipeline from emitting every visible sheet.\nfor S in Sheet1 Summary; do\n  officecli raw-set \"$FILE\" \u002Fworkbook --xpath \"\u002F\u002Fx:sheet[@name='$S']\" --action setattr --xml \"state=hidden\" || true\ndone\n```\n\nDelete any `Print_Area` set on Data \u002F Summary sheets — conflicting scopes emit multi-page output.\n\n## QA (REQUIRED — Delivery Gate)\n\n**Assume there are problems. Your job is to find them.** A chart that was rendered does not mean a chart that was meaningful. \"validate pass\" is not delivery; \"the Dashboard sheet reads like someone who knows the business made it\" is delivery.\n\n### Minimum cycle before \"done\"\n\nInherit the xlsx baseline (`view issues`, formula error queries, `validate`, HTML preview scan): → see officecli-xlsx §QA minimum cycle.\n\nThen run the dashboard-specific Delivery Gates. Each gate uses **COUNT-then-if** pattern with a `.data.*` wrapper — never chain `&& echo OK || echo FAIL`.\n\n**Gate 1 — KPI formula coverage.** Every planned KPI cell must carry a formula. Adjust `-lt 2` to your plan (4 KPIs → `-lt 4`).\n\n```bash\nKPI_FORMULAS=$(officecli query \"$FILE\" 'Dashboard!:has(formula)' --json | jq '.data.results | length')\n[ \"$KPI_FORMULAS\" -lt 2 ] && { echo \"REJECT Gate 1: $KPI_FORMULAS formula cells on Dashboard\"; exit 1; }\n```\n\n**Gate 2 — Chart count matches plan, every chart has data + plausible title width.**\n\n```bash\nCHART_COUNT=$(officecli query \"$FILE\" chart --json | jq '.data.results | length')\n[ \"$CHART_COUNT\" -lt 1 ] && { echo \"REJECT Gate 2: zero charts\"; exit 1; }\ncol_num () { local c=$1 n=0; for ((k=0;k\u003C${#c};k++)); do n=$((n*26+$(printf '%d' \"'${c:$k:1}\")-64)); done; echo \"$n\"; }\nfor i in $(seq 1 \"$CHART_COUNT\"); do\n  JSON=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fchart[$i]\" --json)\n  SC=$(echo \"$JSON\" | jq -r '.data.results[0].format.seriesCount \u002F\u002F 0')\n  TITLE=$(echo \"$JSON\" | jq -r '.data.results[0].format.title \u002F\u002F \"\"')\n  ANCHOR=$(echo \"$JSON\" | jq -r '.data.results[0].format.anchor \u002F\u002F \"\"')\n  [ \"$SC\" = \"0\" ] || [ -z \"$TITLE\" ] && { echo \"REJECT Gate 2: chart[$i] seriesCount=$SC title='$TITLE'\"; exit 1; }\n  [ -z \"$ANCHOR\" ] && continue\n  LCOL=$(echo \"${ANCHOR%%:*}\" | sed 's\u002F[0-9]*$\u002F\u002F'); RCOL=$(echo \"${ANCHOR##*:}\" | sed 's\u002F[0-9]*$\u002F\u002F')\n  SPAN=$(( $(col_num \"$RCOL\") - $(col_num \"$LCOL\") + 1 ))\n  MIN=$(( (${#TITLE} * 18 + 99) \u002F 100 ))\n  [ \"$SPAN\" -lt \"$MIN\" ] && { echo \"REJECT Gate 2: chart[$i] title=${#TITLE} chars needs width ≥ $MIN, anchor spans $SPAN\"; exit 1; }\ndone\n```\n\nNarrower titles at preset `minimal` \u002F `magazine` may clip earlier than the 0.18 factor — spot-check.\n\n**Gate 3 — Chart series names populated (no \"Series1\" in legend).**\n\n```bash\nfor i in $(seq 1 \"$CHART_COUNT\"); do\n  BAD=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fchart[$i]\" --json | jq '[.data.results[0].children[]? | select(.type == \"series\") | select((.format.name \u002F\u002F \"\") | test(\"^Series[0-9]+$\"; \"i\"))] | length')\n  [ \"$BAD\" -gt 0 ] && { echo \"REJECT Gate 3: chart[$i] has $BAD auto-named series\"; exit 1; }\ndone\n```\n\n**Gate 4 — CF rules on Data sheet (10+ rows).**\n\n```bash\nCF_COUNT=$(officecli query \"$FILE\" conditionalformatting --json | jq '.data.results | length')\n[ \"$CF_COUNT\" -lt 1 ] && { echo \"REJECT Gate 4: zero CF rules on 10+ row data sheet\"; exit 1; }\n```\n\nNote: `query conditionalformatting` is the canonical element name; `query cf` returns 0 (not an alias).\n\n**Gate 5 — activeTab and fullCalcOnLoad set.** Compare against real Dashboard index (Dashboard-at-index-0 is a true pass).\n\n```bash\nDASH_IDX=$(officecli query \"$FILE\" sheet --json | jq '[.data.results[].path] | index(\"\u002FDashboard\")')\nACTIVE=$(officecli get \"$FILE\" \u002Fworkbook --json | jq '.data.results[0].format.activeTab \u002F\u002F -1')\nFULLCALC=$(officecli get \"$FILE\" \u002Fworkbook --json | jq -r '.data.results[0].format[\"calc.fullCalcOnLoad\"] \u002F\u002F false')\n[ \"$ACTIVE\" != \"$DASH_IDX\" ] && { echo \"REJECT Gate 5: activeTab=$ACTIVE Dashboard=$DASH_IDX\"; exit 1; }\n[ \"$FULLCALC\" != \"true\" ] && { echo \"REJECT Gate 5: calc.fullCalcOnLoad=$FULLCALC — stale caches will ship\"; exit 1; }\n```\n\n**Gate 6 — Placeholder sweep.** No build-time tokens in rendered output.\n\n```bash\nLEAKS=$(officecli view \"$FILE\" text 2>\u002Fdev\u002Fnull | grep -niE '\\{\\{|\\$fy\\$|\u003CTODO>|xxxx|TBD' | wc -l | tr -d ' ')\n[ \"$LEAKS\" -gt 0 ] && { echo \"REJECT Gate 6: $LEAKS placeholder tokens\"; exit 1; }\n```\n\n**Gate 7 — Visual delivery floor (ported from xlsx).** Run `officecli view \"$FILE\" html` and Read the returned HTML path. Confirm:\n\n- No `###` in any Dashboard or Data cell (columns too narrow).\n- No truncated KPI labels, sheet tab names, or chart titles.\n- No placeholder tokens rendered as text (`$fy$24`, `{var}`, `\u003CTODO>`, `xxxx`).\n- Pie \u002F doughnut slices render with distinct fill colors (if collapsed in LibreOffice, verify in the user's target viewer before declaring broken — → see officecli-xlsx §Known Issues\u002FRenderer caveats).\n- No empty chart anchors — every chart has a visible, plausible plot.\n- Dashboard sheet opens first (tab highlighted, active area scrolled to top).\n\nIf `view html` is blocked (renderer conflict, headless, port busy), Gate 7 is still **mandatory** — run ALL fallback checks:\n\n```bash\n# a) Token \u002F ### sweep.\nofficecli view \"$FILE\" text 2>\u002Fdev\u002Fnull | grep -nE '###|\\{\\{|\u003CTODO>|\\$fy\\$|xxxx' && { echo \"REJECT Gate 7: tokens or ### present\"; exit 1; }\n# b) Per-KPI: cachedValue length × coef must fit col width. coef=0.55 fit-to-page, 0.85 otherwise.\nfor CELL in A2 C2 E2 G2; do\n  CV=$(officecli get \"$FILE\" \"\u002FDashboard\u002F$CELL\" --json | jq -r '.data.results[0].format.cachedValue \u002F\u002F .data.results[0].text \u002F\u002F \"\"')\n  W=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fcol[${CELL%%[0-9]*}]\" --json | jq -r '.data.results[0].format.width \u002F\u002F 0')\n  CAP=$(echo \"$W * 0.55\" | bc -l | awk '{print int($1)}')\n  [ \"${#CV}\" -gt \"$CAP\" ] && { echo \"REJECT Gate 7: $CELL '$CV' (${#CV} chars) > cap $CAP\"; exit 1; }\ndone\n# c) Rerun Gate 2 title × 0.18 ≤ anchor span.  d) Log which fallback was used and why.\n```\n\nGate 7 must **NEVER** be skipped — skipping ships `###` to the user.\n\nIf scene keywords include print \u002F 一页 \u002F board \u002F 投资人 \u002F 董事会, extend Gate 7 with a structural print-scope check:\n\n```bash\nif echo \"$USER_REQ\" | grep -qiE 'print|一页|投资人|董事会|board'; then\n  # Every non-Dashboard sheet must be hidden or veryHidden.\n  # query sheet --json carries the name in .preview (no .name\u002F.state); visibility lives in\n  # each sheet's own get .format.hidden (absent => visible), so iterate + probe per sheet.\n  LEAKING=\"\"\n  while IFS=$'\\t' read -r SPATH SNAME; do\n    [ \"$SNAME\" = \"Dashboard\" ] && continue\n    HIDDEN=$(officecli get \"$FILE\" \"$SPATH\" --json | jq -r '.data.results[0].format.hidden \u002F\u002F false')\n    [ \"$HIDDEN\" != \"true\" ] && LEAKING=\"$LEAKING $SNAME\"\n  done \u003C \u003C(officecli query \"$FILE\" 'sheet' --json | jq -r '.data.results[] | [.path, .preview] | @tsv')\n  [ -n \"$LEAKING\" ] && { echo \"REJECT Gate 7 print-scope: visible non-Dashboard sheet(s):$LEAKING — hide before delivery\"; exit 1; }\n  # Dashboard must carry an explicit Print_Area named range.\n  PA=$(officecli query \"$FILE\" 'namedrange[name=\"_xlnm.Print_Area\"]' --json | jq '.data.results | length')\n  [ \"$PA\" -ge 1 ] || { echo \"REJECT Gate 7 print-scope: no _xlnm.Print_Area set\"; exit 1; }\nfi\n```\n\nThe user opens the file in their target viewer (Office \u002F WPS \u002F Numbers) for the final print preview — the skill does not render export artefacts.\n\n**Gate 8 — Formula sanity (cachedValue real, not stale\u002Ferror).** `fullCalcOnLoad=true` refreshes at runtime, NOT build-time cache — so every formula cell must carry a non-empty, non-zero, non-error `cachedValue` now.\n\n```bash\nfor CELL in A2 C2 E2 G2; do\n  JSON=$(officecli get \"$FILE\" \"\u002FDashboard\u002F$CELL\" --json)\n  [ -z \"$(echo \"$JSON\" | jq -r '.data.results[0].format.formula \u002F\u002F \"\"')\" ] && continue\n  CV=$(echo \"$JSON\" | jq -r '.data.results[0].format.cachedValue \u002F\u002F \"\"')\n  case \"$CV\" in\n    \"\" | \"0\" | \"#DIV\u002F0!\" | \"#REF!\" | \"#N\u002FA\" | \"#VALUE!\" | \"#NAME?\" | \"null\")\n      echo \"REJECT Gate 8: $CELL cachedValue='$CV' — re-issue formula or close+reopen\"; exit 1 ;;\n  esac\ndone\n```\n\nIf a KPI is genuinely zero (e.g. \"terminations this quarter\" = 0), whitelist it in the loop and document — default assumption is \"zero is broken\".\n\nIf anything fails, fix at source, re-run the full cycle.\n\n### Honest limits\n\nScatter charts do not accept `series1.xValues` (UNSUPPORTED) — feed the x-axis via `categories` \u002F `series1.categories`. LibreOffice chart color drift \u002F pie-slice collapse \u002F checkbox double-box are viewer artifacts — spot-check in Office \u002F WPS \u002F Numbers first.\n\n## Reference\n\n- **Shorthand `--type` at `add`:** `chart`, `sparkline`, `databar`, `colorscale`, `iconset`, `formulacf`. CF rules map to `help xlsx conditionalformatting`; path suffix `\u002FSheet\u002Fcf[N]`.\n- **Full schemas live in help:** `officecli help xlsx chart` \u002F `sparkline` \u002F `conditionalformatting`. This skill does not mirror them.\n- **DeferredAddKeys (add-only):** `combosplit`, `holesize`. See D-1. (`preset`, `trendline`, `referenceline`, `axisNumFmt` now work on `set` too — help shows `[add\u002Fset]`.)\n- **Build order:** charts + sparklines + CF + tabColors first → `calc.fullCalcOnLoad=true` via high-level `set` → `raw-set activeTab` **LAST** (after all sheets exist).\n\n## Known Issues & Pitfalls\n\n### Dashboard-specific\n\n| # | Issue | Mitigation |\n|---|---|---|\n| D-1 | `combosplit` is a DeferredAddKey — works on `add` only. (`preset`, `referenceline`, `trendline`, `axisNumFmt` now apply on `set` too — help shows `[add\u002Fset]`.) | Set `combosplit` at `add` time; cannot apply after the fact — remove + re-add. The other four can be applied or changed post-creation via `set`. |\n| D-2 | `referenceline` format is `value:color:label:dash` (color BEFORE label). `\"0:Break-Even:FF0000:dash\"` fails `Invalid color value`. | Order is value, color, label, dash. |\n| D-3 | Scatter charts do NOT accept `series1.xValues` (UNSUPPORTED). Feed the x-axis through `categories` \u002F `series1.categories`. | `--prop series1.categories=\"Sheet1!A2:A13\"` (or `--prop categories=\"Sheet1!A2:A13\"`) |\n| D-4 | `formulacf` honors `font.bold` \u002F `font.italic` (written to the dxf font and surfaced on readback), alongside `fill` and `font.color`. | Use any of `fill` \u002F `font.color` \u002F `font.bold` \u002F `font.italic` to signal a CF rule. |\n| D-5 | Dashboard column widths default to 8.43 — KPI values at 24pt bold show `###` | Size by cachedValue bracket: 4–6 digits → 22–24; 7–9 digits (million) → 26–30; 10+ digits (亿 \u002F billion) → 32–36; 百亿 \u002F 10-digit + currency symbol + fit-to-page landscape → **40–44**. Formula `ceil((visible_chars+2)*1.3)` is a starting point; always verify via Gate 7 fallback b). Sparkline columns: 12. |\n| D-6 | `raw-set activeTab` must be the LAST mutation. Inserting before all sheets exist shifts indices. | Finish all sheets \u002F charts \u002F CF \u002F sparklines \u002F tabColors, then `raw-set`. |\n| D-7 | `calc.fullCalcOnLoad` via `raw-set` creates duplicate `\u003CcalcPr>` → validate fails | Use `officecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true`. |\n| D-8 | LibreOffice does not evaluate hidden-column formulas at render → charts referencing hidden cells render blank | Aggregate into a visible Summary sheet, chart reads from Summary. Hide only columns that are not chart sources. |\n| D-9 | `chartType=pie` blank-renders in LibreOffice | Use `doughnut` as the safe substitute for part-of-whole breakdowns. |\n| D-10 | `SUMIFS` \u002F `AVERAGEIFS` with date criteria fails silently if the criterion is a string | Wrap with `DATE()` or `DATEVALUE()`: `=SUMIFS(B2:B13,A2:A13,DATE(2025,1,5))`. |\n| D-11 | Summary sheet percentage formulas display as raw decimals (0.098) without `numFmt` | Set `numFmt=\"0.0%\"` at the same `set` call as the formula. |\n| D-12 | `import --header` sets freeze + AutoFilter but does NOT set column widths. | Set widths on `col[]`. `numFmt` on a `col[]` path now applies a column-level style (`\u003Ccol s=...>`, schema-valid, reads back as `numberformat`); it formats blank cells in the column. Cells with their own style still need a per-cell-range `numFmt`. |\n| D-13 | Sparkline `highpoint` is a bool (highlight on\u002Foff), not a color. `--prop highpoint=FF0000` errors `Invalid boolean value` | `--prop highPoint=true --prop highMarkerColor=FF0000`. Same pattern for lowPoint \u002F firstPoint \u002F lastPoint and their *MarkerColor. |\n| D-14 | Sparkline cross-sectional data is meaningless (a region or department has no ordering) | Skip sparklines unless rows are a sequential time-series (dates, months, quarters). |\n| D-15 | Empty chart `add` is rejected (`Chart requires a 'data' property`) at the CLI layer — legacy skills that relied on silent accept will fail here | Always provide `series1.values=` \u002F `dataRange=` \u002F inline `data=` at chart `add` time. Treat Gate 2 seriesCount check as a belt-and-braces verification. |\n| D-16 | `fullCalcOnLoad=true` guarantees a **runtime** recalc when the end user opens the file; it does NOT refresh the build-time `cachedValue` in XML. Build sequence `set B=100 → set E==B+D → fix B=150` leaves `E.cachedValue` stale (board sees \"Net Change = 0\"). | After all upstream edits are final, re-issue every downstream formula (`officecli set \"$FILE\" \u002FSheet\u002FE2 --prop formula==B2+D2`) OR `close` + re-open the file. Gate 8 verifies. |\n| D-17 | The built-in calc engine does NOT evaluate `SUMPRODUCT` with array-predicate form `SUMPRODUCT((A2:A97=X)*C2:C97*D2:D97)` — cachedValue stays `0`\u002F`null`, Gate 8 rejects. Runtime Excel \u002F WPS compute fine, but board-delivered XLSX with stale cache still ships `0`. | Rewrite as helper column + `SUMIF`: `F2==C2*D2` on source sheet, then `=SUMIF(B:B, \"Region X\", F:F)`. Or pre-aggregate in Summary sheet and chart from there. |\n\n### Inherited (pointer only)\n\nCross-sheet `!` trap, chart `anchor` \u002F series immutability after create → see officecli-xlsx §Known Issues.\n","# Data Dashboard (scene-layer on officecli-xlsx)\n\nA 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.\n\n## Setup\n\nIf `officecli` is missing:\n\n- **macOS \u002F Linux**: `curl -fsSL https:\u002F\u002Fd.officecli.ai\u002Finstall.sh | bash`\n- **Windows (PowerShell)**: `irm https:\u002F\u002Fd.officecli.ai\u002Finstall.ps1 | iex`\n\nVerify with `officecli --version` (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FOfficeCLI\u002Freleases.\n\n## ⚠️ Help-First Rule\n\n**When a prop name, enum value, or alias is uncertain, consult help before guessing.**\n\n```bash\nofficecli help xlsx                          # element list\nofficecli help xlsx chart                    # full schema for charts\nofficecli help xlsx sparkline                # sparklines\nofficecli help xlsx conditionalformatting    # all CF rule types\n```\n\nHelp reflects the installed CLI version. When this skill and help disagree, **help wins**. DeferredAddKeys (`combosplit`, `holesize`) work on `add` only — see Reference.\n\n## Mental Model & Inheritance\n\nThis 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.\n\n**Reverse handoff — do NOT use this skill when:**\n\n- The ask is a **single-sheet CSV-with-formatting tracker** (no Dashboard sheet, no KPI cards, ≤ 1 chart) → go back to `officecli-xlsx`.\n- The ask is a **3-statement \u002F DCF \u002F LBO financial model** with blue-inputs \u002F black-formulas \u002F cross-sheet drivers → use `officecli-financial-model`.\n- The ask is a **weekly status report** with one SUMIF summary and one chart over \u003C 10 rows → `officecli-xlsx`.\n\nThis skill only accepts: \"a Dashboard sheet the user opens first, multiple KPI cards, multiple charts, some CF \u002F sparklines\".\n\n## Shell & Execution Discipline\n\n→ see officecli-xlsx §Shell & Execution Discipline for the baseline (quoting, heredoc for `!`, incremental execution).\n\nTwo increments specific to dashboards:\n\n- **Long chart `add` commands 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.\n- **Multi-instance counts use `query --json | jq length`, never `raw-get | grep -c`.** Example: `officecli query \"$FILE\" chart --json | jq '.data.results | length'` for \"how many charts do I have?\".\n\n## Core Principles\n\nFive non-negotiable principles. If any one is violated the output is not a dashboard, it is a spreadsheet that happens to have a chart.\n\n1. **Formula-driven KPIs.** Every KPI value on the Dashboard sheet is a formula — `SUM`, `AVERAGE`, `IFERROR((...-...)\u002F...,0)`, whatever — referring to cells on the Data \u002F Summary sheet. Never hardcode a computed number. When the underlying data changes tomorrow, KPIs update on open.\n\n2. **Cell-range references for charts.** Every chart series reads from a cell range: `series1.values=\"Sheet1!B2:B13\"`. Inline `data=\"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.\n\n3. **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 `SUMIFS` rollups live on Data \u002F Summary sheets, upstream of the Dashboard. The user should never need to switch tabs to find the answer.\n\n4. **Visible cells only for chart sources.** LibreOffice does not evaluate formulas in hidden columns or hidden sheets at render time. A chart whose `series1.values` points at a hidden-column `SUMIFS` renders blank. Pattern: aggregate into a **visible** Summary sheet, point charts at Summary cells, hide only helper columns that are not chart sources.\n\n5. **Data-size-aware complexity.** A 10-row dataset does not get 5 KPIs and 4 charts. A 200-row dataset does not get 1 KPI and 1 chart. Scale up the composition with the input (table in §Design Ideas). Overbuilding is as wrong as underbuilding.\n\n## Requirements\n\nAll `officecli-xlsx` requirements apply (→ see officecli-xlsx §Requirements for Outputs). Dashboards add these:\n\n- **Dashboard sheet is the active tab on open.** Confirm 0-based sheet index with `officecli query \"$FILE\" sheet` BEFORE filling `activeTab=\"N\"`. Never guess the index.\n- **`calc.fullCalcOnLoad=true`.** Set via `officecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true`. Do NOT `raw-set` `\u003CcalcPr>` — it produces duplicate elements that fail validate.\n- **Refresh downstream cachedValue after every upstream edit.** `fullCalcOnLoad=true` schedules runtime recalc only; it does NOT refresh build-time `cachedValue`. After `set B=100 → set E==B+D → fix B=150`, E is stale until you re-issue E's formula (or close\u002Freopen). Stale cache ships \"Net Change = 0\" to the board.\n- **Every chart has a descriptive title and every series has a name.** `\"Series1\"` in a legend is unfinished work.\n- **Every KPI value cell has a formula.** Verifiable: `officecli query \"$FILE\" 'Dashboard!:has(formula)' --json | jq '.data.results | length'` should equal your planned KPI count.\n- **Header row fill on every data sheet.** Data sheet, Summary sheet, and any secondary data sheet need row 1 filled (e.g., `fill=1F3864 + font.color=FFFFFF + font.bold=true`).\n- **10+ rows on Data sheet → ≥ 1 CF rule on a numeric column.** A 20-row table with zero visual scanning aid is a quality miss.\n- **Dashboard value columns sized to the widest expected cachedValue — not a fixed 22.** Rule of thumb at 24pt bold + currency numFmt: `width ≈ ceil((visible_chars + 2) × 1.3)`. A KPI holding `¥1,958,414,250` (14 visible chars with currency + commas) needs `width ≥ 28`; a 4-digit KPI still needs `width ≥ 22` as the floor. Hardcoding `22` for a 10+ digit KPI is how `###` ships to the user.\n- **Sparkline row height ≥ 20.** A sparkline in a default 15pt row is a flat squiggle — set `\u002FDashboard\u002Frow[N] height=22` (or 24 when paired with a 24pt KPI value cell in the same row).\n- **Print deliverables set `_xlnm.Print_Area` scoped to Dashboard** + hide non-Dashboard sheets + add `\u003CpageSetup fitToPage\u002F>`. Without all three, the print pipeline emits every sheet and Dashboard lands on page 2+. See §Print-ready delivery for the exact commands.\n\n## Quick Start\n\nMinimal viable dashboard: 12-month revenue CSV → 4 KPIs + 1 line chart + activeTab + fullCalcOnLoad. Adapt the numbers, don't copy-paste blind. Broken into phases so a single failed phase is obvious.\n\n**Phase 1 — Data sheet: create, import, format.**\n\n```bash\nFILE=my_dashboard.xlsx\nofficecli create \"$FILE\"\nofficecli import \"$FILE\" \u002FSheet1 --file sales.csv --header\nofficecli set \"$FILE\" '\u002FSheet1\u002Fcol[A]' --prop width=12\nofficecli set \"$FILE\" '\u002FSheet1\u002Fcol[B]' --prop width=15\nofficecli set \"$FILE\" '\u002FSheet1\u002FB2:B13' --prop numFmt='$#,##0'\nofficecli set \"$FILE\" '\u002FSheet1\u002FA1:B1' --prop fill=1F3864 --prop font.color=FFFFFF --prop font.bold=true\n```\n\n**Phase 2 — Dashboard sheet + one KPI card.**\n\n```bash\nofficecli add \"$FILE\" \u002F --type sheet --prop name=Dashboard\nofficecli set \"$FILE\" '\u002FDashboard\u002Fcol[A]' --prop width=22\nofficecli set \"$FILE\" '\u002FDashboard\u002Fcol[B]' --prop width=12\nofficecli set \"$FILE\" \u002FDashboard\u002FA1 --prop value=\"Total Revenue\" --prop font.size=9 --prop font.color=666666 --prop bold=true\nofficecli set \"$FILE\" \u002FDashboard\u002FA2 --prop 'formula==SUM(Sheet1!B2:B13)' --prop numFmt='$#,##0' --prop font.size=24 --prop bold=true --prop font.color=2E7D32\n```\n\n**Phase 3 — Sparkline + chart.**\n\n```bash\nofficecli add \"$FILE\" \u002FDashboard --type sparkline --prop cell=B2 --prop range='Sheet1!B2:B13' --prop type=line --prop color=4472C4 --prop highPoint=true --prop highMarkerColor=FF0000\nofficecli add \"$FILE\" \u002FDashboard --type chart \\\n  --prop chartType=line \\\n  --prop title=\"Revenue Trend\" \\\n  --prop series1.name=\"Revenue\" \\\n  --prop series1.values='Sheet1!B2:B13' \\\n  --prop series1.categories='Sheet1!A2:A13' \\\n  --prop preset=dashboard --prop axisNumFmt='$#,##0' \\\n  --prop x=0 --prop y=5 --prop width=10 --prop height=15\n```\n\n**Phase 4 — fullCalcOnLoad → activeTab (LAST) → close → validate.**\n\n```bash\nofficecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true\n\n# Resolve Dashboard's 0-based index from the actual sheet list — never hardcode.\nDASH_IDX=$(officecli query \"$FILE\" sheet --json \\\n  | jq '[.data.results[].path] | index(\"\u002FDashboard\")')\nofficecli raw-set \"$FILE\" \u002Fworkbook --xpath \"\u002F\u002Fx:sheets\" --action insertbefore \\\n  --xml \"\u003CbookViews xmlns=\\\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fspreadsheetml\u002F2006\u002Fmain\\\">\u003CworkbookView activeTab=\\\"$DASH_IDX\\\" \u002F>\u003C\u002FbookViews>\"\nofficecli close \"$FILE\"\nofficecli validate \"$FILE\"\n```\n\nVerified end-to-end on a 12-row revenue CSV: `validate` reports no errors, Dashboard opens first, `Dashboard\u002FA2.cachedValue` resolves (2,075,000 for the test data), chart renders with values linked.\n\n## Design Ideas\n\nOptions, not templates. The user's data and audience drive the choices.\n\n### Layout patterns (pick one, stay consistent)\n\n**Pattern 1 — executive summary** (board packs): KPI strip A1:H4, charts stack from row 6.\n```\n┌ KPI1 │ KPI2 │ KPI3 │ KPI4 ┐  rows 1-4\n├──────┴──────┴──────┴──────┤\n│     Chart 1 (wide)        │  rows 6-18\n├───────────────┬───────────┤\n│   Chart 2     │  Chart 3  │  rows 20-32\n```\n\n**Pattern 2 — ops console** (live ops): KPIs down A:B, charts fill C:L.\n```\n│ KPI1 │                   │\n│ KPI2 │    Chart 1        │  rows 1-12\n│ KPI3 │                   │\n│ KPI4 ├───────────────────┤\n│ KPI5 │    Chart 2        │  rows 14-26\n```\n\n**Pattern 3 — scorecard** (≥ 6 KPIs, no dominant chart): grid of 2×3 cards (label \u002F value \u002F sparkline).\n```\n│ KPI1 │ KPI2 │ KPI3 │  rows 1-4\n│ KPI4 │ KPI5 │ KPI6 │  rows 5-8\n```\n\n### Complexity scaling by data size\n\n| Rows | KPIs | Charts | Sparklines | CF rules | Preset |\n|---|---|---|---|---|---|\n| \u003C 10 | 1–2 | 1 | skip | 0–1 | `minimal` |\n| 10–50 | 2–3 | 2 | only if sequential time-series | 1–2 | `dashboard` |\n| 50–200 | 3–5 | 2–3 | only if sequential time-series | 2–3 | `dashboard` |\n| 200+ | 3–5 | 3 | only if sequential time-series | 3–4 | `dashboard` |\n\n### Chart type selection\n\n| Data pattern | Chart type | Notes |\n|---|---|---|\n| Trend over time, one series | `line` | Add `trendline=linear` to show direction on noisy series |\n| Trend over time, multiple components | `line` (multi-series) or `columnStacked` | Stacked when components sum to a meaningful total |\n| Comparison across categories in time order | `column` | Not `bar` — horizontal bars break left-to-right time reading |\n| Part-of-whole breakdown | `doughnut` | Prefer over `pie`: `chartType=pie` has a known LibreOffice blank-render regression |\n| Budget vs actual | `combo` with `combosplit=1` | First series as bars, rest as lines |\n| Correlation | `scatter` | X-axis via `categories` \u002F `series1.categories` — `series1.xValues` is UNSUPPORTED |\n\n### Preset options\n\n`--prop preset=\u003Cname>` on every chart. Options: `minimal`, `dashboard`, `corporate`, `magazine`, `colorful`, `monochrome`, `dark`. Pick one and stay consistent across all charts on a single Dashboard — mixing presets reads as accidental.\n\n### Conditional formatting — semantic colors\n\nFour CF rule types; each uses `--type \u003Cshorthand>` at `add` time:\n\n| Intent | `--type` | Typical props |\n|---|---|---|\n| Magnitude bar (sales, spend) | `databar` | `sqref=B2:B13 color=4472C4` — explicit `min=0 max=\u003Cplausible>` recommended for predictable scaling, but omitting them is valid (defaults to data min\u002Fmax) |\n| Heat map (rates, growth) | `colorscale` | `sqref=D2:D13 mincolor=FFCDD2 midcolor=FFFFFF maxcolor=C8E6C9` |\n| Status indicator | `iconset` | `sqref=E2:E13 iconset=3Arrows` — see help for the full enum |\n| Custom business rule | `formulacf` | `sqref=B2:B13 'formula=$B2>=100000' fill=C8E6C9 font.color=2E7D32` — `font.bold` works on CF too |\n\nSemantic colors to stay consistent within a dashboard:\n\n- good \u002F positive: fill `C8E6C9`, font `2E7D32`\n- bad \u002F negative: fill `FFCDD2`, font `C62828`\n- neutral: fill `F5F5F5`, font `666666`\n\n### KPI card anatomy\n\nA card is a label cell + a value cell. The label is small gray (font.size=9, font.color=666666, bold); the value is large bold (font.size=24, bold=true, numFmt, font.color signals tone). One row of light fill (e.g. `F0F4FF`) across the card area gives the \"card\" read without building merged-cell scaffolds. Value column width must be sized to the largest cachedValue — never narrower than 22, often 26–32 for 8+ digit currency (see Requirements).\n\n### Chart width budget by title length\n\nAt the `dashboard` preset's default title font, the chart plot-box width (in column units) must stay ahead of the title string, or the title clips mid-word. Rule of thumb: `chart.width ≥ ceil(title.length × 0.18)`. A 35-character title (\"Department: Year-End Headcount vs Attrition Rate\") needs `width ≥ 7`; be safer and use 10–12. If the anchor cannot be widened, shorten the title to ≤ 25 characters — clipped titles in a board-ready deliverable are indefensible.\n\n`officecli get chart[N]` exposes numeric `width` (e.g. `width=480pt`) alongside `anchor` (e.g. `\"A6:K21\"`) at `.data.results[0].format`. Either is usable for Gate 2 — derive column span from anchor letters (A→K = 10 cols) when you need a column-unit budget.\n\n### Print-ready delivery (board-pack \u002F investor-send \u002F one-pager)\n\nTriggers: ask contains \"print\" \u002F \"一页\" \u002F \"董事会\" \u002F \"投资人\". Four artefacts on the Dashboard sheet; non-Dashboard sheets hidden so the print pipeline emits one page only.\n\n```bash\n# 1. Print_Area scoped to Dashboard (xlnm convention).\nofficecli add \"$FILE\" \u002F --type namedrange --prop name=_xlnm.Print_Area --prop scope=Dashboard --prop 'refersTo=Dashboard!$A$1:$H$36'\n# 2. fit-to-page on Dashboard.\nofficecli raw-set \"$FILE\" \u002FDashboard --xpath \"\u002F\u002Fx:worksheet\" --action prepend --xml '\u003CsheetPr xmlns=\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fspreadsheetml\u002F2006\u002Fmain\">\u003CpageSetUpPr fitToPage=\"1\"\u002F>\u003C\u002FsheetPr>'\n# 3. Landscape page setup.\nofficecli raw-set \"$FILE\" \u002FDashboard --xpath \"\u002F\u002Fx:sheetData\" --action insertafter --xml '\u003CpageSetup orientation=\"landscape\" paperSize=\"9\" fitToWidth=\"1\" fitToHeight=\"1\"\u002F>'\n# 4. Hide non-Dashboard sheets — Print_Area scope alone does NOT stop the print pipeline from emitting every visible sheet.\nfor S in Sheet1 Summary; do\n  officecli raw-set \"$FILE\" \u002Fworkbook --xpath \"\u002F\u002Fx:sheet[@name='$S']\" --action setattr --xml \"state=hidden\" || true\ndone\n```\n\nDelete any `Print_Area` set on Data \u002F Summary sheets — conflicting scopes emit multi-page output.\n\n## QA (REQUIRED — Delivery Gate)\n\n**Assume there are problems. Your job is to find them.** A chart that was rendered does not mean a chart that was meaningful. \"validate pass\" is not delivery; \"the Dashboard sheet reads like someone who knows the business made it\" is delivery.\n\n### Minimum cycle before \"done\"\n\nInherit the xlsx baseline (`view issues`, formula error queries, `validate`, HTML preview scan): → see officecli-xlsx §QA minimum cycle.\n\nThen run the dashboard-specific Delivery Gates. Each gate uses **COUNT-then-if** pattern with a `.data.*` wrapper — never chain `&& echo OK || echo FAIL`.\n\n**Gate 1 — KPI formula coverage.** Every planned KPI cell must carry a formula. Adjust `-lt 2` to your plan (4 KPIs → `-lt 4`).\n\n```bash\nKPI_FORMULAS=$(officecli query \"$FILE\" 'Dashboard!:has(formula)' --json | jq '.data.results | length')\n[ \"$KPI_FORMULAS\" -lt 2 ] && { echo \"REJECT Gate 1: $KPI_FORMULAS formula cells on Dashboard\"; exit 1; }\n```\n\n**Gate 2 — Chart count matches plan, every chart has data + plausible title width.**\n\n```bash\nCHART_COUNT=$(officecli query \"$FILE\" chart --json | jq '.data.results | length')\n[ \"$CHART_COUNT\" -lt 1 ] && { echo \"REJECT Gate 2: zero charts\"; exit 1; }\ncol_num () { local c=$1 n=0; for ((k=0;k\u003C${#c};k++)); do n=$((n*26+$(printf '%d' \"'${c:$k:1}\")-64)); done; echo \"$n\"; }\nfor i in $(seq 1 \"$CHART_COUNT\"); do\n  JSON=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fchart[$i]\" --json)\n  SC=$(echo \"$JSON\" | jq -r '.data.results[0].format.seriesCount \u002F\u002F 0')\n  TITLE=$(echo \"$JSON\" | jq -r '.data.results[0].format.title \u002F\u002F \"\"')\n  ANCHOR=$(echo \"$JSON\" | jq -r '.data.results[0].format.anchor \u002F\u002F \"\"')\n  [ \"$SC\" = \"0\" ] || [ -z \"$TITLE\" ] && { echo \"REJECT Gate 2: chart[$i] seriesCount=$SC title='$TITLE'\"; exit 1; }\n  [ -z \"$ANCHOR\" ] && continue\n  LCOL=$(echo \"${ANCHOR%%:*}\" | sed 's\u002F[0-9]*$\u002F\u002F'); RCOL=$(echo \"${ANCHOR##*:}\" | sed 's\u002F[0-9]*$\u002F\u002F')\n  SPAN=$(( $(col_num \"$RCOL\") - $(col_num \"$LCOL\") + 1 ))\n  MIN=$(( (${#TITLE} * 18 + 99) \u002F 100 ))\n  [ \"$SPAN\" -lt \"$MIN\" ] && { echo \"REJECT Gate 2: chart[$i] title=${#TITLE} chars needs width ≥ $MIN, anchor spans $SPAN\"; exit 1; }\ndone\n```\n\nNarrower titles at preset `minimal` \u002F `magazine` may clip earlier than the 0.18 factor — spot-check.\n\n**Gate 3 — Chart series names populated (no \"Series1\" in legend).**\n\n```bash\nfor i in $(seq 1 \"$CHART_COUNT\"); do\n  BAD=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fchart[$i]\" --json | jq '[.data.results[0].children[]? | select(.type == \"series\") | select((.format.name \u002F\u002F \"\") | test(\"^Series[0-9]+$\"; \"i\"))] | length')\n  [ \"$BAD\" -gt 0 ] && { echo \"REJECT Gate 3: chart[$i] has $BAD auto-named series\"; exit 1; }\ndone\n```\n\n**Gate 4 — CF rules on Data sheet (10+ rows).**\n\n```bash\nCF_COUNT=$(officecli query \"$FILE\" conditionalformatting --json | jq '.data.results | length')\n[ \"$CF_COUNT\" -lt 1 ] && { echo \"REJECT Gate 4: zero CF rules on 10+ row data sheet\"; exit 1; }\n```\n\nNote: `query conditionalformatting` is the canonical element name; `query cf` returns 0 (not an alias).\n\n**Gate 5 — activeTab and fullCalcOnLoad set.** Compare against real Dashboard index (Dashboard-at-index-0 is a true pass).\n\n```bash\nDASH_IDX=$(officecli query \"$FILE\" sheet --json | jq '[.data.results[].path] | index(\"\u002FDashboard\")')\nACTIVE=$(officecli get \"$FILE\" \u002Fworkbook --json | jq '.data.results[0].format.activeTab \u002F\u002F -1')\nFULLCALC=$(officecli get \"$FILE\" \u002Fworkbook --json | jq -r '.data.results[0].format[\"calc.fullCalcOnLoad\"] \u002F\u002F false')\n[ \"$ACTIVE\" != \"$DASH_IDX\" ] && { echo \"REJECT Gate 5: activeTab=$ACTIVE Dashboard=$DASH_IDX\"; exit 1; }\n[ \"$FULLCALC\" != \"true\" ] && { echo \"REJECT Gate 5: calc.fullCalcOnLoad=$FULLCALC — stale caches will ship\"; exit 1; }\n```\n\n**Gate 6 — Placeholder sweep.** No build-time tokens in rendered output.\n\n```bash\nLEAKS=$(officecli view \"$FILE\" text 2>\u002Fdev\u002Fnull | grep -niE '\\{\\{|\\$fy\\$|\u003CTODO>|xxxx|TBD' | wc -l | tr -d ' ')\n[ \"$LEAKS\" -gt 0 ] && { echo \"REJECT Gate 6: $LEAKS placeholder tokens\"; exit 1; }\n```\n\n**Gate 7 — Visual delivery floor (ported from xlsx).** Run `officecli view \"$FILE\" html` and Read the returned HTML path. Confirm:\n\n- No `###` in any Dashboard or Data cell (columns too narrow).\n- No truncated KPI labels, sheet tab names, or chart titles.\n- No placeholder tokens rendered as text (`$fy$24`, `{var}`, `\u003CTODO>`, `xxxx`).\n- Pie \u002F doughnut slices render with distinct fill colors (if collapsed in LibreOffice, verify in the user's target viewer before declaring broken — → see officecli-xlsx §Known Issues\u002FRenderer caveats).\n- No empty chart anchors — every chart has a visible, plausible plot.\n- Dashboard sheet opens first (tab highlighted, active area scrolled to top).\n\nIf `view html` is blocked (renderer conflict, headless, port busy), Gate 7 is still **mandatory** — run ALL fallback checks:\n\n```bash\n# a) Token \u002F ### sweep.\nofficecli view \"$FILE\" text 2>\u002Fdev\u002Fnull | grep -nE '###|\\{\\{|\u003CTODO>|\\$fy\\$|xxxx' && { echo \"REJECT Gate 7: tokens or ### present\"; exit 1; }\n# b) Per-KPI: cachedValue length × coef must fit col width. coef=0.55 fit-to-page, 0.85 otherwise.\nfor CELL in A2 C2 E2 G2; do\n  CV=$(officecli get \"$FILE\" \"\u002FDashboard\u002F$CELL\" --json | jq -r '.data.results[0].format.cachedValue \u002F\u002F .data.results[0].text \u002F\u002F \"\"')\n  W=$(officecli get \"$FILE\" \"\u002FDashboard\u002Fcol[${CELL%%[0-9]*}]\" --json | jq -r '.data.results[0].format.width \u002F\u002F 0')\n  CAP=$(echo \"$W * 0.55\" | bc -l | awk '{print int($1)}')\n  [ \"${#CV}\" -gt \"$CAP\" ] && { echo \"REJECT Gate 7: $CELL '$CV' (${#CV} chars) > cap $CAP\"; exit 1; }\ndone\n# c) Rerun Gate 2 title × 0.18 ≤ anchor span.  d) Log which fallback was used and why.\n```\n\nGate 7 must **NEVER** be skipped — skipping ships `###` to the user.\n\nIf scene keywords include print \u002F 一页 \u002F board \u002F 投资人 \u002F 董事会, extend Gate 7 with a structural print-scope check:\n\n```bash\nif echo \"$USER_REQ\" | grep -qiE 'print|一页|投资人|董事会|board'; then\n  # Every non-Dashboard sheet must be hidden or veryHidden.\n  # query sheet --json carries the name in .preview (no .name\u002F.state); visibility lives in\n  # each sheet's own get .format.hidden (absent => visible), so iterate + probe per sheet.\n  LEAKING=\"\"\n  while IFS=$'\\t' read -r SPATH SNAME; do\n    [ \"$SNAME\" = \"Dashboard\" ] && continue\n    HIDDEN=$(officecli get \"$FILE\" \"$SPATH\" --json | jq -r '.data.results[0].format.hidden \u002F\u002F false')\n    [ \"$HIDDEN\" != \"true\" ] && LEAKING=\"$LEAKING $SNAME\"\n  done \u003C \u003C(officecli query \"$FILE\" 'sheet' --json | jq -r '.data.results[] | [.path, .preview] | @tsv')\n  [ -n \"$LEAKING\" ] && { echo \"REJECT Gate 7 print-scope: visible non-Dashboard sheet(s):$LEAKING — hide before delivery\"; exit 1; }\n  # Dashboard must carry an explicit Print_Area named range.\n  PA=$(officecli query \"$FILE\" 'namedrange[name=\"_xlnm.Print_Area\"]' --json | jq '.data.results | length')\n  [ \"$PA\" -ge 1 ] || { echo \"REJECT Gate 7 print-scope: no _xlnm.Print_Area set\"; exit 1; }\nfi\n```\n\nThe user opens the file in their target viewer (Office \u002F WPS \u002F Numbers) for the final print preview — the skill does not render export artefacts.\n\n**Gate 8 — Formula sanity (cachedValue real, not stale\u002Ferror).** `fullCalcOnLoad=true` refreshes at runtime, NOT build-time cache — so every formula cell must carry a non-empty, non-zero, non-error `cachedValue` now.\n\n```bash\nfor CELL in A2 C2 E2 G2; do\n  JSON=$(officecli get \"$FILE\" \"\u002FDashboard\u002F$CELL\" --json)\n  [ -z \"$(echo \"$JSON\" | jq -r '.data.results[0].format.formula \u002F\u002F \"\"')\" ] && continue\n  CV=$(echo \"$JSON\" | jq -r '.data.results[0].format.cachedValue \u002F\u002F \"\"')\n  case \"$CV\" in\n    \"\" | \"0\" | \"#DIV\u002F0!\" | \"#REF!\" | \"#N\u002FA\" | \"#VALUE!\" | \"#NAME?\" | \"null\")\n      echo \"REJECT Gate 8: $CELL cachedValue='$CV' — re-issue formula or close+reopen\"; exit 1 ;;\n  esac\ndone\n```\n\nIf a KPI is genuinely zero (e.g. \"terminations this quarter\" = 0), whitelist it in the loop and document — default assumption is \"zero is broken\".\n\nIf anything fails, fix at source, re-run the full cycle.\n\n### Honest limits\n\nScatter charts do not accept `series1.xValues` (UNSUPPORTED) — feed the x-axis via `categories` \u002F `series1.categories`. LibreOffice chart color drift \u002F pie-slice collapse \u002F checkbox double-box are viewer artifacts — spot-check in Office \u002F WPS \u002F Numbers first.\n\n## Reference\n\n- **Shorthand `--type` at `add`:** `chart`, `sparkline`, `databar`, `colorscale`, `iconset`, `formulacf`. CF rules map to `help xlsx conditionalformatting`; path suffix `\u002FSheet\u002Fcf[N]`.\n- **Full schemas live in help:** `officecli help xlsx chart` \u002F `sparkline` \u002F `conditionalformatting`. This skill does not mirror them.\n- **DeferredAddKeys (add-only):** `combosplit`, `holesize`. See D-1. (`preset`, `trendline`, `referenceline`, `axisNumFmt` now work on `set` too — help shows `[add\u002Fset]`.)\n- **Build order:** charts + sparklines + CF + tabColors first → `calc.fullCalcOnLoad=true` via high-level `set` → `raw-set activeTab` **LAST** (after all sheets exist).\n\n## Known Issues & Pitfalls\n\n### Dashboard-specific\n\n| # | Issue | Mitigation |\n|---|---|---|\n| D-1 | `combosplit` is a DeferredAddKey — works on `add` only. (`preset`, `referenceline`, `trendline`, `axisNumFmt` now apply on `set` too — help shows `[add\u002Fset]`.) | Set `combosplit` at `add` time; cannot apply after the fact — remove + re-add. The other four can be applied or changed post-creation via `set`. |\n| D-2 | `referenceline` format is `value:color:label:dash` (color BEFORE label). `\"0:Break-Even:FF0000:dash\"` fails `Invalid color value`. | Order is value, color, label, dash. |\n| D-3 | Scatter charts do NOT accept `series1.xValues` (UNSUPPORTED). Feed the x-axis through `categories` \u002F `series1.categories`. | `--prop series1.categories=\"Sheet1!A2:A13\"` (or `--prop categories=\"Sheet1!A2:A13\"`) |\n| D-4 | `formulacf` honors `font.bold` \u002F `font.italic` (written to the dxf font and surfaced on readback), alongside `fill` and `font.color`. | Use any of `fill` \u002F `font.color` \u002F `font.bold` \u002F `font.italic` to signal a CF rule. |\n| D-5 | Dashboard column widths default to 8.43 — KPI values at 24pt bold show `###` | Size by cachedValue bracket: 4–6 digits → 22–24; 7–9 digits (million) → 26–30; 10+ digits (亿 \u002F billion) → 32–36; 百亿 \u002F 10-digit + currency symbol + fit-to-page landscape → **40–44**. Formula `ceil((visible_chars+2)*1.3)` is a starting point; always verify via Gate 7 fallback b). Sparkline columns: 12. |\n| D-6 | `raw-set activeTab` must be the LAST mutation. Inserting before all sheets exist shifts indices. | Finish all sheets \u002F charts \u002F CF \u002F sparklines \u002F tabColors, then `raw-set`. |\n| D-7 | `calc.fullCalcOnLoad` via `raw-set` creates duplicate `\u003CcalcPr>` → validate fails | Use `officecli set \"$FILE\" \u002F --prop calc.fullCalcOnLoad=true`. |\n| D-8 | LibreOffice does not evaluate hidden-column formulas at render → charts referencing hidden cells render blank | Aggregate into a visible Summary sheet, chart reads from Summary. Hide only columns that are not chart sources. |\n| D-9 | `chartType=pie` blank-renders in LibreOffice | Use `doughnut` as the safe substitute for part-of-whole breakdowns. |\n| D-10 | `SUMIFS` \u002F `AVERAGEIFS` with date criteria fails silently if the criterion is a string | Wrap with `DATE()` or `DATEVALUE()`: `=SUMIFS(B2:B13,A2:A13,DATE(2025,1,5))`. |\n| D-11 | Summary sheet percentage formulas display as raw decimals (0.098) without `numFmt` | Set `numFmt=\"0.0%\"` at the same `set` call as the formula. |\n| D-12 | `import --header` sets freeze + AutoFilter but does NOT set column widths. | Set widths on `col[]`. `numFmt` on a `col[]` path now applies a column-level style (`\u003Ccol s=...>`, schema-valid, reads back as `numberformat`); it formats blank cells in the column. Cells with their own style still need a per-cell-range `numFmt`. |\n| D-13 | Sparkline `highpoint` is a bool (highlight on\u002Foff), not a color. `--prop highpoint=FF0000` errors `Invalid boolean value` | `--prop highPoint=true --prop highMarkerColor=FF0000`. Same pattern for lowPoint \u002F firstPoint \u002F lastPoint and their *MarkerColor. |\n| D-14 | Sparkline cross-sectional data is meaningless (a region or department has no ordering) | Skip sparklines unless rows are a sequential time-series (dates, months, quarters). |\n| D-15 | Empty chart `add` is rejected (`Chart requires a 'data' property`) at the CLI layer — legacy skills that relied on silent accept will fail here | Always provide `series1.values=` \u002F `dataRange=` \u002F inline `data=` at chart `add` time. Treat Gate 2 seriesCount check as a belt-and-braces verification. |\n| D-16 | `fullCalcOnLoad=true` guarantees a **runtime** recalc when the end user opens the file; it does NOT refresh the build-time `cachedValue` in XML. Build sequence `set B=100 → set E==B+D → fix B=150` leaves `E.cachedValue` stale (board sees \"Net Change = 0\"). | After all upstream edits are final, re-issue every downstream formula (`officecli set \"$FILE\" \u002FSheet\u002FE2 --prop formula==B2+D2`) OR `close` + re-open the file. Gate 8 verifies. |\n| D-17 | The built-in calc engine does NOT evaluate `SUMPRODUCT` with array-predicate form `SUMPRODUCT((A2:A97=X)*C2:C97*D2:D97)` — cachedValue stays `0`\u002F`null`, Gate 8 rejects. Runtime Excel \u002F WPS compute fine, but board-delivered XLSX with stale cache still ships `0`. | Rewrite as helper column + `SUMIF`: `F2==C2*D2` on source sheet, then `=SUMIF(B:B, \"Region X\", F:F)`. Or pre-aggregate in Summary sheet and chart from there. |\n\n### Inherited (pointer only)\n\nCross-sheet `!` trap, chart `anchor` \u002F series immutability after create → see officecli-xlsx §Known Issues.\n",{"name":5,"description":7},"main","25382af4fdcb6903796fd330dc07db653b560d3a","skills\u002Fofficecli-data-dashboard",0,"https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced","https:\u002F\u002Fgithub.com\u002Fshixianghua","2026-07-13 02:22:31",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add shixianghua\u002FOfficeCLI-Enhanced --skill officecli-data-dashboard",{"tool":36,"command":37},"bunx","bunx skills add shixianghua\u002FOfficeCLI-Enhanced --skill officecli-data-dashboard",{"tool":39,"command":40},"pnpm","pnpm dlx skills add shixianghua\u002FOfficeCLI-Enhanced --skill officecli-data-dashboard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-data-dashboard\u002FSKILL.md",true,[],[45,51,58,65,72,79],{"skillNo":46,"name":47,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M78FR19BZGX7ZZBC8G3ZJHG7","officecli","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M78FQTRP3J1DPJ6S7M5Y5KEX","officecli-xlsx","Use this skill any time a .xlsx file is involved -- as input, output, or both. This includes: creating spreadsheets, financial models, dashboards, or trackers; reading, parsing, or extracting data from any .xlsx file; editing, modifying, or updating existing workbooks; working with formulas, charts, pivot tables, or templates; importing CSV\u002FTSV data into Excel format. Trigger whenever the user mentions 'spreadsheet', 'workbook', 'Excel', 'financial model', 'tracker', 'dashboard', or references a .xlsx\u002F.csv filename.","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-xlsx\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M78FQEMC8QMB1XDX9AXSQ3MW","officecli-word-form","Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document', 'onboarding form', 'HR intake', 'survey template', 'contract \u002F SOW template', 'mail-merge template', 'compliance checklist', 'medical intake questionnaire'. Output is a single .docx where specific fields are editable and the rest is locked. This skill is INDEPENDENT, not a scene layer on docx — payload is `\u003Cw:sdt>` + `\u003Cw:ffData>` + `\u003Cw:fldChar>` + `documentProtection`, none of which docx base skill covers. Do NOT trigger for regular reports, letters, memos, academic papers, pitch decks, or any document with no user-fillable fields — route those to officecli-docx or its scene layers.","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-word-form\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M78FQ6NTDMWT2EPM00FPMBMS","officecli-pptx","Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck', 'slides', 'presentation', 'pitch', or references a .pptx filename.","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-pptx\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M78FPRJPMZ640WWGFQZ11TFG","officecli-pitch-deck","Use this skill when the user is building a fundraising \u002F investor pitch deck — seed, Series A \u002F B \u002F C, convertible note, SAFE round, strategic raise. Trigger on: 'pitch deck', 'investor deck', 'Series A deck', 'Series B deck', 'Series C deck', 'fundraising deck', 'seed pitch', 'VC deck', 'raising capital', 'term sheet presentation'. Output is a single .pptx. This skill is a scene layer on top of officecli-pptx — inherits every pptx v2 rule (visual floor, grid, palettes, connector canon, Delivery Gate). DO NOT invoke for a generic board review, sales deck, all-hands, or product launch — route those to officecli-pptx base.","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-pitch-deck\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M78FPCYEK6A5DFP5BZBVMZPA","officecli-financial-model","Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity \u002F scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value', 'LBO', 'debt schedule', 'cash sweep', 'MOIC', 'IRR \u002F XIRR', 'sensitivity table', 'scenario analysis', 'ARR model', 'unit economics', 'CAC \u002F LTV', 'cap table forecast'. Output is a single formula-driven .xlsx. This skill is a scene layer on top of officecli-xlsx — it inherits every xlsx v2 rule (4-color code, visual floor, number formats, cache-drift, Known Issues, Delivery Gate minimum cycle). DO NOT invoke for a simple budget tracker, CSV dump, or operational KPI sheet — route those to officecli-xlsx base.","https:\u002F\u002Fgithub.com\u002Fshixianghua\u002FOfficeCLI-Enhanced\u002Fblob\u002Fmain\u002Fskills\u002Fofficecli-financial-model\u002FSKILL.md",[],[]]