@posx/core 5.5.161 → 5.5.166

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 (132) hide show
  1. package/.bmad-core/agent-teams/team-all.yaml +14 -0
  2. package/.bmad-core/agent-teams/team-fullstack.yaml +18 -0
  3. package/.bmad-core/agent-teams/team-ide-minimal.yaml +10 -0
  4. package/.bmad-core/agent-teams/team-no-ui.yaml +13 -0
  5. package/.bmad-core/agents/analyst.md +81 -0
  6. package/.bmad-core/agents/architect.md +83 -0
  7. package/.bmad-core/agents/bmad-master.md +107 -0
  8. package/.bmad-core/agents/bmad-orchestrator.md +149 -0
  9. package/.bmad-core/agents/dev.md +75 -0
  10. package/.bmad-core/agents/pm.md +81 -0
  11. package/.bmad-core/agents/po.md +76 -0
  12. package/.bmad-core/agents/qa.md +69 -0
  13. package/.bmad-core/agents/sm.md +62 -0
  14. package/.bmad-core/agents/ux-expert.md +66 -0
  15. package/.bmad-core/bmad-core/user-guide.md +0 -0
  16. package/.bmad-core/checklists/architect-checklist.md +443 -0
  17. package/.bmad-core/checklists/change-checklist.md +182 -0
  18. package/.bmad-core/checklists/pm-checklist.md +375 -0
  19. package/.bmad-core/checklists/po-master-checklist.md +441 -0
  20. package/.bmad-core/checklists/story-dod-checklist.md +101 -0
  21. package/.bmad-core/checklists/story-draft-checklist.md +156 -0
  22. package/.bmad-core/core-config.yaml +20 -0
  23. package/.bmad-core/data/bmad-kb.md +813 -0
  24. package/.bmad-core/data/brainstorming-techniques.md +36 -0
  25. package/.bmad-core/data/elicitation-methods.md +154 -0
  26. package/.bmad-core/data/technical-preferences.md +3 -0
  27. package/.bmad-core/enhanced-ide-development-workflow.md +43 -0
  28. package/.bmad-core/install-manifest.yaml +207 -0
  29. package/.bmad-core/tasks/advanced-elicitation.md +119 -0
  30. package/.bmad-core/tasks/brownfield-create-epic.md +160 -0
  31. package/.bmad-core/tasks/brownfield-create-story.md +147 -0
  32. package/.bmad-core/tasks/correct-course.md +70 -0
  33. package/.bmad-core/tasks/create-brownfield-story.md +321 -0
  34. package/.bmad-core/tasks/create-deep-research-prompt.md +289 -0
  35. package/.bmad-core/tasks/create-doc.md +101 -0
  36. package/.bmad-core/tasks/create-next-story.md +112 -0
  37. package/.bmad-core/tasks/document-project.md +347 -0
  38. package/.bmad-core/tasks/execute-checklist.md +93 -0
  39. package/.bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  40. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
  41. package/.bmad-core/tasks/index-docs.md +178 -0
  42. package/.bmad-core/tasks/kb-mode-interaction.md +75 -0
  43. package/.bmad-core/tasks/review-story.md +162 -0
  44. package/.bmad-core/tasks/shard-doc.md +187 -0
  45. package/.bmad-core/tasks/validate-next-story.md +134 -0
  46. package/.bmad-core/templates/architecture-tmpl.yaml +650 -0
  47. package/.bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  48. package/.bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  49. package/.bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
  50. package/.bmad-core/templates/competitor-analysis-tmpl.yaml +293 -0
  51. package/.bmad-core/templates/front-end-architecture-tmpl.yaml +206 -0
  52. package/.bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
  53. package/.bmad-core/templates/fullstack-architecture-tmpl.yaml +805 -0
  54. package/.bmad-core/templates/market-research-tmpl.yaml +252 -0
  55. package/.bmad-core/templates/prd-tmpl.yaml +202 -0
  56. package/.bmad-core/templates/project-brief-tmpl.yaml +221 -0
  57. package/.bmad-core/templates/story-tmpl.yaml +137 -0
  58. package/.bmad-core/user-guide.md +251 -0
  59. package/.bmad-core/utils/bmad-doc-template.md +325 -0
  60. package/.bmad-core/utils/workflow-management.md +69 -0
  61. package/.bmad-core/workflows/brownfield-fullstack.yaml +297 -0
  62. package/.bmad-core/workflows/brownfield-service.yaml +187 -0
  63. package/.bmad-core/workflows/brownfield-ui.yaml +197 -0
  64. package/.bmad-core/workflows/greenfield-fullstack.yaml +240 -0
  65. package/.bmad-core/workflows/greenfield-service.yaml +206 -0
  66. package/.bmad-core/workflows/greenfield-ui.yaml +235 -0
  67. package/.bmad-core/working-in-the-brownfield.md +364 -0
  68. package/.claude/commands/BMad/agents/analyst.md +85 -0
  69. package/.claude/commands/BMad/agents/architect.md +87 -0
  70. package/.claude/commands/BMad/agents/bmad-master.md +111 -0
  71. package/.claude/commands/BMad/agents/bmad-orchestrator.md +153 -0
  72. package/.claude/commands/BMad/agents/dev.md +79 -0
  73. package/.claude/commands/BMad/agents/pm.md +85 -0
  74. package/.claude/commands/BMad/agents/po.md +80 -0
  75. package/.claude/commands/BMad/agents/qa.md +73 -0
  76. package/.claude/commands/BMad/agents/sm.md +66 -0
  77. package/.claude/commands/BMad/agents/ux-expert.md +70 -0
  78. package/.claude/commands/BMad/tasks/advanced-elicitation.md +123 -0
  79. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +164 -0
  80. package/.claude/commands/BMad/tasks/brownfield-create-story.md +151 -0
  81. package/.claude/commands/BMad/tasks/correct-course.md +74 -0
  82. package/.claude/commands/BMad/tasks/create-brownfield-story.md +325 -0
  83. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +293 -0
  84. package/.claude/commands/BMad/tasks/create-doc.md +105 -0
  85. package/.claude/commands/BMad/tasks/create-next-story.md +116 -0
  86. package/.claude/commands/BMad/tasks/document-project.md +351 -0
  87. package/.claude/commands/BMad/tasks/execute-checklist.md +97 -0
  88. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +140 -0
  89. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +55 -0
  90. package/.claude/commands/BMad/tasks/index-docs.md +182 -0
  91. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +79 -0
  92. package/.claude/commands/BMad/tasks/review-story.md +166 -0
  93. package/.claude/commands/BMad/tasks/shard-doc.md +191 -0
  94. package/.claude/commands/BMad/tasks/validate-next-story.md +138 -0
  95. package/.cursor/rules/analyst.mdc +95 -0
  96. package/.cursor/rules/architect.mdc +97 -0
  97. package/.cursor/rules/bmad-master.mdc +121 -0
  98. package/.cursor/rules/bmad-orchestrator.mdc +163 -0
  99. package/.cursor/rules/dev.mdc +89 -0
  100. package/.cursor/rules/pm.mdc +95 -0
  101. package/.cursor/rules/po.mdc +90 -0
  102. package/.cursor/rules/qa.mdc +83 -0
  103. package/.cursor/rules/sm.mdc +76 -0
  104. package/.cursor/rules/ux-expert.mdc +80 -0
  105. package/build/index.d.ts +38 -0
  106. package/build/index.js +1 -1
  107. package/package.json +1 -1
  108. package/package.publish.json +2 -2
  109. package/web-bundles/agents/analyst.txt +2882 -0
  110. package/web-bundles/agents/architect.txt +3543 -0
  111. package/web-bundles/agents/bmad-master.txt +8756 -0
  112. package/web-bundles/agents/bmad-orchestrator.txt +1490 -0
  113. package/web-bundles/agents/dev.txt +428 -0
  114. package/web-bundles/agents/pm.txt +2229 -0
  115. package/web-bundles/agents/po.txt +1364 -0
  116. package/web-bundles/agents/qa.txt +386 -0
  117. package/web-bundles/agents/sm.txt +668 -0
  118. package/web-bundles/agents/ux-expert.txt +701 -0
  119. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2408 -0
  120. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1631 -0
  121. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
  122. package/web-bundles/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10989 -0
  123. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -0
  124. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3744 -0
  125. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +465 -0
  126. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +990 -0
  127. package/web-bundles/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15467 -0
  128. package/web-bundles/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2077 -0
  129. package/web-bundles/teams/team-all.txt +11062 -0
  130. package/web-bundles/teams/team-fullstack.txt +10392 -0
  131. package/web-bundles/teams/team-ide-minimal.txt +3507 -0
  132. package/web-bundles/teams/team-no-ui.txt +8951 -0
