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.
git clone --depth 1 https://github.com/Dong90/oh-my-taiyiforgenpx agentmods add skills/dong90/oh-my-taiyiforge/taiyi-diagram-renderWrote 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.
[](https://agentmods.dev/skills/dong90/oh-my-taiyiforge/taiyi-diagram-render)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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 已生成)。
执行步骤
- 读真源:确认 Observed/Inferred 不在此步修改
- 提取 每个
```mermaid代码块 - 导出 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/
- 高质量 / 视觉审查(已装 diagramming-architecture 时):
- 禁止
analyze_codebase.py mmdc加-w 3200 -H 2400 -s 2与白底- 按 Visual Review checklist 迭代 ≤3 轮(重叠、箭头乱、过挤)
- 禁止
- 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
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.
- 13d ago First seen · 95 lines · 50 tokens per session scan A eb5332c6f4a3
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.
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.
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.
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…
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…
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…
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…