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.5 $0.00020 $0.00412
Sonnet 5.5 $0.00010 $0.00206
Haiku 4.5 $0.00005 $0.00103

Measured 1mo ago against content hash eb5332c6f4a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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-aux:scripts/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. 1mo 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 (859 stars, last pushed 16d ago), licensed MIT. It adds 50 tokens to every session and 1,031 once invoked, about $0.0002 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

Other skills, from other repositories

pn-render-verify

Re-read a rendered or visual artifact and produce a structured verdict against the spec. Use before pn-skeptic-challenge in design workflows when the deliverable is a render, image, screenshot, or HTML page.

perniemann/pnCore · 48 tokens

pn-animation

Motion roles (Reveal/Orient/Confirm/Delight) and budgets. Use when designing or auditing a motion system — load pn-gsap for GSAP API.

perniemann/pnCore · 36 tokens

pn-design-variants

Generate 3+ radically different designs or API interfaces in parallel using sub-agents, then compare and synthesize. Based on "Design It Twice" from A Philosophy of Software Design. Use before committing to a single design approach — for UI layouts, component APIs, module interfaces, or system architecture choices.

perniemann/pnCore · 66 tokens

pn-color-system

Color system design and implementation: OKLCH color space, tinted neutrals, palette structure, contrast, dark mode architecture, and token hierarchy. Use when establishing color tokens, theming, dark mode, or reviewing color choices.

perniemann/pnCore · 50 tokens

pn-design-system

Establishes or maintains a design system: tokens, CSS variables, spacing/type scales, theming, and consistency auditing. Use when defining tokens or auditing components. The pn-design-system rule enforces token usage when editing CSS/SCSS files.

perniemann/pnCore · 54 tokens

pn-wireframe

Produce a low-fidelity structural layout (information hierarchy, regions, components) from discovery spec before typography and tokens. Use when aligning on structure before high-fidelity design or build.

perniemann/pnCore · 40 tokens