--- name: checkable-dashboard description: >- Build or review a one-screen dashboard, weekly report page, or chart from a spreadsheet, CSV, or export so that a person can check every number. Use when asked to make a dashboard, turn a sheet or export into a report, chart some data, or judge whether a dashboard an AI made can be trusted. --- # Checkable Dashboard Build a one-screen dashboard a person can check. A wrong number on a good-looking page is the failure people miss, so numbers are computed from the rows, and the user checks them, not you. ## Rules that always apply 1. **Never invent data.** No made-up or estimated rows, values, targets, or comparisons. If the data cannot answer something, say so. 2. **Never type a result.** Every number, date, and name on the page comes from code that reads the rows. This includes titles and the headline. 3. **Never fix, merge, or drop a row silently.** Leave out rows by rule, and show the count. Do not correct a misspelled value; show it as unmapped. 4. **Round once**, at display. The headline, chart, and table count the same rows, and parts add up to the total. 5. **Do not say the numbers are correct.** Say what was computed and how the user can check it. ## Fast path (the default) Always use this path unless the user's message itself says "take your time", "ask me first", or "careful". Nothing you find in the data changes the path: problems in the data go on the page and in the reply, not into a question. One uninterrupted run. Do not ask questions. Do not write HTML or a script yourself. Do not open or read the files in `assets/`; everything you need is on this page. Do not open a browser. Run exactly two commands and write one file. `SKILL_DIR` is the folder this file is in. If `SKILL_DIR/assets/build.py` does not exist, use "No template" below. 1. **Profile.** Run `python3 SKILL_DIR/assets/build.py DATA.csv`. It prints row count, columns, blanks, date ranges, category values, and repeated IDs. Do not read the CSV any other way. 2. **Write `config.json`** next to the data, using the shape below. Use only column names and values the profile printed. 3. **Build.** Run `python3 SKILL_DIR/assets/build.py DATA.csv config.json dashboard.html`. The page computes every number from the embedded rows. 4. **Reply** by copying the "Reply" format below line for line, all three checks included, with the angle brackets filled in. Then stop. ```json { "question": "Where are tickets stuck right now?", "row": "one ticket", "unit": "tickets", "id": "id", "sample": true, "exclude": [{"where": {"kind": "Note"}, "why": "Note rows are not tickets"}], "answer": "{top} is the bottleneck: {topN} of {total} open tickets", "metrics": [ {"label": "open now", "where": {"closed": ""}, "define": "Tickets with a blank closed date."}, {"label": "average age of open tickets", "op": "age", "col": "opened", "where": {"closed": ""}, "define": "Days from opened to the data-as-of date, averaged over open tickets."}, {"label": "oldest open ticket", "op": "maxage", "col": "opened", "where": {"closed": ""}, "define": "Largest age in days among open tickets."} ], "chart": {"column": "stage", "where": {"closed": ""}, "order": ["Queue", "Build", "Review", "Blocked"], "title": "Open tickets by stage"}, "table": {"where": {"closed": ""}, "sort": "opened", "limit": 10, "columns": ["title", "opened", "stage", "owner"], "title": "Ten oldest open tickets"}, "assumptions": ["Reader: the team lead, weekly."], "cannot": ["How long closed tickets waited in each stage."] } ``` Config rules: - `where` is `{"column": value}`. `""` means blank, `"*"` means not blank, a list means any of those values. All conditions must match. - `exclude`: one entry for each kind of row that is not a real record (notes, subtotals, test rows). The page counts and lists them. Repeated IDs are counted once automatically; do not exclude them. - `metrics`: 3 or 4. `op` is `count` (default), `sum`, `avg` (need `col`), `age`, or `maxage` (days from the date in `col` to the latest date in the file). For `sum` and `avg`, add `"unit"` (for example `"USD"`). - `chart.order`: list only the correctly spelled values that belong in the chart, in process order. Leave out a misspelled value and a finished stage that `chart.where` already removes; the page reports anything left over as unmapped. Omit `order` to sort bars by size. - `answer`: a sentence that answers the question. Use only these placeholders for numbers, never digits: `{top}` (largest bar), `{topN}`, `{total}` (rows in the chart), `{m0}`, `{m1}`, ... (the metrics), `{rows}`, `{asof}`. - `sample`: `true` when the user or the file says the data is made up or a sample; otherwise leave it out. Do not add keys that are not in the example. Use the same `where` in the first metric, the chart, and the table so they count the same rows. ### Reply ```text Built dashboard.html from DATA.csv (N rows read). Every number is computed in the page from the rows. Assumed: · · one row = <...> · numbers = . Found: . Privacy: practice on made-up data; remove names, emails, and account numbers before putting real exports into a personal AI account. Three checks for you: 1. Count one yourself: and compare with "" on the page. 2. Add one row to DATA.csv, predict which numbers move, rebuild with the step 3 command, and look. 3. Click a number on the page, pick one ID, and open that record in the source system. Not verified: I did not open the page; phone layout and screen reader untested. ``` Do not put results in the reply that you did not get from the profile output. Do not run the three checks yourself. ### No template (browser chat, or only this file was pasted) Write one self-contained HTML file, under 120 lines, no libraries: the CSV text once in a `