taiyi-diagram-pipeline

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

A pipeline that creates and updates architecture diagrams in three stages: a C4 model from the code, an engineering architecture diagram, and an exported PNG image. C4 is a way to describe software architecture at several levels of detail.

In plain words
What is it for?
Use it for repository documentation, change-specific design work, or onboarding. It can create C4 files, synchronize architecture diagrams, export PNGs, scan a selected directory, skip rendering, or request visual review.
Why use it?
It keeps the different diagram formats based on the same code scan instead of producing separate, conflicting versions. It also supports an approval check before later stages continue.

Skill for Claude CodeCodex

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

Good fit Use it for repository documentation, change-specific design work, or onboarding. It can create C4 files, synchronize architecture diagrams, export PNGs, scan a selected directory, skip rendering, or request visual review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dong90/oh-my-taiyiforge/taiyi-diagram-pipeline
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.

Any agent
npx skills add Dong90/oh-my-taiyiforge --skill taiyi-diagram-pipeline
Clone the repo
git clone --depth 1 https://github.com/Dong90/oh-my-taiyiforge

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-pipeline

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dong90/oh-my-taiyiforge/taiyi-diagram-pipeline"><img src="https://agentmods.dev/badge/skills/dong90/oh-my-taiyiforge/taiyi-diagram-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 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 pass 7 Sept 2026
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.00052 $0.00937
Opus 5.5 $0.00021 $0.00375
Sonnet 5.5 $0.00010 $0.00187
Haiku 4.5 $0.00005 $0.00094

Measured 1mo ago against content hash 9b9276bb60e2, 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-pipeline 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-pipeline/SKILL.md · 81 lines

How it starts

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

taiyi-diagram-pipeline

目的

一条命令串联架构图流水线,避免三个 Skill 各扫一遍代码产出三套不一致的图。

斜杠命令

步骤 命令 Skill
1 C4 真源 /taiyi:diagram-c4 [slug] [--repo] [--scope path] taiyi-diagram-c4
2 工程图同步 /taiyi:diagram-arch [slug] [topic] taiyi-diagram-arch
3 导出图 /taiyi:diagram-render [slug] [--repo] [--review] taiyi-diagram-render
总编排 /taiyi:diagram-pipeline [slug] [--repo] [--scope path] [--skip-render] 本 Skill

何时使用

  • 维护仓库级 docs/c4/ + docs/diagrams/architecture.md
  • design 阶段一次性产出变更内 diagrams/c4/ + diagrams/architecture.md + PNG
  • onboarding:从代码到可评审架构图

不替代 /taiyi:diagram-flow(九阶段/门禁流程图)。

参数

参数 含义
slug 活动变更;省略且仅一个 active 时可推断
--repo 仓库级输出到 docs/c4/、docs/diagrams/(无 mark-aux)
--scope path C4 扫描子目录(传给 diagram-c4)
--skip-render 只跑 ①②,不导出 PNG
--review 第 3 步优先 diagramming-architecture 视觉审查(较慢)

执行顺序(Agent 必须按序)

Step 1 — /taiyi:diagram-c4

加载 taiyi-diagram-c4(或 c4-codebase-architecture)。产出 diagrams/c4/README.md + containers.md(或 docs/c4/)。

门禁:containers.md 含可渲染 mermaid 且 Observed/Inferred 已分节 → 否则停止,不进入 Step 2。

Step 2 — /taiyi:diagram-arch

加载 taiyi-diagram-arch。以 Step 1 的 containers.md 为真源:

  • 同步到 diagrams/architecture.md(或 docs/diagrams/architecture.md)
  • 在 architecture 顶部回链:> C4 真源:diagrams/c4/containers.md
  • 禁止重新划分模块;可补充序列图、Notes
  • mark-aux taiyi-diagram-arch(变更内)

Step 3 — /taiyi:diagram-render(除非 --skip-render)

加载 taiyi-diagram-render。以 Step 1 c4 mermaid 导出 c4/png/*.svg;可选将 Step 2 architecture.md 导出到 diagrams/png/。

  • mark-aux taiyi-diagram-render(变更内)

完成摘要

向用户报告:

Pipeline 完成
  C4:     <path/to/containers.md>
  Arch:   <path/to/architecture.md>
  PNG:    <path/to/png/>  (或 skipped)
  mark-aux: diagram-arch [, diagram-c4, diagram-render]

读优先

  • docs/diagrams/pipeline.md — 路径约定与示例

与 design 阶段

taiyi-design 推荐:大改/陌生代码用 /taiyi:diagram-pipeline;轻量变更仅 /taiyi:diagram-arch。

Read the full file on GitHub · 81 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. 1mo ago First seen · 81 lines · 52 tokens per session scan A 9b9276bb60e2

Subscribe to this mod's changes

taiyi-diagram-pipeline is a skill published in the GitHub repository Dong90/oh-my-taiyiforge (859 stars, last pushed 16d ago), licensed MIT. It adds 52 tokens to every session and 937 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