agentleFS
tkollehtkolleh/skills/visualize/SKILL.md

visualize

Skill1 starsChanged 3 months agoMITView on GitHub

Trigger on: chart, plot, visualize data, bar chart, line chart, scatter plot, pie chart, line graph, Vega-Lite, make a chart from CSV/JSON/table. Generates charts (bar, line, scatter, pie) from CSV, JSON, or pasted tabular data using Vega-Lite, with automatic column-type detection and chart-type recommendation. Use when the user wants a data visualization from a table or file — not for architecture/sequence diagrams (use diagram), network graphs, or design/art images.

  • Installs packages

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use exp-pilot-eval, exp-pilot-run and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 4 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 4 projects that use this

  • phanghonghaoSkill

    poster

    HTML/CSS A4 海报生成。从沙龙/活动 Markdown 文件生成科技风 A4 海报 PDF/PNG。Use when user mentions: poster, 海报, 海报生成, make poster, generate poster, 活动海报, 沙龙海报.

    Also in 4 projects that use this

  • +1 more from skyllwt
  • +6 more from Lambenthan

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Do not use for architecture/sequence diagrams → diagram.

    line 28
  2. Distinctive:

    Do not use for generative art, posters, or non-data images.

    line 29
  3. Very specific:

    If data is already a file path the user gave, use it as --data_path.

    line 44
  4. Distinctive:

    If the user pasted a table / inline JSON/CSV, write it to a file in the

    line 45
  5. Very specific:

    Run (from skill dir or with absolute path to main.py):

    line 52
  6. Very specific:

    Read the JSON stdout. On "status": "error", report reason and STOP (or fix path/format and re-run once).

    line 58
  7. Very specific:

    Default to recommended chart/x/y from analyze.

    line 67
  8. Very specific:

    If the user named a chart type or axes, prefer their choice only if those fields appear in columns.

    line 68
  9. Very specific:

    If "aggregated": true, you must tell the user what was aggregated or sampled (aggregation field).

    line 90

“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “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

Data Visualization Creator

Generate plots/charts/graphs from CSV or JSON via vl2svg (Vega-Lite), with column-type detection and chart-type recommendation.

When to use

  • User wants a chart/plot/graph from tabular data (file or pasted table).
  • Do not use for architecture/sequence diagrams → diagram.
  • Do not use for generative art, posters, or non-data images.

Prerequisites

  • python3 and this skill's main.py (path: skill directory next to this file).
  • vl2svg on PATH: npm install -g vega-cli vega-lite.
  • Files ≥10MB also need duckdb on PATH.

Procedure

Work phases in order. Do not skip. Do not invent column names — only use fields from analyze output (or exact user overrides that exist in that output).

Phase 1 — Materialize data

  1. If data is already a file path the user gave, use it as --data_path.
  2. If the user pasted a table / inline JSON/CSV, write it to a file in the session scratch directory (temp). Do not write into the project working directory unless the user explicitly asks to save there.
  3. Completion: a real filesystem path exists and is readable.

Phase 2 — Analyze

  1. Run (from skill dir or with absolute path to main.py):

    python3 <skill-dir>/main.py analyze --data_path <path>
  2. Read the JSON stdout. On "status": "error", report reason and STOP (or fix path/format and re-run once).
  3. Note recommended_chart_type, recommended_x, recommended_y, column type / cardinality / null_count. For large files note "engine": "duckdb" and size_mb.
  4. Completion: you have recommended chart + axes (or a clear error reported).

Phase 3 — Choose encoding

  1. Default to recommended chart/x/y from analyze.
  2. If the user named a chart type or axes, prefer their choice only if those fields appear in columns. If not, re-check analyze and ask once.
  3. Chart intents: bar = category vs measure; line = temporal vs measure; scatter = two numerics; pie = few categories (≤6) + measure.
  4. Completion: concrete chart_type, x_axis, y_axis (y may be null only if analyze allowed it and user wants category counts — otherwise require y).

Phase 4 — Render

  1. Pick --output_path in scratch (or user-requested path). Prefer .svg.

    python3 <skill-dir>/main.py render \
      --data_path <path> \
      --chart_type <bar|scatter|line|pie> \
      --x_axis <field> \
      --y_axis <field> \
      --output_path <out.svg>
  2. On success JSON: keep output_path. On error JSON: report reason / stage; if invalid field, re-run Phase 2 — do not blind-retry.
  3. If "aggregated": true, you must tell the user what was aggregated or sampled (aggregation field). Never imply every row was plotted.
  4. Completion: SVG exists at output_path, or structured error reported.

Phase 5 — Respond

  1. Report chart type, axes, and SVG path.
  2. Mention aggregation/sampling when present.
  3. PNG only if user asked: rasterize SVG separately (rsvg-convert or vl2png); this skill does not emit PNG by default.
  4. Completion: user has path + one-line interpretation of the chart.

Edge cases (summary)

  • Empty file / no rows → analyze error; stop and say so.
  • Missing vl2svg / duckdb → report install hint from error JSON; stop.
  • Unknown columns → list columns from analyze; do not guess.
  • Wide tables: recommend using analyze picks; do not plot all columns at once.
  • Details and decision table: load references/chart-selection.md only if recommendation is ambiguous or user asks why a type was chosen.

Examples

Happy path

  • User: "Make a bar chart of revenue by region from sales.csv"
  • You: analyze → render bar with region/revenue → return SVG path.

Inline data

  • User pastes a markdown table → write temp CSV → analyze → render → SVG.

Non-trigger

  • User: "Draw the checkout service architecture" → do not use this skill (use diagram).

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.