visualization
Skill86 starsChanged 50 days agoMITView on GitHub
Use this when creating, modifying, reviewing, or saving charts, figures, plots, or visual summaries — including matplotlib/seaborn code, EDA figures, report figures, dashboards, or any task involving Japanese chart labels, color palettes, or figure styling.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- Lisir2002/SKILLStheir own version, first seen Nov 1, 2026
- PuckAPI/claude-sports-analyticstheir own version, first seen Oct 14, 2026
- GoogleCloudPlatform/LifeSciencestheir own version, first seen Oct 13, 2026
- microsoft/qdk-chemistrytheir own version, first seen Oct 13, 2026
- BrendenKennedy/claude-for-ai-platformstheir own version, first seen Oct 13, 2026
- chrisselig/claude-code-toolkittheir own version, first seen Oct 9, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- wu-yc/LabClaw★ 1.1ksame name
- robium-ai/robium★ 93same name
- microsoft/qdk-chemistry★ 79same name
- GoogleCloudPlatform/LifeSciences★ 57same name
- sshtomar/claude-code-skills-social-science★ 15same name
- qunyou-agent/finance-skills★ 4same name
- PuckAPI/claude-sports-analytics★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Kaalia0912/dsh-data-analysis-mode★ 2same name
- BrendenKennedy/claude-for-ai-platforms★ 1same name
4 more not listed
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 repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analysis-reportingSkill
- causal-inference-diagnosticsSkill
- dataframe-polarsSkill
- notebook-workflowSkill
- path-and-ioSkill
- plan-analysisSkill
- predictive-modeling-diagnosticsSkill
- prepare-prSkill
- python-project-opsSkill
- python-styleSkill
- review-sqlSkill
- run-edaSkill
- run-modelingSkill
- safe-data-handlingSkill
- simulation-optimization-diagnosticsSkill
- sql-analysisSkill
- statistical-inference-diagnosticsSkill
- statistical-ml-reviewSkill
- summarize-analysisSkill
- sync-agent-docsSkill
- unsupervised-eda-diagnosticsSkill
- update-agent-docsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 7 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill whenever the user asks to:
- Distinctive: line 11
Create figures for EDA, reports, dashboards, or presentations.
- Distinctive: line 17
Use matplotlib for charts.
- Distinctive: line 18
Use seaborn alongside matplotlib for theming, palettes, and statistical plots.
- Distinctive: line 37
If any text (titles, labels, legends, annotations) contains Japanese, configure a CJK-capable font, otherwise characters render as tofu …
- Very specific: line 53
Do not: use the stateful plt.figure(...) / plt.plot(...) style.
- Very specific: line 54
Always: create figures and axes explicitly, and prefer constrained_layout=True over tight_layout():
- Very specific: line 60
Use the object-oriented API: ax.set_title(), ax.set_xlabel(), ax.plot(), etc.
- Very specific: line 80
Do not repeat fontsize= on every call — it is redundant when font_scale is set.
- Very specific: line 84
Bar charts: start y-axis at 0 (ax.set_ylim(bottom=0)).
- Distinctive: line 85
Line / scatter: do not force y-axis to 0 — it can hide meaningful variation.
- Very specific: line 86
Log scale: use ax.set_yscale("log") when data spans multiple orders of magnitude.
- Very specific: line 90
Use ax.legend() only when ≥2 series are plotted.
- Very specific: line 91
If the auto-placement overlaps data, set explicitly: ax.legend(loc="upper left") or place outside: ax.legend(loc="center left", …
- Very specific: line 97
Use the path utilities from src/analysis_project/paths.py.
- Very specific: line 108
Use descriptive snake_case filenames: monthly_sales_2024h1.png, not fig1.png.
- Very specific: line 112
Always call plt.close(fig) after saving to free memory.
- Distinctive: line 121
Before finalizing a chart, verify:
“Common” is measured: kept by at least 6 in 10 of the 8 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.
Files
Skill: Visualization
Use this skill whenever the user asks to:
- Plot, visualize, chart, or graph data.
- Create figures for EDA, reports, dashboards, or presentations.
- Modify or improve existing matplotlib / seaborn code.
- Save figures to disk for reports or notebooks.
Library
- Use matplotlib for charts.
- Use seaborn alongside matplotlib for theming, palettes, and statistical plots.
Global Setup (do this first)
At the start of any notebook or script that produces figures, set the theme once. font_scale enlarges all text elements proportionally, so individual fontsize= arguments are usually unnecessary.
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme(
style="whitegrid",
palette="muted",
font_scale=1.2,
)Japanese text
If any text (titles, labels, legends, annotations) contains Japanese, configure a CJK-capable font, otherwise characters render as tofu (□□□).
Preferred approach (cross-platform):
import japanize_matplotlib # uv add japanize-matplotlibAlternative (set an installed CJK font explicitly):
plt.rcParams["font.family"] = "Noto Sans CJK JP" # or "IPAexGothic", "Hiragino Sans", "Yu Gothic"Figure Creation
- Do not use the stateful
plt.figure(...)/plt.plot(...)style. - Always create figures and axes explicitly, and prefer
constrained_layout=Trueovertight_layout():
fig, ax = plt.subplots(figsize=(10, 6), constrained_layout=True)- Use the object-oriented API:
ax.set_title(),ax.set_xlabel(),ax.plot(), etc. figsize=(10, 6)is a reasonable default. Adjust to content: wide time series →(12, 4), square scatter →(6, 6), multi-panel → scale up accordingly.
Color Map / Color Palette
Choose by data type:
- Categorical:
"muted","Set2","colorblind"(seaborn palettes). - Sequential (continuous):
"viridis","cividis","mako"— perceptually uniform. - Diverging:
"coolwarm","RdBu","vlag". - Forbidden:
"jet","rainbow"— not perceptually uniform, poor for colorblind viewers.
Font Size
sns.set_theme(font_scale=1.2) covers most cases. Override per-element only when needed (e.g. a long title needs to be smaller, or one label needs emphasis):
ax.set_title("...", fontsize=18)Do not repeat fontsize= on every call — it is redundant when font_scale is set.
Axis Scale Guidelines
- Bar charts: start y-axis at 0 (
ax.set_ylim(bottom=0)). Truncated bars are misleading. - Line / scatter: do not force y-axis to 0 — it can hide meaningful variation. Let matplotlib autoscale, or set limits based on the data range.
- Log scale: use
ax.set_yscale("log")when data spans multiple orders of magnitude.
Legend
- Use
ax.legend()only when ≥2 series are plotted. - If the auto-placement overlaps data, set explicitly:
ax.legend(loc="upper left")or place outside:ax.legend(loc="center left", bbox_to_anchor=(1.0, 0.5)).
Saving
- Save final figures under
outputs/figures/. - Diagnostic figures produced by a
*-diagnosticsskill go underoutputs/diagnostics/<YYYYMMDD-HHMM>_<skill>/instead (gitignored; the report links the directory and shows only the 判定表). - Use the path utilities from
src/analysis_project/paths.py.
from analysis_project.paths import outputs_dir, ensure_parent_dir
# 出力パスを構成して保存
output_path = outputs_dir() / "figures" / "survival_by_class.png"
ensure_parent_dir(output_path)
fig.savefig(output_path, dpi=150)- Use descriptive snake_case filenames:
monthly_sales_2024h1.png, notfig1.png. - DPI guidance:
- Notebook / README / slides:
dpi=150 - Publication / print:
dpi=300
- Notebook / README / slides:
- Always call
plt.close(fig)after saving to free memory.
fig.savefig("outputs/figures/monthly_sales.png", dpi=150, bbox_inches="tight")
plt.close(fig)Chart Quality Checklist
Before finalizing a chart, verify:
- Title clearly describes what the chart shows.
- Axis labels include units where applicable (e.g. "売上 (万円)", "Latency (ms)").
- Font sizes are readable (rely on
font_scale=1.2as baseline). - Color palette is perceptually uniform / colorblind-friendly (no jet/rainbow).
- Date range noted in title, subtitle, or annotation when relevant.
- Sample / filter note when data is subsetted (e.g. "n=1,234, 2024年1月〜6月").
- Bar charts start y-axis at 0; other chart types use sensible limits.
- Legend present when multiple series; placement does not overlap data.
- Japanese text renders correctly (japanize-matplotlib or CJK font configured).
- Saved to
outputs/figures/with descriptive filename, followed byplt.close(fig).
Example
from pathlib import Path
import matplotlib.pyplot as plt
import seaborn as sns
import japanize_matplotlib # noqa: F401 # 日本語フォント有効化
sns.set_theme(style="whitegrid", palette="muted", font_scale=1.2)
Path("outputs/figures").mkdir(parents=True, exist_ok=True)
fig, ax = plt.subplots(figsize=(10, 6), constrained_layout=True)
ax.bar(categories, values)
ax.set_title("月別売上推移 (2024年1月〜6月)")
ax.set_xlabel("月")
ax.set_ylabel("売上 (万円)")
ax.set_ylim(bottom=0) # 棒グラフは0起点
fig.savefig("outputs/figures/monthly_sales_2024h1.png", dpi=150, bbox_inches="tight")
plt.close(fig)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.

