Compute a figure's printed font size from your page's text width before you export it, then verify three things per file — printed size, effective resolution, and pixel width — and pick a chart type that matches the message. Ships a style module, a read-only verifier, an overlap audit, CFD panel conventions, and 19 reproducible recipes rendered from synthetic data.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-academic-figure-ops
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ZZR-rui-997/dsh-academic-figure-ops
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Figure rules for academic papers and reports, packaged as a DeepSeek Harness bundle. It answers one question that bites almost every paper: will this text still be readable after the figure is squeezed into the page?
Installing the bundle registers the academic-figure-ops skill, so the agent loads these rules whenever you ask it to draw, resize or check a figure.
What it does
- Font size is computed, not guessed. The printed size follows
printed_pt = set_pt × text_width_cm ÷ exported_width_cm. Set your page's text width once, then every figure is checked against it. - Three checks per export: printed font size, effective resolution after scaling, and the actual pixel width of the file. A figure can pass one and fail the others; that gap is where "it looked fine on screen" comes from.
- Chart type matches the message, with an anti-pattern list for the usual mistakes (two y-axes, truncated axes, rainbow colormaps, decoration as data).
- CFD post-processing conventions for contour panels, colour bars and multi-case comparisons.
- 3D rendering route (
pyvista) for figures whose geometry is genuinely three-dimensional: isosurfaces, phase interfaces and multi-view panels, with the lighting/colour recipe and the three pitfalls that cost a rework. - 19 reproducible recipes (
assets/case-gallery/): every case ships a script, a case card explaining what it is good for, and a preview. All recipes use synthetic data with a fixed seed, so they run anywhere.
What is inside
skills/academic-figure-ops/
├── SKILL.md the rules the agent reads
├── references/ chart selection, hard parameters, anti-patterns,
│ resolution & format, CFD patterns, 3D rendering,
│ schematics, QA
├── scripts/
│ ├── figstyle.py the single implementation of the house style
│ ├── check_figure.py read-only verifier for an exported figure
│ └── overlap_audit.py finds overlapping labels/tick text
└── assets/case-gallery/ 19 recipes + case cards + previews
Install
As a bundle (recommended) — install dsh-academic-figure-ops from npm through Plugins → Add plugin, or from the plugin market once the listing is live. The bundle registers the skill for you.
As a plain skill — copy the directory and skip the bundle entirely:
cp -r skills/academic-figure-ops ~/.dsh/skills/
Either way the agent discovers SKILL.md and loads it on demand.
Use
- Open the skill, read
references/hard-params.mdfor the defaults. - Measure the text width of your page (for A4 with 3.17 cm side margins it is 14.65 cm) and set it:
- in code:
TEXT_WIDTH_CM = 14.65orset_style(text_width_cm=14.65) - when verifying:
python check_figure.py --text-width-cm 14.65 figures/fig1.png
- in code:
- Draw with
figstyle.pyso widths, fonts and colours stay consistent. - Before delivery run
check_figure.py; it reports the printed size and the effective resolution and tells you which one fails.
Requirements: Python 3.10+, matplotlib (tested with 3.11) and numpy (tested with 2.4). Pillow is only needed by the verifier. Nothing else, no network access.
Honest limits
- It checks whether a figure is readable and correctly drawn, not whether the science behind the numbers is right.
- The CFD section describes one common Fluent/CFD-Post workflow; other tools need their own steps for contour styling and colour-bar placement.
- The recipes use synthetic data to demonstrate layout. They are not datasets.
- No vendor software, no third-party image libraries and no copyrighted figure files are bundled or required.
License and assets
Code, text and icon.png are MIT (see LICENSE). The 19 case previews are rendered by the bundled recipes from synthetic data and are covered by the same MIT license. No third-party figures are redistributed: the case cards describe a layout and the preview shows what this package's own code produces from it.
Product and company names mentioned (Fluent, ANSYS, matplotlib, DeepSeek Harness) are trademarks of their respective owners. This package is not affiliated with or endorsed by any of them.
Links
More in this category
tw93/Mole#mole★ 76456
Official agent skill for the open-source Mole CLI (mo), a disk cleanup tool for macOS and Windows: read disk usage, preview and run cleanup, inspect installed apps, and read system health and cleanup history from Mole's JSON output. It previews with --dry-run and asks before removing anything, and leaves app uninstalls and privileged steps to the user's own terminal. The plugin ships only the skill; the CLI is installed separately.
zhu1090093659/dsh-web#packages/dsh-skill-explorer★ 10669
Skill center for the dsh web GUI: browse all loaded skills grouped by source, enable or disable model invocation, create new skills, and delete into a recoverable trash.
QingYunA/answer-me-with-html★ 6702
Answers a question with a one-page visual HTML explainer: the model writes a short Markdown draft and the bundled `am` CLI builds the page, with flow, sequence, tree, timeline and ER diagrams, tables and callouts.
iflytek/skillhub#dsh★ 5504
Browse and search a SkillHub registry and manage local skill installation, updates, and removal inside DeepSeek Harness. Targets DSH 0.2.0-rc.2 and 0.2.1-rc.2; not yet compatible with 0.2.1-rc.3.
hyhmrright/brooks-lint★ 1592
Provides six code quality skills for code review, architecture audits, technical debt, test quality, health dashboards, and remediation.
GanyuanRan/Aegis★ 1459
Software-engineering method pack for coding agents, with skills for baseline-first planning, systematic debugging, prompt hygiene, verification before completion, and repair/retirement tracking.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.