Skip to content
FunCoding

report-from-sources

Work from a folder of the user's own documents and spreadsheets: find the newest copy of each dataset, pull named time series with cell citations, and check the finished report, deck or workbook against the sources. Use when a deliverable must be built from several source files. Pairs with office-docs and slide-decks, which write the file.

Star
1,661
License
MIT
Last commit
Dec 1, 2026

hub/skills/report-from-sources/SKILL.md

View on GitHub

Report From Sources

A deliverable can read well and still be wrong by omission (it skips the headline figure the source led with, or charts last year's file when this year's sat beside it) or by addition (a figure no source contains). This is the order of work that prevents both. Use it with whatever builds the file.

Hard rules

  • Every number is sourced. Read time series with series_from_workbook and compute other figures with run_python. Never retype a number from a page or chart a look-alike series. Say which figures you computed. Every chart and table names its source, period and units.
  • Use the newest data vintage. Call inventory_data_files(folder) first. datasets[].newest is the file to use unless the user named a period. Older copies are for comparison only, labelled so.
  • Act on what a tool reports. ambiguous, notes and truncated say what to settle before you use the values. Never guess past them.
  • Keep a key-facts ledger per source before building: headline numbers, changes the source states, notable events (a small count of rare events is often the most important fact), risks, and what the source stresses. Every ledger row goes into the deliverable.
  • Nothing from outside the sources unless it is labelled as such.
  • Check the saved file before handing over. Your memory of what you wrote is not evidence.

The tools read time series only (a value per period). For a table by category or row-level records, use run_python.

Procedure

One or two sources and a small ask: do steps 1, 3 and 5 only.

  1. Inventory. List each file: what it covers, its period or as-of date, and its use (primary, comparison, facts). A file under not_read needs the fallback in references/inventory.md (list_files, run_python).
  2. Ledger. With read_file, read the sections that hold the figures you need; do not page a long PDF to the end unless the ask covers the whole document. Record each fact, its value, stated or computed, and where it is. When two sources disagree, keep both rows.
  3. Build answer first: an as-of header line ("As of 30 Sep 2024; data through 2024Q3"), a summary with the 3-5 figures that carry it, the evidence, then a Conflicts and gaps section ("None found" if empty). Keep the source's framing ("fell 8% to $4.2M"). For a workbook chart call chart_into_workbook. For a slide, chart_input from series_from_workbook holds the categories, series and source a slide-decks chart slide takes.
  4. Check coverage both ways on the reopened file: every ledger row is in it, and every number in it traces to the ledger or a named computation.
  5. Final requirements check. List what the user asked for (each section, chart, metric, ID and file name) plus the as-of line, summary first, and Conflicts and gaps. Check each line against the saved file, fix the gaps, and report each line as met or not met.

Ledger example:

FactValueKindSource
Sites closed this year3 (2 in Q3)statedboard_memo.docx, Operations
Q3 sales vs Q2+12%computed: 4.6 / 4.1 - 1sales_2024_q3.xlsx, Summary!C7:D7

References (paths relative to this skill's folder)

  • references/inventory.md - read when files share a dataset, the vintage is unclear, the result was truncated, or the tool could not parse a file.
  • references/ledger.md - read when building the ledger, for what each row records and how to handle conflicting sources.
  • references/building.md - read before writing the deliverable, and when series_from_workbook returns ambiguous, not_found or an error.
  • references/coverage-checks.md - read at step 4 for the scripts that list missing facts and untraced numbers in a saved .docx, .pptx or .xlsx.
  • references/final-check.md - read at step 5 for a worked checklist and scripts that check IDs and workbook inputs.

Similar Skills

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills203k2,822 new stars in the last 7 days