Skip to content

Commit ccb774a

Browse files
committed
chore: Update system design overview prompt
1 parent 736ce15 commit ccb774a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

server/prompts/system.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ def system_design_overview() -> str:
5555
"across the system.\n"
5656
"- **Key Architectural Patterns** — flag patterns you have evidence for: "
5757
"event-driven, CQRS, saga, API gateway, BFF, strangler fig, etc.\n"
58+
"- **Diagrams** — once the investigation is complete, render the findings as "
59+
"Mermaid diagrams in fenced ` ```mermaid ` code blocks:\n"
60+
" - A **system context / component diagram** (`flowchart LR` or `graph LR`) "
61+
"showing every service, edge entry point, and data store as nodes; label "
62+
"edges with the protocol (REST, gRPC, async) and direction.\n"
63+
" - A **data architecture diagram** (`flowchart` or `erDiagram`) showing "
64+
"which service owns which store and any sharing.\n"
65+
" - If async messaging exists, add a **sequence diagram** "
66+
"(`sequenceDiagram`) for one representative end-to-end flow (e.g. a request "
67+
"that crosses multiple services or a key event chain).\n"
68+
" Only include diagrams for which you found concrete evidence in the code. "
69+
"Keep node labels short and consistent with the names used in the Service "
70+
"Inventory table.\n"
5871
"\n"
59-
"Skip any section you have no evidence for. Do not invent details."
72+
"Skip any section (including diagrams) you have no evidence for. "
73+
"Do not invent details."
6074
)

0 commit comments

Comments
 (0)