@@ -0,0 +1,347 @@
1
+ # Document an Existing Project
2
+
3
+ ## Purpose
4
+
5
+ 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.
6
+
7
+ ## Task Instructions
8
+
9
+ ### 1. Initial Project Analysis
10
+
11
+ **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.
12
+
13
+ **IF PRD EXISTS**:
14
+
15
+ - Review the PRD to understand what enhancement/feature is planned
16
+ - Identify which modules, services, or areas will be affected
17
+ - Focus documentation ONLY on these relevant areas
18
+ - Skip unrelated parts of the codebase to keep docs lean
19
+
20
+ **IF NO PRD EXISTS**:
21
+ Ask the user:
22
+
23
+ "I notice you haven't provided a PRD or requirements document. To create more focused and useful documentation, I recommend one of these options:
24
+
25
+ 1. **Create a PRD first** - Would you like me to help create a brownfield PRD before documenting? This helps focus documentation on relevant areas.
26
+
27
+ 2. **Provide existing requirements** - Do you have a requirements document, epic, or feature description you can share?
28
+
29
+ 3. **Describe the focus** - Can you briefly describe what enhancement or feature you're planning? For example:
30
+
31
+ - 'Adding payment processing to the user service'
32
+ - 'Refactoring the authentication module'
33
+ - 'Integrating with a new third-party API'
34
+
35
+ 4. **Document everything** - Or should I proceed with comprehensive documentation of the entire codebase? (Note: This may create excessive documentation for large projects)
36
+
37
+ Please let me know your preference, or I can proceed with full documentation if you prefer."
38
+
39
+ Based on their response:
40
+
41
+ - If they choose option 1-3: Use that context to focus documentation
42
+ - If they choose option 4 or decline: Proceed with comprehensive analysis below
43
+
44
+ Begin by conducting analysis of the existing project. Use available tools to:
45
+
46
+ 1. **Project Structure Discovery**: Examine the root directory structure, identify main folders, and understand the overall organization
47
+ 2. **Technology Stack Identification**: Look for package.json, requirements.txt, Cargo.toml, pom.xml, etc. to identify languages, frameworks, and dependencies
48
+ 3. **Build System Analysis**: Find build scripts, CI/CD configurations, and development commands
49
+ 4. **Existing Documentation Review**: Check for README files, docs folders, and any existing documentation
50
+ 5. **Code Pattern Analysis**: Sample key files to understand coding patterns, naming conventions, and architectural approaches
51
+
52
+ Ask the user these elicitation questions to better understand their needs:
53
+
54
+ - What is the primary purpose of this project?
55
+ - Are there any specific areas of the codebase that are particularly complex or important for agents to understand?
56
+ - What types of tasks do you expect AI agents to perform on this project? (e.g., bug fixes, feature additions, refactoring, testing)
57
+ - Are there any existing documentation standards or formats you prefer?
58
+ - What level of technical detail should the documentation target? (junior developers, senior developers, mixed team)
59
+ - Is there a specific feature or enhancement you're planning? (This helps focus documentation)
60
+
61
+ ### 2. Deep Codebase Analysis
62
+
63
+ CRITICAL: Before generating documentation, conduct extensive analysis of the existing codebase:
64
+
65
+ 1. **Explore Key Areas**:
66
+
67
+ - Entry points (main files, index files, app initializers)
68
+ - Configuration files and environment setup
69
+ - Package dependencies and versions
70
+ - Build and deployment configurations
71
+ - Test suites and coverage
72
+
73
+ 2. **Ask Clarifying Questions**:
74
+
75
+ - "I see you're using [technology X]. Are there any custom patterns or conventions I should document?"
76
+ - "What are the most critical/complex parts of this system that developers struggle with?"
77
+ - "Are there any undocumented 'tribal knowledge' areas I should capture?"
78
+ - "What technical debt or known issues should I document?"
79
+ - "Which parts of the codebase change most frequently?"
80
+
81
+ 3. **Map the Reality**:
82
+ - Identify ACTUAL patterns used (not theoretical best practices)
83
+ - Find where key business logic lives
84
+ - Locate integration points and external dependencies
85
+ - Document workarounds and technical debt
86
+ - Note areas that differ from standard patterns
87
+
88
+ **IF PRD PROVIDED**: Also analyze what would need to change for the enhancement
89
+
90
+ ### 3. Core Documentation Generation
91
+
92
+ [[LLM: Generate a comprehensive BROWNFIELD architecture document that reflects the ACTUAL state of the codebase.
93
+
94
+ **CRITICAL**: This is NOT an aspirational architecture document. Document what EXISTS, including:
95
+
96
+ - Technical debt and workarounds
97
+ - Inconsistent patterns between different parts
98
+ - Legacy code that can't be changed
99
+ - Integration constraints
100
+ - Performance bottlenecks
101
+
102
+ **Document Structure**:
103
+
104
+ # [Project Name] Brownfield Architecture Document
105
+
106
+ ## Introduction
107
+
108
+ 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.
109
+
110
+ ### Document Scope
111
+
112
+ [If PRD provided: "Focused on areas relevant to: {enhancement description}"]
113
+ [If no PRD: "Comprehensive documentation of entire system"]
114
+
115
+ ### Change Log
116
+
117
+ | Date | Version | Description | Author |
118
+ | ------ | ------- | --------------------------- | --------- |
119
+ | [Date] | 1.0 | Initial brownfield analysis | [Analyst] |
120
+
121
+ ## Quick Reference - Key Files and Entry Points
122
+
123
+ ### Critical Files for Understanding the System
124
+
125
+ - **Main Entry**: `src/index.js` (or actual entry point)
126
+ - **Configuration**: `config/app.config.js`, `.env.example`
127
+ - **Core Business Logic**: `src/services/`, `src/domain/`
128
+ - **API Definitions**: `src/routes/` or link to OpenAPI spec
129
+ - **Database Models**: `src/models/` or link to schema files
130
+ - **Key Algorithms**: [List specific files with complex logic]
131
+
132
+ ### If PRD Provided - Enhancement Impact Areas
133
+
134
+ [Highlight which files/modules will be affected by the planned enhancement]
135
+
136
+ ## High Level Architecture
137
+
138
+ ### Technical Summary
139
+
140
+ ### Actual Tech Stack (from package.json/requirements.txt)
141
+
142
+ | Category | Technology | Version | Notes |
143
+ | --------- | ---------- | ------- | -------------------------- |
144
+ | Runtime | Node.js | 16.x | [Any constraints] |
145
+ | Framework | Express | 4.18.2 | [Custom middleware?] |
146
+ | Database | PostgreSQL | 13 | [Connection pooling setup] |
147
+
148
+ etc...
149
+
150
+ ### Repository Structure Reality Check
151
+
152
+ - Type: [Monorepo/Polyrepo/Hybrid]
153
+ - Package Manager: [npm/yarn/pnpm]
154
+ - Notable: [Any unusual structure decisions]
155
+
156
+ ## Source Tree and Module Organization
157
+
158
+ ### Project Structure (Actual)
159
+
160
+ ```text
161
+ project-root/
162
+ ├── src/
163
+ │ ├── controllers/ # HTTP request handlers
164
+ │ ├── services/ # Business logic (NOTE: inconsistent patterns between user and payment services)
165
+ │ ├── models/ # Database models (Sequelize)
166
+ │ ├── utils/ # Mixed bag - needs refactoring
167
+ │ └── legacy/ # DO NOT MODIFY - old payment system still in use
168
+ ├── tests/ # Jest tests (60% coverage)
169
+ ├── scripts/ # Build and deployment scripts
170
+ └── config/ # Environment configs
171
+ ```
172
+
173
+ ### Key Modules and Their Purpose
174
+
175
+ - **User Management**: `src/services/userService.js` - Handles all user operations
176
+ - **Authentication**: `src/middleware/auth.js` - JWT-based, custom implementation
177
+ - **Payment Processing**: `src/legacy/payment.js` - CRITICAL: Do not refactor, tightly coupled
178
+ - **[List other key modules with their actual files]**
179
+
180
+ ## Data Models and APIs
181
+
182
+ ### Data Models
183
+
184
+ Instead of duplicating, reference actual model files:
185
+
186
+ - **User Model**: See `src/models/User.js`
187
+ - **Order Model**: See `src/models/Order.js`
188
+ - **Related Types**: TypeScript definitions in `src/types/`
189
+
190
+ ### API Specifications
191
+
192
+ - **OpenAPI Spec**: `docs/api/openapi.yaml` (if exists)
193
+ - **Postman Collection**: `docs/api/postman-collection.json`
194
+ - **Manual Endpoints**: [List any undocumented endpoints discovered]
195
+
196
+ ## Technical Debt and Known Issues
197
+
198
+ ### Critical Technical Debt
199
+
200
+ 1. **Payment Service**: Legacy code in `src/legacy/payment.js` - tightly coupled, no tests
201
+ 2. **User Service**: Different pattern than other services, uses callbacks instead of promises
202
+ 3. **Database Migrations**: Manually tracked, no proper migration tool
203
+ 4. **[Other significant debt]**
204
+
205
+ ### Workarounds and Gotchas
206
+
207
+ - **Environment Variables**: Must set `NODE_ENV=production` even for staging (historical reason)
208
+ - **Database Connections**: Connection pool hardcoded to 10, changing breaks payment service
209
+ - **[Other workarounds developers need to know]**
210
+
211
+ ## Integration Points and External Dependencies
212
+
213
+ ### External Services
214
+
215
+ | Service | Purpose | Integration Type | Key Files |
216
+ | -------- | -------- | ---------------- | ------------------------------ |
217
+ | Stripe | Payments | REST API | `src/integrations/stripe/` |
218
+ | SendGrid | Emails | SDK | `src/services/emailService.js` |
219
+
220
+ etc...
221
+
222
+ ### Internal Integration Points
223
+
224
+ - **Frontend Communication**: REST API on port 3000, expects specific headers
225
+ - **Background Jobs**: Redis queue, see `src/workers/`
226
+ - **[Other integrations]**
227
+
228
+ ## Development and Deployment
229
+
230
+ ### Local Development Setup
231
+
232
+ 1. Actual steps that work (not ideal steps)
233
+ 2. Known issues with setup
234
+ 3. Required environment variables (see `.env.example`)
235
+
236
+ ### Build and Deployment Process
237
+
238
+ - **Build Command**: `npm run build` (webpack config in `webpack.config.js`)
239
+ - **Deployment**: Manual deployment via `scripts/deploy.sh`
240
+ - **Environments**: Dev, Staging, Prod (see `config/environments/`)
241
+
242
+ ## Testing Reality
243
+
244
+ ### Current Test Coverage
245
+
246
+ - Unit Tests: 60% coverage (Jest)
247
+ - Integration Tests: Minimal, in `tests/integration/`
248
+ - E2E Tests: None
249
+ - Manual Testing: Primary QA method
250
+
251
+ ### Running Tests
252
+
253
+ ```bash
254
+ npm test # Runs unit tests
255
+ npm run test:integration # Runs integration tests (requires local DB)
256
+ ```
257
+
258
+ ## If Enhancement PRD Provided - Impact Analysis
259
+
260
+ ### Files That Will Need Modification
261
+
262
+ Based on the enhancement requirements, these files will be affected:
263
+
264
+ - `src/services/userService.js` - Add new user fields
265
+ - `src/models/User.js` - Update schema
266
+ - `src/routes/userRoutes.js` - New endpoints
267
+ - [etc...]
268
+
269
+ ### New Files/Modules Needed
270
+
271
+ - `src/services/newFeatureService.js` - New business logic
272
+ - `src/models/NewFeature.js` - New data model
273
+ - [etc...]
274
+
275
+ ### Integration Considerations
276
+
277
+ - Will need to integrate with existing auth middleware
278
+ - Must follow existing response format in `src/utils/responseFormatter.js`
279
+ - [Other integration points]
280
+
281
+ ## Appendix - Useful Commands and Scripts
282
+
283
+ ### Frequently Used Commands
284
+
285
+ ```bash
286
+ npm run dev # Start development server
287
+ npm run build # Production build
288
+ npm run migrate # Run database migrations
289
+ npm run seed # Seed test data
290
+ ```
291
+
292
+ ### Debugging and Troubleshooting
293
+
294
+ - **Logs**: Check `logs/app.log` for application logs
295
+ - **Debug Mode**: Set `DEBUG=app:*` for verbose logging
296
+ - **Common Issues**: See `docs/troubleshooting.md`]]
297
+
298
+ ### 4. Document Delivery
299
+
300
+ 1. **In Web UI (Gemini, ChatGPT, Claude)**:
301
+
302
+ - Present the entire document in one response (or multiple if too long)
303
+ - Tell user to copy and save as `docs/brownfield-architecture.md` or `docs/project-architecture.md`
304
+ - Mention it can be sharded later in IDE if needed
305
+
306
+ 2. **In IDE Environment**:
307
+ - Create the document as `docs/brownfield-architecture.md`
308
+ - Inform user this single document contains all architectural information
309
+ - Can be sharded later using PO agent if desired
310
+
311
+ The document should be comprehensive enough that future agents can understand:
312
+
313
+ - The actual state of the system (not idealized)
314
+ - Where to find key files and logic
315
+ - What technical debt exists
316
+ - What constraints must be respected
317
+ - If PRD provided: What needs to change for the enhancement]]
318
+
319
+ ### 5. Quality Assurance
320
+
321
+ CRITICAL: Before finalizing the document:
322
+
323
+ 1. **Accuracy Check**: Verify all technical details match the actual codebase
324
+ 2. **Completeness Review**: Ensure all major system components are documented
325
+ 3. **Focus Validation**: If user provided scope, verify relevant areas are emphasized
326
+ 4. **Clarity Assessment**: Check that explanations are clear for AI agents
327
+ 5. **Navigation**: Ensure document has clear section structure for easy reference
328
+
329
+ Apply the advanced elicitation task after major sections to refine based on user feedback.
330
+
331
+ ## Success Criteria
332
+
333
+ - Single comprehensive brownfield architecture document created
334
+ - Document reflects REALITY including technical debt and workarounds
335
+ - Key files and modules are referenced with actual paths
336
+ - Models/APIs reference source files rather than duplicating content
337
+ - If PRD provided: Clear impact analysis showing what needs to change
338
+ - Document enables AI agents to navigate and understand the actual codebase
339
+ - Technical constraints and "gotchas" are clearly documented
340
+
341
+ ## Notes
342
+
343
+ - This task creates ONE document that captures the TRUE state of the system
344
+ - References actual files rather than duplicating content when possible
345
+ - Documents technical debt, workarounds, and constraints honestly
346
+ - For brownfield projects with PRD: Provides clear enhancement impact analysis
347
+ - The goal is PRACTICAL documentation for AI agents doing real work
@@ -0,0 +1,93 @@
1
+ # Checklist Validation Task
2
+
3
+ This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
4
+
5
+ ## Available Checklists
6
+
7
+ 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.
8
+
9
+ ## Instructions
10
+
11
+ 1. **Initial Assessment**
12
+
13
+ - If user or the task being run provides a checklist name:
14
+ - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
15
+ - If multiple matches found, ask user to clarify
16
+ - Load the appropriate checklist from .bmad-core/checklists/
17
+ - If no checklist specified:
18
+ - Ask the user which checklist they want to use
19
+ - Present the available options from the files in the checklists folder
20
+ - Confirm if they want to work through the checklist:
21
+ - Section by section (interactive mode - very time consuming)
22
+ - All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
23
+
24
+ 2. **Document and Artifact Gathering**
25
+
26
+ - Each checklist will specify its required documents/artifacts at the beginning
27
+ - 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.
28
+
29
+ 3. **Checklist Processing**
30
+
31
+ If in interactive mode:
32
+
33
+ - Work through each section of the checklist one at a time
34
+ - For each section:
35
+ - Review all items in the section following instructions for that section embedded in the checklist
36
+ - Check each item against the relevant documentation or artifacts as appropriate
37
+ - Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
38
+ - Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
39
+
40
+ If in YOLO mode:
41
+
42
+ - Process all sections at once
43
+ - Create a comprehensive report of all findings
44
+ - Present the complete analysis to the user
45
+
46
+ 4. **Validation Approach**
47
+
48
+ For each checklist item:
49
+
50
+ - Read and understand the requirement
51
+ - Look for evidence in the documentation that satisfies the requirement
52
+ - Consider both explicit mentions and implicit coverage
53
+ - Aside from this, follow all checklist llm instructions
54
+ - Mark items as:
55
+ - ✅ PASS: Requirement clearly met
56
+ - ❌ FAIL: Requirement not met or insufficient coverage
57
+ - ⚠️ PARTIAL: Some aspects covered but needs improvement
58
+ - N/A: Not applicable to this case
59
+
60
+ 5. **Section Analysis**
61
+
62
+ For each section:
63
+
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
+
74
+ - Overall checklist completion status
75
+ - Pass rates by section
76
+ - List of failed items with context
77
+ - Specific recommendations for improvement
78
+ - Any sections or items marked as N/A with justification
79
+
80
+ ## Checklist Execution Methodology
81
+
82
+ Each checklist now contains embedded LLM prompts and instructions that will:
83
+
84
+ 1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
85
+ 2. **Request specific artifacts** - Clear instructions on what documents/access is needed
86
+ 3. **Provide contextual guidance** - Section-specific prompts for better validation
87
+ 4. **Generate comprehensive reports** - Final summary with detailed findings
88
+
89
+ The LLM will:
90
+
91
+ - Execute the complete checklist validation
92
+ - Present a final report with pass/fail rates and key findings
93
+ - Offer to provide detailed analysis of any section, especially those with warnings or failures
@@ -0,0 +1,136 @@
1
+ ---
2
+ docOutputLocation: docs/brainstorming-session-results.md
3
+ template: ".bmad-core/templates/brainstorming-output-tmpl.yaml"
4
+ ---
5
+
6
+ # Facilitate Brainstorming Session Task
7
+
8
+ Facilitate interactive brainstorming sessions with users. Be creative and adaptive in applying techniques.
9
+
10
+ ## Process
11
+
12
+ ### Step 1: Session Setup
13
+
14
+ Ask 4 context questions (don't preview what happens next):
15
+
16
+ 1. What are we brainstorming about?
17
+ 2. Any constraints or parameters?
18
+ 3. Goal: broad exploration or focused ideation?
19
+ 4. Do you want a structured document output to reference later? (Default Yes)
20
+
21
+ ### Step 2: Present Approach Options
22
+
23
+ After getting answers to Step 1, present 4 approach options (numbered):
24
+
25
+ 1. User selects specific techniques
26
+ 2. Analyst recommends techniques based on context
27
+ 3. Random technique selection for creative variety
28
+ 4. Progressive technique flow (start broad, narrow down)
29
+
30
+ ### Step 3: Execute Techniques Interactively
31
+
32
+ **KEY PRINCIPLES:**
33
+
34
+ - **FACILITATOR ROLE**: Guide user to generate their own ideas through questions, prompts, and examples
35
+ - **CONTINUOUS ENGAGEMENT**: Keep user engaged with chosen technique until they want to switch or are satisfied
36
+ - **CAPTURE OUTPUT**: If (default) document output requested, capture all ideas generated in each technique section to the document from the beginning.
37
+
38
+ **Technique Selection:**
39
+ If user selects Option 1, present numbered list of techniques from the brainstorming-techniques data file. User can select by number..
40
+
41
+ **Technique Execution:**
42
+
43
+ 1. Apply selected technique according to data file description
44
+ 2. Keep engaging with technique until user indicates they want to:
45
+ - Choose a different technique
46
+ - Apply current ideas to a new technique
47
+ - Move to convergent phase
48
+ - End session
49
+
50
+ **Output Capture (if requested):**
51
+ For each technique used, capture:
52
+
53
+ - Technique name and duration
54
+ - Key ideas generated by user
55
+ - Insights and patterns identified
56
+ - User's reflections on the process
57
+
58
+ ### Step 4: Session Flow
59
+
60
+ 1. **Warm-up** (5-10 min) - Build creative confidence
61
+ 2. **Divergent** (20-30 min) - Generate quantity over quality
62
+ 3. **Convergent** (15-20 min) - Group and categorize ideas
63
+ 4. **Synthesis** (10-15 min) - Refine and develop concepts
64
+
65
+ ### Step 5: Document Output (if requested)
66
+
67
+ Generate structured document with these sections:
68
+
69
+ **Executive Summary**
70
+
71
+ - Session topic and goals
72
+ - Techniques used and duration
73
+ - Total ideas generated
74
+ - Key themes and patterns identified
75
+
76
+ **Technique Sections** (for each technique used)
77
+
78
+ - Technique name and description
79
+ - Ideas generated (user's own words)
80
+ - Insights discovered
81
+ - Notable connections or patterns
82
+
83
+ **Idea Categorization**
84
+
85
+ - **Immediate Opportunities** - Ready to implement now
86
+ - **Future Innovations** - Requires development/research
87
+ - **Moonshots** - Ambitious, transformative concepts
88
+ - **Insights & Learnings** - Key realizations from session
89
+
90
+ **Action Planning**
91
+
92
+ - Top 3 priority ideas with rationale
93
+ - Next steps for each priority
94
+ - Resources/research needed
95
+ - Timeline considerations
96
+
97
+ **Reflection & Follow-up**
98
+
99
+ - What worked well in this session
100
+ - Areas for further exploration
101
+ - Recommended follow-up techniques
102
+ - Questions that emerged for future sessions
103
+
104
+ ## Key Principles
105
+
106
+ - **YOU ARE A FACILITATOR**: Guide the user to brainstorm, don't brainstorm for them (unless they request it persistently)
107
+ - **INTERACTIVE DIALOGUE**: Ask questions, wait for responses, build on their ideas
108
+ - **ONE TECHNIQUE AT A TIME**: Don't mix multiple techniques in one response
109
+ - **CONTINUOUS ENGAGEMENT**: Stay with one technique until user wants to switch
110
+ - **DRAW IDEAS OUT**: Use prompts and examples to help them generate their own ideas
111
+ - **REAL-TIME ADAPTATION**: Monitor engagement and adjust approach as needed
112
+ - Maintain energy and momentum
113
+ - Defer judgment during generation
114
+ - Quantity leads to quality (aim for 100 ideas in 60 minutes)
115
+ - Build on ideas collaboratively
116
+ - Document everything in output document
117
+
118
+ ## Advanced Engagement Strategies
119
+
120
+ **Energy Management**
121
+
122
+ - Check engagement levels: "How are you feeling about this direction?"
123
+ - Offer breaks or technique switches if energy flags
124
+ - Use encouraging language and celebrate idea generation
125
+
126
+ **Depth vs. Breadth**
127
+
128
+ - Ask follow-up questions to deepen ideas: "Tell me more about that..."
129
+ - Use "Yes, and..." to build on their ideas
130
+ - Help them make connections: "How does this relate to your earlier idea about...?"
131
+
132
+ **Transition Management**
133
+
134
+ - Always ask before switching techniques: "Ready to try a different approach?"
135
+ - Offer options: "Should we explore this idea deeper or generate more alternatives?"
136
+ - Respect their process and timing
@@ -0,0 +1,51 @@
1
+ # Create AI Frontend Prompt Task
2
+
3
+ ## Purpose
4
+
5
+ To generate a masterful, comprehensive, and optimized prompt that can be used with any AI-driven frontend development tool (e.g., Vercel v0, Lovable.ai, or similar) to scaffold or generate significant portions of a frontend application.
6
+
7
+ ## Inputs
8
+
9
+ - Completed UI/UX Specification (`front-end-spec.md`)
10
+ - Completed Frontend Architecture Document (`front-end-architecture`) or a full stack combined architecture such as `architecture.md`
11
+ - Main System Architecture Document (`architecture` - for API contracts and tech stack to give further context)
12
+
13
+ ## Key Activities & Instructions
14
+
15
+ ### 1. Core Prompting Principles
16
+
17
+ Before generating the prompt, you must understand these core principles for interacting with a generative AI for code.
18
+
19
+ - **Be Explicit and Detailed**: The AI cannot read your mind. Provide as much detail and context as possible. Vague requests lead to generic or incorrect outputs.
20
+ - **Iterate, Don't Expect Perfection**: Generating an entire complex application in one go is rare. The most effective method is to prompt for one component or one section at a time, then build upon the results.
21
+ - **Provide Context First**: Always start by providing the AI with the necessary context, such as the tech stack, existing code snippets, and overall project goals.
22
+ - **Mobile-First Approach**: Frame all UI generation requests with a mobile-first design mindset. Describe the mobile layout first, then provide separate instructions for how it should adapt for tablet and desktop.
23
+
24
+ ### 2. The Structured Prompting Framework
25
+
26
+ To ensure the highest quality output, you MUST structure every prompt using the following four-part framework.
27
+
28
+ 1. **High-Level Goal**: Start with a clear, concise summary of the overall objective. This orients the AI on the primary task.
29
+ - _Example: "Create a responsive user registration form with client-side validation and API integration."_
30
+ 2. **Detailed, Step-by-Step Instructions**: Provide a granular, numbered list of actions the AI should take. Break down complex tasks into smaller, sequential steps. This is the most critical part of the prompt.
31
+ - _Example: "1. Create a new file named `RegistrationForm.js`. 2. Use React hooks for state management. 3. Add styled input fields for 'Name', 'Email', and 'Password'. 4. For the email field, ensure it is a valid email format. 5. On submission, call the API endpoint defined below."_
32
+ 3. **Code Examples, Data Structures & Constraints**: Include any relevant snippets of existing code, data structures, or API contracts. This gives the AI concrete examples to work with. Crucially, you must also state what _not_ to do.
33
+ - _Example: "Use this API endpoint: `POST /api/register`. The expected JSON payload is `{ "name": "string", "email": "string", "password": "string" }`. Do NOT include a 'confirm password' field. Use Tailwind CSS for all styling."_
34
+ 4. **Define a Strict Scope**: Explicitly define the boundaries of the task. Tell the AI which files it can modify and, more importantly, which files to leave untouched to prevent unintended changes across the codebase.
35
+ - _Example: "You should only create the `RegistrationForm.js` component and add it to the `pages/register.js` file. Do NOT alter the `Navbar.js` component or any other existing page or component."_
36
+
37
+ ### 3. Assembling the Master Prompt
38
+
39
+ You will now synthesize the inputs and the above principles into a final, comprehensive prompt.
40
+
41
+ 1. **Gather Foundational Context**:
42
+ - Start the prompt with a preamble describing the overall project purpose, the full tech stack (e.g., Next.js, TypeScript, Tailwind CSS), and the primary UI component library being used.
43
+ 2. **Describe the Visuals**:
44
+ - If the user has design files (Figma, etc.), instruct them to provide links or screenshots.
45
+ - If not, describe the visual style: color palette, typography, spacing, and overall aesthetic (e.g., "minimalist", "corporate", "playful").
46
+ 3. **Build the Prompt using the Structured Framework**:
47
+ - Follow the four-part framework from Section 2 to build out the core request, whether it's for a single component or a full page.
48
+ 4. **Present and Refine**:
49
+ - Output the complete, generated prompt in a clear, copy-pasteable format (e.g., a large code block).
50
+ - Explain the structure of the prompt and why certain information was included, referencing the principles above.
51
+ - <important_note>Conclude by reminding the user that all AI-generated code will require careful human review, testing, and refinement to be considered production-ready.</important_note>