/claude-skills:report-builderfrom claude-skills
Builds self-contained single-page HTML reports/dashboards from CSV, DataFrame, or JSON data using Python, Jinja2, Bootstrap 5, and Chart.js or Plotly. Covers safe autoescaping, data-to-JS serialization, and portable file output.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The job is almost always the same shape: data in → one HTML file out, rendered by a
template, viewable by double-clicking with no server. Keep that shape and the work stays
small and reproducible. The two failure modes to design against are (1) non-determinism
(charts that fetch live, timestamps that drift) and (2) unsafe data interpolation (raw
values dropped into HTML or <script>). Both are solved below.
data (CSV / DataFrame / JSON)
└─ your prep code (pandas, optional) → a plain JSON "context"
└─ Jinja2 template (.html.j2) → scripts/render.py
└─ one self-contained report.html
Separate prep (project-specific, may use pandas) from render (generic, reusable).
scripts/render.py is the generic half — point it at a template and a JSON context file
and it emits HTML. Don't rewrite it per project.
Run render.py by its absolute path — it lives in this skill's base directory (announced
when the skill loads, usually ~/.claude/skills/report-builder); a relative
report-builder/scripts/render.py won't resolve from another repo. It has PEP 723 inline deps
(jinja2), so it must run under uv — never bare python. Define an rbuild function per
block (a function passes arguments correctly under bash and zsh, where a plain $VAR doesn't
word-split; re-declare it per block since shell state doesn't persist between tool calls):
# uv is required here (jinja2); resolve it even when it's not on a bare PATH (non-interactive
# shells often drop ~/.local/bin or the Homebrew bin -> `uv: command not found`):
UV="$(command -v uv || ls "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv" /opt/homebrew/bin/uv /usr/local/bin/uv 2>/dev/null | head -1)"
rbuild() { "$UV" run "$HOME/.claude/skills/report-builder/scripts/render.py" "$@"; }
rbuild --template my_report.html.j2 \
--data context.json \
--out report.html --title "Q2 Cost Report"
render.py enables it and uses StrictUndefined, so a typo'd
variable fails loudly instead of rendering blank, and text values can't inject markup.
Only reach for | safe on content you generated and trust (e.g. a Markdown→HTML
block you produced). Never | safe on data that originated from a user, a file, or an
API.| tojson, never string-building. To hand a dataset to
Chart.js/Plotly, serialize it in the template:
<script>
const chartData = {{ data | tojson }}; {# safe: escapes </script>, quotes, unicode #}
</script>
This is correct and XSS-safe. Building JS by concatenating values is the classic
injection hole — don't.| Use Chart.js when | Use Plotly when |
|---|---|
| Standard charts: bar, line, pie, doughnut, radar | Interactive exploration: zoom, pan, rich hover, selection |
| Small bundle, fast, dashboard-y look | Statistical/scientific: box, violin, heatmap, 3D, contour |
| Few hundred → few thousand points | Large datasets, or users will drill into the data |
| You want a clean default aesthetic with little config | You need subplots, dual axes, or precise scientific layout |
Default to Chart.js for status/metrics dashboards; reach for Plotly when the reader needs to interrogate the data, not just read it. Don't load both unless a report truly needs each.
<script src="https://cdn...">. Smallest file, but needs network at view time.The starter template (assets/report-template.html.j2) uses CDN with the swap point
marked. Pin a major version in the URL; verify the current version rather than guessing
a patch number (see Fact-discipline).
Lean on the grid and components instead of hand-rolling CSS:
container/container-fluid, a header row, then row/col-* for content.card components in a responsive row-cols-1 row-cols-md-3 grid.<table class="table table-sm table-striped">; for long tables, wrap in
table-responsive.<style> block for things Bootstrap doesn't cover (chart
container heights, print tweaks). Don't fight the framework.--data), don't call
datetime.now() inside the template — that way a re-render of the same inputs is
byte-stable, and tests can assert on output.Don't assert a current Bootstrap/Chart.js/Plotly version or a chart-config field from memory — these drift. Confirm the version and the option name before pinning:
# resolve then fetch — see the c7search skill (avoid `ask`)
LIB=$(c7search resolve --library-name "chart.js" "bar chart options" --json --limit 1 | jq -r '.[0].id')
c7search docs "$LIB" --topic "bar chart options" --tokens 3000
Or check the official docs/CDN. If you can't verify, leave the version as a clearly-marked
placeholder rather than inventing a number. (Defer to the fact-verifier agent when a
version gates the build.)
scripts/render.py — generic Jinja2 renderer (autoescape + StrictUndefined; PEP 723
inline deps; uv run-ready). Reuse it; don't reinvent it.assets/report-template.html.j2 — starter: Bootstrap 5 frame, KPI cards, a Chart.js
example wired through | tojson, a data table, and a provenance footer. Copy and adapt.assets/report-template.html.j2 into the project; adapt the markup.{"title": ..., "kpis": [...], "chart": {...}, "rows": [...], "generated_at": "...", "provenance": {...}}).rbuild --template <tpl> --data <ctx.json> --out report.html (define rbuild as shown above).report.html. Verify chart renders, table populates, no Undefined errors.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
html-report, dashboard, jinja2, chartjs, plotly, data-visualization
npx claudepluginhub kevin-burns/claude-skills --plugin claude-skills32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work.Other plugins' skills for the same job