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 $0.00026 $0.00468
Sonnet 5 $0.00010 $0.00187
Haiku 4.5 $0.00005 $0.00094

Measured 12d ago against content hash 9b9276bb60e2, 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-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 12d 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. 12d 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 (888 stars, last pushed 5d ago), licensed MIT. It adds 52 tokens to every session and 937 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