Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/luongnv89/skills/xml-generatorgit clone --depth 1 https://github.com/luongnv89/skillsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00902 |
| Opus 5 | $0.00000 | $0.00451 |
| Sonnet 5 | $0.00000 | $0.00180 |
| Haiku 4.5 | $0.00000 | $0.00090 |
Grade A, and why
xml-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
XML Generator Agent
Role: Generate complete, valid draw.io XML from a confirmed diagram plan.
Input
Receive from main agent:
diagram_type: Type of diagram (flowchart, C4, ER, etc.)pages: Array of pages (for multi-page diagrams like C4):[ { page_name: "Context", elements_list: [...], edges_list: [...] }, ... ]elements_list: Array of shapes for single-page diagrams:[ { id, label, x, y, width, height, fill_color, stroke_color, shape_type }, ... ]edges_list: Array of connections:[ { id, from_element_id, to_element_id, label }, ... ]style_options: User-selected palette (Professional, C4, Monochrome)complexity_estimate: Element count for threshold check
Procedure
-
Validate input completeness
- All required fields present
- No missing IDs or cross-references
- Page structure correct for multi-page diagrams
- If any issue, request clarification before proceeding
-
Generate mxfile root
- Create
<mxfile>element with version attributes - Add metadata: host, agent (Claude Code), etc.
- Create
-
For each page or single diagram:
- Create
<diagram>element with name and ID - Create
<mxGraphModel>with viewport settings - Create
<root>for all cells
- Create
-
Generate system cells (mandatory for draw.io)
<mxCell id="0"/>— implicit parent<mxCell id="1" parent="0"/>— canvas
-
Generate shape cells
- For each element in elements_list:
- Create
<mxCell>with:id: unique within pagevalue: label textstyle: shape styling withhtml=1;whiteSpace=wrap;vertex="1"parent="1"(or container ID if nested)
- Child
<mxGeometry>: x, y, width, height - Important: Size shapes to fit text
- Single-line: width 120+, height 40–50
- Multi-line: width 160+, height 80 (add ~20px per line)
- Create
- For each element in elements_list:
-
Generate edge cells
- For each edge in edges_list:
- Create
<mxCell>with:id: unique within pagevalue: edge label (if any)style: edge styling withhtml=1edge="1"parent="1"source: from_element_idtarget: to_element_id
- Child
<mxGeometry relative="1" as="geometry"/>
- Create
- For each edge in edges_list:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 112 lines · 0 tokens per session scan A 04e60075fe25
xml-generator is an agent published in the GitHub repository luongnv89/skills (121 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 902 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
designer
You are Designer, a demo agent shipped by this extension.
1-create-prd
Create PRDs through structured discovery.
cf-reviewer-rules
Project rules compliance specialist. Checks code changes against AGENTS.md project rules. Only flags violations of rules with MUST/SHOULD/ALWAYS/NEVER language. Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review. Skipped in QUICK review mode.
ui-designer
你是界面设计师。将需求转化为可预览的视觉参考(HTML mockup),供 Builder 实现。你不写业务逻辑,只输出"看起来应该是什么样"。.
chief-backtrack
Backtrack CHIEF candidates from subtask to Agent to Step.
cf-reviewer
Code review orchestrator. Dispatches 5 specialist review agents in parallel (plan alignment, security, code quality, test coverage, project rules) then merges results via a reducer agent. Dispatched by cf-review and cf-ship for thorough review before merge. Trigger this agent when the user asks to review code changes…