Loading...
Loading...
Create and modify editable draw.io / diagrams.net diagrams (.drawio XML), output .drawio + PNG/PDF. Three approaches: use built-in templates (5-band technology roadmap, 3-column research framework diagram, 3-column stage flow chart, horizontal task pipeline diagram), write XML from scratch, high-fidelity replication of reference diagrams. Use this when users request technology roadmaps, full-text overviews, research framework diagrams, paper flowcharts, algorithm flowcharts, model/system architecture diagrams, method schematics, turning papers or projects into a single diagram, defense diagrams, or request to draw drawio diagrams, redraw a reference diagram into an editable vector diagram, or fix diagrams (text overflow/arrow misalignment/inconsistent color scheme/misaligned layout). For line charts, heatmaps and other data charts, please use scibox-figure instead.
npx skill4agent add jihe520/sci-box scibox-diagram| Scenario | Approach | Entry Point |
|---|---|---|
| Full-text context, research framework, execution flow, or task breakdown of a project | A. Use Templates | Template Index below |
| Other schematics: algorithm flow, model architecture, experimental design, mechanism illustration… | B. Write XML from Scratch | |
| Given a reference diagram, need to redraw it into an editable vector diagram | C. High-Fidelity Replication | |
| Template ID | Layout | Suitable for Expressing | Description |
|---|---|---|---|
| 954×1296 vertical layout, five dotted bands + left flag label + right vertical label | Problem proposal → Data and indicators → Methods and mechanisms → Result comparison → Evaluation and promotion | |
| 1026-width 3-column layout, left stage chain / middle content blocks / right method list, height adaptive | Panoramic view of research content: which research content corresponds to each stage and what methods are used | |
| 1000-width 3-column layout, middle column with solid color title bars per block + independent color schemes, height adaptive | Execution flow of research/system: stage progression, decision branches, result distribution | |
| Horizontal 1360-width layout, multiple task blocks with internal pipelines + detailed methods attached to each step | Break down projects into "Task 1…Task 4", with clear methods and conclusions for each step; suitable for 16:9 aspect ratio | |
.tex.mdassets/<template_id>/example.json"\n"python3 scripts/roadmap_5band.py content.json -o out.drawio # Template roadmap-5band
python3 scripts/framework_3col.py content.json -o out.drawio # Template framework-3col
python3 scripts/stageflow_3col.py content.json -o out.drawio # Template stageflow-3col
python3 scripts/taskflow_land.py content.json -o out.drawio # Template taskflow-land (horizontal)references/adding-templates.mdreferences/authoring.mdreferences/icons.md<br>horizontal=0references/replication.mdvisual-spec.mdlayout-grid.mdasset-ledger.mddefect-log.mdreferences/self-check.mddefect-log.mdpython3 scripts/check_layout.py fig.drawio # Check overflow/out-of-bounds/duplicate IDs/overlapping/box penetration/bitmaps (use --strict as gatekeeping)
python3 scripts/export_figure.py fig.drawio # Export 1:1 PNG + vector PDF (requires drawio command line)
python3 scripts/preview_html.py fig.drawio # Preview in browser, no drawio command line requiredcheck_layoutreferences/preflight-rules.mdreferences/self-check.md.drawio0.97\textwidth| File | When to Read |
|---|---|
| For manual diagram authoring: skeleton, style snippets, character width budget, connectors |
| When needing icons, flags, block arrows, curved arrows and other special shapes |
| When using the 5-band roadmap template |
| When using the 3-column research framework template (content panorama) |
| When using the 3-column stage flow template (execution flow) |
| When using the horizontal task pipeline template |
| When adding a new template |
| For replicating reference diagrams: calibration methods, four outputs, iterative loop |
| 9-region inventory, red team review, self-assessment scorecard, delivery checklist |
| What static checks are looking for, how to avoid false positives |
scibox-figure