skills/drawio-academic-skills/SKILL.md
Publication-figure overlay for draw.io. Use instead of the general drawio skill whenever a diagram is for a paper, thesis, dissertation, journal, conference, IEEE/ACM submission, manuscript, camera-ready, Word/LaTeX figure, or other publication. Applies venue, figure-type, color, caption/legend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures. Runs offline and YAML-first through the sibling ../drawio base for CLI, references, themes, schemas, styles, and Desktop export; never requires MCP or a live backend.
npx skillsauth add bahayonghang/drawio-skills drawio-academic-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create, 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 does not copy base scripts, themes, schemas, official references, or workflow docs. It calls the sibling base package at ../drawio for all shared capabilities.
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/ |
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, .spec.yaml, .arch.json, and .svg as the default academic delivery bundle..drawio.svg.../drawio.Before generating or editing, determine and state:
architecture, roadmap, or workflow.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; base ../drawio/references/docs/academic-figure-playbook.md; base ../drawio/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
Default deliverables:
<name>.drawio<name>.spec.yaml<name>.arch.json<name>.svgAdd <name>.png, <name>.pdf, or <name>.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.Commands:
node ../drawio/scripts/cli.js input.yaml figure.drawio --validate --write-sidecars --strict-warnings
node ../drawio/scripts/cli.js input.yaml figure.svg --validate --write-sidecars --strict-warnings
Use paths relative to the overlay directory, or use absolute paths when running from another working directory.
If a .spec.yaml sidecar exists, edit the YAML spec first.
If only .drawio exists, import it through the sibling base CLI:
node ../drawio/scripts/cli.js existing.drawio --input-format drawio --export-spec --write-sidecars
For image/SVG replication, preserve text boxes, captions, legends, formulas, edge labels, baseline/offset, font family/size/italic state, alignment, and spacing when visible.
Use explicit bounds for standalone text/formula blocks and labelOffset for connector labels that must sit off the line.
Keep all regenerated files on the same basename so the academic bundle remains round-trippable.
Use the sibling base CLI for deterministic exports.
# Offline SVG and sidecars
node ../drawio/scripts/cli.js input.yaml figure.svg --validate --write-sidecars --strict-warnings
# Editable .drawio bundle
node ../drawio/scripts/cli.js input.yaml figure.drawio --validate --write-sidecars --strict-warnings
# Desktop-enhanced exports
node ../drawio/scripts/cli.js input.yaml figure.drawio.svg --validate --write-sidecars --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:
node ../drawio/scripts/runtime/diagrams-net-url.js figure.drawio
Do not claim PNG/PDF/JPG files exist when Desktop export was unavailable. Report the missing export and provide the editable bundle, SVG, and fallback command or URL.
Use overlay-specific user presets first, then sibling base bundled presets:
~/.drawio-academic-skills/styles/../drawio/styles/built-in/Never mutate bundled base presets. Copy a bundled preset into the user preset directory before making it a default or editing it.
Do not claim completion until:
.drawio, .spec.yaml, .arch.json, and .svg are alignedmeta.profile is academic-papermeta.figureType is one of architecture, roadmap, or workflow$$...$$, \(...\), or AsciiMath backticksEnd with a concise report:
tools
Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow. Use for general engineering and product diagrams: architecture, network topologies, flowcharts, UML/ER, org charts, Mermaid/CSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For paper, thesis, journal, conference, IEEE/ACM, manuscript, camera-ready, or publication figures, prefer drawio-academic-skills; this base provides shared CLI, references, themes, schemas, styles, and optional Desktop export.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------