@mark-gozner/aigile-method 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/LICENSE.md +26 -0
  2. package/README.md +300 -0
  3. package/core/agent-teams/team-all.yaml +24 -0
  4. package/core/agent-teams/team-company.yaml +17 -0
  5. package/core/agent-teams/team-enterprise.yaml +17 -0
  6. package/core/agent-teams/team-fullstack.yaml +16 -0
  7. package/core/agent-teams/team-ide-minimal.yaml +10 -0
  8. package/core/agents/aigile-master.md +476 -0
  9. package/core/agents/aigile-orchestrator.agent.md +200 -0
  10. package/core/agents/analyst.md +45 -0
  11. package/core/agents/architect.md +43 -0
  12. package/core/agents/code-tour.agent.md +208 -0
  13. package/core/agents/dev.agent.md +145 -0
  14. package/core/agents/dev.md +130 -0
  15. package/core/agents/expert-react-frontend-engineer.agent.md +741 -0
  16. package/core/agents/pm.md +33 -0
  17. package/core/agents/po.md +35 -0
  18. package/core/agents/qa.md +38 -0
  19. package/core/agents/sm.md +31 -0
  20. package/core/agents/ui-expert.md +39 -0
  21. package/core/agents/ux-expert.md +31 -0
  22. package/core/checklists/architect-checklist.md +246 -0
  23. package/core/checklists/change-checklist.md +182 -0
  24. package/core/checklists/pm-checklist.md +286 -0
  25. package/core/checklists/po-master-checklist.md +291 -0
  26. package/core/checklists/story-dod-checklist.md +94 -0
  27. package/core/checklists/story-draft-checklist.md +153 -0
  28. package/core/core-config.yaml +22 -0
  29. package/core/data/aigile-kb.md +112 -0
  30. package/core/data/brainstorming-techniques.md +73 -0
  31. package/core/data/elicitation-methods.md +42 -0
  32. package/core/data/technical-preferences.md +52 -0
  33. package/core/data/test-levels-framework.md +43 -0
  34. package/core/data/test-priorities-matrix.md +26 -0
  35. package/core/instructions/csharp.instructions.md +656 -0
  36. package/core/instructions/dotnet/csharp.instructions.md +656 -0
  37. package/core/instructions/java/java.instructions.md +67 -0
  38. package/core/instructions/java/spring-boot.instructions.md +122 -0
  39. package/core/instructions/java.instructions.md +67 -0
  40. package/core/instructions/spring-boot.instructions.md +122 -0
  41. package/core/prompts/README.md +11 -0
  42. package/core/prompts/architecture/architecture-blueprint-generator.prompt.md +322 -0
  43. package/core/prompts/architecture/architecture-validation.prompt.md +71 -0
  44. package/core/prompts/architecture/file-tree-generator.prompt.md +405 -0
  45. package/core/prompts/architecture/technical-project-analyze.prompt.md +43 -0
  46. package/core/prompts/architecture-blueprint-generator.prompt.md +322 -0
  47. package/core/prompts/architecture-validation.prompt.md +71 -0
  48. package/core/prompts/code-review.prompt.md +107 -0
  49. package/core/prompts/confluence-in-md.prompt.md +167 -0
  50. package/core/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
  51. package/core/prompts/create-implementation-plan.prompt.md +157 -0
  52. package/core/prompts/create-oo-component-documentation.prompt.md +193 -0
  53. package/core/prompts/file-tree-generator.prompt.md +405 -0
  54. package/core/prompts/generate-unit-tests.prompt.md +291 -0
  55. package/core/prompts/java/java-doc.prompt.md +24 -0
  56. package/core/prompts/java/java-junit.prompt.md +64 -0
  57. package/core/prompts/java/junit-5.prompt.md +64 -0
  58. package/core/prompts/java-doc.prompt.md +24 -0
  59. package/core/prompts/java-junit.prompt.md +64 -0
  60. package/core/prompts/junit-5.prompt.md +64 -0
  61. package/core/prompts/release-notes/README.md +11 -0
  62. package/core/prompts/release-notes/release-notes.prompt.md +723 -0
  63. package/core/prompts/release-notes.prompt.md +723 -0
  64. package/core/prompts/technical-project-analyze.prompt.md +43 -0
  65. package/core/tasks/advanced-elicitation.md +119 -0
  66. package/core/tasks/check-story-implemented.md +44 -0
  67. package/core/tasks/code-arch-review-with-github.md +40 -0
  68. package/core/tasks/create-architecture-doc.md +55 -0
  69. package/core/tasks/create-jira-epic-from-confluence.md +70 -0
  70. package/core/tasks/create-jira-story-from-confluence.md +39 -0
  71. package/core/tasks/create-jira-story-from-text.md +39 -0
  72. package/core/tasks/create-next-story.md +35 -0
  73. package/core/tasks/create-prd-doc.md +54 -0
  74. package/core/tasks/create-stories-from-epic.md +66 -0
  75. package/core/tasks/create-tasks-for-story.md +60 -0
  76. package/core/tasks/document-project.md +69 -0
  77. package/core/tasks/execute-checklist.md +37 -0
  78. package/core/tasks/explain-story-from-jira.md +44 -0
  79. package/core/tasks/facilitate-brainstorming-session.md +69 -0
  80. package/core/tasks/figma-audit-design-system.md +20 -0
  81. package/core/tasks/front-end-spec-from-design.md +33 -0
  82. package/core/tasks/gate.md +64 -0
  83. package/core/tasks/groom-jira-story.md +52 -0
  84. package/core/tasks/help.md +27 -0
  85. package/core/tasks/implement-freeform-work-item.md +30 -0
  86. package/core/tasks/implement-story-from-jira.md +63 -0
  87. package/core/tasks/implement-unit-tests.md +45 -0
  88. package/core/tasks/market-research-from-context7.md +37 -0
  89. package/core/tasks/review-story.md +30 -0
  90. package/core/tasks/sonarqube-hotspot-review.md +39 -0
  91. package/core/tasks/standup-digest.md +21 -0
  92. package/core/tasks/sync-jira-backlog.md +32 -0
  93. package/core/tasks/test-design.md +68 -0
  94. package/core/tasks/validate-next-story.md +37 -0
  95. package/core/tasks/verify-jira-story-e2e.md +45 -0
  96. package/core/templates/architecture-tmpl.yaml +651 -0
  97. package/core/templates/brainstorming-output-tmpl.yaml +156 -0
  98. package/core/templates/brownfield-architecture-tmpl.yaml +477 -0
  99. package/core/templates/brownfield-prd-tmpl.yaml +281 -0
  100. package/core/templates/front-end-architecture-tmpl.yaml +219 -0
  101. package/core/templates/front-end-spec-tmpl.yaml +350 -0
  102. package/core/templates/fullstack-architecture-tmpl.yaml +824 -0
  103. package/core/templates/market-research-tmpl.yaml +253 -0
  104. package/core/templates/prd-tmpl.yaml +203 -0
  105. package/core/templates/project-brief-tmpl.yaml +222 -0
  106. package/core/templates/qa-gate-tmpl.yaml +103 -0
  107. package/core/templates/story-tmpl.yaml +138 -0
  108. package/core/workflows/brownfield-fullstack.yaml +298 -0
  109. package/core/workflows/brownfield-service.yaml +188 -0
  110. package/core/workflows/brownfield-ui.yaml +198 -0
  111. package/core/workflows/greenfield-fullstack.yaml +241 -0
  112. package/core/workflows/greenfield-service.yaml +207 -0
  113. package/core/workflows/greenfield-ui.yaml +236 -0
  114. package/dist/agents/aigile-master.txt +500 -0
  115. package/dist/agents/aigile-orchestrator.agent.txt +224 -0
  116. package/dist/agents/analyst.txt +69 -0
  117. package/dist/agents/architect.txt +67 -0
  118. package/dist/agents/code-tour.agent.txt +232 -0
  119. package/dist/agents/dev.agent.txt +169 -0
  120. package/dist/agents/dev.txt +154 -0
  121. package/dist/agents/expert-react-frontend-engineer.agent.txt +765 -0
  122. package/dist/agents/pm.txt +57 -0
  123. package/dist/agents/po.txt +59 -0
  124. package/dist/agents/qa.txt +62 -0
  125. package/dist/agents/sm.txt +55 -0
  126. package/dist/agents/ui-expert.txt +63 -0
  127. package/dist/agents/ux-expert.txt +55 -0
  128. package/dist/dev-agent-bundle.txt +154 -0
  129. package/dist/teams/team-company.txt +10789 -0
  130. package/docs/mcp-servers.md +102 -0
  131. package/docs/orchestrator-guide.md +526 -0
  132. package/mcp/servers.json +108 -0
  133. package/mcp/servers.yaml +124 -0
  134. package/package.json +72 -0
  135. package/tools/cli.js +1864 -0
  136. package/tools/installer/README.md +24 -0
  137. package/tools/installer/lib/ide-setup.js +295 -0
  138. package/tools/installer/lib/installer.js +131 -0
  139. package/tools/md-assets/web-agent-startup-instructions.md +21 -0
  140. package/tools/postinstall.js +72 -0
  141. package/tools/shared/bannerArt.js +68 -0
  142. package/tools/validate-bundles.js +54 -0
  143. package/tools/verify-publish-registry.js +34 -0
@@ -0,0 +1,322 @@
1
+ ---
2
+ description: 'Comprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks and architectural patterns, generates visual diagrams, documents implementation patterns, and provides extensible blueprints for maintaining architectural consistency and guiding new development.'
3
+ mode: 'agent'
4
+ ---
5
+
6
+ # Comprehensive Project Architecture Blueprint Generator
7
+
8
+ ## Configuration Variables
9
+ ${PROJECT_TYPE="Auto-detect|.NET|Java|React|Angular|Python|Node.js|Flutter|Other"} <!-- Primary technology -->
10
+ ${ARCHITECTURE_PATTERN="Auto-detect|Clean Architecture|Microservices|Layered|MVVM|MVC|Hexagonal|Event-Driven|Serverless|Monolithic|Other"} <!-- Primary architectural pattern -->
11
+ ${DIAGRAM_TYPE="C4|UML|Flow|Component|None"} <!-- Architecture diagram type -->
12
+ ${DETAIL_LEVEL="High-level|Detailed|Comprehensive|Implementation-Ready"} <!-- Level of detail to include -->
13
+ ${INCLUDES_CODE_EXAMPLES=true|false} <!-- Include sample code to illustrate patterns -->
14
+ ${INCLUDES_IMPLEMENTATION_PATTERNS=true|false} <!-- Include detailed implementation patterns -->
15
+ ${INCLUDES_DECISION_RECORDS=true|false} <!-- Include architectural decision records -->
16
+ ${FOCUS_ON_EXTENSIBILITY=true|false} <!-- Emphasize extension points and patterns -->
17
+
18
+ ## Generated Prompt
19
+
20
+ "Create a comprehensive 'Project_Architecture_Blueprint.md' document that thoroughly analyzes the architectural patterns in the codebase to serve as a definitive reference for maintaining architectural consistency. Use the following approach:
21
+
22
+ ### 1. Architecture Detection and Analysis
23
+ - ${PROJECT_TYPE == "Auto-detect" ? "Analyze the project structure to identify all technology stacks and frameworks in use by examining:
24
+ - Project and configuration files
25
+ - Package dependencies and import statements
26
+ - Framework-specific patterns and conventions
27
+ - Build and deployment configurations" : "Focus on ${PROJECT_TYPE} specific patterns and practices"}
28
+
29
+ - ${ARCHITECTURE_PATTERN == "Auto-detect" ? "Determine the architectural pattern(s) by analyzing:
30
+ - Folder organization and namespacing
31
+ - Dependency flow and component boundaries
32
+ - Interface segregation and abstraction patterns
33
+ - Communication mechanisms between components" : "Document how the ${ARCHITECTURE_PATTERN} architecture is implemented"}
34
+
35
+ ### 2. Architectural Overview
36
+ - Provide a clear, concise explanation of the overall architectural approach
37
+ - Document the guiding principles evident in the architectural choices
38
+ - Identify architectural boundaries and how they're enforced
39
+ - Note any hybrid architectural patterns or adaptations of standard patterns
40
+
41
+ ### 3. Architecture Visualization
42
+ ${DIAGRAM_TYPE != "None" ? `Create ${DIAGRAM_TYPE} diagrams at multiple levels of abstraction:
43
+ - High-level architectural overview showing major subsystems
44
+ - Component interaction diagrams showing relationships and dependencies
45
+ - Data flow diagrams showing how information moves through the system
46
+ - Ensure diagrams accurately reflect the actual implementation, not theoretical patterns` : "Describe the component relationships based on actual code dependencies, providing clear textual explanations of:
47
+ - Subsystem organization and boundaries
48
+ - Dependency directions and component interactions
49
+ - Data flow and process sequences"}
50
+
51
+ ### 4. Core Architectural Components
52
+ For each architectural component discovered in the codebase:
53
+
54
+ - **Purpose and Responsibility**:
55
+ - Primary function within the architecture
56
+ - Business domains or technical concerns addressed
57
+ - Boundaries and scope limitations
58
+
59
+ - **Internal Structure**:
60
+ - Organization of classes/modules within the component
61
+ - Key abstractions and their implementations
62
+ - Design patterns utilized
63
+
64
+ - **Interaction Patterns**:
65
+ - How the component communicates with others
66
+ - Interfaces exposed and consumed
67
+ - Dependency injection patterns
68
+ - Event publishing/subscription mechanisms
69
+
70
+ - **Evolution Patterns**:
71
+ - How the component can be extended
72
+ - Variation points and plugin mechanisms
73
+ - Configuration and customization approaches
74
+
75
+ ### 5. Architectural Layers and Dependencies
76
+ - Map the layer structure as implemented in the codebase
77
+ - Document the dependency rules between layers
78
+ - Identify abstraction mechanisms that enable layer separation
79
+ - Note any circular dependencies or layer violations
80
+ - Document dependency injection patterns used to maintain separation
81
+
82
+ ### 6. Data Architecture
83
+ - Document domain model structure and organization
84
+ - Map entity relationships and aggregation patterns
85
+ - Identify data access patterns (repositories, data mappers, etc.)
86
+ - Document data transformation and mapping approaches
87
+ - Note caching strategies and implementations
88
+ - Document data validation patterns
89
+
90
+ ### 7. Cross-Cutting Concerns Implementation
91
+ Document implementation patterns for cross-cutting concerns:
92
+
93
+ - **Authentication & Authorization**:
94
+ - Security model implementation
95
+ - Permission enforcement patterns
96
+ - Identity management approach
97
+ - Security boundary patterns
98
+
99
+ - **Error Handling & Resilience**:
100
+ - Exception handling patterns
101
+ - Retry and circuit breaker implementations
102
+ - Fallback and graceful degradation strategies
103
+ - Error reporting and monitoring approaches
104
+
105
+ - **Logging & Monitoring**:
106
+ - Instrumentation patterns
107
+ - Observability implementation
108
+ - Diagnostic information flow
109
+ - Performance monitoring approach
110
+
111
+ - **Validation**:
112
+ - Input validation strategies
113
+ - Business rule validation implementation
114
+ - Validation responsibility distribution
115
+ - Error reporting patterns
116
+
117
+ - **Configuration Management**:
118
+ - Configuration source patterns
119
+ - Environment-specific configuration strategies
120
+ - Secret management approach
121
+ - Feature flag implementation
122
+
123
+ ### 8. Service Communication Patterns
124
+ - Document service boundary definitions
125
+ - Identify communication protocols and formats
126
+ - Map synchronous vs. asynchronous communication patterns
127
+ - Document API versioning strategies
128
+ - Identify service discovery mechanisms
129
+ - Note resilience patterns in service communication
130
+
131
+ ### 9. Technology-Specific Architectural Patterns
132
+ ${PROJECT_TYPE == "Auto-detect" ? "For each detected technology stack, document specific architectural patterns:" : `Document ${PROJECT_TYPE}-specific architectural patterns:`}
133
+
134
+ ${(PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect") ?
135
+ "#### .NET Architectural Patterns (if detected)
136
+ - Host and application model implementation
137
+ - Middleware pipeline organization
138
+ - Framework service integration patterns
139
+ - ORM and data access approaches
140
+ - API implementation patterns (controllers, minimal APIs, etc.)
141
+ - Dependency injection container configuration" : ""}
142
+
143
+ ${(PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect") ?
144
+ "#### Java Architectural Patterns (if detected)
145
+ - Application container and bootstrap process
146
+ - Dependency injection framework usage (Spring, CDI, etc.)
147
+ - AOP implementation patterns
148
+ - Transaction boundary management
149
+ - ORM configuration and usage patterns
150
+ - Service implementation patterns" : ""}
151
+
152
+ ${(PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect") ?
153
+ "#### React Architectural Patterns (if detected)
154
+ - Component composition and reuse strategies
155
+ - State management architecture
156
+ - Side effect handling patterns
157
+ - Routing and navigation approach
158
+ - Data fetching and caching patterns
159
+ - Rendering optimization strategies" : ""}
160
+
161
+ ${(PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect") ?
162
+ "#### Angular Architectural Patterns (if detected)
163
+ - Module organization strategy
164
+ - Component hierarchy design
165
+ - Service and dependency injection patterns
166
+ - State management approach
167
+ - Reactive programming patterns
168
+ - Route guard implementation" : ""}
169
+
170
+ ${(PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect") ?
171
+ "#### Python Architectural Patterns (if detected)
172
+ - Module organization approach
173
+ - Dependency management strategy
174
+ - OOP vs. functional implementation patterns
175
+ - Framework integration patterns
176
+ - Asynchronous programming approach" : ""}
177
+
178
+ ### 10. Implementation Patterns
179
+ ${INCLUDES_IMPLEMENTATION_PATTERNS ?
180
+ "Document concrete implementation patterns for key architectural components:
181
+
182
+ - **Interface Design Patterns**:
183
+ - Interface segregation approaches
184
+ - Abstraction level decisions
185
+ - Generic vs. specific interface patterns
186
+ - Default implementation patterns
187
+
188
+ - **Service Implementation Patterns**:
189
+ - Service lifetime management
190
+ - Service composition patterns
191
+ - Operation implementation templates
192
+ - Error handling within services
193
+
194
+ - **Repository Implementation Patterns**:
195
+ - Query pattern implementations
196
+ - Transaction management
197
+ - Concurrency handling
198
+ - Bulk operation patterns
199
+
200
+ - **Controller/API Implementation Patterns**:
201
+ - Request handling patterns
202
+ - Response formatting approaches
203
+ - Parameter validation
204
+ - API versioning implementation
205
+
206
+ - **Domain Model Implementation**:
207
+ - Entity implementation patterns
208
+ - Value object patterns
209
+ - Domain event implementation
210
+ - Business rule enforcement" : "Mention that detailed implementation patterns vary across the codebase."}
211
+
212
+ ### 11. Testing Architecture
213
+ - Document testing strategies aligned with the architecture
214
+ - Identify test boundary patterns (unit, integration, system)
215
+ - Map test doubles and mocking approaches
216
+ - Document test data strategies
217
+ - Note testing tools and frameworks integration
218
+
219
+ ### 12. Deployment Architecture
220
+ - Document deployment topology derived from configuration
221
+ - Identify environment-specific architectural adaptations
222
+ - Map runtime dependency resolution patterns
223
+ - Document configuration management across environments
224
+ - Identify containerization and orchestration approaches
225
+ - Note cloud service integration patterns
226
+
227
+ ### 13. Extension and Evolution Patterns
228
+ ${FOCUS_ON_EXTENSIBILITY ?
229
+ "Provide detailed guidance for extending the architecture:
230
+
231
+ - **Feature Addition Patterns**:
232
+ - How to add new features while preserving architectural integrity
233
+ - Where to place new components by type
234
+ - Dependency introduction guidelines
235
+ - Configuration extension patterns
236
+
237
+ - **Modification Patterns**:
238
+ - How to safely modify existing components
239
+ - Strategies for maintaining backward compatibility
240
+ - Deprecation patterns
241
+ - Migration approaches
242
+
243
+ - **Integration Patterns**:
244
+ - How to integrate new external systems
245
+ - Adapter implementation patterns
246
+ - Anti-corruption layer patterns
247
+ - Service facade implementation" : "Document key extension points in the architecture."}
248
+
249
+ ${INCLUDES_CODE_EXAMPLES ?
250
+ "### 14. Architectural Pattern Examples
251
+ Extract representative code examples that illustrate key architectural patterns:
252
+
253
+ - **Layer Separation Examples**:
254
+ - Interface definition and implementation separation
255
+ - Cross-layer communication patterns
256
+ - Dependency injection examples
257
+
258
+ - **Component Communication Examples**:
259
+ - Service invocation patterns
260
+ - Event publication and handling
261
+ - Message passing implementation
262
+
263
+ - **Extension Point Examples**:
264
+ - Plugin registration and discovery
265
+ - Extension interface implementations
266
+ - Configuration-driven extension patterns
267
+
268
+ Include enough context with each example to show the pattern clearly, but keep examples concise and focused on architectural concepts." : ""}
269
+
270
+ ${INCLUDES_DECISION_RECORDS ?
271
+ "### 15. Architectural Decision Records
272
+ Document key architectural decisions evident in the codebase:
273
+
274
+ - **Architectural Style Decisions**:
275
+ - Why the current architectural pattern was chosen
276
+ - Alternatives considered (based on code evolution)
277
+ - Constraints that influenced the decision
278
+
279
+ - **Technology Selection Decisions**:
280
+ - Key technology choices and their architectural impact
281
+ - Framework selection rationales
282
+ - Custom vs. off-the-shelf component decisions
283
+
284
+ - **Implementation Approach Decisions**:
285
+ - Specific implementation patterns chosen
286
+ - Standard pattern adaptations
287
+ - Performance vs. maintainability tradeoffs
288
+
289
+ For each decision, note:
290
+ - Context that made the decision necessary
291
+ - Factors considered in making the decision
292
+ - Resulting consequences (positive and negative)
293
+ - Future flexibility or limitations introduced" : ""}
294
+
295
+ ### ${INCLUDES_DECISION_RECORDS ? "16" : INCLUDES_CODE_EXAMPLES ? "15" : "14"}. Architecture Governance
296
+ - Document how architectural consistency is maintained
297
+ - Identify automated checks for architectural compliance
298
+ - Note architectural review processes evident in the codebase
299
+ - Document architectural documentation practices
300
+
301
+ ### ${INCLUDES_DECISION_RECORDS ? "17" : INCLUDES_CODE_EXAMPLES ? "16" : "15"}. Blueprint for New Development
302
+ Create a clear architectural guide for implementing new features:
303
+
304
+ - **Development Workflow**:
305
+ - Starting points for different feature types
306
+ - Component creation sequence
307
+ - Integration steps with existing architecture
308
+ - Testing approach by architectural layer
309
+
310
+ - **Implementation Templates**:
311
+ - Base class/interface templates for key architectural components
312
+ - Standard file organization for new components
313
+ - Dependency declaration patterns
314
+ - Documentation requirements
315
+
316
+ - **Common Pitfalls**:
317
+ - Architecture violations to avoid
318
+ - Common architectural mistakes
319
+ - Performance considerations
320
+ - Testing blind spots
321
+
322
+ Include information about when this blueprint was generated and recommendations for keeping it updated as the architecture evolves."
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: 'Validate and document the repository architecture and technology consistency.'
3
+ mode: 'agent'
4
+ ---
5
+
6
+ Validate and document the repository architecture and technology consistency across the entire project.
7
+
8
+ Purpose
9
+ - Auto-detect technologies, manifests, and architectural patterns in the repository.
10
+ - Run deterministic checks for consistency, missing artifacts, and obvious risks.
11
+ - Produce both machine-readable findings (JSON) and a concise human-readable report (Markdown).
12
+
13
+ Constraints
14
+ - Only read repository files; do not perform network calls or modify files.
15
+ - If information is missing, mark it as unknown with low confidence and suggest exact local commands to run to resolve it.
16
+ - Be deterministic: same input repo must produce the same output.
17
+
18
+ Steps (agent must follow)
19
+ 1. Walk the repository and collect files and metadata (path, size, file type, and first 20 lines where helpful).
20
+ 2. Group files into components by folder/manifests.
21
+ 3. For each component, infer language, package manager, build and test commands, runtime versions (if present), and whether CI is configured.
22
+ 4. Run consistency checks (see below) and assign confidence scores (0.0-1.0) to inferred items.
23
+ 5. Produce JSON findings and a Markdown summary as described in Output Format.
24
+
25
+ Checks to run per component (examples)
26
+ - Manifest presence: expected manifest exists (e.g., package.json for Node, pom.xml for Maven).
27
+ - Lockfile presence when expected (e.g., package-lock.json, yarn.lock, poetry.lock).
28
+ - Version coherence: runtime version declared in manifest matches other artifacts (e.g., Dockerfile FROM image tag).
29
+ - CI presence: workflow or pipeline config exists that builds/tests the component.
30
+ - Test presence: test folders or test dependencies are present.
31
+ - Mixed package managers in same component (flag as issue).
32
+ - Broken path references in docs/prompts (report path, line snippet).
33
+ - Potential secrets/secrets placeholders: detect obvious token patterns or files under mcp/ that reference tokens (do not show values).
34
+
35
+ Output Format (required)
36
+ 1) JSON findings (single JSON object) with these top-level keys:
37
+ - repo: { name, path }
38
+ - summary: { components, languages, total_files, confidence }
39
+ - components: [
40
+ { id, path, type, language, package_manager, manifests, inferred_runtime_versions, build_commands, test_commands, has_ci, checks, recommendations }
41
+ ]
42
+ - global_checks: [ { id, description, pass, confidence, details } ]
43
+ - recommendations: [ { id, description, priority, effort, affected_components } ]
44
+ - metadata: { generated_at (ISO8601), tool, version }
45
+
46
+ Notes for JSON
47
+ - Use numeric confidence (0.0-1.0).
48
+ - Keep identifiers deterministic and stable (use normalized path strings).
49
+
50
+ 2) Markdown summary (max ~1200 words):
51
+ - Title: "Architecture Validation — <repo name>"
52
+ - One-paragraph overview of inferred architecture and primary technologies.
53
+ - Bullet list of components: path, language, main status (OK / Issues).
54
+ - Top 5 prioritized recommendations (one line each).
55
+ - Checklist of failing high-severity checks.
56
+ - "How I inferred" short heuristics list.
57
+ - Minimal examples of how to fix the top 2 issues with PowerShell-compatible commands.
58
+ - Quality gates: Build, Lint/Typecheck, Tests (PASS/FAIL).
59
+
60
+ Quality gates
61
+ - Build: each code component must have at least one build command or CI pipeline (PASS/FAIL).
62
+ - Lint/Typecheck: evidence of lint or typecheck config for major languages (PASS/FAIL).
63
+ - Tests: presence of test folders or test manifests (PASS/FAIL).
64
+
65
+ Behavior
66
+ - Be concise. Use bullets and short sentences.
67
+ - Prioritize actionable remediation steps with estimated effort (Low/Medium/High).
68
+ - When recommending commands, use PowerShell-safe commands in fenced blocks.
69
+
70
+ Begin by listing detected top-level manifests and components (one-line each), then provide the full JSON findings object, followed by the Markdown summary and a final 3-step next-action plan.
71
+