@iservu-inc/adf-cli 0.2.0 → 0.3.6

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 (33) hide show
  1. package/.project/chats/complete/2025-10-03_AGENTS-MD-AND-TOOL-GENERATORS.md +764 -0
  2. package/.project/chats/current/2025-10-03_AI-PROVIDER-INTEGRATION.md +569 -0
  3. package/.project/chats/current/2025-10-03_FRAMEWORK-UPDATE-SYSTEM.md +497 -0
  4. package/.project/chats/current/SESSION-STATUS.md +127 -0
  5. package/.project/docs/AI-PROVIDER-INTEGRATION.md +600 -0
  6. package/.project/docs/FRAMEWORK-UPDATE-INTEGRATION.md +421 -0
  7. package/.project/docs/FRAMEWORK-UPDATE-SYSTEM.md +832 -0
  8. package/.project/docs/PROJECT-STRUCTURE-EXPLANATION.md +500 -0
  9. package/.project/docs/architecture/SYSTEM-DESIGN.md +122 -1
  10. package/.project/docs/goals/PROJECT-VISION.md +33 -28
  11. package/.project/docs/tool-integrations/RESEARCH-FINDINGS.md +828 -0
  12. package/CHANGELOG.md +325 -0
  13. package/README.md +100 -11
  14. package/bin/adf.js +7 -0
  15. package/lib/ai/ai-client.js +328 -0
  16. package/lib/ai/ai-config.js +398 -0
  17. package/lib/commands/config.js +154 -0
  18. package/lib/commands/deploy.js +122 -3
  19. package/lib/commands/init.js +56 -10
  20. package/lib/frameworks/interviewer.js +89 -11
  21. package/lib/frameworks/progress-tracker.js +8 -1
  22. package/lib/generators/agents-md-generator.js +388 -0
  23. package/lib/generators/cursor-generator.js +374 -0
  24. package/lib/generators/index.js +98 -0
  25. package/lib/generators/tool-config-generator.js +188 -0
  26. package/lib/generators/vscode-generator.js +403 -0
  27. package/lib/generators/windsurf-generator.js +596 -0
  28. package/package.json +15 -3
  29. package/tests/agents-md-generator.test.js +245 -0
  30. package/tests/cursor-generator.test.js +326 -0
  31. package/tests/vscode-generator.test.js +436 -0
  32. package/tests/windsurf-generator.test.js +320 -0
  33. /package/.project/chats/{current → complete}/2025-10-03_ADF-CLI-QUALITY-BASED-PROGRESS-AND-RESUME.md +0 -0
