Skip to content
Back to skills

Data Storytelling

ASecurity

Check that an analysis write-up says what the data says: figures traced to the results file, headline and caveats, chart choices. Use when reviewing a report, dashboard narrative or findings memo before it goes out.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongobashtesting

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill data-storytelling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Storytelling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Storytelling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-data-storytelling/badge)](https://www.skillsdirectory.com/skills/borghei-data-storytelling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-storytelling
description: >
  Check that an analysis write-up says what the data says: figures traced to the results file,
  headline and caveats, chart choices. Use when reviewing a report, dashboard narrative or
  findings memo before it goes out.
license: MIT + Commons Clause
metadata:
  version: 1.0.0
  author: borghei
  category: data-analytics
  domain: data-storytelling
  updated: 2026-12-03
  tags: [data-storytelling, analysis-review, charts, reporting, number-checking]
---
# Data Storytelling

## What you get

Hand it the results (CSV or JSON) and the draft write-up (markdown). It traces every figure in the prose back to the data, checks that the headline states a finding and the caveats are there, and checks the charts you plan to draw.

**Before** (`assets/flawed_numbers_draft.md`, excerpt):

```markdown
Orders grew 45% from January to June, from 1,180 to 1,632. The conversion rate rose 0.9% over the same period,
and it fell from 3.0% in February to 3.8% in June. Revenue is now over 85,000 a month, nearly double where it started.
```

**After running `number_checker.py`** (exit 1, excerpt of the real output):

```
FIX 7 issue(s)

Read: assets/sample_results.csv (CSV): 6 rows, 5 columns (numeric: orders, revenue, visitors, conversion_rate; time: month; category: none); draft assets/flawed_numbers_draft.md: 10 figure(s) found, 5 matched, tolerance 1.0%

  1. [unmatched-number] draft line 3: Orders grew 45% from January to June, from 1,180 to 1,632.
     problem: '45%' matches no value in the data within 1.0%; nearest: 38.31% (orders, 2026-01 to 2026-06)
  2. [pct-vs-pp] draft line 3: The conversion rate rose 0.9% over the same period, ...
     problem: '0.9%' is a difference of 0.9 percentage points (conversion_rate, 2026-01 to 2026-06), not a relative change
     fix:  Write '0.9 percentage points' (or 'pp'); the relative change is a different figure.
  3. [threshold-claim] draft line 3: Revenue is now over 85,000 a month, nearly double where it started.
     problem: 'over 85,000' but the data says 82,700 (revenue at 2026-06)
```

The sound draft (`assets/sample_draft.md`) returns `PASS` with a paste-ready claim ledger: every figure, the line it is on and the cell or calculation it comes from.

**Quick start** (from this skill folder):

```bash
python3 scripts/number_checker.py assets/sample_results.csv assets/flawed_numbers_draft.md
python3 scripts/finding_checker.py assets/flawed_story_draft.md --data assets/flawed_survey.csv
python3 scripts/chart_recommender.py assets/sample_regions.csv --spec assets/flawed_chart_spec.json
```

## When to Use

- A report, memo or dashboard narrative is about to go out and someone should confirm the numbers in the prose match the table behind it
- A draft says "grew 5%" and you suspect the table shows a 5-point change, or the reverse
- A finding rests on a small sample, or reads as causal when the data is observational
- You need a chart for each question the data can answer, or want a planned chart checked (pie with many slices, dual axis, truncated bar axis)

## Clarify First

Before checking, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **The results file and the draft:** which file is the single source of the figures (a different export gives different "matches").
- **How the data was produced:** randomized test, survey, or observational logs (decides whether causal wording is allowed; pass `--design`).
- **What one row is:** an observation or an aggregate such as a month (decides the sample size; pass `--n` for aggregates).
- **Figures from outside the data:** benchmarks, prior-year numbers, market sizes (list them with `--ignore` so they are not reported as unmatched).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Tools

| Tool | You hand it | You get |
|---|---|---|
| `number_checker.py` | Results CSV/JSON and the draft | Figures with no counterpart in the data, percent vs percentage-point mix-ups, wrong direction, "doubled" and "over 50%" claims the data does not support, a paste-ready claim ledger |
| `finding_checker.py` | The draft, optionally the results (`--data`) | Title that names a topic instead of a finding (with a suggested title built from your data), buried result, missing caveat at small n, causal wording on observational data, "significant" with no test |
| `chart_recommender.py` | Results CSV/JSON, optionally a chart spec (`--spec`) | A chart per question the data's shape can answer; flags for a pie with too many slices, a dual axis, a truncated bar axis, a line over categories, 3D |

Every tool prints a verdict (`PASS`, `FIX n issue(s)`), says what it read, quotes the input behind each finding with a fix, and gives at most three next actions. `--format json` returns the same report. Exit codes: `0` clean, `1` findings, `2` unusable input (one `BLOCKED:` line on stderr). Missing cells are reported as missing, never scored as zero. Thresholds are internal heuristics and labelled so in the output.

## Workflows

### Workflow 1: Review a draft before it goes out [PROVEN]

1. Run `number_checker.py results.csv draft.md`. Fix findings in this order: wrong direction, percent vs points, unsupported "over/doubled", then unmatched figures.
2. For each unmatched figure, either correct it to the data value the tool names or cite its outside source and re-run with `--ignore`.
3. Run `finding_checker.py draft.md --data results.csv --design <experiment|observational>`. Rewrite the title with the suggested one as the starting point.
4. Re-run both until `PASS`. Attach the claim ledger as an appendix so a reader can see where each figure comes from.

### Workflow 2: Pick and check the charts [RECOMMENDED]

1. Run `chart_recommender.py results.csv` and read the recommended chart per question.
2. Write the charts you plan as a spec (see `--help` for the format), then run with `--spec`.
3. Replace each flagged chart using the fix in the finding; keep bar axes at zero and put two measures in two panels, not on two axes.

### Workflow 3: Check a write-up you did not write [RECOMMENDED]

1. Ask for the results file the author used. Without it the figures cannot be checked; say so instead of guessing.
2. Run Workflow 1 with `--design` set from what the author tells you, not from what the prose implies.
3. Send back the findings that quote the draft, not a general impression.

## Anti-Patterns

### Reporting a point change as a percent
**Mistake:** "Conversion rose 0.9%" when it went from 2.9% to 3.8%. The relative change is 31%; the change is 0.9 percentage points. Readers act on whichever they assume.

### Rounding across a line the claim depends on
**Mistake:** "Over 85,000 a month" for 82,700, or "more than doubled" for 1.4x. Round the figure, not the conclusion.

### A topic as a title
**Mistake:** "Quarterly sales update" tells a reader nothing they can repeat. State the result with its number in the title.

### Causal verbs on observational data
**Mistake:** "driven by the new app", "led to renewals" from a survey or logs with no control group. Use "associated with" unless the design supports cause.

### Percentages from a handful of rows
**Mistake:** quoting 71% for a group of 14 without saying n. Show n beside each result and merge or flag groups under the threshold.

### A second y axis to make two lines agree
**Mistake:** dual axes let the author choose scales so any two series appear to move together. Use two panels that share the x axis.

## Files

- `scripts/number_checker.py`: figures in the draft traced to the data
- `scripts/finding_checker.py`: title, lede, small-n caveat, causal wording
- `scripts/chart_recommender.py`: chart per data shape, spec checker
- `scripts/story_core.py`, `scripts/figure_index.py`: shared loading, profiling and matching (libraries, not commands)
- `references/matching-rules.md`: what counts as a match, tolerance, and the heuristics used
- `references/chart-rules.json`: chart limits with their sources (check them against your style guide)
- `assets/`: `sample_*` (sound, exit 0), `flawed_*` (exit 1) and `malformed_*` (exit 2) inputs, and `contract.json` listing every run

## Scope & Limitations

**In scope:** checking prose against a results table you supply, headline and caveat hygiene, chart-type choice from data shape, planned-chart flags.

**Out of scope:** statistical testing (use `statistical-analyst` for intervals and p-values), rendering charts, fetching data, judging whether the analysis itself is sound, and figures that live only in an image or a PDF.

**Limits you should know:** a figure can match by coincidence (a prose number equal to some unrelated cell), so a match shows the figure is derivable from the data, not that the sentence means that quantity; the ledger names the source so you can see it. Bare integers up to 10, years and dates are not checked. Causal-wording and caveat rules are word lists; they miss paraphrases. All thresholds are internal heuristics except where a source is named in the output.

Files in this skill

  • README.md1.5 KB
  • SKILL.md9 KB
  • assets/contract.json3.3 KB
  • assets/flawed_chart_spec.json375 B
  • assets/flawed_numbers_draft.md404 B
  • assets/flawed_story_draft.md379 B
  • assets/flawed_survey.csv87 B
  • assets/malformed_chart_spec.json6 B
  • assets/malformed_results.csv37 B
  • assets/malformed_results.json3 B
  • assets/sample_chart_spec.json195 B
  • assets/sample_draft.md634 B
  • assets/sample_regions.csv218 B
  • assets/sample_results.csv220 B
  • assets/sample_story_draft.md414 B
  • assets/sample_survey.csv92 B
  • references/chart-rules.json2.3 KB
  • references/matching-rules.md2.2 KB
  • scripts/chart_recommender.py11.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.