glebis/tufte-report
Create Tufte-inspired data reports and infographic dashboards as standalone HTML files. Uses EB Garamond for text, Monaspace Argon for numbers, Chart.js for interactive charts, and inline SVG sparklines. Produces publication-quality reports with 2-column narrative+data layouts, status dashboards, scroll animations, and responsive mobile support. Use this skill whenever the user wants to create a data report, activity dashboard, infographic, personal analytics page, health tracker visualization, or any document that combines narrative text with interactive charts and tables. Also triggers for "make a report like Tufte", "create an infographic", "build a dashboard", "visualize my data", or requests for beautiful data-driven documents.
npx skills add https://github.com/glebis/claude-skills --skill tufte-report
Create standalone HTML reports that combine editorial narrative with interactive data visualization in Edward Tufte's style: high information density, minimal chart junk, typography-first design.
Tufte's core principles drive every decision:
The report should feel like a well-edited magazine feature — you read it top to bottom, narrative carries you through the data, and every chart earns its space by answering a specific question.
Before writing ANY code, ask these questions. Do not proceed until all are answered:
This skill enforces hard limits to prevent scope creep:
When the user asks for something outside these limits, respond with: "That would take the report from [current LOC estimate] to [new estimate]. The extra complexity adds [X] but risks [Y]. Shall I proceed, or can we [simpler alternative]?"
report.html (standalone, no build step)
├── Google Fonts CDN (EB Garamond)
├── jsDelivr CDN (Monaspace Argon woff2)
├── jsDelivr CDN (Chart.js 4.x UMD)
├── Inline <style> (design system CSS)
├── Inline HTML (semantic structure)
└── Inline <script> (data + Chart.js configs + sparklines + scroll-reveal)
No build tools, no frameworks, no npm. One file, opens in any browser.
Read references/design-tokens.md for the complete CSS variables, typography scale, and color palette.
Read references/components.md for the HTML+CSS snippet of every reusable component.
Read references/charts.md for Chart.js configuration patterns and inline SVG sparkline code.
Every report follows this skeleton:
1. Title + subtitle + data source tags (monospace, subtle)
2. [Optional] Status dashboard (4-column KPI strip)
3. Overview narrative with inline sparklines + TOC sidebar
4. Summary cards (2-4 KPI tiles with sparklines)
5. Sections (each: state-line → chart+narrative aside → table+narrative aside)
6. [Optional] Decision register (threshold table with status colors)
7. Footer (generation date, sources)
Each section follows this rhythm:
<h2> with ↑ back-to-top link
<p class="state-line"> — one italic sentence, the takeaway
<div class="aside-container"> — chart on left, narrative on right
<div class="aside-container"> — table on left, interpretation on right
The alternation of chart→narrative→table→narrative creates visual breathing room and prevents "wall of data" fatigue.
| Context | Font | Why |
|---------|------|-----|
| All body text, headers, captions | EB Garamond | Classical editorial feel, excellent readability |
| All numbers in tables | Monaspace Argon | Tabular figures align in columns, monospace scannability |
| Big numbers in cards/dashboards | Monaspace Argon | Visual weight, distinct from prose |
| Status indicators, trend percentages | Monaspace Argon | Precision signaling |
| Data source tags, code references | Monaspace Argon | Technical register |
| Ornament separators (:::) | Monaspace Argon with ligatures | Programming aesthetic, replaces floral Unicode |
Use --ink (near-black) for text, --bg (warm white) for background. Chart colors must be semantically meaningful — don't assign colors randomly:
--spark-claude, #c45a28): primary data stream, effort/work metrics--spark-wispr, #2a7a5a): growth, positive health signals, English language--spark-social, #5a5aaa): social/communication metricsNever use more than 3 colors in a single chart. If you need more, use opacity/saturation variations of the same hue.
Based on building the reference report, these are the recurring problems:
@4 not a specific patch version — specific versions may not existChart.defaults.scale.grid.color = '#eee' not Chart.defaults.scale.grid = {color: '#eee'})usePointStyle: false with boxWidth: 8, boxHeight: 8, borderRadius: 4 for true circles. usePointStyle: true creates ovals.table-wrapper and add .hide-mobile to secondary columnsWhen the user provides data from any source (CSV, JSON, SQLite, API, raw numbers), normalize it into the standard ReportData intermediate format before generating HTML. This decouples data ingestion from report rendering.
Read references/data-adapter.md for the ReportData JSON schema, field reference, and adapter instructions for each source type.
Workflow:
meta.question and desired sections)Reports are assembled from typed blocks, each with a defined data contract. This replaces ad-hoc HTML generation with a systematic approach.
Read references/blocks.md for the complete block catalog: sparkline-row, kpi-card, trend-chart, data-table, correlation-matrix, narrative, heatmap, strip-chart.
Each block defines:
For iterative development, use the built-in live-reload server:
python3 ~/.claude/skills/tufte-report/scripts/serve.py report.html
Serves on localhost:8042, auto-reloads on file change with scroll position preserved. Zero dependencies — Python stdlib only.
Read references/preview-server.md for details. After generating a report, offer to start the preview server for the user.
Take glebis/tufte-report from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.