appiq-solution 1.4.2 → 1.4.4

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 (94) hide show
  1. package/#Tools/APPIQ-METHOD/.cursor/commands/analyze.md +1 -1
  2. package/#Tools/APPIQ-METHOD/.cursor/commands/appiq.md +1 -1
  3. package/#Tools/APPIQ-METHOD/.cursor/commands/help.md +1 -1
  4. package/#Tools/APPIQ-METHOD/.cursor/commands/story.md +1 -1
  5. package/#Tools/APPIQ-METHOD/bmad-core/agents/init-flow-po.md +219 -0
  6. package/#Tools/APPIQ-METHOD/commands/analyze.md +1 -1
  7. package/#Tools/APPIQ-METHOD/commands/appiq.md +1 -1
  8. package/#Tools/APPIQ-METHOD/commands/help.md +1 -1
  9. package/#Tools/APPIQ-METHOD/commands/story.md +1 -1
  10. package/#Tools/APPIQ-METHOD/package.json +1 -1
  11. package/#Tools/APPIQ-METHOD/tools/appiq-installer.js +196 -104
  12. package/#Tools/APPIQ-METHOD/tools/cli.js +1 -1
  13. package/#Tools/APPIQ-METHOD/tools/setup-ide-commands.js +40 -37
  14. package/#Tools/APPIQ-METHOD/tools/smart-installer.js +16 -13
  15. package/bmad-core/agent-teams/team-all.yaml +14 -0
  16. package/bmad-core/agent-teams/team-flutter-mobile.yaml +114 -0
  17. package/bmad-core/agent-teams/team-fullstack.yaml +28 -0
  18. package/bmad-core/agent-teams/team-ide-minimal.yaml +10 -0
  19. package/bmad-core/agent-teams/team-no-ui.yaml +13 -0
  20. package/bmad-core/agents/analyst.md +85 -0
  21. package/bmad-core/agents/architect.md +90 -0
  22. package/bmad-core/agents/bmad-master.md +108 -0
  23. package/bmad-core/agents/bmad-orchestrator.md +150 -0
  24. package/bmad-core/agents/bmad-smart-launcher.md +170 -0
  25. package/bmad-core/agents/dev.md +95 -0
  26. package/bmad-core/agents/init-flow-po.md +219 -0
  27. package/bmad-core/agents/pm.md +85 -0
  28. package/bmad-core/agents/po.md +76 -0
  29. package/bmad-core/agents/qa.md +86 -0
  30. package/bmad-core/agents/sm.md +67 -0
  31. package/bmad-core/agents/ux-expert.md +71 -0
  32. package/bmad-core/bmad-core/user-guide.md +0 -0
  33. package/bmad-core/checklists/architect-checklist.md +443 -0
  34. package/bmad-core/checklists/change-checklist.md +182 -0
  35. package/bmad-core/checklists/pm-checklist.md +375 -0
  36. package/bmad-core/checklists/po-master-checklist.md +441 -0
  37. package/bmad-core/checklists/security-validation-checklist.md +332 -0
  38. package/bmad-core/checklists/story-dod-checklist.md +101 -0
  39. package/bmad-core/checklists/story-draft-checklist.md +156 -0
  40. package/bmad-core/core-config.yaml +20 -0
  41. package/bmad-core/core-config.yaml.bak +20 -0
  42. package/bmad-core/data/backend-services-integration.md +686 -0
  43. package/bmad-core/data/bmad-kb.md +803 -0
  44. package/bmad-core/data/brainstorming-techniques.md +36 -0
  45. package/bmad-core/data/elicitation-methods.md +134 -0
  46. package/bmad-core/data/shadcn-ui-integration.md +388 -0
  47. package/bmad-core/data/technical-preferences.md +149 -0
  48. package/bmad-core/enhanced-ide-development-workflow.md +43 -0
  49. package/bmad-core/tasks/advanced-elicitation.md +117 -0
  50. package/bmad-core/tasks/brownfield-create-epic.md +160 -0
  51. package/bmad-core/tasks/brownfield-create-story.md +147 -0
  52. package/bmad-core/tasks/correct-course.md +70 -0
  53. package/bmad-core/tasks/create-brownfield-story.md +304 -0
  54. package/bmad-core/tasks/create-deep-research-prompt.md +289 -0
  55. package/bmad-core/tasks/create-flutter-story.md +197 -0
  56. package/bmad-core/tasks/create-next-story.md +112 -0
  57. package/bmad-core/tasks/document-project.md +341 -0
  58. package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  59. package/bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
  60. package/bmad-core/tasks/index-docs.md +179 -0
  61. package/bmad-core/tasks/intelligent-epic-creation.md +234 -0
  62. package/bmad-core/tasks/kb-mode-interaction.md +75 -0
  63. package/bmad-core/tasks/review-story.md +145 -0
  64. package/bmad-core/tasks/shard-doc.md +187 -0
  65. package/bmad-core/tasks/smart-project-analysis.md +289 -0
  66. package/bmad-core/tasks/validate-next-story.md +134 -0
  67. package/bmad-core/templates/architecture-tmpl.yaml +650 -0
  68. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  69. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
  70. package/bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
  71. package/bmad-core/templates/competitor-analysis-tmpl.yaml +293 -0
  72. package/bmad-core/templates/flutter-mobile-prd-tmpl.yaml +330 -0
  73. package/bmad-core/templates/flutter-story-tmpl.yaml +376 -0
  74. package/bmad-core/templates/flutter-ui-spec-tmpl.yaml +415 -0
  75. package/bmad-core/templates/front-end-architecture-tmpl.yaml +206 -0
  76. package/bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
  77. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +812 -0
  78. package/bmad-core/templates/market-research-tmpl.yaml +252 -0
  79. package/bmad-core/templates/prd-tmpl.yaml +202 -0
  80. package/bmad-core/templates/project-brief-tmpl.yaml +221 -0
  81. package/bmad-core/templates/story-tmpl.yaml +137 -0
  82. package/bmad-core/user-guide.md +251 -0
  83. package/bmad-core/workflows/brownfield-fullstack.yaml +311 -0
  84. package/bmad-core/workflows/brownfield-service.yaml +187 -0
  85. package/bmad-core/workflows/brownfield-ui.yaml +197 -0
  86. package/bmad-core/workflows/greenfield-fullstack.yaml +284 -0
  87. package/bmad-core/workflows/greenfield-service.yaml +206 -0
  88. package/bmad-core/workflows/greenfield-ui.yaml +235 -0
  89. package/bmad-core/working-in-the-brownfield.md +373 -0
  90. package/package.json +1 -1
  91. package/tools/appiq-installer.js +196 -104
  92. package/tools/cli.js +1 -1
  93. package/tools/setup-ide-commands.js +40 -37
  94. package/tools/smart-installer.js +16 -13
