siesa-agents 2.1.1 → 2.1.2

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 (39) hide show
  1. package/README.md +1 -1
  2. package/bin/install.js +2 -1
  3. package/claude/commands/BMad/agents/analyst.md +88 -0
  4. package/claude/commands/BMad/agents/architect.md +89 -0
  5. package/claude/commands/BMad/agents/backend.md +188 -0
  6. package/claude/commands/BMad/agents/bmad-master.md +114 -0
  7. package/claude/commands/BMad/agents/bmad-orchestrator.md +151 -0
  8. package/claude/commands/BMad/agents/dev.md +85 -0
  9. package/claude/commands/BMad/agents/frontend.md +151 -0
  10. package/claude/commands/BMad/agents/pm.md +88 -0
  11. package/claude/commands/BMad/agents/po.md +83 -0
  12. package/claude/commands/BMad/agents/qa.md +95 -0
  13. package/claude/commands/BMad/agents/sm.md +69 -0
  14. package/claude/commands/BMad/agents/ux-expert.md +73 -0
  15. package/claude/commands/BMad/tasks/advanced-elicitation.md +123 -0
  16. package/claude/commands/BMad/tasks/apply-qa-fixes.md +154 -0
  17. package/claude/commands/BMad/tasks/brownfield-create-epic.md +166 -0
  18. package/claude/commands/BMad/tasks/brownfield-create-story.md +153 -0
  19. package/claude/commands/BMad/tasks/correct-course.md +76 -0
  20. package/claude/commands/BMad/tasks/create-brownfield-story.md +318 -0
  21. package/claude/commands/BMad/tasks/create-deep-research-prompt.md +284 -0
  22. package/claude/commands/BMad/tasks/create-doc.md +107 -0
  23. package/claude/commands/BMad/tasks/create-next-story.md +118 -0
  24. package/claude/commands/BMad/tasks/document-project.md +349 -0
  25. package/claude/commands/BMad/tasks/execute-checklist.md +92 -0
  26. package/claude/commands/BMad/tasks/facilitate-brainstorming-session.md +142 -0
  27. package/claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +57 -0
  28. package/claude/commands/BMad/tasks/index-docs.md +179 -0
  29. package/claude/commands/BMad/tasks/kb-mode-interaction.md +81 -0
  30. package/claude/commands/BMad/tasks/nfr-assess.md +349 -0
  31. package/claude/commands/BMad/tasks/qa-gate.md +167 -0
  32. package/claude/commands/BMad/tasks/review-story.md +320 -0
  33. package/claude/commands/BMad/tasks/risk-profile.md +359 -0
  34. package/claude/commands/BMad/tasks/shard-doc.md +191 -0
  35. package/claude/commands/BMad/tasks/test-design.md +180 -0
  36. package/claude/commands/BMad/tasks/trace-requirements.md +270 -0
  37. package/claude/commands/BMad/tasks/validate-next-story.md +140 -0
  38. package/claude/settings.local.json +20 -0
  39. package/package.json +2 -1