@@ -0,0 +1,500 @@
1
+ # ADF Project Structure - Complete Explanation
2
+
3
+ **Date:** 2025-10-03
4
+ **Purpose:** Clarify the relationship between AgentDevFramework and adf-cli
5
+
6
+ ---
7
+
8
+ ## 🎯 Executive Summary
9
+
10
+ You have **TWO RELATED BUT SEPARATE PROJECTS** in `D:\Documents\GitHub\`:
11
+
12
+ 1. **AgentDevFramework** - Original framework repository (documentation, templates, scripts)
13
+ 2. **adf-cli** - Standalone npm CLI tool (what we've been building for v0.1.0 → v0.3.0)
14
+
15
+ They serve **different purposes** but share the **same underlying methodology**.
16
+
17
+ ---
18
+
19
+ ## 📁 Project Structure
20
+
21
+ ```
22
+ D:\Documents\GitHub\
23
+
24
+ ├── AgentDevFramework/ ← FRAMEWORK REPOSITORY
25
+ │ ├── references/ ← Git submodules (4 frameworks)
26
+ │ │ ├── bmad-method/ ← Submodule: https://github.com/bmad-code-org/BMAD-METHOD
27
+ │ │ ├── context-engineering/ ← Submodule: https://github.com/coleam00/context-engineering-intro
28
+ │ │ ├── prps-agentic/ ← Submodule: https://github.com/Wirasm/PRPs-agentic-eng
29
+ │ │ └── spec-kit/ ← Submodule: https://github.com/github/spec-kit
30
+ │ ├── shared/ ← Agent definitions, templates, workflows
31
+ │ ├── scripts/ ← Initialization and deployment scripts
32
+ │ ├── docs/ ← Framework documentation
33
+ │ ├── tools/ ← IDE-specific configurations
34
+ │ └── [Documentation files] ← Research, analysis, executive summaries
35
+
36
+ └── adf-cli/ ← STANDALONE CLI TOOL (npm package)
37
+ ├── lib/ ← Core CLI implementation
38
+ │ ├── commands/ ← init, deploy, update commands
39
+ │ ├── frameworks/ ← Interviewer, quality analyzer, progress tracker
40
+ │ ├── generators/ ← Tool config generators (NEW in v0.3.0)
41
+ │ ├── templates/ ← PRP/Balanced/BMAD templates
42
+ │ └── utils/ ← Helper utilities
43
+ ├── bin/ ← CLI entry point (adf command)
44
+ ├── tests/ ← 57 unit tests
45
+ ├── .project/ ← Project documentation & chat history
46
+ │ ├── chats/
47
+ │ │ ├── complete/ ← Archived sessions
48
+ │ │ └── current/ ← Active session status
49
+ │ └── docs/ ← Architecture, vision, research
50
+ └── package.json ← npm package (@iservu-inc/adf-cli@0.3.0)
51
+ ```
52
+
53
+ ---
54
+
55
+ ## 🔍 Detailed Comparison
56
+
57
+ ### AgentDevFramework (Original Repository)
58
+
59
+ **What It Is:**
60
+ - Research and documentation repository
61
+ - Synthesis of 4 frameworks (BMAD, Spec-Kit, Context Engineering, PRPs)
62
+ - Collection of templates, agents, and workflows
63
+ - Git submodules pointing to original framework repos
64
+
65
+ **What It Contains:**
66
+ ```
67
+ AgentDevFramework/
68
+ ├── .gitmodules # Links to 4 framework repos
69
+ ├── references/
70
+ │ ├── bmad-method/ # Git submodule
71
+ │ ├── context-engineering/ # Git submodule
72
+ │ ├── prps-agentic/ # Git submodule
73
+ │ └── spec-kit/ # Git submodule
74
+ ├── shared/
75
+ │ ├── agents/ # Agent definitions (analyst, pm, dev, etc.)
76
+ │ ├── templates/ # PRP, PRD, Spec templates
77
+ │ ├── workflows/ # Story PRP, Planning PRP
78
+ │ └── memory/ # Constitution, preferences
79
+ ├── scripts/
80
+ │ ├── init.js # Interactive initialization
81
+ │ ├── deploy.js # Tool deployment
82
+ │ └── analyze-docs.js # Documentation analysis
83
+ ├── tools/ # IDE-specific configs
84
+ │ ├── windsurf/
85
+ │ ├── cursor/
86
+ │ └── vscode/
87
+ └── [Documentation]
88
+ ├── FRAMEWORK-ANALYSIS.md
89
+ ├── FRAMEWORK-OVERLAP.md
90
+ ├── EXECUTIVE-SUMMARY.md
91
+ └── QUICK-START.md
92
+ ```
93
+
94
+ **Purpose:**
95
+ - Research and analysis of frameworks
96
+ - Documentation of unified methodology
97
+ - Templates and agent definitions
98
+ - Reference implementation
99
+
100
+ **How to Use:**
101
+ ```bash
102
+ cd AgentDevFramework
103
+ npm install
104
+ npm run init # Interactive setup
105
+ npm run deploy -- --tool windsurf
106
+ ```
107
+
108
+ **Status:**
109
+ - ✅ Complete research and documentation
110
+ - ✅ Working scripts
111
+ - ❌ Not an npm package
112
+ - ❌ Requires manual git clone
113
+ - ❌ Node.js scripts, not CLI tool
114
+
115
+ ---
116
+
117
+ ### adf-cli (Standalone CLI Tool)
118
+
119
+ **What It Is:**
120
+ - **Standalone npm package** you can install globally
121
+ - **Production-ready CLI tool** implementing AgentDevFramework methodology
122
+ - **Independently developed** and maintained
123
+ - **Published to npm** as `@iservu-inc/adf-cli`
124
+
125
+ **What It Contains:**
126
+ ```
127
+ adf-cli/
128
+ ├── bin/
129
+ │ └── adf.js # CLI entry point
130
+ ├── lib/
131
+ │ ├── commands/
132
+ │ │ ├── init.js # AI-driven interview system
133
+ │ │ ├── deploy.js # Deploy + generate configs
134
+ │ │ └── update.js # Version management
135
+ │ ├── frameworks/
136
+ │ │ ├── interviewer.js # Conversational interview engine
137
+ │ │ ├── progress-tracker.js # Quality-based progress (v0.2.0)
138
+ │ │ ├── answer-quality-analyzer.js # 0-100 scoring
139
+ │ │ ├── session-manager.js # Resume capability
140
+ │ │ ├── questions.js # Question database (PRP/Balanced/BMAD)
141
+ │ │ └── output-generators.js # Generate framework docs
142
+ │ ├── generators/ # NEW in v0.3.0
143
+ │ │ ├── tool-config-generator.js # Base class
144
+ │ │ ├── agents-md-generator.js # Universal AGENTS.md
145
+ │ │ ├── windsurf-generator.js # Windsurf configs
146
+ │ │ ├── cursor-generator.js # Cursor configs
147
+ │ │ ├── vscode-generator.js # VS Code configs
148
+ │ │ └── index.js
149
+ │ ├── templates/
150
+ │ │ ├── shared/
151
+ │ │ │ ├── agents/ # Agent MD files
152
+ │ │ │ ├── templates/ # PRP, Spec, PRD templates
153
+ │ │ │ └── memory/ # Constitution
154
+ │ │ └── .env.template
155
+ │ └── utils/
156
+ │ ├── project-detector.js
157
+ │ └── copy-templates.js
158
+ ├── tests/ # 57 unit tests
159
+ │ ├── agents-md-generator.test.js
160
+ │ ├── windsurf-generator.test.js
161
+ │ ├── cursor-generator.test.js
162
+ │ ├── vscode-generator.test.js
163
+ │ ├── progress-tracker.test.js
164
+ │ ├── answer-quality-analyzer.test.js
165
+ │ └── session-manager.test.js
166
+ ├── .project/
167
+ │ ├── chats/
168
+ │ │ ├── complete/ # Archived chat sessions
169
+ │ │ └── current/ # Active session status
170
+ │ └── docs/
171
+ │ ├── goals/PROJECT-VISION.md
172
+ │ ├── architecture/SYSTEM-DESIGN.md
173
+ │ ├── frameworks/FRAMEWORK-METHODOLOGIES.md
174
+ │ └── tool-integrations/
175
+ │ ├── RESEARCH-FINDINGS.md
176
+ │ └── IDE-CUSTOMIZATIONS.md
177
+ ├── package.json # npm package definition
178
+ ├── CHANGELOG.md # Version history
179
+ └── README.md # User documentation
180
+ ```
181
+
182
+ **Purpose:**
183
+ - Production CLI tool
184
+ - Global npm installation
185
+ - AI-driven interview system
186
+ - Quality-based progress tracking
187
+ - Resume capability
188
+ - Tool configuration generation
189
+ - Framework output generation
190
+
191
+ **How to Use:**
192
+ ```bash
193
+ # Install globally
194
+ npm install -g @iservu-inc/adf-cli
195
+
196
+ # Use anywhere
197
+ cd my-project
198
+ adf init # Interactive interview
199
+ adf deploy windsurf # Generate configs
200
+ adf update # Check for updates
201
+ ```
202
+
203
+ **Status:**
204
+ - ✅ Published to npm (v0.3.0 live)
205
+ - ✅ Globally installable
206
+ - ✅ 57 unit tests (78% coverage)
207
+ - ✅ Production-ready
208
+ - ✅ Triple-redundant saves
209
+ - ✅ Resume capability
210
+ - ✅ Tool config generators
211
+
212
+ ---
213
+
214
+ ## 🔄 Relationship Between Projects
215
+
216
+ ### How They Relate
217
+
218
+ ```
219
+ ┌─────────────────────────────────────────────────────────────┐
220
+ │ AgentDevFramework │
221
+ │ (Research Repository) │
222
+ │ │
223
+ │ ┌────────────────────────────────────────────────┐ │
224
+ │ │ 4 Framework Git Submodules (Research) │ │
225
+ │ │ • BMAD-METHOD │ │
226
+ │ │ • Spec-Kit │ │
227
+ │ │ • Context Engineering │ │
228
+ │ │ • PRPs Agentic Engineering │ │
229
+ │ └────────────────────────────────────────────────┘ │
230
+ │ │ │
231
+ │ │ Synthesized into │
232
+ │ ↓ │
233
+ │ ┌────────────────────────────────────────────────┐ │
234
+ │ │ Unified Methodology Documentation │ │
235
+ │ │ • FRAMEWORK-ANALYSIS.md │ │
236
+ │ │ • FRAMEWORK-OVERLAP.md │ │
237
+ │ │ • Templates & Agents │ │
238
+ │ └────────────────────────────────────────────────┘ │
239
+ └─────────────────────────────────────────────────────────────┘
240
+
241
+ │ Inspired & Informed
242
+
243
+ ┌─────────────────────────────────────────────────────────────┐
244
+ │ adf-cli │
245
+ │ (Production CLI Tool) │
246
+ │ │
247
+ │ ┌────────────────────────────────────────────────┐ │
248
+ │ │ Standalone Implementation │ │
249
+ │ │ • AI-driven interview system │ │
250
+ │ │ • Quality-based progress tracking │ │
251
+ │ │ • Resume capability │ │
252
+ │ │ • Framework output generators │ │
253
+ │ │ • Tool config generators │ │
254
+ │ └────────────────────────────────────────────────┘ │
255
+ │ │ │
256
+ │ ↓ │
257
+ │ ┌────────────────────────────────────────────────┐ │
258
+ │ │ Published npm Package │ │
259
+ │ │ @iservu-inc/adf-cli@0.3.0 │ │
260
+ │ │ • Globally installable │ │
261
+ │ │ • Works anywhere │ │
262
+ │ │ • No dependencies on AgentDevFramework repo │ │
263
+ │ └────────────────────────────────────────────────┘ │
264
+ └─────────────────────────────────────────────────────────────┘
265
+ ```
266
+
267
+ ### Key Differences
268
+
269
+ | Aspect | AgentDevFramework | adf-cli |
270
+ |--------|------------------|---------|
271
+ | **Type** | Research repository | Production npm package |
272
+ | **Purpose** | Framework synthesis & documentation | Production CLI tool |
273
+ | **Installation** | `git clone` + `npm install` | `npm install -g @iservu-inc/adf-cli` |
274
+ | **Usage** | `npm run init` (local scripts) | `adf init` (global command) |
275
+ | **Dependencies** | Requires git submodules | Standalone, no submodules |
276
+ | **Distribution** | Git repository only | Published to npm registry |
277
+ | **Target Users** | Framework researchers | End users building projects |
278
+ | **Maintenance** | Research/documentation | Production releases with versions |
279
+ | **Testing** | Manual testing | 57 automated unit tests |
280
+ | **Features** | Basic scripts | Advanced features (resume, quality scoring) |
281
+
282
+ ---
283
+
284
+ ## 🎯 What We've Been Working On
285
+
286
+ ### Our Focus: adf-cli (The Production Tool)
287
+
288
+ **All our work (v0.1.0 → v0.3.0) has been in:**
289
+ ```
290
+ D:\Documents\GitHub\adf-cli\
291
+ ```
292
+
293
+ **NOT in:**
294
+ ```
295
+ D:\Documents\GitHub\AgentDevFramework\
296
+ ```
297
+
298
+ ### Development Timeline
299
+
300
+ **v0.1.0 (Initial Release):**
301
+ - ✅ Built standalone CLI tool
302
+ - ✅ Implemented 3 frameworks (PRP, Balanced, BMAD)
303
+ - ✅ Created interview system
304
+ - ✅ Published to npm
305
+
306
+ **v0.2.0 (Quality & Resume):**
307
+ - ✅ Added quality-based progress tracking
308
+ - ✅ Implemented triple-redundant saves
309
+ - ✅ Built resume capability
310
+ - ✅ Created answer quality analyzer
311
+ - ✅ 33 unit tests
312
+
313
+ **v0.3.0 (Tool Generators):**
314
+ - ✅ Built AGENTS.md generator
315
+ - ✅ Built Windsurf generator
316
+ - ✅ Built Cursor generator
317
+ - ✅ Built VS Code generator
318
+ - ✅ Enhanced deploy command
319
+ - ✅ 57 unit tests (24 new)
320
+
321
+ ---
322
+
323
+ ## 📊 Current Status
324
+
325
+ ### AgentDevFramework
326
+ ```bash
327
+ Location: D:\Documents\GitHub\AgentDevFramework\
328
+ Status: Research repository (unchanged during our work)
329
+ Purpose: Framework synthesis and documentation
330
+ Usage: Reference for methodology
331
+ ```
332
+
333
+ ### adf-cli
334
+ ```bash
335
+ Location: D:\Documents\GitHub\adf-cli\
336
+ Status: v0.3.0 published to npm ✅
337
+ Purpose: Production CLI tool
338
+ Usage: Global command: adf init, adf deploy, etc.
339
+ npm: https://www.npmjs.com/package/@iservu-inc/adf-cli
340
+ ```
341
+
342
+ ---
343
+
344
+ ## 🚀 How They Work Together
345
+
346
+ ### Conceptual Flow
347
+
348
+ ```
349
+ 1. User installs: npm install -g @iservu-inc/adf-cli
350
+
351
+ 2. User runs: adf init --balanced
352
+
353
+ 3. adf-cli conducts AI-driven interview
354
+ (Using methodology from AgentDevFramework research)
355
+
356
+ 4. adf-cli generates framework outputs
357
+ (PRP.md, specification.md, plan.md, tasks.md)
358
+
359
+ 5. User runs: adf deploy windsurf
360
+
361
+ 6. adf-cli generates tool configs
362
+ (AGENTS.md, .windsurfrules, .windsurf/rules/, etc.)
363
+
364
+ 7. User develops in Windsurf with AI agents
365
+ (Agents reference framework outputs)
366
+ ```
367
+
368
+ ### They Are Independent
369
+
370
+ **AgentDevFramework** could be:
371
+ - Deleted entirely
372
+ - Never cloned
373
+ - Not installed
374
+
375
+ **adf-cli would still work perfectly** because:
376
+ - ✅ All methodology is embedded in the CLI
377
+ - ✅ All templates are bundled in npm package
378
+ - ✅ All agent definitions are included
379
+ - ✅ No runtime dependency on AgentDevFramework repo
380
+
381
+ ---
382
+
383
+ ## 💡 Clarifying Misconceptions
384
+
385
+ ### ❌ INCORRECT Understanding:
386
+ > "AgentDevFramework is the main framework, and adf-cli is just a deployment tool for it"
387
+
388
+ ### ✅ CORRECT Understanding:
389
+ > "AgentDevFramework is research that inspired adf-cli. adf-cli is a standalone production CLI tool that implements the same methodology but is completely independent."
390
+
391
+ ### ❌ INCORRECT Understanding:
392
+ > "The 4 framework repos are actively used by adf-cli at runtime"
393
+
394
+ ### ✅ CORRECT Understanding:
395
+ > "The 4 framework repos were studied, their best practices were synthesized into adf-cli's question database and templates. adf-cli does not depend on them."
396
+
397
+ ### ❌ INCORRECT Understanding:
398
+ > "I need both folders to use adf-cli"
399
+
400
+ ### ✅ CORRECT Understanding:
401
+ > "adf-cli is a standalone npm package. You only need AgentDevFramework if you're researching the frameworks themselves or want to see the original synthesis work."
402
+
403
+ ---
404
+
405
+ ## 🎓 Analogy
406
+
407
+ Think of it like this:
408
+
409
+ **AgentDevFramework** = Research paper + lab notes
410
+ - Contains the research
411
+ - Links to original sources (git submodules)
412
+ - Documents the synthesis process
413
+ - Includes experimental scripts
414
+
415
+ **adf-cli** = Production pharmaceutical drug
416
+ - Based on the research
417
+ - Independently tested (57 unit tests)
418
+ - Packaged for distribution (npm)
419
+ - Ready for end users
420
+ - No dependency on the research lab
421
+
422
+ ---
423
+
424
+ ## 📁 Summary Table
425
+
426
+ | Project | Type | Location | Published | Purpose | We Built This? |
427
+ |---------|------|----------|-----------|---------|----------------|
428
+ | **AgentDevFramework** | Research repo | `D:\Documents\GitHub\AgentDevFramework\` | No | Framework synthesis & research | ❌ No (existed before) |
429
+ | **adf-cli** | npm CLI tool | `D:\Documents\GitHub\adf-cli\` | ✅ Yes (npm) | Production CLI for developers | ✅ Yes (v0.1.0 → v0.3.0) |
430
+
431
+ ---
432
+
433
+ ## 🔧 What You Should Use
434
+
435
+ **For Development Work:**
436
+ ```bash
437
+ npm install -g @iservu-inc/adf-cli
438
+ cd your-project
439
+ adf init
440
+ adf deploy windsurf
441
+ ```
442
+
443
+ **For Framework Research:**
444
+ ```bash
445
+ cd D:\Documents\GitHub\AgentDevFramework
446
+ npm install
447
+ npm run init
448
+ ```
449
+
450
+ **Recommendation:** Use **adf-cli** for all production work. It's tested, published, and production-ready.
451
+
452
+ ---
453
+
454
+ ## 📝 Final Answer to Your Question
455
+
456
+ ### Your Question:
457
+ > "If I understand it correctly the framework which integrates the 4 provided git repo frameworks as part of its core decision/recommendation tree, which is driven by an ai agentic interview-like questionaire to determine the best framework approach based on the users information value is all stored in the AgentDevFramework folder, and the npm cli installable tool to deploy and launch it, is in folder adf-cli, both in the root github folder (D:\Documents\GitHub), correct?"
458
+
459
+ ### My Answer:
460
+
461
+ **Partially correct, but with important clarifications:**
462
+
463
+ ✅ **CORRECT:**
464
+ - Both folders exist in `D:\Documents\GitHub\`
465
+ - AgentDevFramework contains references to 4 framework repos (as git submodules)
466
+ - adf-cli is the npm CLI tool
467
+ - Both relate to the same methodology
468
+
469
+ ❌ **NEEDS CLARIFICATION:**
470
+ - The 4 frameworks are **not** integrated "as part of core decision tree" in a runtime sense
471
+ - The 4 frameworks were **studied and synthesized** into adf-cli's design
472
+ - adf-cli **does not depend on** AgentDevFramework folder to run
473
+ - adf-cli **is not** a deployment tool "for" AgentDevFramework
474
+ - adf-cli **is** a standalone production CLI that embeds the methodology
475
+
476
+ ### More Accurate Description:
477
+
478
+ **AgentDevFramework:**
479
+ - Research repository with git submodules to 4 frameworks
480
+ - Documentation of framework synthesis
481
+ - Original scripts (not the CLI we built)
482
+ - **Not required** for adf-cli to work
483
+
484
+ **adf-cli:**
485
+ - Standalone npm CLI tool (completely independent)
486
+ - Implements the methodology discovered in AgentDevFramework research
487
+ - AI-driven interview system (what we built)
488
+ - Quality-based progress tracking (what we built)
489
+ - Tool config generators (what we built)
490
+ - Published to npm as `@iservu-inc/adf-cli`
491
+ - **This is what we've been working on** (v0.1.0 → v0.3.0)
492
+
493
+ ### Bottom Line:
494
+ We've been building **adf-cli** - a production-ready CLI tool that can be installed globally via npm and works independently of the AgentDevFramework repository. The two projects are related in concept but separate in execution.
495
+
496
+ ---
497
+
498
+ **Created:** 2025-10-03
499
+ **Purpose:** Complete project structure clarity
500
+ **Location:** `adf-cli/.project/docs/PROJECT-STRUCTURE-EXPLANATION.md`
@@ -58,7 +58,31 @@
58
58
  ┌────────────┐ ┌───────────┐ ┌──────────────┐
59
59
  │ PRP │ │ Balanced │ │ BMAD │
60
60
  │ Output │ │ Output │ │ Output │
61
- └────────────┘ └───────────┘ └──────────────┘
61
+ └────────┬───┘ └─────┬─────┘ └──────┬───────┘
62
+ │ │ │
63
+ └──────────────┼─────────────────┘
64
+
65
+
66
+ ┌─────────────────┐
67
+ │ adf deploy │
68
+ │ (Command) │
69
+ └────────┬────────┘
70
+
71
+ ┌────────────────┼────────────────┐
72
+ │ │ │
73
+ ▼ ▼ ▼
74
+ ┌────────────┐ ┌───────────┐ ┌──────────────┐
75
+ │ AGENTS.md │ │ Windsurf │ │ Cursor │
76
+ │ Generator │ │ Generator │ │ Generator │
77
+ └────────────┘ └───────────┘ └──────────────┘
78
+ │ │ │
79
+ ▼ ▼ ▼
80
+ ┌────────────┐ ┌───────────┐ ┌──────────────┐
81
+ │ VS Code │ │ Tool │ │ Config │
82
+ │ Generator │ │ Config │ │ Files │
83
+ └────────────┘ │ Generator │ │ Generated │
84
+ │ (Base) │ └──────────────┘
85
+ └───────────┘
62
86
  ```
