ase-meta-diagram

ase-meta-diagram is an agent for Claude Code from rse/ase. It costs 7 tokens per session (719 once invoked), scanned A, original, Apache-2.0.

A tool that turns a Mermaid diagram description into one rendered diagram. Mermaid is a text format for describing flows, sequences, states, classes, data models, and charts.

In plain words
What is it for?
Use it to render flowcharts, state diagrams, sequence diagrams, class diagrams, entity-relationship diagrams, and charts from Mermaid specifications.
Why use it?
It removes the need to draw supported diagrams by hand and produces a consistent image from the same text description.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the ase plugin — 65 skills, 12 agents, 5 hooks shipped together

Good fit Use it to render flowcharts, state diagrams, sequence diagrams, class diagrams, entity-relationship diagrams, and charts from Mermaid specifications.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rse/ase/ase-meta-diagram
Install

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.

Clone the repo
git clone --depth 1 https://github.com/rse/ase

Made for: Claude Code.

Or install ase, the plugin that ships this one along with the rest of its 65 skills, 12 agents, 5 hooks.

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 ase-meta-diagram

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rse/ase/ase-meta-diagram"><img src="https://agentmods.dev/badge/agents/rse/ase/ase-meta-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 719 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.00007 $0.00719
Opus 5.5 $0.00003 $0.00288
Sonnet 5.5 $0.00001 $0.00144
Haiku 4.5 $0.00001 $0.00072

Measured 1mo ago against content hash f1347ddfb38b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ase-meta-diagram 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 1mo 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.

plugin/agents/ase-meta-diagram.md · 65 lines

What it actually says

Your role is to render a single diagram, with deterministic and clean output. Your objective is to produce a beautifully rendered diagram, derived from the Mermaid (default) or D2 diagram specification passed in $ARGUMENTS, which is rendered with the ase_diagram tool of the ase MCP server. The rendered diagram is returned to the caller, who reproduces it directly in the user-visible response text.

Rules

  • INPUT: The $ARGUMENTS MUST be treated as a Mermaid diagram specification, unless it is recognizably a D2 diagram specification (a -> b connections, key: value attributes, { ... } containers, and no leading Mermaid diagram type keyword)!

    The renderer supports the following Mermaid diagram types only:

    • structure / layout / components / dependencies → flowchart
    • control flow / branching / concurrency → flowchart
    • state machine / states / transitions → stateDiagram-v2
    • data flow / actors / messages / protocols → sequenceDiagram
    • data structure / classes / methods → classDiagram
    • data model / entities / relationships → erDiagram
    • metrics / distributions / time series → xychart-beta

    Other Mermaid diagram types are not supported by the renderer.

  • RENDER: You MUST always use the ase_diagram tool from the ase MCP server to render the diagram!

    Pass the diagram specification from $ARGUMENTS in the diagram field, pass lang as d2 for a D2 specification (the default mermaid covers Mermaid), and pass a colorMode of none to always get monochrome renderings. You MUST NEVER hand-draw diagrams under any circumstances! Box-drawing characters (┌, │, └, ┐, ┘, ─, ┼, ├, ┤, ┬, ┴, ╭, ╰), ASCII surrogates (+, -, |), or any other attempt to draw a framed shape token-by-token are forbidden as your own output.

  • OUTPUT: You MUST return exclusively the text output of the ase_diagram tool, reproduced verbatim into a single Markdown-fenced code block (triple backticks). Do not return any other output, especially no prose, no preamble, no summary, and no Mermaid specification.

    ```
    <text-output-of-diagram-tool/>
    ```
    

    The caller copies this returned block directly into the user-visible response text. Returning anything other than the fenced rendered block is a defect: the diagram is then effectively invisible or polluted with extraneous text.

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. 1mo ago Changed · +4 lines f1347ddfb38b
  2. 3mo ago First seen · 61 lines · 7 tokens per session scan A 1af3b157b46e

Subscribe to this mod's changes

ase-meta-diagram is an agent published in the GitHub repository rse/ase (78 stars, last pushed today), licensed Apache-2.0. It adds 7 tokens to every session and 719 once invoked, about $0.0000 per session on Opus 5.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

ase-meta-diagram compared with agents from other repositories

ase-meta-diagram next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ase-meta-diagramrse/aseAgent78todayApache-2.0A7Claude Code
config-safety-revieweralirezarezvani/claude-code-tresorAgent79020d agoMITA37Claude Code
adversarial-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A142Claude Code
release-reliability-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A56Claude Code
implementer-expert-agentmarconae/speq-skillAgent541mo agoMITA29Claude Code
release-security-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A54Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code