From bahayonghang-drawio-skills
Overlays academic policy on draw.io to produce publication-ready figures for papers, theses, and conferences. Applies venue, figure-type, color, caption, formula, and readability gates.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bahayonghang-drawio-skills:drawio-academic-skillsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create, edit, replicate, validate, and export publication-ready draw.io figures by applying academic policy on top of the sibling Draw.io Base Skill.
CHANGELOG.mdREADME.mdREADME_CN.mdagents/interface.yamlagents/openai.yamlevals/README.mdevals/baseline-prompts.jsonevals/darwin-results.tsvevals/evals.jsonevals/test-prompts.jsonreferences/docs/academic-export-checklist.mdreferences/docs/academic-figure-playbook.mdreferences/docs/publication-overlay.mdreferences/examples/ablation-study-pipeline.yamlreferences/examples/ieee-network-paper.yamlreferences/examples/max-pooling-operation-paper.yamlreferences/examples/research-pipeline.yamlreferences/examples/system-architecture-paper.yamlreferences/examples/technical-roadmap-paper.yamlreferences/examples/yolo-model-architecture-paper.yamlCreate, edit, replicate, validate, and export publication-ready draw.io figures by applying academic policy on top of the sibling Draw.io Base Skill.
This overlay is intentionally thin. It owns academic policy, academic docs, and paper examples; it does not copy base scripts, themes, schemas, official references, or workflow docs. It calls the sibling base package at ../drawio for all shared execution.
../drawio): shared execution primitives — CLI, schema, renderer, themes (including academic / academic-color), general references, general examples, style presets, Desktop export.Themes are a base rendering primitive and stay in the base; academic policy, docs, and examples stay here.
Resolve shared resources relative to this overlay directory:
| Capability | Use this sibling base path |
|---|---|
| CLI | ../drawio/scripts/cli.js |
| diagrams.net URL fallback | ../drawio/scripts/runtime/diagrams-net-url.js |
| YAML schema | ../drawio/assets/schemas/spec.schema.json |
| Themes | ../drawio/assets/themes/ |
| Shared examples | ../drawio/references/examples/ |
| Shared references | ../drawio/references/docs/ and ../drawio/references/official/ |
| Workflow guides | ../drawio/references/workflows/ |
| Built-in style presets | ../drawio/styles/built-in/ |
Overlay-local academic assets: references/docs/publication-overlay.md, references/docs/academic-figure-playbook.md, references/docs/academic-export-checklist.md, and references/examples/.
If ../drawio/scripts/cli.js is missing, stop and report that the sibling base skill must be installed next to this overlay. Do not silently recreate or vendor-copy base resources into the overlay.
.mcp.json, MCP, or a live backend..drawio and .svg as the default academic final deliverables..spec.yaml, .arch.json, raw YAML, and diagnostics in a project-local work directory such as .drawio-tmp/<name>/, unless the user explicitly asks for a reproducible sidecar bundle beside the final output..drawio.svg..drawio and SVG, then report the unavailable export clearly..drawio, SVG, sidecars, or exported-artifact verification.../drawio..agents/skills/drawio; port durable fixes to the sibling base skill source instead.Before generating or editing, determine and state: venue/audience; figure type (architecture, roadmap, or workflow); color policy; caption/legend/title needs; formula and text-fidelity needs; export expectations.
Also estimate the node budget. The single authoritative budget guidance (targets, warning thresholds, node-efficient patterns, split strategies) lives in references/docs/academic-figure-playbook.md § Node Budget Management. If the estimate exceeds the playbook's recommended target, confirm a split/simplify strategy with the user before generating, and use compact patterns from references/templates/.
Full decision detail: references/docs/publication-overlay.md § Required Academic Decisions.
Extract only what the figure needs from papers, reference images, or text-only prompts, and keep uncertainties explicit. See references/docs/publication-overlay.md § Source Understanding (source-type table) and references/docs/academic-figure-playbook.md § Scientific Figure Patterns.
For complex paper-derived figures or academic image-replication work, present a concise diagram plan and wait for confirmation before rendering. Simple, clear academic diagrams may skip the gate and proceed to YAML/SVG. Plan template and field list: references/docs/publication-overlay.md § Diagram Plan Gate.
Use an external image-generation tool only as an optional concept preview, only after the diagram plan is confirmed, and only with privacy approval before sending unpublished or sensitive content. Treat generated text as approximate and correct final labels/formulas/geometry in YAML. Full rules: references/docs/publication-overlay.md § Optional Image Preview.
Choose one route first, then load only the referenced files.
| Route | Trigger | Load |
|---|---|---|
academic-create | paper, thesis, IEEE, manuscript, journal, publication-ready figure | this overlay references/docs/publication-overlay.md; this overlay references/docs/academic-figure-playbook.md; this overlay references/docs/academic-export-checklist.md; base ../drawio/references/workflows/create.md |
math-formula | formula, equation, LaTeX, AsciiMath, MathJax, 公式 | base ../drawio/references/docs/math-typesetting.md; base ../drawio/references/docs/design-system/formulas.md |
edit | modify an existing academic bundle or imported .drawio | base ../drawio/references/workflows/edit.md; base ../drawio/references/docs/migration-readiness.md |
replicate | redraw screenshot, image, SVG, or reference paper figure | this overlay references/docs/publication-overlay.md; base ../drawio/references/workflows/replicate.md; base ../drawio/references/docs/design-system/specification.md; base ../drawio/references/docs/design-system/color-guide.md |
stencil-heavy | academic cloud, network, AWS, Azure, GCP, Cisco, Kubernetes figure | base ../drawio/references/docs/stencil-library-guide.md; base ../drawio/references/docs/ieee-network-diagrams.md; base ../drawio/references/official/xml-reference.md |
style-preset | learn/use/list/delete/rename visual style presets | base ../drawio/references/docs/style-extraction.md; base ../drawio/references/docs/style-presets.md; base ../drawio/styles/built-in/ |
direct-xml-exception | tiny handoff-only XML or exact mxGraph control | base ../drawio/references/upstream/pure-drawio-skill.md; base ../drawio/references/official/xml-reference.md |
For academic-paper requests, set these before rendering:
meta:
profile: academic-paper
figureType: architecture # architecture | roadmap | workflow
theme: academic # or academic-color when color is acceptable
title: Caption-ready title
description: One sentence explaining the figure intent
legend: Required when symbols, colors, line styles, or icons need explanation
This section defines the default academic final deliverables.
Default deliverables:
<name>.drawio<name>.svgIntermediate work directory:
<name>.spec.yaml<name>.arch.jsonAdd <name>.png / .pdf / .jpg only when requested or needed for Word/A4/thesis/raster workflows, and only when draw.io Desktop export is available.
architecture, roadmap, or workflow..drawio and standalone SVG with sidecars in the work directory.node ../drawio/scripts/cli.js input.yaml figure.drawio --validate --write-sidecars --sidecar-dir .drawio-tmp/figure --strict-warnings
node ../drawio/scripts/cli.js input.yaml figure.svg --validate --write-sidecars --sidecar-dir .drawio-tmp/figure --strict-warnings
Use paths relative to the overlay directory, or absolute paths when running from another working directory. Detailed figure-type patterns: references/docs/academic-figure-playbook.md.
.spec.yaml sidecar exists, edit the YAML spec first. If only .drawio exists, import it through the base CLI (--input-format drawio --export-spec).bounds for standalone text/formula blocks and labelOffset for connector labels off the line.Use the sibling base CLI for deterministic exports.
# Editable .drawio + offline SVG with work-dir sidecars
node ../drawio/scripts/cli.js input.yaml figure.drawio --validate --write-sidecars --sidecar-dir .drawio-tmp/figure --strict-warnings
node ../drawio/scripts/cli.js input.yaml figure.svg --validate --write-sidecars --sidecar-dir .drawio-tmp/figure --strict-warnings
# Desktop-enhanced exports
node ../drawio/scripts/cli.js input.yaml figure.drawio.svg --validate --write-sidecars --sidecar-dir .drawio-tmp/figure --use-desktop
node ../drawio/scripts/cli.js input.yaml figure.png --validate --use-desktop
node ../drawio/scripts/cli.js input.yaml figure.pdf --validate --use-desktop
If Desktop is unavailable, generate a diagrams.net URL from the .drawio artifact and report the missing export honestly:
node ../drawio/scripts/runtime/diagrams-net-url.js figure.drawio
Do not claim PNG/PDF/JPG files exist when Desktop export was unavailable.
Use overlay-specific user presets first (~/.drawio-academic-skills/styles/), then sibling base bundled presets (../drawio/styles/built-in/). Never mutate bundled base presets; copy a bundled preset into the user preset directory before editing or making it a default.
Do not claim completion until:
.drawio and .svg are aligned with work-dir .spec.yaml and .arch.jsonmeta.profile is academic-paper and meta.figureType is architecture, roadmap, or workflowreferences/docs/academic-figure-playbook.md § Node Budget Management); split or simplify when it is exceeded$$...$$, \(...\), or AsciiMath backticks)End with a concise report:
Scans a codebase for architectural friction, presents candidates as a visual HTML report with before/after diagrams, and guides you through deepening refactors.
npx claudepluginhub bahayonghang/drawio-skills