taiyi-diagram-render

taiyi-diagram-render is a skill for Claude Code, Codex from Dong90/oh-my-taiyiforge. It costs 50 tokens per session (1,031 once invoked), scanned A, original, MIT.

A tool for rendering existing C4 or architecture Mermaid diagrams as SVG or PNG images. C4 is a way to show software systems at different levels, while Mermaid is a text format for diagrams.

In plain words
What is it for?
Previewing architecture diagrams, exporting diagrams for documentation or review, and rendering diagrams during an architecture pipeline.
Why use it?
It makes architecture documents easier to review visually without changing the system boundaries described in them. It also performs a layout check on the exported images.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/render-mermaid.mjs docs/c4/context.md --format svg --out docs/c4/png/.

Good fit Previewing architecture diagrams, exporting diagrams for documentation or review, and rendering diagrams during an architecture pipeline.

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/Dong90/oh-my-taiyiforge
agentmods
npx agentmods add skills/dong90/oh-my-taiyiforge/taiyi-diagram-render

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 taiyi-diagram-render

README.md
[![agentmods](https://agentmods.dev/badge/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render/github.svg)](https://agentmods.dev/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render)
Your own site
<a href="https://agentmods.dev/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render"><img src="https://agentmods.dev/badge/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render/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 taiyi-diagram-render

Your own site · 80×15
<a href="https://agentmods.dev/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render"><img src="https://agentmods.dev/badge/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,031 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 26
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00050 $0.01031
Opus 5 $0.00025 $0.00515
Sonnet 5 $0.00010 $0.00206
Haiku 4.5 $0.00005 $0.00103

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

Security

Grade A, and why

taiyi-diagram-render 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 13d 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.

skills/taiyi-diagram-render/SKILL.md · 95 lines

What it actually says

taiyi-diagram-render

目的

上游 C4 或 architecture.md 的 Mermaid 为真源,导出可读 SVG(默认)或 PNG,并做排版自检——禁止重新扫描代码或改组件边界

何时使用

时机 说明
架构流水线 第 3 步 /taiyi:diagram-pipeline 自动调用
C4/architecture 已写好,要预览图 单独 /taiyi:diagram-render
评审/对外文档需要图片 design 或 docs 维护

外部 Skill(可选增强)

若已安装 diagramming-architecture(architecture-diagram-skill),进入 仅 Mermaid 模式 + 渲染约束(见下方);未安装则用本仓库 render-mermaid.mjs + Agent 目视检查。

git clone --depth 1 https://github.com/robertanton81/architecture-diagram-skill.git /tmp/arch-diag
mkdir -p ~/.cursor/skills/diagramming-architecture
cp -r /tmp/arch-diag/skill/* ~/.cursor/skills/diagramming-architecture/

输入(真源,分目录)

导出目录
c4/context.md · c4/containers.md c4/png/*.svg
diagrams/architecture.md diagrams/png/*.svg写入 c4/png/

变更内路径前缀:.taiyi/changes/<slug>/diagrams/;仓库级:docs/

输出

范围 路径
变更内 C4 diagrams/c4/png/*.svg
变更内工程图 diagrams/png/*.svg(可选)
仓库级 C4 docs/c4/png/*.svg
仓库级工程图 docs/diagrams/png/*.svg(可选)

导出说明见 docs/diagrams/pipeline.md「导出图」节(不再维护 RENDER.md)。

mark-auxscripts/taiyi-forge.sh mark-aux <slug> taiyi-diagram-render(变更内且 diagrams/c4/png/context.svg 已生成)。

执行步骤

  1. 读真源:确认 Observed/Inferred 不在此步修改
  2. 提取 每个 ```mermaid 代码块
  3. 导出 C4(默认 SVG):
node scripts/render-mermaid.mjs docs/c4/context.md --format svg --out docs/c4/png/
node scripts/render-mermaid.mjs docs/c4/containers.md --format svg --out docs/c4/png/

4. **可选:工程补充图**:

```bash
node scripts/render-mermaid.mjs docs/diagrams/architecture.md \
  --format svg --out docs/diagrams/png/
  1. 高质量 / 视觉审查(已装 diagramming-architecture 时):
    • 禁止 analyze_codebase.py
    • mmdc-w 3200 -H 2400 -s 2 与白底
    • 按 Visual Review checklist 迭代 ≤3 轮(重叠、箭头乱、过挤)
  2. mark-aux(变更内)

约束 prompt(接 diagramming-architecture 时必用)

以 <source.md> 为架构真源;禁止 analyze_codebase.py 或改组件边界。
任务:提取 mermaid → mmdc SVG → Visual Review ≤3 轮

质量自检

  • SVG 与真源 mermaid 一一对应
  • 未新增/删除架构节点(仅排版)
  • C4 导出在 c4/png/,工程图在 diagrams/png/

流水线位置

/taiyi:diagram-c4  →  /taiyi:diagram-arch  →  /taiyi:diagram-render

总命令:/taiyi:diagram-pipeline

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. 13d ago First seen · 95 lines · 50 tokens per session scan A eb5332c6f4a3

Subscribe to this mod's changes

taiyi-diagram-render is a skill published in the GitHub repository Dong90/oh-my-taiyiforge (888 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 1,031 once invoked, about $0.0003 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

create-pi-theme

Como criar um tema visual para o TUI do pi. Use quando o usuário quiser personalizar cores e aparência do terminal.

aretw0/agents-lab · 30 tokens

visual-design

A design skill for turning content into complete, self-contained HTML pages and visual materials such as websites, banners, posters, reports, resumes, and portfolios. It follows a defined visual design system and does not use outside images or code libraries.

Pinvou/pinvou-agent · 152 tokens

review

Use when the user wants code assessed rather than changed — "review PR 88", "is this branch ready to merge?", "look over my changes", "any problems with this diff?", "give me a code review", "what do you think of this PR?", "sanity-check this branch", "ship it?". Applies to a pull request or the current branch when…

The01Geek/prflow · 123 tokens

fix

PRFlow's code-review reception skill (formerly receiving-code-review), used by the review-and-fix loop and available directly. Use when addressing review feedback already posted on a pull request — verifying findings before applying them — as distinct from /prflow:review-and-fix, which runs the review itself and then…

The01Geek/prflow · 82 tokens

docs-bootstrap-internal

Use when a codebase has no structured developer documentation yet and needs it built from scratch — "we have no docs at all", "set up internal docs for this repo", "the docs directory is a mess, start over", "create developer documentation for this codebase" — including an empty or disorganized docs directory or a…

The01Geek/prflow · 94 tokens

docs-sync-internal

Use when code changes on the current branch need matching internal or developer documentation — "update our internal docs", "the architecture docs are stale after this change", "document what I just changed", "do the dev docs still match the code?" — or as a pre-push check that developer docs track the code. Narrower…

The01Geek/prflow · 105 tokens