SKILL

diagramming

Draws architecture and flow diagrams as code — Mermaid, C4, sequence, ER, and state diagrams that stay in version control and do not go stale. Use this whenever the user asks for a diagram, wants to visualise an architecture or flow, mentions Mermaid or C4, or is explaining a system that would be clearer drawn. For the prose around the diagram, use markdown-docs; for charts of quantitative data, use the dataviz guidance.

原文 · 译文尚未补齐

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Diagramming
  • 1. Decide the question, then pick the type
  • 2. Pick one level of abstraction and stay there
  • 3. Keep it under about nine boxes
  • 4. Label the arrows
  • 5. Write it in Mermaid
  • 6. Keep it from going stale
  • Don't set colours

A diagram earns its place by answering one question faster than a paragraph could. A diagram showing everything answers nothing — it is the visual equivalent of a page with no headings. Draw diagrams as code. A Mermaid block in the repository is diffable, reviewable, and edited by whoever changes the system. An exported PNG from someone's laptop is wrong within a month and nobody can fix it. Match the diagram to what the reader is asking: | Reader's question | Diagram | | --- | --- | | What are the pieces and how do they connect? | Component / C4 container | | What happens, in what order, between whom? | Sequence | | What states can this be in, and what moves it? | State | | How is the data shaped and related? | ER | | What are the steps and decisions? | Flowchart | | Who depends on whom for deployment? | Deployment | Choosing wrong is the most common failure. Component diagrams are drawn for questions that are really about ordering, and a sequence diagram would have answered them in half the space. Done when: you can state the one question this diagram answers. Mixing levels is what makes diagrams unreadable — a box for "Payments" next to a box for "validatecard()" gives the reade

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
OKHP3/skillz
源文件
community/diagramming/SKILL.md
固定版本
7b187777d42ab7bc7bab1e5f2c940cd3139ecebf
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:OKHP3/skillz · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T10:00:54.172Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。