w-diagram
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVisualize relationships, flow, or structure. Chat output unless the user gave a file path. Do not invent architecture that is not in the sources. Do not invent PRODUCT.md.
- If the request is product, journey, or architecture docs, read and named MDX and emit at most two Mermaid diagrams from those sources. Flag contradictions between docs and code without proposing a new methodology.
PRODUCT.md - Otherwise inspect the named code or docs. Choose flowchart, sequence, class, er, state, or journey only when it matches the question.
- Keep labels short. Split oversized graphs. Wrap output in a mermaid fence.
- Explain what the diagram shows in a few sentences. Nodes and edges must map to inspected sources.
可视化关系、流程或结构。除非用户提供了文件路径,否则在聊天中输出。不要虚构来源中不存在的架构。不要虚构 PRODUCT.md。
- 如果请求涉及产品、journey 或架构文档,请阅读 和指定的 MDX 文件,并基于这些来源输出最多两个 Mermaid 图。指出文档与代码之间的矛盾,但不要提出新的方法论。
PRODUCT.md - 否则,检查指定的代码或文档。仅当 flowchart、sequence、class、er、state 或 journey 与问题相匹配时,才选择相应的图表类型。
- 保持标签简短。拆分过大的图。使用 围栏包裹输出。
mermaid - 用几句话说明图表展示了什么。节点和边必须映射到已检查的来源。