scibox-diagram

Create and edit draw.io diagrams for research roadmaps, frameworks, and flowcharts.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Yjj0333/skills-manager-backup --skill scibox-diagram-yjj0333
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scibox-diagram
Source: https://github.com/Yjj0333/skills-manager-backup/tree/main/scibox-diagram
Command: npx skills add https://github.com/Yjj0333/skills-manager-backup --skill scibox-diagram-yjj0333

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Producing editable, publication-quality schematic diagrams (technical roadmaps, research frameworks, algorithm flowcharts) for papers and thesis defenses is slow and error-prone, especially with Chinese text layout, connector routing, and consistent styling in draw.io XML. ## Core Features & Use Cases - Four built-in templates: five-band technical roadmap, three-column research framework, three-column stage flow, and landscape task pipeline, each rendered from a content JSON with per-slot Chinese character-width validation. - Three authoring paths: fill a template, hand-write .drawio XML from scratch, or high-fidelity replicate a reference image with pixel calibration and iterative screenshot review. - Quality toolchain: static layout checker (text overflow, overlaps, edges crossing boxes, duplicate ids), 1:1 PNG/PDF export via the drawio CLI, and browser preview without drawio installed. - Use Case: Given a paper's LaTeX source, generate a five-band technical roadmap .drawio plus PNG for a defense slide, with all numbers verified against the source. ## Quick Start Ask the assistant to turn your paper or project into an editable draw.io diagram, for example: "Use the roadmap template to draw a technical roadmap of my thesis and export it as PNG."

Frequently Asked Questions about scibox-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a draw.io diagram from a template?▼

Copy the template's example.json from the assets directory, fill in your content with manual line breaks, then run the matching render script such as python3 scripts/roadmap_5band.py content.json -o out.drawio. The script validates every slot's character budget before writing the file.

How do I export a .drawio file to PNG or PDF?▼

Run python3 scripts/export_figure.py fig.drawio to produce a 1:1 PNG and a vector PDF. It requires the drawio desktop command line (brew install --cask drawio on macOS); without it, use preview_html.py for a browser preview instead.

What diagram types does this skill support?▼

It covers schematic diagrams: five-band technical roadmaps, three-column research frameworks, staged process flows, landscape task pipelines, algorithm flowcharts, and model architecture diagrams. Data charts like line plots and heatmaps are out of scope and belong to the scibox-figure skill.

Why does Chinese text overflow boxes in draw.io?▼

draw.io's automatic wrapping handles Chinese poorly, so text must be manually broken with \n and sized by the rule: full-width characters equal the font size in pixels, half-width characters half that, line height about font size plus 3. The check_layout.py script detects overflow before rendering.

Can it replicate an existing figure into an editable vector diagram?▼

Yes, the replication workflow calibrates coordinates, colors, and font sizes from the reference image using connected-component analysis, then iterates at least three rounds of render-compare-fix with pixel differencing. Approximated elements are recorded in an asset ledger rather than silently dropped.

When should I not use this skill?▼

Avoid it for statistical data charts such as line plots and heatmaps, which belong to scibox-figure, and for LaTeX formula derivation chains, which are better done in TikZ or inline text. It targets editable schematic diagrams, not data visualization.