為目前專案繪製架構圖
何時使用: 你一直在 Slack 上解釋架構,想要一張示意圖。
步驟
-
描述系統Use mermaid-skill. Draw a flowchart of our service: client → API gateway → (auth / orders / payments) → Postgres / Redis / Stripe.✓ 已複製→ 包含有意義節點名稱的 .mmd 原始碼,已轉譯為 PNG 並存放至 docs/
-
補充細節Add labels on each edge showing the protocol (HTTPS, gRPC, TCP) and auth type.✓ 已複製→ 更新後的原始碼並重新轉譯
-
提交Commit docs/architecture.mmd and its PNG.✓ 已複製→ 執行 git add 與 commit
結果: 專案中有一份持續維護的圖表,而不是 Confluence 上過時的投影片。
注意事項
- 圖表變成密密麻麻的線條迷宮 — 讓 Claude 使用子圖與方向提示;不要把所有東西塞在同一層
搭配使用: filesystem · git