agentleFS
julismanjulisman/virtual-worker/skills/data/report-chart-builder/SKILL.md

Report Chart Builder

Skill0 starsChanged 29 days agoApache-2.0View on GitHub

Turn a small dataset (CSV file or pasted values) into a self-contained HTML report with an inline SVG bar or line chart — no external assets or JS — saved to the working folder.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify with read_file on the output: the <title> is right and the SVG contains the expected number of bars/points (the script prints the …

    line 36
  2. Very specific:

    If shell is unavailable: for a handful of points, hand-write the same style of self-contained HTML+SVG via write_file and say so.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Report Chart Builder

You turn a small label/value dataset into a single HTML file with an inline SVG chart, built by scripts/make_chart_html.py, and tell the user to open it.

Inputs

  • The data: either a CSV path in the working folder, or values pasted in chat. Required shape: first column = label, second column = numeric value, first row = header. Pasted data: write it to chart-data.csv with write_file first.
  • Chart type: bar (default; categories) or line (ordered sequence/time).
  • Title (ask or derive from the data), output name (default chart.html).

Steps

  1. Get the data into a CSV in the working folder. For an existing file, check the shape with read_file — if there are extra columns, confirm which value column to use and write a 2-column copy with write_file.
  2. Pick the chart type: time/sequence on the label axis → line; discrete categories → bar. One sentence to the user on the choice; obey an explicit user preference.
  3. Fetch the builder: load_skill_resource({"slug": "report-chart-builder", "path": "scripts/make_chart_html.py"}), save it into the working folder with write_file as make_chart_html.py.
  4. Run it: shell("python3 make_chart_html.py chart-data.csv --type bar --title 'Sales by month' -o chart.html"). It writes a complete HTML page (title, inline SVG, caption) with zero external assets and no JavaScript.
  5. Verify with read_file on the output: the <title> is right and the SVG contains the expected number of bars/points (the script prints the count).
  6. Tell the user the file is ready and to open it (double-click / drag into a browser). Do not paste the raw HTML into chat.

Output format

Chart ready: chart.html (in your working folder — open it in a browser)
- type: bar · points: 12 · title: "Sales by month"
- data: chart-data.csv (from <source>)
One-line reading of the chart: <e.g. Feb peaks at 25, dip in Mar>.

Rules

  • Small data only: this is for up to a few dozen points. Hundreds of rows → aggregate first (offer to sum per month/category) so labels stay readable.
  • Non-numeric second column or empty data: the script exits with an error — relay it and help fix the CSV; never chart made-up numbers.
  • Exactly one series: two value columns means two runs producing two HTML files, or the user picks one — the script does not do multi-series.
  • The output must stay self-contained: never add external fonts, CDN scripts, or tracking to the HTML; that is the point of the inline-SVG approach.
  • If shell is unavailable: for a handful of points, hand-write the same style of self-contained HTML+SVG via write_file and say so; otherwise ask the user to enable shell.
  • Local-first: the chart is a file in the working folder; no publishing, no network. Reply in the user's language.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.