@@ -0,0 +1,118 @@
1
+ # /create-next-story Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Create Next Story Task
8
+
9
+ ## Purpose
10
+
11
+ To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.
12
+
13
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
14
+
15
+ ### 0. Load Core Configuration and Check Workflow
16
+
17
+ - Load `.bmad-core/core-config.yaml` from the project root
18
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
19
+ - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
20
+
21
+ ### 1. Identify Next Story for Preparation
22
+
23
+ #### 1.1 Locate Epic Files and Review Existing Stories
24
+
25
+ - Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
26
+ - If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
27
+ - **If highest story exists:**
28
+ - Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
29
+ - If proceeding, select next sequential story in the current epic
30
+ - If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
31
+ - **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
32
+ - **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
33
+ - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
34
+
35
+ ### 2. Gather Story Requirements and Previous Story Context
36
+
37
+ - Extract story requirements from the identified epic file
38
+ - If previous story exists, review Dev Agent Record sections for:
39
+ - Completion Notes and Debug Log References
40
+ - Implementation deviations and technical decisions
41
+ - Challenges encountered and lessons learned
42
+ - Extract relevant insights that inform the current story's preparation
43
+
44
+ ### 3. Gather Architecture Context
45
+
46
+ #### 3.1 Determine Architecture Reading Strategy
47
+
48
+ - **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
49
+ - **Else**: Use monolithic `architectureFile` for similar sections
50
+
51
+ #### 3.2 Read Architecture Documents Based on Story Type
52
+
53
+ **For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
54
+
55
+ **For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
56
+
57
+ **For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
58
+
59
+ **For Full-Stack Stories:** Read both Backend and Frontend sections above
60
+
61
+ #### 3.3 Extract Story-Specific Technical Details
62
+
63
+ Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
64
+
65
+ Extract:
66
+
67
+ - Specific data models, schemas, or structures the story will use
68
+ - API endpoints the story must implement or consume
69
+ - Component specifications for UI elements in the story
70
+ - File paths and naming conventions for new code
71
+ - Testing requirements specific to the story's features
72
+ - Security or performance considerations affecting the story
73
+
74
+ ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
75
+
76
+ ### 4. Verify Project Structure Alignment
77
+
78
+ - Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
79
+ - Ensure file paths, component locations, or module names align with defined structures
80
+ - Document any structural conflicts in "Project Structure Notes" section within the story draft
81
+
82
+ ### 5. Populate Story Template with Full Context
83
+
84
+ - Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
85
+ - Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
86
+ - **`Dev Notes` section (CRITICAL):**
87
+ - CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
88
+ - Include ALL relevant technical details from Steps 2-3, organized by category:
89
+ - **Previous Story Insights**: Key learnings from previous story
90
+ - **Data Models**: Specific schemas, validation rules, relationships [with source references]
91
+ - **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
92
+ - **Component Specifications**: UI component details, props, state management [with source references]
93
+ - **File Locations**: Exact paths where new code should be created based on project structure
94
+ - **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
95
+ - **Technical Constraints**: Version requirements, performance considerations, security rules
96
+ - Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
97
+ - If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
98
+ - **`Tasks / Subtasks` section:**
99
+ - Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
100
+ - Each task must reference relevant architecture documentation
101
+ - Include unit testing as explicit subtasks based on the Testing Strategy
102
+ - Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
103
+ - Add notes on project structure alignment or discrepancies found in Step 4
104
+
105
+ ### 6. Story Draft Completion and Review
106
+
107
+ - Review all sections for completeness and accuracy
108
+ - Verify all source references are included for technical details
109
+ - Ensure tasks align with both epic requirements and architecture constraints
110
+ - Update status to "Draft" and save the story file
111
+ - Execute `.bmad-core/tasks/execute-checklist` `.bmad-core/checklists/story-draft-checklist`
112
+ - Provide summary to user including:
113
+ - Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
114
+ - Status: Draft
115
+ - Key technical components included from architecture docs
116
+ - Any deviations or conflicts noted between epic and architecture
117
+ - Checklist Results
118
+ - Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `.bmad-core/tasks/validate-next-story`
@@ -0,0 +1,349 @@
1
+ # /document-project Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Document an Existing Project
8
+
9
+ ## Purpose
10
+
11
+ Generate comprehensive documentation for existing projects optimized for AI development agents. This task creates structured reference materials that enable AI agents to understand project context, conventions, and patterns for effective contribution to any codebase.
12
+
13
+ ## Task Instructions
14
+
15
+ ### 1. Initial Project Analysis
16
+
17
+ **CRITICAL:** First, check if a PRD or requirements document exists in context. If yes, use it to focus your documentation efforts on relevant areas only.
18
+
19
+ **IF PRD EXISTS**:
20
+
21
+ - Review the PRD to understand what enhancement/feature is planned
22
+ - Identify which modules, services, or areas will be affected
23
+ - Focus documentation ONLY on these relevant areas
24
+ - Skip unrelated parts of the codebase to keep docs lean
25
+
26
+ **IF NO PRD EXISTS**:
27
+ Ask the user:
28
+
29
+ "I notice you haven't provided a PRD or requirements document. To create more focused and useful documentation, I recommend one of these options:
30
+
31
+ 1. **Create a PRD first** - Would you like me to help create a brownfield PRD before documenting? This helps focus documentation on relevant areas.
32
+
33
+ 2. **Provide existing requirements** - Do you have a requirements document, epic, or feature description you can share?
34
+
35
+ 3. **Describe the focus** - Can you briefly describe what enhancement or feature you're planning? For example:
36
+ - 'Adding payment processing to the user service'
37
+ - 'Refactoring the authentication module'
38
+ - 'Integrating with a new third-party API'
39
+
40
+ 4. **Document everything** - Or should I proceed with comprehensive documentation of the entire codebase? (Note: This may create excessive documentation for large projects)
41
+
42
+ Please let me know your preference, or I can proceed with full documentation if you prefer."
43
+
44
+ Based on their response:
45
+
46
+ - If they choose option 1-3: Use that context to focus documentation
47
+ - If they choose option 4 or decline: Proceed with comprehensive analysis below
48
+
49
+ Begin by conducting analysis of the existing project. Use available tools to:
50
+
51
+ 1. **Project Structure Discovery**: Examine the root directory structure, identify main folders, and understand the overall organization
52
+ 2. **Technology Stack Identification**: Look for package.json, requirements.txt, Cargo.toml, pom.xml, etc. to identify languages, frameworks, and dependencies
53
+ 3. **Build System Analysis**: Find build scripts, CI/CD configurations, and development commands
54
+ 4. **Existing Documentation Review**: Check for README files, docs folders, and any existing documentation
55
+ 5. **Code Pattern Analysis**: Sample key files to understand coding patterns, naming conventions, and architectural approaches
56
+
57
+ Ask the user these elicitation questions to better understand their needs:
58
+
59
+ - What is the primary purpose of this project?
60
+ - Are there any specific areas of the codebase that are particularly complex or important for agents to understand?
61
+ - What types of tasks do you expect AI agents to perform on this project? (e.g., bug fixes, feature additions, refactoring, testing)
62
+ - Are there any existing documentation standards or formats you prefer?
63
+ - What level of technical detail should the documentation target? (junior developers, senior developers, mixed team)
64
+ - Is there a specific feature or enhancement you're planning? (This helps focus documentation)
65
+
66
+ ### 2. Deep Codebase Analysis
67
+
68
+ CRITICAL: Before generating documentation, conduct extensive analysis of the existing codebase:
69
+
70
+ 1. **Explore Key Areas**:
71
+ - Entry points (main files, index files, app initializers)
72
+ - Configuration files and environment setup
73
+ - Package dependencies and versions
74
+ - Build and deployment configurations
75
+ - Test suites and coverage
76
+
77
+ 2. **Ask Clarifying Questions**:
78
+ - "I see you're using [technology X]. Are there any custom patterns or conventions I should document?"
79
+ - "What are the most critical/complex parts of this system that developers struggle with?"
80
+ - "Are there any undocumented 'tribal knowledge' areas I should capture?"
81
+ - "What technical debt or known issues should I document?"
82
+ - "Which parts of the codebase change most frequently?"
83
+
84
+ 3. **Map the Reality**:
85
+ - Identify ACTUAL patterns used (not theoretical best practices)
86
+ - Find where key business logic lives
87
+ - Locate integration points and external dependencies
88
+ - Document workarounds and technical debt
89
+ - Note areas that differ from standard patterns
90
+
91
+ **IF PRD PROVIDED**: Also analyze what would need to change for the enhancement
92
+
93
+ ### 3. Core Documentation Generation
94
+
95
+ [[LLM: Generate a comprehensive BROWNFIELD architecture document that reflects the ACTUAL state of the codebase.
96
+
97
+ **CRITICAL**: This is NOT an aspirational architecture document. Document what EXISTS, including:
98
+
99
+ - Technical debt and workarounds
100
+ - Inconsistent patterns between different parts
101
+ - Legacy code that can't be changed
102
+ - Integration constraints
103
+ - Performance bottlenecks
104
+
105
+ **Document Structure**:
106
+
107
+ # [Project Name] Brownfield Architecture Document
108
+
109
+ ## Introduction
110
+
111
+ This document captures the CURRENT STATE of the [Project Name] codebase, including technical debt, workarounds, and real-world patterns. It serves as a reference for AI agents working on enhancements.
112
+
113
+ ### Document Scope
114
+
115
+ [If PRD provided: "Focused on areas relevant to: {enhancement description}"]
116
+ [If no PRD: "Comprehensive documentation of entire system"]
117
+
118
+ ### Change Log
119
+
120
+ | Date | Version | Description | Author |
121
+ | ------ | ------- | --------------------------- | --------- |
122
+ | [Date] | 1.0 | Initial brownfield analysis | [Analyst] |
123
+
124
+ ## Quick Reference - Key Files and Entry Points
125
+
126
+ ### Critical Files for Understanding the System
127
+
128
+ - **Main Entry**: `src/index.js` (or actual entry point)
129
+ - **Configuration**: `config/app.config.js`, `.env.example`
130
+ - **Core Business Logic**: `src/services/`, `src/domain/`
131
+ - **API Definitions**: `src/routes/` or link to OpenAPI spec
132
+ - **Database Models**: `src/models/` or link to schema files
133
+ - **Key Algorithms**: [List specific files with complex logic]
134
+
135
+ ### If PRD Provided - Enhancement Impact Areas
136
+
137
+ [Highlight which files/modules will be affected by the planned enhancement]
138
+
139
+ ## High Level Architecture
140
+
141
+ ### Technical Summary
142
+
143
+ ### Actual Tech Stack (from package.json/requirements.txt)
144
+
145
+ | Category | Technology | Version | Notes |
146
+ | --------- | ---------- | ------- | -------------------------- |
147
+ | Runtime | Node.js | 16.x | [Any constraints] |
148
+ | Framework | Express | 4.18.2 | [Custom middleware?] |
149
+ | Database | PostgreSQL | 13 | [Connection pooling setup] |
150
+
151
+ etc...
152
+
153
+ ### Repository Structure Reality Check
154
+
155
+ - Type: [Monorepo/Polyrepo/Hybrid]
156
+ - Package Manager: [npm/yarn/pnpm]
157
+ - Notable: [Any unusual structure decisions]
158
+
159
+ ## Source Tree and Module Organization
160
+
161
+ ### Project Structure (Actual)
162
+
163
+ ```text
164
+ project-root/
165
+ ├── src/
166
+ │ ├── controllers/ # HTTP request handlers
167
+ │ ├── services/ # Business logic (NOTE: inconsistent patterns between user and payment services)
168
+ │ ├── models/ # Database models (Sequelize)
169
+ │ ├── utils/ # Mixed bag - needs refactoring
170
+ │ └── legacy/ # DO NOT MODIFY - old payment system still in use
171
+ ├── tests/ # Jest tests (60% coverage)
172
+ ├── scripts/ # Build and deployment scripts
173
+ └── config/ # Environment configs
174
+ ```
175
+
176
+ ### Key Modules and Their Purpose
177
+
178
+ - **User Management**: `src/services/userService.js` - Handles all user operations
179
+ - **Authentication**: `src/middleware/auth.js` - JWT-based, custom implementation
180
+ - **Payment Processing**: `src/legacy/payment.js` - CRITICAL: Do not refactor, tightly coupled
181
+ - **[List other key modules with their actual files]**
182
+
183
+ ## Data Models and APIs
184
+
185
+ ### Data Models
186
+
187
+ Instead of duplicating, reference actual model files:
188
+
189
+ - **User Model**: See `src/models/User.js`
190
+ - **Order Model**: See `src/models/Order.js`
191
+ - **Related Types**: TypeScript definitions in `src/types/`
192
+
193
+ ### API Specifications
194
+
195
+ - **OpenAPI Spec**: `docs/api/openapi.yaml` (if exists)
196
+ - **Postman Collection**: `docs/api/postman-collection.json`
197
+ - **Manual Endpoints**: [List any undocumented endpoints discovered]
198
+
199
+ ## Technical Debt and Known Issues
200
+
201
+ ### Critical Technical Debt
202
+
203
+ 1. **Payment Service**: Legacy code in `src/legacy/payment.js` - tightly coupled, no tests
204
+ 2. **User Service**: Different pattern than other services, uses callbacks instead of promises
205
+ 3. **Database Migrations**: Manually tracked, no proper migration tool
206
+ 4. **[Other significant debt]**
207
+
208
+ ### Workarounds and Gotchas
209
+
210
+ - **Environment Variables**: Must set `NODE_ENV=production` even for staging (historical reason)
211
+ - **Database Connections**: Connection pool hardcoded to 10, changing breaks payment service
212
+ - **[Other workarounds developers need to know]**
213
+
214
+ ## Integration Points and External Dependencies
215
+
216
+ ### External Services
217
+
218
+ | Service | Purpose | Integration Type | Key Files |
219
+ | -------- | -------- | ---------------- | ------------------------------ |
220
+ | Stripe | Payments | REST API | `src/integrations/stripe/` |
221
+ | SendGrid | Emails | SDK | `src/services/emailService.js` |
222
+
223
+ etc...
224
+
225
+ ### Internal Integration Points
226
+
227
+ - **Frontend Communication**: REST API on port 3000, expects specific headers
228
+ - **Background Jobs**: Redis queue, see `src/workers/`
229
+ - **[Other integrations]**
230
+
231
+ ## Development and Deployment
232
+
233
+ ### Local Development Setup
234
+
235
+ 1. Actual steps that work (not ideal steps)
236
+ 2. Known issues with setup
237
+ 3. Required environment variables (see `.env.example`)
238
+
239
+ ### Build and Deployment Process
240
+
241
+ - **Build Command**: `npm run build` (webpack config in `webpack.config.js`)
242
+ - **Deployment**: Manual deployment via `scripts/deploy.sh`
243
+ - **Environments**: Dev, Staging, Prod (see `config/environments/`)
244
+
245
+ ## Testing Reality
246
+
247
+ ### Current Test Coverage
248
+
249
+ - Unit Tests: 60% coverage (Jest)
250
+ - Integration Tests: Minimal, in `tests/integration/`
251
+ - E2E Tests: None
252
+ - Manual Testing: Primary QA method
253
+
254
+ ### Running Tests
255
+
256
+ ```bash
257
+ npm test # Runs unit tests
258
+ npm run test:integration # Runs integration tests (requires local DB)
259
+ ```
260
+
261
+ ## If Enhancement PRD Provided - Impact Analysis
262
+
263
+ ### Files That Will Need Modification
264
+
265
+ Based on the enhancement requirements, these files will be affected:
266
+
267
+ - `src/services/userService.js` - Add new user fields
268
+ - `src/models/User.js` - Update schema
269
+ - `src/routes/userRoutes.js` - New endpoints
270
+ - [etc...]
271
+
272
+ ### New Files/Modules Needed
273
+
274
+ - `src/services/newFeatureService.js` - New business logic
275
+ - `src/models/NewFeature.js` - New data model
276
+ - [etc...]
277
+
278
+ ### Integration Considerations
279
+
280
+ - Will need to integrate with existing auth middleware
281
+ - Must follow existing response format in `src/utils/responseFormatter.js`
282
+ - [Other integration points]
283
+
284
+ ## Appendix - Useful Commands and Scripts
285
+
286
+ ### Frequently Used Commands
287
+
288
+ ```bash
289
+ npm run dev # Start development server
290
+ npm run build # Production build
291
+ npm run migrate # Run database migrations
292
+ npm run seed # Seed test data
293
+ ```
294
+
295
+ ### Debugging and Troubleshooting
296
+
297
+ - **Logs**: Check `logs/app.log` for application logs
298
+ - **Debug Mode**: Set `DEBUG=app:*` for verbose logging
299
+ - **Common Issues**: See `docs/troubleshooting.md`]]
300
+
301
+ ### 4. Document Delivery
302
+
303
+ 1. **In Web UI (Gemini, ChatGPT, Claude)**:
304
+ - Present the entire document in one response (or multiple if too long)
305
+ - Tell user to copy and save as `docs/brownfield-architecture.md` or `docs/project-architecture.md`
306
+ - Mention it can be sharded later in IDE if needed
307
+
308
+ 2. **In IDE Environment**:
309
+ - Create the document as `docs/brownfield-architecture.md`
310
+ - Inform user this single document contains all architectural information
311
+ - Can be sharded later using PO agent if desired
312
+
313
+ The document should be comprehensive enough that future agents can understand:
314
+
315
+ - The actual state of the system (not idealized)
316
+ - Where to find key files and logic
317
+ - What technical debt exists
318
+ - What constraints must be respected
319
+ - If PRD provided: What needs to change for the enhancement]]
320
+
321
+ ### 5. Quality Assurance
322
+
323
+ CRITICAL: Before finalizing the document:
324
+
325
+ 1. **Accuracy Check**: Verify all technical details match the actual codebase
326
+ 2. **Completeness Review**: Ensure all major system components are documented
327
+ 3. **Focus Validation**: If user provided scope, verify relevant areas are emphasized
328
+ 4. **Clarity Assessment**: Check that explanations are clear for AI agents
329
+ 5. **Navigation**: Ensure document has clear section structure for easy reference
330
+
331
+ Apply the advanced elicitation task after major sections to refine based on user feedback.
332
+
333
+ ## Success Criteria
334
+
335
+ - Single comprehensive brownfield architecture document created
336
+ - Document reflects REALITY including technical debt and workarounds
337
+ - Key files and modules are referenced with actual paths
338
+ - Models/APIs reference source files rather than duplicating content
339
+ - If PRD provided: Clear impact analysis showing what needs to change
340
+ - Document enables AI agents to navigate and understand the actual codebase
341
+ - Technical constraints and "gotchas" are clearly documented
342
+
343
+ ## Notes
344
+
345
+ - This task creates ONE document that captures the TRUE state of the system
346
+ - References actual files rather than duplicating content when possible
347
+ - Documents technical debt, workarounds, and constraints honestly
348
+ - For brownfield projects with PRD: Provides clear enhancement impact analysis
349
+ - The goal is PRACTICAL documentation for AI agents doing real work
@@ -0,0 +1,92 @@
1
+ # /execute-checklist Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Checklist Validation Task
8
+
9
+ This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
10
+
11
+ ## Available Checklists
12
+
13
+ If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-core/checklists folder to select the appropriate one to run.
14
+
15
+ ## Instructions
16
+
17
+ 1. **Initial Assessment**
18
+ - If user or the task being run provides a checklist name:
19
+ - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
20
+ - If multiple matches found, ask user to clarify
21
+ - Load the appropriate checklist from .bmad-core/checklists/
22
+ - If no checklist specified:
23
+ - Ask the user which checklist they want to use
24
+ - Present the available options from the files in the checklists folder
25
+ - Confirm if they want to work through the checklist:
26
+ - Section by section (interactive mode - very time consuming)
27
+ - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
28
+
29
+ 2. **Document and Artifact Gathering**
30
+ - Each checklist will specify its required documents/artifacts at the beginning
31
+ - Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
32
+
33
+ 3. **Checklist Processing**
34
+
35
+ If in interactive mode:
36
+ - Work through each section of the checklist one at a time
37
+ - For each section:
38
+ - Review all items in the section following instructions for that section embedded in the checklist
39
+ - Check each item against the relevant documentation or artifacts as appropriate
40
+ - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
41
+ - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
42
+
43
+ If in YOLO mode:
44
+ - Process all sections at once
45
+ - Create a comprehensive report of all findings
46
+ - Present the complete analysis to the user
47
+
48
+ 4. **Validation Approach**
49
+
50
+ For each checklist item:
51
+ - Read and understand the requirement
52
+ - Look for evidence in the documentation that satisfies the requirement
53
+ - Consider both explicit mentions and implicit coverage
54
+ - Aside from this, follow all checklist llm instructions
55
+ - Mark items as:
56
+ - ✅ PASS: Requirement clearly met
57
+ - ❌ FAIL: Requirement not met or insufficient coverage
58
+ - ⚠️ PARTIAL: Some aspects covered but needs improvement
59
+ - N/A: Not applicable to this case
60
+
61
+ 5. **Section Analysis**
62
+
63
+ For each section:
64
+ - think step by step to calculate pass rate
65
+ - Identify common themes in failed items
66
+ - Provide specific recommendations for improvement
67
+ - In interactive mode, discuss findings with user
68
+ - Document any user decisions or explanations
69
+
70
+ 6. **Final Report**
71
+
72
+ Prepare a summary that includes:
73
+ - Overall checklist completion status
74
+ - Pass rates by section
75
+ - List of failed items with context
76
+ - Specific recommendations for improvement
77
+ - Any sections or items marked as N/A with justification
78
+
79
+ ## Checklist Execution Methodology
80
+
81
+ Each checklist now contains embedded LLM prompts and instructions that will:
82
+
83
+ 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
84
+ 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
85
+ 3. **Provide contextual guidance** - Section-specific prompts for better validation
86
+ 4. **Generate comprehensive reports** - Final summary with detailed findings
87
+
88
+ The LLM will:
89
+
90
+ - Execute the complete checklist validation
91
+ - Present a final report with pass/fail rates and key findings
92
+ - Offer to provide detailed analysis of any section, especially those with warnings or failures