63
87
 
64
88
  ## Component Details
@@ -242,6 +266,103 @@ Total: 0-100 points
242
266
  - `architecture.md`: System architecture
243
267
  - `stories.md`: User stories
244
268
 
269
+ ### 8. Tool Configuration Generators (v0.3.0)
270
+
271
+ **Responsibilities:**
272
+ - Transform framework outputs into IDE-specific configurations
273
+ - Generate universal AGENTS.md standard
274
+ - Create tool-specific customizations
275
+ - Support all 3 frameworks (PRP, Balanced, BMAD)
276
+
277
+ **Base Class (tool-config-generator.js):**
278
+ - Load framework outputs from session
279
+ - Parse markdown sections
280
+ - Extract template variables
281
+ - Provide utility methods
282
+
283
+ **AGENTS.md Generator (agents-md-generator.js):**
284
+ - Universal AI agent configuration standard
285
+ - Works with OpenAI Codex, Cursor, Windsurf, Google Jules, Factory
286
+ - Supported by 20,000+ open-source projects
287
+ - Always generated on deployment
288
+
289
+ **Windsurf Generator (windsurf-generator.js):**
290
+ - `.windsurfrules` - Legacy format (12K char limit compliant)
291
+ - `.windsurf/rules/*.md` - Modern modular rules
292
+ - `project-context.md`
293
+ - `architecture.md`
294
+ - `coding-standards.md` (if applicable)
295
+ - `.windsurf/workflows/*.md` - Cascade AI workflows
296
+ - `review-requirements.md`
297
+ - `implement-feature.md` (Balanced/BMAD only)
298
+
299
+ **Cursor Generator (cursor-generator.js):**
300
+ - `.cursor/rules` - Modern primary configuration
301
+ - `.cursorrules` - Deprecation notice with migration path
302
+ - `.cursor/mcp.json` - Model Context Protocol (prepared for future)
303
+ - Custom modes: architect, implementer, reviewer
304
+
305
+ **VS Code Generator (vscode-generator.js):**
306
+ - `.github/copilot-instructions.md` - GitHub Copilot instructions
307
+ - `.vscode/settings.json` - Custom chat modes
308
+ - Architect mode - System design focus
309
+ - Implementer mode - Feature implementation with TDD
310
+ - Reviewer mode - Code review against requirements
311
+ - Preserves existing settings
312
+
313
+ **Template Variables:**
314
+ ```javascript
315
+ {
316
+ PROJECT_NAME, // From metadata or directory
317
+ SESSION_ID, // Session identifier
318
+ FRAMEWORK, // rapid/balanced/comprehensive
319
+
320
+ // PRP
321
+ PRP_GOAL,
322
+ PRP_CONTEXT,
323
+ PRP_TECH_STACK,
324
+ PRP_IMPLEMENTATION,
325
+ PRP_VALIDATION,
326
+
327
+ // Balanced
328
+ CONSTITUTION_PRINCIPLES,
329
+ CONSTITUTION_CONSTRAINTS,
330
+ SPECIFICATION_OVERVIEW,
331
+ SPECIFICATION_ARCHITECTURE,
332
+ PLAN_TECH_STACK,
333
+ PLAN_CODE_STYLE,
334
+ TASKS_BREAKDOWN,
335
+
336
+ // BMAD
337
+ PRD_OVERVIEW,
338
+ PRD_GOALS,
339
+ PRD_TECH_REQUIREMENTS,
340
+ ARCHITECTURE_OVERVIEW,
341
+ ARCHITECTURE_COMPONENTS,
342
+ STORIES_LIST
343
+ }
344
+ ```
345
+
346
+ ### 9. Deploy Command (deploy.js)
347
+
348
+ **Responsibilities:**
349
+ - Find latest completed session
350
+ - Detect framework type
351
+ - Generate AGENTS.md (always)
352
+ - Generate tool-specific configurations
353
+ - Deploy legacy agents (for backward compatibility)
354
+
355
+ **Key Functions:**
356
+ - `findLatestSession()`: Locate most recent session with outputs
357
+ - `getFrameworkFromSession()`: Read framework from metadata
358
+ - `deployToTool(tool)`: Orchestrate generation and deployment
359
+
360
+ **Tool Support:**
361
+ - `windsurf` - Generates Windsurf configs + AGENTS.md
362
+ - `cursor` - Generates Cursor configs + AGENTS.md
363
+ - `vscode` - Generates VS Code configs + AGENTS.md
364
+ - Legacy tools still supported (kiro, trae, etc.)
365
+
245
366
  ## Data Flow
246
367
 
247
368
  ### New Session Flow