Skip to content
Agentmart
Submit a tool

taiyi-diagram-c4

TaiyiForge 辅助 — 从代码反推 C4 架构文档(Observed/Inferred 分层 · Mermaid 真源)。OpenCode / Claude / Codex / Cursor 通用。

Skill by Dong90

IndexedMIT★ 859
Write a review

Chalk Labs

Need help deploying taiyi-diagram-c4?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/dong90-taiyi-diagram-c4

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

TaiyiForge 辅助 — 从代码反推 C4 架构文档(Observed/Inferred 分层 · Mermaid 真源)。OpenCode / Claude / Codex / Cursor 通用。

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/taiyi-diagram-c4

What's inside

Skill name
taiyi-diagram-c4
Description
TaiyiForge 辅助 — 从代码反推 C4 架构文档(Observed/Inferred 分层 · Mermaid 真源)。OpenCode / Claude / Codex / Cursor 通用。
License
MIT
Instructions
65 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# taiyi-diagram-c4

## 目的

扫描仓库代码,产出 **C4 架构真源文档**(Scope · Observed · Inferred · Mermaid),供后续 `/taiyi:diagram-arch` 与 `/taiyi:diagram-render` 引用——**不重复猜模块边界**。

## 何时使用

| 时机 | 说明 |
|------|------|
| 架构流水线 **第 1 步** | `/taiyi:diagram-pipeline` 自动调用 |
| 陌生代码库 / 大重构 | 单独 `/taiyi:diagram-c4` |
| design 前需证据级架构 | 先于 `taiyi-diagram-arch` |

可跳过:纯文案改动、模块边界已在 DESIGN 冻结且无代码漂移。

## 外部 Skill(可选增强)

若已安装开源 **`c4-codebase-architecture`**,加载它并遵循其 Observed/Inferred 纪律;未安装则按本 Skill 执行同等流程。

```bash
npx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture -a cursor
```

## 输入

- 仓库根或 `--scope <path>`(如 `src/core`)
- (变更内)`REQUIREMENT.md`、`DESIGN.md`、`CONTEXT.md`
- `docs/ARCHITECTURE.md`(若有)

## 输出

| 范围 | 路径 |
|------|------|
| **变更内**(默认,有 active slug) | `.taiyi/changes/<slug>/diagrams/c4/README.md`、`containers.md`、可选 `context.md` |
| **仓库级**(`--repo` 或无 slug) | `docs/c4/README.md`、`docs/c4/containers.md`、可选 `docs/c4/context.md` |

**mark-aux**:`scripts/taiyi-forge.sh mark-aux <slug> taiyi-diagram-c4`(变更内且 `diagrams/c4/containers.md` 有实质内容)。

## 执行步骤

1. **定范围**:全仓库 / `src/core` / 单服务;写明 in-scope / out-of-scope
2. **扫证据**:入口(`src/cli`、`src/plugin`)、`package.json`、`workflow-manifest.yaml`、部署/CI 描述
3. **写 README.md**:Scope · Observations(Observed)· Assumptions(Inferred)· Open questions
4. **写 containers.md**:`C4Container` 或结构化 `graph TB` Mermaid;节点用真实路径/包名
5. **(可选)context.md**:仅当存在明确外部系统/用户角色时
6. **禁止**:把未确认推断写成 Observed;不要在此步导出 PNG(交给 `/taiyi:diagram-render`)

## 质量自检

- [ ] Observed 与 Inferred 分节
- [ ] 每个容器可映射到仓库路径
- [ ] Mermaid 在 GitHub 预览可渲染
- [ ] README 注明下游:`/taiyi:diagram-arch` → `/taiyi:diagram-render`

## 流水线位置

```
/taiyi:diagram-c4  →  /taiyi:diagram-arch  →  /taiyi:diagram-render
     (本 Skill)          (同步工程图)            (PNG + 视觉审查)
```

总命令:`/taiyi:diagram-pipeline`

From Dong90/oh-my-taiyiforge, MIT.

More from Dong90/oh-my-taiyiforge

Signals

Stars
859
Forks
22
Open issues
1
Last commit (this folder)
Jun 8, 2026 (4 months ago)
Last release
Jul 15, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Dong90

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get taiyi-diagram-c4 running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying taiyi-diagram-c4?

CallGet help
Cite this page

taiyi-diagram-c4 skill. Agent Mart. https://agentmart.dev/skills/dong90-taiyi-diagram-c4 (last updated 2026-10-24)