You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Build and return a C4 PlantUML architecture document prompt for GIT-ROOT."
151
+
(concat
152
+
"Derive a C4-style architecture overview document for this existing repository.\n"
153
+
"Generate the document as Org mode and embed PlantUML C4 diagrams in Org Babel source blocks.\n"
154
+
"Create or update the document as an architecture reading guide, not just a collection of diagrams.\n"
155
+
"Infer architecture from actual source files, tests, README files, package metadata, scripts, and configuration.\n"
156
+
"Do not invent external systems, deployment topology, runtime dependencies, users, or protocols that are not supported by code or documentation.\n"
157
+
"Mark uncertain boundaries, relationships, and naming choices explicitly.\n"
158
+
"Prefer fewer boxes and clearer relationships over large, noisy diagrams.\n"
159
+
"Use C4 only as an architectural draft for human review.\n"
160
+
"When referencing any code file, folder, module, function, variable, or type, you MUST provide a relative Org-mode link in the format [[file:../../path/to/file::symbol_or_line][description_text]] pointing to its definition in the codebase (relative to the .ai.code.files/architecture/ output directory).\n"
161
+
"For every diagram, include explanatory notes after the PlantUML block that summarize what the diagram shows and what remains uncertain.\n"
162
+
"Use Org Babel blocks like #+begin_src plantuml :file c4-context.svg :exports both and include @startuml / @enduml inside each block.\n"
163
+
"Use PlantUML C4 includes such as !include <C4/C4_Context>, !include <C4/C4_Container>, and !include <C4/C4_Component> when appropriate.\n"
164
+
(format"Repository root: %s\n" git-root)
165
+
(format"Create or update the Org file at %s.\n\n"
166
+
ai-code-c4-plantuml-output-relative-path)
167
+
"Use this Org structure:\n"
168
+
"#+TITLE: C4 Architecture Overview\n\n"
169
+
"* Purpose\n"
170
+
"Explain what this generated architecture guide is for and what it does not prove.\n"
171
+
"* Confidence and Assumptions\n"
172
+
"List confidence level, source inputs, assumptions, and unverified areas.\n"
173
+
"* Repository Summary\n"
174
+
"Summarize the repository responsibilities in a few practical bullets.\n"
175
+
"* Glossary\n"
176
+
"Define terms used in the diagrams.\n"
177
+
"* How to Read These Diagrams\n"
178
+
"Explain the intended reading order: System Context, Container, Component, then runtime flows.\n"
179
+
"* System Context\n"
180
+
"Include a C4 System Context PlantUML Babel block and notes.\n"
181
+
"* Container View\n"
182
+
"Include a C4 Container PlantUML Babel block and notes. Treat containers as major deployable or logical units, not necessarily Docker containers.\n"
183
+
"* Component View\n"
184
+
"Include one focused C4 Component PlantUML Babel block for the most important container or module, and notes.\n"
185
+
"* Important Runtime Flows\n"
186
+
"Describe 1-3 important flows. Include a PlantUML sequence diagram when it helps.\n"
187
+
"* Key Architectural Decisions\n"
188
+
"List practical design choices inferred from the code and docs.\n"
189
+
"* Open Questions\n"
190
+
"List areas that need human confirmation.\n"
191
+
"* Source Evidence\n"
192
+
"Provide a table mapping important claims to Org links pointing at source evidence."))
0 commit comments