plot-ml-figure
Skill144 starsChanged 17 days agoBSD-3-ClauseView on GitHub
Pick pandas, seaborn, plotly, or matplotlib before writing figure code. Trigger when explore-ml-data, evaluate-ml-pipeline, or audit-ml-pipeline is about to save or display a chart, or when the user asks for a plot. Not a session owner. Not for skore/sklearn Display plots that already exist on a report.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- probabl-ai/skillsword for word, first seen Oct 27, 2026
Other versions1 project uses a version of this.
Word for word · 1
- probabl-ai/skills★ 144100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-python-packageSkill
- audit-ml-pipelineSkill
- build-ml-pipelineSkill
- choose-python-librarySkill
- evaluate-ml-pipelineSkill
- explore-ml-dataSkill
- export-ml-notebookSkill
- export-ml-projectSkill
- export-ml-siteSkill
- frame-ml-problemSkill
- manage-ml-backlogSkill
- model-ml-pipelineSkill
- persist-ml-gitSkill
- research-ml-practiceSkill
- review-ml-choicesSkill
- review-ml-experimentSkill
- search-ml-literatureSkill
- setup-gitSkill
- setup-ml-projectSkill
- setup-python-envSkill
- setup-workspaceSkill
- shape-user-ideaSkill
- smoke-test-ml-pipelineSkill
- sync-ml-reportsSkill
- triage-ml-taskSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
If a skore report or sklearn Display already plots this, use it.
- Very specific: line 30
If interactivity (hover, zoom, pan) is the requirement: Plotly Express.
- Very specific: line 39
If the plot is statistical on a tidy DataFrame (distribution, categorical compare, relationship, heatmap, pairplot, facet): seaborn …
- Very specific: line 48
If it is a simple Series/DataFrame bar / line / hist / area from the index or a few columns, no statistical overlay: df.plot(...).
- Distinctive: line 68
Do not write a long matplotlib script for a hist, box, or bar of a Series.
- Very specific: line 70
Do not load choose-python-library for matplotlib vs seaborn vs plotly.
- Very specific: line 72
Do not pixi add / uv add / env add.
- Distinctive: line 73
Do not install plotly on the default EDA path.
- Very specific: line 74
Do not plt.close a figure that should appear in a notebook.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Plot ML Figure
Worker. Callers own the file and the turn. Do not git end-turn.
Details: references/when.md.
Sequence
- If a skore report or sklearn Display already plots this, use it. Stop.
- If interactivity (hover, zoom, pan) is the requirement:
Plotly Express. Write
<caller-figure-dir>/<slug>.htmlwithinclude_plotlyjs=True(inline, offline).explore-ml-datausesdata_analysis/. Do not overwrite that caller’s owned HTML (e.g.data_analysis_<slug>.html). The caller embeds<iframe src="<slug>.html" width="100%" height="640"></iframe>in its markdown beside the implication. Do not add kaleido unless the user asked to export a static image. No Dash. Do not use a CDN. - If the plot is statistical on a tidy DataFrame (distribution,
categorical compare, relationship, heatmap, pairplot, facet):
seaborn figure-level when a notebook will display it
(
displot,relplot,catplot,pairplot,heatmapviaFacetGrid/ axes only if already on a grid). Not aplt.subplotsloop and not aforover columns with a trailingg. One figure-level call as the last expression; facet withcol=/col_wrap. Save PNG, leave the figure/grid as the last expression. Neverplt.close. - If it is a simple Series/DataFrame
bar/line/hist/areafrom the index or a few columns, no statistical overlay:df.plot(...). Save the figure (ax.figure.savefig(...)), leaveax.figure(or the axes) visible. Neverplt.close. - Else matplotlib. Last resort. In a notebook still save and
display; do not
plt.close.
Notebook cells: save for the caller markdown and show the
figure in the notebook. plt.close is for non-notebook scripts
only (evaluate/audit scratch probes if they are not notebooks).
Polars → pandas at the plot boundary. Missing import →
add-python-package if installed; else name the package and
return. api get before new symbols.
Missing this skill from a caller → that caller one-line skips and still follows this tree.
Stop conditions
- Do not write a long matplotlib script for a hist, box, or bar of a Series.
- Do not load
choose-python-libraryfor matplotlib vs seaborn vs plotly. - Do not
pixi add/uv add/env add. - Do not install plotly on the default EDA path.
- Do not
plt.closea figure that should appear in a notebook.
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
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.

