Creator · bruc3van
Last updated · Sep 7, 2026
**Use this skill** when the user wants to create any diagram: flowchart, architecture, UML (sequence/class), ER, mindmap, network topology, or any visual diagram. Trigger words: "draw", "diagram", "flowchart", "architecture", "UML", "sequence diagram", "mindmap", "ER diagram", "
Sandbox only
Install targets
Codex install prompt
Install the "bruce-drawio" agent skill from https://github.com/bruc3van/bruce-drawio/blob/main/SKILL.md. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: **Use this skill** when the user wants to create any diagram: flowchart, architecture, UML (sequence/class), ER, mindmap, network topology, or any visual diagram. Trigger words: "draw", "diagram", "flowchart", "architecture", "UML", "sequence diagram", "mindmap", "ER diagram", "network topology", "visualize", "draw.io", "drawio". Workflow: understand requirements -> generate drawio XML directly -> validate -> CLI export PNG/SVG/PDF, falling back to an app.diagrams.net browser link when draw.io desktop is unavailable. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"bruc3van-bruce-drawio","task":"Install bruce-drawio","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add bruc3van/bruce-drawio --skill bruce-drawio
Maintenance
fresh
27d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
104
67/100 Quality · 74/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
104 GitHub stars
Repo activity
104 stars, 14 forks
Maintenance
27d since push
License
MIT
Install
npx skills add bruc3van/bruce-drawio --skill bruce-drawio
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add bruc3van/bruce-drawio --skill bruce-drawioDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
256.3K Stars
npx skills add mattpocock/skills --skill grill-me
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bruce-drawio%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bruce-drawio%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/bruc3van-bruce-drawio/install
Agent should check
Copy prompt
Task: Use bruce-drawio in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bruce-drawio%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/bruc3van-bruce-drawio/install
Install command: npx skills add bruc3van/bruce-drawio --skill bruce-drawio
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/bruc3van-bruce-drawio/install
LLM text format
/api/skills/bruc3van-bruce-drawio/install?format=text
Find alternatives
/api/skills/search?q=bruce-drawio&limit=3
Agent prompt
Use bruce-drawio for this task. Review https://www.openagentskill.com/api/skills/bruc3van-bruce-drawio/install, then install with: npx skills add bruc3van/bruce-drawio --skill bruce-drawioRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/bruc3van-bruce-drawio
LLM text
/api/registry/manifest/bruc3van-bruce-drawio?format=text
Install alias
/api/registry/install/bruc3van-bruce-drawio
Recommend
/api/registry/recommend?task=Use%20bruce-drawio%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO104 GitHub stars
Stars/forks activity
CHECK104 stars, 14 forks; issue activity unavailable in current metadata
Recent maintenance
PASS27d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
A relentless interview to sharpen a plan or design.
--- name: bruce-drawio description: | **Use this skill** when the user wants to create any diagram: flowchart, architecture, UML (sequence/class), ER, mindmap, network topology, or any visual diagram.
Trigger words: "draw", "diagram", "flowchart", "architecture", "UML", "sequence diagram", "mindmap", "ER diagram", "network topology", "visualize", "draw.io", "drawio".
Workflow: understand requirements -> generate drawio XML directly -> validate -> CLI export PNG/SVG/PDF, falling back to an app.diagrams.net browser link when draw.io desktop is unavailable. ---
# Draw.io Diagram Generator
## Workflow
Each numbered step below has a matching `## Step N` section. Follow them in order.
``` 1. Understand requirements -> determine diagram type, elements, relationships 2. Generate XML directly -> write drawio XML; read the matching reference section first 3. Apply layout rules -> coordinates, spacing, sizes, cell order 4. Save + validate (DO NOT SKIP) -> write the .drawio file, run the validator, fix every error 5. CLI export (optional) -> call draw.io desktop CLI to export an image (skip if not installed) 6. Browser link (conditional) -> only when the export failed, or the user asks for it 7. Deliver to user -> image + .drawio file path, kept short ```
Steps 5 and 6 are two routes to the same goal, not two deliverables to stack up. Export is the default. The browser link is the fallback that needs nothing installed — it guarantees the user can always see the diagram, so it is never a dead end, but it is also a detached copy of the file (Step 6d) and should not be pushed on a user who already has an image.
## Step 1: Understand Requirements
Determine: - **Diagram type**: flowchart / architecture / uml-sequence / uml-class / er / mindmap / network - **Key elements**: nodes, components, participants, entities - **Relationships**: connections, dependencies, flow direction - **Output format**: PNG (default) / SVG / PDF - **Language**: match the user's language for labels
## Step 2: Generate XML
**You MUST write the XML directly.** Do not call any script to generate it.
### Read the matching reference first
| Diagram type | Read before writing | |--------------|--------------------| | Architecture | `references/best-practices.md` → *Architecture Diagram Templates*, then `references/examples.md` → *Example 2* | | Flowchart | `references/examples.md` → *Example 1* | | Mindmap | `references/examples.md` → *Example 3* | | ER | `references/examples.md` → *Example 4* | | UML sequence/class, network, anything else | `references/best-practices.md` → *General Rules*, then write from your own knowledge |
`references/examples.md` holds complete, validated diagrams — copying the structure of the closest example is faster and more reliable than composing one from scratch. Read only the sections you need, not the whole file.
### Base XML Structure
```xml <?xml version="1.0" encoding="UTF-8"?> <mxfile host="app.diagrams.net" agent="drawio-skill" version="21.0.0" type="device"> <diagram name="DiagramName" id="diagram-1"> <mxGraphModel dx="1422" dy="762" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" />
<!-- nodes and edges here -->
</root> </mxGraphModel> </diagram> </mxfile> ```
### Node Template
```xml <mxCell id="node-1" value="Label" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=14;" vertex="1" parent="1"> <mxGeometry x="100" y="100" width="160" height="60" as="geometry" /> </mxCell> ```
### Text Content Rules
- For multi-line labels, encode line breaks as `
` inside `value`, for example `value="API
Gateway"` - Do not write literal `\n` inside `value`; draw.io will render it as backslash + n text - Keep `html=1` on nodes, but still use `
` as the default line-break form for predictable output
### Edge Template
```xml <mxCell id="edge-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="node-1" target="node-2"> <mxGeometry relative="1" as="geometry" /> </mxCell> ```
### Cell Order Is Z-Order (CRITICAL)
draw.io paints cells **in document order**: whatever comes later in `<root>` is drawn on top. Emit cells back-to-front:
``` 1. Background plate (the big gray rectangle, if any) 2. Layer containers (semi-transparent blocks) 3. Sub-group containers 4. Leaf nodes / labels 5. Edges ```
Writing the background rectangle after the nodes hides the entire diagram behind a gray block — this is the single most destructive ordering mistake, and it renders as a blank image with no error anywhere.
### Parent and Coordinate System
A cell's `x`/`y` are **relative to its parent**. That gives you two valid approaches, and mixing them is what produces diagrams where everything is shifted off-screen:
| Approach | When | `parent` | Coordinates | |----------|------|----------|-------------| | **Flat + absolute** (default) | Everything except ER/UML tables, including the Layered Block Style — visual nesting comes from the numbers, not the tree | always `"1"` | absolute canvas coordinates | | **True nesting** | Only when the shape genuinely owns its children: `swimlane` tables (ER, UML class), `childLayout=stackLayout` rows | the container's ID | relative to the container's top-left, so a child at `y="30"` sits 30px below the container's top |
**Default to flat + absolute.** The Layered Block Style puts every leaf node at `parent="1"` with absolute coordinates even though it looks nested — see `references/examples.md` Example 2. Only ER/UML table rows use true nesting, where a row's `x` is omitted and `y` is its offset inside the swimlane — see Example 4.
## Step 3: Layout Rules (CRITICAL for beautiful output)
### General Principles
1. **Grid alignment**: anchor top-level blocks (background plate, layer containers, sidebars, the primary column/row of a flowchart) to multiples of 10. Positions *derived* from the centering formulas below may land off the grid — that is fine and expected. The hard rule is that **every coordinate must be a whole number**; never emit fractional values. 2. **Generous spacing**: minimum 80px gap between node edges (not centers) 3. **Center alignment**: nodes in the same column share the same x; nodes in the same row share the same y 4. **Consistent sizing**: same-type nodes use identical width and height 5. **Page margins**: keep at least 60px from the canvas edge (pageWidth/pageHeight) 6. **Use `whiteSpace=wrap;html=1;`** on all nodes so long text wraps instead of overflowing 7. **Balanced gutters**: outer padding around a row/column should visually match the internal gaps; avoid one oversized blank side 8. **Symmetry first**: centered groups should have roughly equal left/right and top/bottom whitespace 9. **Dense fill**: containers, sub-groups, and sidebars should fit content plus consistent padding; do not leave large dead zones just because the canvas is large
### Layout by Diagram Type
| Type | Direction | Primary axis | Spacing (between edges) | Alignment | |------|-----------|-------------|------------------------|-----------| | Flowchart | Top-to-bottom | Y increases | 100px vertical | Center x | | Architecture | Layered block (preferred) | Y increases | 20px between layers | Left label + container rows | | UML Sequence | Left-to-right participants | X increases | 200px horizontal | Top-aligned | | UML Class | Grid / top-to-bottom | Y increases | 100px vertical, 80px horizontal | Left-aligned columns | | ER Diagram | Spread / grid | Both axes | 120px both | Grid-aligned | | Mindmap | Center-outward radial | Both axes | 150px from center per level | Radial symmetric | | Network | Hierarchical layers | Y increases | 100px vertical, 120px horizontal | Center each layer |
### Anti-Overlap Checklist
Before finalizing coordinates, verify: - No two nodes' bounding boxes overlap (check x, y, width, height) - Edge labels don't overlap with nodes - Decision branches (Yes/No) go in clearly different directions - For flowcharts with branches: main path goes down, alternate path goes right (or left) - For wide diagrams: increase `pageWidth` in mxGraphModel; for tall ones increase `pageHeight`
### Calculating Coordinates
Use this formula to center N items horizontally in a row:
``` total_width = N * node_width + (N - 1) * gap start_x = round((pageWidth - total_width) / 2) item[i].x = start_x + i * (node_width + gap) ```
Round the result to a whole number. Do not then "fix" it to a multiple of 10 by nudging individual items — that breaks the equal-gap invariant, which matters far more than the grid.
For vertical centering in a column, apply the same logic to Y axis.
For rows inside a fixed-width container, also check fill density:
``` inner_width = container_width - 2 * side_pad gap = (inner_width - N * item_width) / (N - 1) ```
If `gap` is much larger than the item width, or side padding is much larger than `gap`, adjust one of: - increase item width moderately - increase item count per row only if still readable - reduce container width - split into multiple balanced rows
For incomplete last rows, center the remaining items instead of left-aligning them and leaving a large blank tail.
### Standard Sizes
| Element | Width | Height | |---------|-------|--------| | Standard node | 160 | 60 | | Decision (rhombus) | 160 | 80 | | Database (cylinder) | 140 | 80 | | Actor (UML) | 40 | 60 | | Start/End (rounded) | 160 | 60 | | Mindmap center | 180 | 80 | | Mindmap branch | 140 | 50 | | Mindmap leaf | 120 | 40 | | ER table header | 200 | varies | | Group/container | auto | auto |
Pick one size per role and keep it identical for every node of that role in the diagram. A start node that is 20px wider than the process nodes below it reads as a mistake, not as emphasis — use color and `fontStyle=1` to emphasize instead.
## Step 4: Save and Validate (DO NOT SKIP)
Write the `.drawio` file to the user's working directory, then run the validator on it.
### 4a. Run the validator
```bash python scripts/validate_drawio.py diagram.drawio ```
Use `python3` if `python` is missing. It exits non-zero when it finds errors.
**Fix every ERROR and re-run until it exits clean.** Do not export or deliver a file that still reports errors — each one is a diagram that renders wrong or not at all. The validator catches what re-reading your own XML reliably misses:
| Reported as | Checks | |-------------|--------| | ERROR | malformed XML, duplicate IDs, missing root cells, dangling `parent`/`source`/`target`, missing `as="geometry"`, literal `\n` in a label, partially overlapping nodes | | WARN | missing `whiteSpace=wrap` / `html=1`, `fontSize` under 12, fractional coordinates, content past `pageWidth`/`pageHeight` |
Treat WARNs as defects too unless you have a specific reason — a "content extends past pageWidth" warning means part of the diagram falls outside the page.
Note what the validator **cannot** see: it reports partial overlaps only, since full containment is how the Layered Block Style expresses nesting. It says nothing about whether the layout is balanced or the diagram is readable. That is 4b.
### 4b. Review what the validator cannot check
Re-read your XML and confirm:
- [ ] Cells are in back-to-front order: background → containers → sub-groups → leaves → edges - [ ] Sibling items in the same row/column use equal sizes and equal gaps unless there is a clear reason not to - [ ] Left/right and top/bottom padding inside each container are visually balanced; no o
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bruce-drawio, ready for a manual X post.
A practical pick for a web workflow: bruce-drawio: **Use this skill** when the user wants to create any diagram: flowchart, architecture, UML (sequence/class), ER, mindmap, n... 104 stars https://www.openagentskill.com/skills/bruc3van-bruce-drawio?ref=x
Listing + install path for bruce-drawio: https://www.openagentskill.com/skills/bruc3van-bruce-drawio?ref=x Install: npx skills add bruc3van/bruce-drawio --skill bruce-drawio
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to bruc3van but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/bruc3van-bruce-drawio?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/bruc3van-bruce-drawio?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/bruc3van-bruce-drawio/audit)
[](https://www.openagentskill.com/skills/bruc3van-bruce-drawio?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)bruc3van
@bruc3van
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K Starsgrill-me
A relentless interview to sharpen a plan or design.
256.3K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness