diagram
GAgarrytan/gstack136k近 7 天新增 883 个 star
Use whenever you generate or review a chart, plot, table, or paper figure in this workspace, including work delegated by paper-writing, literature-survey, and experiment skills. Applies the Open Science publication style, enforces readable final-size layout for figures and tables, and rejects generic diagram-tool output as a publication figure. Interactive Plotly/HTML may be used for exploration, but paper delivery requires a static publication-ready export.
Make generated figures publication-grade and on-system by default. Every figure you produce with matplotlib must use the bundled Open Science style, so a figure in a report and a stat tile in the app read as one design system. When a paper/survey skill or target venue specifies its own publication palette and physical type scale, that more specific standard overrides this palette; the final-size, collision, and figure-form rules below still apply.
The style file openscience.mplstyle sits next to this SKILL.md. Load it by
absolute path at the top of any figure script:
import matplotlib.pyplot as plt
from pathlib import Path
# This skill's directory — the style ships beside SKILL.md.
STYLE = Path(__file__).resolve().parent / "openscience.mplstyle" if "__file__" in dir() else None
# In a notebook/agent cell, use the skill's deployed path directly:
plt.style.use(str(STYLE)) if STYLE and STYLE.exists() else plt.style.use("default")
If you cannot resolve the path, set the palette inline (same hexes as below).
These are the exact hues the app's native charts use. Assign categorical series in this fixed order — never a different order, never a cycled 9th hue.
| Slot | Hue | Light hex |
|---|---|---|
| 1 | blue | #2a78d6 |
| 2 | aqua | #1baf7a |
| 3 | yellow | #eda100 |
| 4 | green | #008300 |
| 5 | violet | #4a3aa7 |
| 6 | red | #e34948 |
| 7 | magenta | #e87ba4 |
| 8 | orange | #eb6834 |
Sequential (magnitude, one hue light→dark): #cde2fb #9ec5f4 #6da7ec #3987e5 #256abf #184f95 #104281. Diverging: blue ↔ red with a neutral gray midpoint.
plt.savefig(path, bbox_inches="tight") (the style sets dpi).For PDF output, rasterize the actual final artifact before delivery:
pdftoppm -png -r 180 paper.pdf /tmp/paper-check/page
Inspect every page containing a generated figure or table. Source dimensions,
tight_layout, constrained_layout, and a successful compile are not evidence
that the rendered result is readable.
openscience.mplstyle).GAgarrytan/gstack136k近 7 天新增 883 个 star
NEnextlevelbuilder/ui-ux-pro-max-skill135k近 7 天新增 1,864 个 star
NEnextlevelbuilder/ui-ux-pro-max-skill135k近 7 天新增 1,864 个 star
NEnexu-io/open-design101k近 7 天新增 1,126 个 star
NEnexu-io/open-design101k近 7 天新增 1,126 个 star
THthedotmack/claude-mem100k近 7 天新增 3,024 个 star