concept-diagram-svg

concept-diagram-svg is an agent for Claude Code from cogni-work/insight-wave. It costs 85 tokens per session (2,584 once invoked), scanned A, original, Apache-2.0.

A diagram-making agent that writes one clean inline SVG directly from structured data. SVG is a resolution-independent image format that works well inside web pages.

In plain words
What is it for?
Use it for process flows, relationship maps, TIPS flows, and concept sketches with layered layouts, phases, convergence, or 2×2 matrices.
Why use it?
It removes the need for a separate diagram editor or Excalidraw setup when a page needs a polished, embeddable diagram.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cogni-workspace plugin — 20 agents shipped together

Good fit Use it for process flows, relationship maps, TIPS flows, and concept sketches with layered layouts, phases, convergence, or 2×2 matrices.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add cogni-work/insight-wave
Claude Code
/plugin install cogni-workspace

Made for: Claude Code.

Or install cogni-workspace, the plugin that ships this one along with the rest of its 20 agents.

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 concept-diagram-svg

README.md
[![agentmods](https://agentmods.dev/badge/agents/cogni-work/insight-wave/concept-diagram-svg/github.svg)](https://agentmods.dev/agents/cogni-work/insight-wave/concept-diagram-svg)
Your own site
<a href="https://agentmods.dev/agents/cogni-work/insight-wave/concept-diagram-svg"><img src="https://agentmods.dev/badge/agents/cogni-work/insight-wave/concept-diagram-svg/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 concept-diagram-svg

Your own site · 80×15
<a href="https://agentmods.dev/agents/cogni-work/insight-wave/concept-diagram-svg"><img src="https://agentmods.dev/badge/agents/cogni-work/insight-wave/concept-diagram-svg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,584 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.
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.00085 $0.02584
Opus 5 $0.00043 $0.01292
Sonnet 5 $0.00017 $0.00517
Haiku 4.5 $0.00009 $0.00258

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

Security

Grade A, and why

concept-diagram-svg 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 6d 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.

cogni-workspace/agents/concept-diagram-svg.md · 207 lines

How it starts

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

Concept Diagram SVG Agent

Generate ONE concept diagram as an inline SVG string and return it. You craft the SVG directly using clean geometric primitives — no Excalidraw MCP, no hand-drawn wobble, no external tools.

RESPONSE FORMAT (MANDATORY)

Your ENTIRE response must be a SINGLE LINE of JSON — NO text before or after, NO markdown.

Success:

{"ok":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" ...>...</svg>","elements_created":18,"diagram_type":"tips-flow","dimensions":{"width":720,"height":350},"review_passes":1,"review_score":4.5}

Error:

{"ok":false,"e":"error description","diagram_type":"tips-flow"}

Input (provided by caller in prompt)

Field Description
DIAGRAM_TYPE One of: tips-flow, relationship-map, process-flow, concept-sketch
CONCEPT_SUBTYPE For concept-sketch only: layered-stack, convergence, phase-progression, 2x2-matrix
DATA Structured payload — contents depend on diagram type (see below)
DESIGN_VARIABLES Theme colors and fonts: colors.{accent, primary, surface, text, text_light, text_muted, border, secondary}, fonts.{headers, body}
EXPORT Export settings (defaults: width 720, background transparent, padding 20)
LANGUAGE en or de — controls column/axis headers

Data payloads by diagram type

tips-flow:

{"trend": "name", "implications": ["name1", "name2"], "possibilities": ["name1"], "solutions": ["name1", "name2"], "foundation": "optional label"}

relationship-map:

{"hub_label": "Central Theme", "nodes": [{"label": "Theme 1", "connection": "reason"}]}

process-flow:

{"steps": [{"label": "Step 1", "sublabel": "optional"}, ...], "layout": "horizontal|vertical"}

concept-sketch (layered-stack):

{"layers": [{"label": "Foundation", "level": "bottom"}, {"label": "Value", "level": "top"}]}

concept-sketch (convergence):

{"forces": [{"label": "Force A"}, {"label": "Force B"}], "result": {"label": "Outcome"}}

Read the full file on GitHub · 207 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. 6d ago First seen · 207 lines · 85 tokens per session scan A f3d4917436fd

Subscribe to this mod's changes

concept-diagram-svg is an agent published in the GitHub repository cogni-work/insight-wave (13 stars, last pushed today), licensed Apache-2.0. It adds 85 tokens to every session and 2,584 once invoked, about $0.0004 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-09-04.

Related

Other agents, from other repositories

a11y-auditor

Accessibility audit of UI — keyboard navigation, focus-visible, APCA contrast, ARIA roles and labels, touch targets, and reduced-motion. Use to audit a diff, file, or surface for accessibility issues.

educlopez/ui-craft · 49 tokens

ui-developer

Build and refactor UI components in the project's frontend stack — typed props, design-token consistency, accessibility as a gate, and state handling for loading, error, and empty.

atretyak1985/swarmery · 39 tokens

wireframe-reviewer

Reviews wireframe HTML files and UI designs using dual-persona evaluation (efficiency + delight). Scores out of 100 with actionable feedback. Use when: reviewing a wireframe, evaluating a UI design, scoring a prototype, auditing a generated HTML page for design quality, or comparing design options. Uses Read, Glob…

kumaran-is/claude-code-onboarding · 77 tokens

ui-developer

Use this agent when you need to implement or fix UI components based on design references or designer feedback. This agent is a senior UI/UX developer specializing in pixel-perfect implementation with React, TypeScript, and Tailwind CSS. Trigger this agent in these scenarios:\n\n \nContext: Designer has reviewed…

MadAppGang/claude-code · 338 tokens

gem-designer

UI/UX design specialist — layouts, themes, color schemes, design systems, accessibility.

KIMISKI33/awesome-copilot · 22 tokens

amadeus-design-agent

UX/UI designer responsible for wireframing, interaction design, accessibility, and design system compliance. Leads Rough Mockups and Refined Mockups stages. Supports User Stories and Application Design.

amadeus-dlc/amadeus · 43 tokens