@@ -0,0 +1,136 @@
1
+ ---
2
+ docOutputLocation: docs/brainstorming-session-results.md
3
+ template: "{root}/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>
@@ -0,0 +1,179 @@
1
+ # Index Documentation Task
2
+
3
+ ## Purpose
4
+
5
+ This task maintains the integrity and completeness of the `docs/index.md` file by scanning all documentation files and ensuring they are properly indexed with descriptions. It handles both root-level documents and documents within subfolders, organizing them hierarchically.
6
+
7
+ ## Task Instructions
8
+
9
+ You are now operating as a Documentation Indexer. Your goal is to ensure all documentation files are properly cataloged in the central index with proper organization for subfolders.
10
+
11
+ ### Required Steps
12
+
13
+ 1. First, locate and scan:
14
+
15
+ - The `docs/` directory and all subdirectories
16
+ - The existing `docs/index.md` file (create if absent)
17
+ - All markdown (`.md`) and text (`.txt`) files in the documentation structure
18
+ - Note the folder structure for hierarchical organization
19
+
20
+ 2. For the existing `docs/index.md`:
21
+
22
+ - Parse current entries
23
+ - Note existing file references and descriptions
24
+ - Identify any broken links or missing files
25
+ - Keep track of already-indexed content
26
+ - Preserve existing folder sections
27
+
28
+ 3. For each documentation file found:
29
+
30
+ - Extract the title (from first heading or filename)
31
+ - Generate a brief description by analyzing the content
32
+ - Create a relative markdown link to the file
33
+ - Check if it's already in the index
34
+ - Note which folder it belongs to (if in a subfolder)
35
+ - If missing or outdated, prepare an update
36
+
37
+ 4. For any missing or non-existent files found in index:
38
+
39
+ - Present a list of all entries that reference non-existent files
40
+ - For each entry:
41
+ - Show the full entry details (title, path, description)
42
+ - Ask for explicit confirmation before removal
43
+ - Provide option to update the path if file was moved
44
+ - Log the decision (remove/update/keep) for final report
45
+
46
+ 5. Update `docs/index.md`:
47
+ - Maintain existing structure and organization
48
+ - Create level 2 sections (`##`) for each subfolder
49
+ - List root-level documents first
50
+ - Add missing entries with descriptions
51
+ - Update outdated entries
52
+ - Remove only entries that were confirmed for removal
53
+ - Ensure consistent formatting throughout
54
+
55
+ ### Index Structure Format
56
+
57
+ The index should be organized as follows:
58
+
59
+ ```markdown
60
+ # Documentation Index
61
+
62
+ ## Root Documents
63
+
64
+ ### [Document Title](./document.md)
65
+
66
+ Brief description of the document's purpose and contents.
67
+
68
+ ### [Another Document](./another.md)
69
+
70
+ Description here.
71
+
72
+ ## Folder Name
73
+
74
+ Documents within the `folder-name/` directory:
75
+
76
+ ### [Document in Folder](./folder-name/document.md)
77
+
78
+ Description of this document.
79
+
80
+ ### [Another in Folder](./folder-name/another.md)
81
+
82
+ Description here.
83
+
84
+ ## Another Folder
85
+
86
+ Documents within the `another-folder/` directory:
87
+
88
+ ### [Nested Document](./another-folder/document.md)
89
+
90
+ Description of nested document.
91
+
92
+ ```
93
+
94
+ ### Index Entry Format
95
+
96
+ Each entry should follow this format:
97
+
98
+ ```markdown
99
+ ### [Document Title](relative/path/to/file.md)
100
+
101
+ Brief description of the document's purpose and contents.
102
+ ```
103
+
104
+ ### Rules of Operation
105
+
106
+ 1. NEVER modify the content of indexed files
107
+ 2. Preserve existing descriptions in index.md when they are adequate
108
+ 3. Maintain any existing categorization or grouping in the index
109
+ 4. Use relative paths for all links (starting with `./`)
110
+ 5. Ensure descriptions are concise but informative
111
+ 6. NEVER remove entries without explicit confirmation
112
+ 7. Report any broken links or inconsistencies found
113
+ 8. Allow path updates for moved files before considering removal
114
+ 9. Create folder sections using level 2 headings (`##`)
115
+ 10. Sort folders alphabetically, with root documents listed first
116
+ 11. Within each section, sort documents alphabetically by title
117
+
118
+ ### Process Output
119
+
120
+ The task will provide:
121
+
122
+ 1. A summary of changes made to index.md
123
+ 2. List of newly indexed files (organized by folder)
124
+ 3. List of updated entries
125
+ 4. List of entries presented for removal and their status:
126
+ - Confirmed removals
127
+ - Updated paths
128
+ - Kept despite missing file
129
+ 5. Any new folders discovered
130
+ 6. Any other issues or inconsistencies found
131
+
132
+ ### Handling Missing Files
133
+
134
+ For each file referenced in the index but not found in the filesystem:
135
+
136
+ 1. Present the entry:
137
+
138
+ ```markdown
139
+ Missing file detected:
140
+ Title: [Document Title]
141
+ Path: relative/path/to/file.md
142
+ Description: Existing description
143
+ Section: [Root Documents | Folder Name]
144
+
145
+ Options:
146
+
147
+ 1. Remove this entry
148
+ 2. Update the file path
149
+ 3. Keep entry (mark as temporarily unavailable)
150
+
151
+ Please choose an option (1/2/3):
152
+ ```
153
+
154
+ 2. Wait for user confirmation before taking any action
155
+ 3. Log the decision for the final report
156
+
157
+ ### Special Cases
158
+
159
+ 1. **Sharded Documents**: If a folder contains an `index.md` file, treat it as a sharded document:
160
+
161
+ - Use the folder's `index.md` title as the section title
162
+ - List the folder's documents as subsections
163
+ - Note in the description that this is a multi-part document
164
+
165
+ 2. **README files**: Convert `README.md` to more descriptive titles based on content
166
+
167
+ 3. **Nested Subfolders**: For deeply nested folders, maintain the hierarchy but limit to 2 levels in the main index. Deeper structures should have their own index files.
168
+
169
+ ## Required Input
170
+
171
+ Please provide:
172
+
173
+ 1. Location of the `docs/` directory (default: `./docs`)
174
+ 2. Confirmation of write access to `docs/index.md`
175
+ 3. Any specific categorization preferences
176
+ 4. Any files or directories to exclude from indexing (e.g., `.git`, `node_modules`)
177
+ 5. Whether to include hidden files/folders (starting with `.`)
178
+
179
+ Would you like to proceed with documentation indexing? Please provide the required input above.
@@ -0,0 +1,234 @@
1
+ # Intelligent AppIQ Project Creation Task
2
+
3
+ ## 📋 Overview
4
+ This task provides an intelligent, guided approach to project creation that automatically detects project context and guides users through the optimal workflow.
5
+
6
+ ## 🎯 Task Objectives
7
+ - Automatically detect project type (Greenfield vs Brownfield)
8
+ - Analyze existing tech stack and project structure
9
+ - Guide user through PRD creation or validation
10
+ - Launch appropriate architecture workflow
11
+ - Set up optimal development environment
12
+
13
+ ## 🤖 Execution Workflow
14
+
15
+ ### Phase 1: Project Context Detection
16
+
17
+ #### Step 1: Analyze Current Environment
18
+ ```bash
19
+ # Check for existing project indicators
20
+ - package.json (Node.js/React/Vue/Angular)
21
+ - pubspec.yaml (Flutter)
22
+ - requirements.txt (Python)
23
+ - Cargo.toml (Rust)
24
+ - go.mod (Go)
25
+ - composer.json (PHP)
26
+ ```
27
+
28
+ #### Step 2: Detect Project Type
29
+ **Ask user to confirm detection:**
30
+
31
+ > 🔍 **Project Analysis Complete**
32
+ >
33
+ > I've detected the following about your project:
34
+ > - **Project Type**: [Greenfield/Brownfield]
35
+ > - **Tech Stack**: [Detected frameworks and tools]
36
+ > - **Structure**: [Monorepo/Multi-repo/Single app]
37
+ >
38
+ > Is this correct? (Y/n)
39
+
40
+ ### Phase 2: PRD Workflow Selection
41
+
42
+ #### For Greenfield Projects:
43
+ 1. **Check for existing PRD**:
44
+ - Look for `docs/prd.md`
45
+ - Look for `docs/requirements.md`
46
+ - Look for any `.md` files with PRD content
47
+
48
+ 2. **If no PRD exists**:
49
+ > 📝 **PRD Creation Required**
50
+ >
51
+ > I don't see a PRD (Product Requirements Document) in your project.
52
+ >
53
+ > Options:
54
+ > 1. **Quick Start**: I'll guide you through creating a PRD interactively
55
+ > 2. **Upload Existing**: You have a PRD file to upload
56
+ > 3. **Skip for Now**: Start with basic architecture (not recommended)
57
+ >
58
+ > What would you like to do? (1/2/3)
59
+
60
+ 3. **If PRD exists**:
61
+ > ✅ **PRD Found**
62
+ >
63
+ > I found your PRD at `docs/prd.md`. Let me validate it meets BMAD requirements...
64
+ >
65
+ > [Analysis results]
66
+ >
67
+ > Would you like to:
68
+ > 1. **Continue with existing PRD**
69
+ > 2. **Update/enhance the PRD**
70
+ > 3. **Create a new PRD**
71
+
72
+ #### For Brownfield Projects:
73
+ 1. **Analyze existing codebase**:
74
+ - Detect current architecture patterns
75
+ - Identify existing components and services
76
+ - Analyze database schemas and API endpoints
77
+ - Check for existing documentation
78
+
79
+ 2. **Generate brownfield analysis**:
80
+ > 🔍 **Brownfield Analysis Complete**
81
+ >
82
+ > **Detected Architecture**: [Clean Architecture/MVC/Layered/etc.]
83
+ > **Key Components**: [List of major components]
84
+ > **Database**: [Detected database type and schema]
85
+ > **API Style**: [REST/GraphQL/tRPC]
86
+ >
87
+ > I'll help you create a PRD that aligns with your existing architecture.
88
+
89
+ ### Phase 3: Architecture Workflow
90
+
91
+ #### Step 1: Architecture Agent Selection
92
+ Based on detected tech stack, automatically select the appropriate architecture agent:
93
+
94
+ - **Flutter Projects** → `flutter-mobile-architecture-tmpl.yaml`
95
+ - **React/Vue/Angular** → `front-end-architecture-tmpl.yaml`
96
+ - **Full Stack** → `fullstack-architecture-tmpl.yaml`
97
+ - **Backend Only** → `architecture-tmpl.yaml`
98
+ - **Brownfield** → `brownfield-architecture-tmpl.yaml`
99
+
100
+ #### Step 2: Launch Architecture Creation
101
+ > 🏗️ **Architecture Setup**
102
+ >
103
+ > Based on your tech stack, I'm launching the **[Architecture Type]** workflow.
104
+ >
105
+ > This will create a comprehensive architecture document that includes:
106
+ > - Technology stack decisions
107
+ > - Component architecture
108
+ > - Database design
109
+ > - API specifications
110
+ > - Development workflow
111
+ >
112
+ > Ready to proceed? (Y/n)
113
+
114
+ ### Phase 4: Development Environment Setup
115
+
116
+ #### Step 1: Agent Team Configuration
117
+ Automatically configure the optimal agent team based on project type:
118
+
119
+ **For Flutter Projects**:
120
+ ```yaml
121
+ agents:
122
+ - bmad-orchestrator
123
+ - analyst (if needed)
124
+ - pm
125
+ - architect
126
+ - po
127
+ - flutter-ui-agent
128
+ - flutter-cubit-agent
129
+ - flutter-domain-agent
130
+ - flutter-data-agent
131
+ - shared-components-agent
132
+ - qa
133
+ - sm
134
+ ```
135
+
136
+ **For Web Projects**:
137
+ ```yaml
138
+ agents:
139
+ - bmad-orchestrator
140
+ - analyst (if needed)
141
+ - pm
142
+ - architect
143
+ - po
144
+ - dev
145
+ - qa
146
+ - sm
147
+ ```
148
+
149
+ #### Step 2: Workflow Initialization
150
+ > ⚙️ **Development Environment Setup**
151
+ >
152
+ > I'm configuring your development environment:
153
+ >
154
+ > ✅ Agent team configured for [Project Type]
155
+ > ✅ Workflow templates selected
156
+ > ✅ Quality gates established
157
+ > ✅ Security validation enabled
158
+ >
159
+ > **Next Steps**:
160
+ > 1. PRD creation/validation
161
+ > 2. Architecture document generation
162
+ > 3. Epic and story creation
163
+ > 4. Development workflow initiation
164
+
165
+ ### Phase 5: Smart Guidance
166
+
167
+ #### Provide Context-Aware Next Steps
168
+ > 🎯 **Ready to Start Development**
169
+ >
170
+ > Your BMAD environment is configured! Here's what happens next:
171
+ >
172
+ > **Immediate Actions**:
173
+ > 1. **PRD Review**: [If needed] Review and approve your PRD
174
+ > 2. **Architecture Creation**: Generate your architecture document
175
+ > 3. **Epic Planning**: Break down your PRD into actionable epics
176
+ >
177
+ > **Development Workflow**:
178
+ > 1. **Story Creation**: SM agent will create detailed development stories
179
+ > 2. **Development**: Dev agents will implement features following Clean Architecture
180
+ > 3. **Quality Assurance**: QA agent will validate all implementations
181
+ >
182
+ > **Commands Available**:
183
+ > - `/story` - Create a new development story
184
+ > - `/analyze` - Analyze current project status
185
+ > - `/help` - Get context-aware help
186
+ >
187
+ > Would you like me to start with PRD creation? (Y/n)
188
+
189
+ ## 🔧 Implementation Details
190
+
191
+ ### Tech Stack Detection Logic
192
+ ```typescript
193
+ interface ProjectContext {
194
+ type: 'greenfield' | 'brownfield';
195
+ techStack: {
196
+ frontend?: 'react' | 'vue' | 'angular' | 'flutter' | 'vanilla';
197
+ backend?: 'node' | 'python' | 'go' | 'rust' | 'php' | 'firebase' | 'supabase';
198
+ database?: 'postgresql' | 'mysql' | 'mongodb' | 'sqlite' | 'firestore';
199
+ stateManagement?: 'redux' | 'zustand' | 'cubit' | 'bloc' | 'vuex' | 'pinia';
200
+ };
201
+ structure: 'monorepo' | 'multi-repo' | 'single-app';
202
+ hasExistingDocs: boolean;
203
+ hasBMAD: boolean;
204
+ }
205
+ ```
206
+
207
+ ### Intelligent Defaults
208
+ - **Flutter Projects**: Enable Clean Architecture, Cubit state management, multi-language support
209
+ - **React Projects**: Enable TypeScript, modern hooks, component-based architecture
210
+ - **Full Stack**: Enable shared types, API-first design, comprehensive testing
211
+ - **Brownfield**: Respect existing patterns while introducing BMAD workflows
212
+
213
+ ### Error Prevention
214
+ - Validate PRD completeness before architecture creation
215
+ - Check for conflicting dependencies
216
+ - Ensure proper folder structure
217
+ - Validate agent compatibility with tech stack
218
+
219
+ ## 📋 Success Criteria
220
+ - [ ] Project type correctly detected
221
+ - [ ] Tech stack accurately identified
222
+ - [ ] Appropriate workflow selected and configured
223
+ - [ ] User guided through each step with clear options
224
+ - [ ] Development environment properly initialized
225
+ - [ ] Clear next steps provided
226
+ - [ ] All quality gates established
227
+ - [ ] Security validation enabled
228
+
229
+ ## 🎯 User Experience Goals
230
+ - **Zero Configuration**: Works out of the box with intelligent defaults
231
+ - **Progressive Disclosure**: Only shows relevant options based on context
232
+ - **Error Prevention**: Validates inputs and prevents common mistakes
233
+ - **Clear Guidance**: Provides clear next steps at every stage
234
+ - **Flexibility**: Allows overrides of automatic detection when needed
@@ -0,0 +1,75 @@
1
+ # KB Mode Interaction Task
2
+
3
+ ## Purpose
4
+
5
+ Provide a user-friendly interface to the BMad knowledge base without overwhelming users with information upfront.
6
+
7
+ ## Instructions
8
+
9
+ When entering KB mode (*kb-mode), follow these steps:
10
+
11
+ ### 1. Welcome and Guide
12
+
13
+ Announce entering KB mode with a brief, friendly introduction.
14
+
15
+ ### 2. Present Topic Areas
16
+
17
+ Offer a concise list of main topic areas the user might want to explore:
18
+
19
+ **What would you like to know more about?**
20
+
21
+ 1. **Setup & Installation** - Getting started with BMad
22
+ 2. **Workflows** - Choosing the right workflow for your project
23
+ 3. **Web vs IDE** - When to use each environment
24
+ 4. **Agents** - Understanding specialized agents and their roles
25
+ 5. **Documents** - PRDs, Architecture, Stories, and more
26
+ 6. **Agile Process** - How BMad implements Agile methodologies
27
+ 7. **Configuration** - Customizing BMad for your needs
28
+ 8. **Best Practices** - Tips for effective BMad usage
29
+
30
+ Or ask me about anything else related to BMad-Method!
31
+
32
+ ### 3. Respond Contextually
33
+
34
+ - Wait for user's specific question or topic selection
35
+ - Provide focused, relevant information from the knowledge base
36
+ - Offer to dive deeper or explore related topics
37
+ - Keep responses concise unless user asks for detailed explanations
38
+
39
+ ### 4. Interactive Exploration
40
+
41
+ - After answering, suggest related topics they might find helpful
42
+ - Maintain conversational flow rather than data dumping
43
+ - Use examples when appropriate
44
+ - Reference specific documentation sections when relevant
45
+
46
+ ### 5. Exit Gracefully
47
+
48
+ When user is done or wants to exit KB mode:
49
+
50
+ - Summarize key points discussed if helpful
51
+ - Remind them they can return to KB mode anytime with *kb-mode
52
+ - Suggest next steps based on what was discussed
53
+
54
+ ## Example Interaction
55
+
56
+ **User**: *kb-mode
57
+
58
+ **Assistant**: I've entered KB mode and have access to the full BMad knowledge base. I can help you with detailed information about any aspect of BMad-Method.
59
+
60
+ **What would you like to know more about?**
61
+
62
+ 1. **Setup & Installation** - Getting started with BMad
63
+ 2. **Workflows** - Choosing the right workflow for your project
64
+ 3. **Web vs IDE** - When to use each environment
65
+ 4. **Agents** - Understanding specialized agents and their roles
66
+ 5. **Documents** - PRDs, Architecture, Stories, and more
67
+ 6. **Agile Process** - How BMad implements Agile methodologies
68
+ 7. **Configuration** - Customizing BMad for your needs
69
+ 8. **Best Practices** - Tips for effective BMad usage
70
+
71
+ Or ask me about anything else related to BMad-Method!
72
+
73
+ **User**: Tell me about workflows
74
+
75
+ **Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics]