diagram-workflow

diagram-workflow is a skill for Claude Code, Codex from rcarmo/piclaw-addons. It costs 20 tokens per session (1,120 once invoked), scanned A, original, MIT.

A workflow for creating architecture diagrams from JSON graph files, rendering them as SVG, adding them to project documentation, and rebuilding the site.

In plain words
What is it for?
Use it to define nodes and connections for system diagrams, render them, insert them into project markdown, and create optional PNG previews.
Why use it?
It keeps diagram structure in a readable data file and provides a repeatable way to render and publish the result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bun scripts/diagram-render.ts _diagrams/my-project.json _diagrams/my-project.svg.

Good fit Use it to define nodes and connections for system diagrams, render them, insert them into project markdown, and create optional PNG previews.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rcarmo/piclaw-addons
agentmods
npx agentmods add skills/rcarmo/piclaw-addons/diagram-workflow

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagram-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/rcarmo/piclaw-addons/diagram-workflow/github.svg)](https://agentmods.dev/skills/rcarmo/piclaw-addons/diagram-workflow)
Your own site
<a href="https://agentmods.dev/skills/rcarmo/piclaw-addons/diagram-workflow"><img src="https://agentmods.dev/badge/skills/rcarmo/piclaw-addons/diagram-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagram-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/rcarmo/piclaw-addons/diagram-workflow"><img src="https://agentmods.dev/badge/skills/rcarmo/piclaw-addons/diagram-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01120
Opus 5 $0.00010 $0.00560
Sonnet 5 $0.00004 $0.00224
Haiku 4.5 $0.00002 $0.00112

Measured 10d ago against content hash c2b728839614, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

diagram-workflow 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 10d 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.

addons/diagram-tools/skills/diagram-workflow/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagram Workflow

End-to-end architecture diagram pipeline: define a JSON graph → render SVG → inject into project markdown → rebuild site.

When to use

When creating or updating architecture diagrams for portfolio project pages.

Prerequisites

  • bun runtime
  • rsvg-convert (for PNG previews, optional)
  • The scripts in this addon's scripts/ directory

Graph JSON spec

Each diagram is a JSON file in _diagrams/{project-id}.json:

{
  "title": "Caption below the diagram",
  "nodes": [
    {
      "id": "unique-id",
      "label": "Box label",
      "sub": "Subtitle text",
      "tag": "web",
      "column": 0,
      "row": 0,
      "children": [
        { "id": "child", "label": "Child box", "sub": "detail", "tag": "scripting" }
      ]
    }
  ],
  "edges": [
    { "from": "source-id", "to": "target-id", "label": "optional annotation", "accent": true }
  ]
}

Semantic tags

Tag Use for
web frontends, browsers, UIs
backend servers, APIs, runtimes
state databases, stores, config
artifacts builds, files, models
processing engines, pipelines, transforms
scripting scripting, plugins, extensions
infra containers, VMs, infrastructure
external external services, APIs, providers
input user input, sources, triggers
output results, exports, destinations
monitor monitoring, logging, observability

Tags control box colours consistently across all diagrams. Use "style": "box-accent" to override.

Layout rules

  • column (0-based, left-to-right) and row (0-based, top-to-bottom) control placement
  • Nodes with children get a dashed group container; children render as smaller boxes below the parent
  • Column width auto-expands when children are wider than BOX_W
  • Arrows are orthogonal with rounded corners (r=14), routed to the inner parent rect

Edge guidelines

  • Be sparing with labels — only annotate when the relationship isn't obvious
  • Use "accent": true for the primary data flow path
  • Use "color": "#hex" for custom arrow colours

Read the full file on GitHub · 160 lines

Changes

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.

  1. 10d ago First seen · 160 lines · 20 tokens per session scan A c2b728839614

Subscribe to this mod's changes

diagram-workflow is a skill published in the GitHub repository rcarmo/piclaw-addons (23 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,120 once invoked, about $0.0001 per session on Opus 5. 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.

Related

Other skills, from other repositories

design-taste-frontend

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

Leonxlnx/taste-skill · 61 tokens

html-artifacts

Author the HTML for a plan artifact, dashboard iframe, or Slack attachment — structure, design plan, available runtime, theming, and craft. Read this before writing HTML for saveplan, outputiframe, or slackattachhtml.

langchain-ai/open-swe · 51 tokens

image-to-code

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards…

Leonxlnx/taste-skill · 116 tokens

brandkit

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional…

Leonxlnx/taste-skill · 89 tokens

minimalist-ui

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

Leonxlnx/taste-skill · 34 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens