@iservu-inc/adf-cli 0.1.6 → 0.2.0

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.
@@ -0,0 +1,449 @@
1
+ # Framework Methodologies
2
+
3
+ ## Overview
4
+
5
+ ADF CLI integrates four proven development frameworks into a unified tool:
6
+
7
+ 1. **PRP (Product Requirement Prompt)** by Wirasm
8
+ 2. **BMAD (Business Model Architecture Design)**
9
+ 3. **Spec-Kit** (Specification Framework)
10
+ 4. **Context Engineering** (AI Context Management)
11
+
12
+ ## Framework Selection Logic
13
+
14
+ ### RAPID Workflow → PRP Only
15
+ **Use when:**
16
+ - Quick feature development
17
+ - Small scope projects
18
+ - Rapid prototyping
19
+ - Clear requirements
20
+
21
+ **Time:** 5-15 minutes
22
+ **Questions:** ~20
23
+ **Output:** Single PRP document
24
+
25
+ ### BALANCED Workflow → PRP + Spec-Kit
26
+ **Use when:**
27
+ - Medium complexity projects
28
+ - Need both requirements and specs
29
+ - Team collaboration
30
+ - Iterative development
31
+
32
+ **Time:** 30-60 minutes
33
+ **Questions:** ~50
34
+ **Outputs:** Constitution, Specification, Plan, Tasks
35
+
36
+ ### COMPREHENSIVE Workflow → Full BMAD
37
+ **Use when:**
38
+ - Large scale projects
39
+ - Business model uncertainty
40
+ - Complete documentation needed
41
+ - Long-term maintenance
42
+
43
+ **Time:** 1-2+ hours
44
+ **Questions:** 100+
45
+ **Outputs:** PRD, Architecture, Stories, Business Model
46
+
47
+ ---
48
+
49
+ ## 1. PRP Framework
50
+
51
+ ### Origin
52
+ Created by Wirasm as a concise way to communicate product requirements to AI agents.
53
+
54
+ ### Philosophy
55
+ Focus on **what** needs to be built and **why**, giving AI maximum context to determine **how**.
56
+
57
+ ### Structure
58
+
59
+ #### 1. Goal Definition
60
+ **Purpose:** Crystal clear objective
61
+ **Questions:**
62
+ - What specific software feature/product are you building?
63
+ - Who are the users?
64
+ - What problem does it solve?
65
+ - What does success look like?
66
+
67
+ **Output Format:**
68
+ ```markdown
69
+ ## Goal
70
+ Build a [TYPE] that allows [USERS] to [ACTION] in order to [OUTCOME].
71
+ ```
72
+
73
+ #### 2. Business Justification
74
+ **Purpose:** Why this matters now
75
+ **Questions:**
76
+ - Why build this now?
77
+ - What's the business value?
78
+ - What are the risks of not building?
79
+
80
+ **Output Format:**
81
+ ```markdown
82
+ ## Business Justification
83
+ This feature will [BUSINESS_VALUE] and addresses [PAIN_POINT].
84
+ Not building this results in [RISKS].
85
+ ```
86
+
87
+ #### 3. Contextual Intelligence
88
+ **Purpose:** Technical landscape
89
+ **Questions:**
90
+ - Technology stack?
91
+ - Platform (web/mobile/desktop)?
92
+ - User interaction patterns?
93
+ - Data requirements?
94
+ - Integration points?
95
+
96
+ **Output Format:**
97
+ ```markdown
98
+ ## Context
99
+ - **Stack:** React 18, TypeScript, Node.js, PostgreSQL
100
+ - **Platform:** Web responsive
101
+ - **Users:** Internal team (10-50 users)
102
+ - **Data:** User profiles, activity logs, analytics
103
+ - **Integrations:** Slack API, GitHub API
104
+ ```
105
+
106
+ #### 4. Implementation Blueprint
107
+ **Purpose:** How to build it
108
+ **Questions:**
109
+ - File structure?
110
+ - Core components?
111
+ - Data flow?
112
+ - API endpoints?
113
+ - Edge cases?
114
+
115
+ **Output Format:**
116
+ ```markdown
117
+ ## Implementation
118
+ ### File Structure
119
+ - src/components/Dashboard/
120
+ - src/api/analytics/
121
+ - src/utils/dataProcessing/
122
+
123
+ ### Core Logic
124
+ 1. Fetch data from analytics API
125
+ 2. Process and aggregate by time period
126
+ 3. Render charts with React components
127
+ 4. Enable export to CSV
128
+
129
+ ### Edge Cases
130
+ - No data available → show empty state
131
+ - API timeout → retry with exponential backoff
132
+ ```
133
+
134
+ #### 5. Validation
135
+ **Purpose:** How to measure success
136
+ **Questions:**
137
+ - Success criteria?
138
+ - Testing approach?
139
+ - Metrics to track?
140
+
141
+ **Output Format:**
142
+ ```markdown
143
+ ## Validation
144
+ ### Success Criteria
145
+ - [ ] Dashboard loads in <2s
146
+ - [ ] All charts render correctly
147
+ - [ ] Export works for 1M+ rows
148
+
149
+ ### Testing
150
+ - Unit tests for data processing
151
+ - Integration tests for API calls
152
+ - E2E tests for user workflows
153
+
154
+ ### Metrics
155
+ - Page load time
156
+ - User engagement (daily active users)
157
+ - Export usage frequency
158
+ ```
159
+
160
+ ### PRP Benefits
161
+ - Fast to create (5-15 min)
162
+ - AI-friendly format
163
+ - Focuses on outcomes
164
+ - Prevents over-specification
165
+
166
+ ---
167
+
168
+ ## 2. Spec-Kit Framework
169
+
170
+ ### Origin
171
+ Specification framework for detailed technical documentation.
172
+
173
+ ### Philosophy
174
+ Bridge between business requirements and technical implementation.
175
+
176
+ ### Structure
177
+
178
+ #### Constitution
179
+ **Purpose:** Project principles and constraints
180
+ **Content:**
181
+ - Core principles
182
+ - Non-negotiables
183
+ - Technical constraints
184
+ - Team conventions
185
+
186
+ **Example:**
187
+ ```markdown
188
+ ## Constitution
189
+
190
+ ### Principles
191
+ 1. User privacy is paramount
192
+ 2. Performance over features
193
+ 3. Accessibility first
194
+
195
+ ### Non-Negotiables
196
+ - No third-party analytics
197
+ - WCAG 2.1 AA compliance
198
+ - <100ms API response time
199
+
200
+ ### Constraints
201
+ - Must work on IE11
202
+ - Max bundle size: 500KB
203
+ - SQLite only (no external DB)
204
+ ```
205
+
206
+ #### Specification
207
+ **Purpose:** Detailed functional spec
208
+ **Content:**
209
+ - User flows (step-by-step)
210
+ - UI/UX details
211
+ - Data models
212
+ - API contracts
213
+ - Error handling
214
+
215
+ #### Technical Plan
216
+ **Purpose:** Architecture and technical decisions
217
+ **Content:**
218
+ - System architecture
219
+ - Component breakdown
220
+ - Data flow diagrams
221
+ - Performance considerations
222
+ - Security measures
223
+
224
+ #### Task Breakdown
225
+ **Purpose:** Implementation roadmap
226
+ **Content:**
227
+ - Epic/Story/Task hierarchy
228
+ - Dependencies
229
+ - Estimates
230
+ - Acceptance criteria
231
+
232
+ ### Spec-Kit Benefits
233
+ - Comprehensive documentation
234
+ - Team alignment
235
+ - Reduces ambiguity
236
+ - Enables parallel work
237
+
238
+ ---
239
+
240
+ ## 3. BMAD Framework
241
+
242
+ ### Origin
243
+ Business Model Architecture Design - holistic product framework.
244
+
245
+ ### Philosophy
246
+ Align business model, user needs, and technical architecture.
247
+
248
+ ### Structure
249
+
250
+ #### Business Model Canvas
251
+ **Components:**
252
+ 1. Customer Segments
253
+ 2. Value Propositions
254
+ 3. Channels
255
+ 4. Customer Relationships
256
+ 5. Revenue Streams
257
+ 6. Key Resources
258
+ 7. Key Activities
259
+ 8. Key Partnerships
260
+ 9. Cost Structure
261
+
262
+ #### Architecture Design
263
+ **Levels:**
264
+ 1. System Context
265
+ 2. Container Diagram
266
+ 3. Component Diagram
267
+ 4. Code Structure
268
+
269
+ #### User Stories
270
+ **Format:**
271
+ ```
272
+ As a [ROLE]
273
+ I want to [ACTION]
274
+ So that [BENEFIT]
275
+
276
+ Acceptance Criteria:
277
+ - [ ] Criterion 1
278
+ - [ ] Criterion 2
279
+ ```
280
+
281
+ #### Product Requirements Document
282
+ **Sections:**
283
+ 1. Executive Summary
284
+ 2. Problem Statement
285
+ 3. Goals and Objectives
286
+ 4. User Personas
287
+ 5. User Journeys
288
+ 6. Features and Requirements
289
+ 7. Technical Architecture
290
+ 8. Success Metrics
291
+ 9. Risks and Mitigations
292
+ 10. Timeline and Milestones
293
+
294
+ ### BMAD Benefits
295
+ - Complete business alignment
296
+ - Holistic view
297
+ - Stakeholder buy-in
298
+ - Long-term vision
299
+
300
+ ---
301
+
302
+ ## 4. Context Engineering
303
+
304
+ ### Origin
305
+ Methodology for managing AI agent context.
306
+
307
+ ### Philosophy
308
+ Keep AI agents focused and productive through structured context.
309
+
310
+ ### Techniques
311
+
312
+ #### Context Layering
313
+ ```
314
+ Layer 1: Project Context (always present)
315
+ Layer 2: Current Feature Context
316
+ Layer 3: Current Task Context
317
+ ```
318
+
319
+ #### Memory Management
320
+ - Short-term: Current conversation
321
+ - Medium-term: Current feature
322
+ - Long-term: Project principles
323
+
324
+ #### Prompt Patterns
325
+ - Role definition
326
+ - Constraint specification
327
+ - Output format examples
328
+ - Iterative refinement
329
+
330
+ ### Context Engineering Benefits
331
+ - AI stays on task
332
+ - Consistent outputs
333
+ - Faster iteration
334
+ - Better quality
335
+
336
+ ---
337
+
338
+ ## Framework Combination Strategy
339
+
340
+ ### How Frameworks Complement Each Other
341
+
342
+ ```
343
+ PRP → Quick requirements
344
+
345
+ Spec-Kit → Detailed specification
346
+
347
+ BMAD → Business alignment
348
+
349
+ Context Engineering → AI execution
350
+ ```
351
+
352
+ ### ADF CLI Workflow Selection
353
+
354
+ **Discovery Questions (4):**
355
+ 1. Project size/complexity?
356
+ 2. Timeline urgency?
357
+ 3. Team size?
358
+ 4. Documentation needs?
359
+
360
+ **Selection Logic:**
361
+ ```
362
+ IF quick + clear requirements → PRP
363
+ ELSE IF medium + team collaboration → Balanced (PRP + Spec-Kit)
364
+ ELSE IF large + business alignment → BMAD
365
+ ```
366
+
367
+ ### Output Synergy
368
+
369
+ All frameworks produce:
370
+ 1. **Human-readable docs** for team reference
371
+ 2. **AI-optimized prompts** for development
372
+ 3. **Structured data** for tool integration
373
+
374
+ ---
375
+
376
+ ## Future Framework Extensions
377
+
378
+ ### Planned Additions
379
+
380
+ 1. **Lean Canvas** integration
381
+ 2. **Jobs to Be Done** framework
382
+ 3. **Event Storming** for domain modeling
383
+ 4. **C4 Model** for architecture
384
+
385
+ ### Plugin System
386
+
387
+ Allow community to add custom frameworks:
388
+
389
+ ```javascript
390
+ // .adf/custom-frameworks/my-framework.js
391
+ module.exports = {
392
+ name: 'My Framework',
393
+ questions: [...],
394
+ generator: (answers) => {...}
395
+ }
396
+ ```
397
+
398
+ ---
399
+
400
+ ## Framework Comparison
401
+
402
+ | Aspect | PRP | Spec-Kit | BMAD |
403
+ |--------|-----|----------|------|
404
+ | Time | 5-15 min | 30-60 min | 1-2+ hours |
405
+ | Scope | Single feature | Medium project | Full product |
406
+ | Detail | High-level | Detailed | Comprehensive |
407
+ | Outputs | 1 doc | 4 docs | 10+ docs |
408
+ | Team Size | Solo | 2-5 | 5+ |
409
+ | AI Friendly | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ |
410
+ | Business Alignment | ⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
411
+ | Technical Depth | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
412
+
413
+ ---
414
+
415
+ ## Best Practices
416
+
417
+ ### When to Use Each Framework
418
+
419
+ **Use PRP when:**
420
+ - Adding feature to existing app
421
+ - Rapid prototyping
422
+ - Clear requirements
423
+ - Solo developer
424
+ - Short timeline (<1 week)
425
+
426
+ **Use Balanced when:**
427
+ - New medium-sized project
428
+ - Team of 2-5 developers
429
+ - Need technical specification
430
+ - Iterative development
431
+ - Timeline: 2-8 weeks
432
+
433
+ **Use BMAD when:**
434
+ - New product launch
435
+ - Business model uncertainty
436
+ - Large team (5+ people)
437
+ - Complex domain
438
+ - Long-term project (3+ months)
439
+
440
+ ### Hybrid Approaches
441
+
442
+ **PRP → BMAD:**
443
+ Start fast with PRP, expand to BMAD as complexity grows
444
+
445
+ **Spec-Kit → PRP:**
446
+ Use Spec-Kit for planning, PRP for AI communication
447
+
448
+ **Custom Mix:**
449
+ Cherry-pick sections from each framework as needed
@@ -0,0 +1,112 @@
1
+ # ADF CLI - Project Vision & Goals
2
+
3
+ ## Vision Statement
4
+
5
+ Create the definitive AI-driven requirements gathering tool that transforms vague ideas into comprehensive, actionable development documentation through intelligent conversation.
6
+
7
+ ## Core Problem
8
+
9
+ Developers and teams struggle with:
10
+ 1. Creating comprehensive requirements documents
11
+ 2. Maintaining AI agent focus throughout development
12
+ 3. Choosing the right framework (PRP/BMAD/Spec-Kit)
13
+ 4. Integrating frameworks with their IDE tools
14
+ 5. Losing work due to incomplete sessions
15
+
16
+ ## Solution
17
+
18
+ A CLI tool that:
19
+ - Guides users through intelligent, adaptive interviews
20
+ - Measures information quality, not question count
21
+ - Never loses user data (triple-redundant saves)
22
+ - Generates framework-specific outputs
23
+ - Integrates directly into IDE tools (Windsurf, Cursor, VS Code)
24
+ - Supports resume capability for long sessions
25
+
26
+ ## Success Criteria
27
+
28
+ ### User Experience
29
+ - [ ] User can complete PRP interview in <15 minutes
30
+ - [ ] User can save and resume any session
31
+ - [ ] Zero data loss, even during crashes
32
+ - [ ] Clear progress indication based on information richness
33
+ - [ ] Smooth integration with IDE tools
34
+
35
+ ### Technical
36
+ - [ ] 100% test coverage for data persistence
37
+ - [ ] Triple-redundant save system with emergency fallback
38
+ - [ ] Quality-based progress tracking (not just question count)
39
+ - [ ] Resume capability from exact point of interruption
40
+ - [ ] Tool-specific outputs for Windsurf, Cursor, VS Code
41
+
42
+ ### Business
43
+ - [ ] NPM package published and maintained
44
+ - [ ] Documentation complete and clear
45
+ - [ ] Community adoption and feedback
46
+ - [ ] Regular updates based on framework evolution
47
+
48
+ ## Target Users
49
+
50
+ ### Primary
51
+ - Solo developers starting new projects
52
+ - Teams needing structured requirements
53
+ - AI-assisted development practitioners
54
+
55
+ ### Secondary
56
+ - Product managers creating PRDs
57
+ - Technical leads planning architecture
58
+ - Open source maintainers documenting features
59
+
60
+ ## Competitive Advantage
61
+
62
+ 1. **Quality over Quantity**: First tool to measure information richness vs question count
63
+ 2. **Never Lose Data**: Most robust save system in CLI tools
64
+ 3. **Framework Expertise**: Deep integration with proven methodologies (PRP, BMAD, Spec-Kit)
65
+ 4. **Tool Integration**: Direct IDE integration, not just file generation
66
+ 5. **Adaptive Intelligence**: Questions adapt based on answer quality
67
+
68
+ ## Roadmap
69
+
70
+ ### Phase 1: Core System (Current)
71
+ - Quality-based progress tracking
72
+ - Triple-redundant saves
73
+ - Resume capability
74
+ - Framework-specific outputs
75
+
76
+ ### Phase 2: Tool Integration
77
+ - Windsurf customizations
78
+ - Cursor customizations
79
+ - VS Code customizations
80
+ - Deploy command enhancements
81
+
82
+ ### Phase 3: Intelligence
83
+ - Smart question skipping based on previous answers
84
+ - Context-aware follow-ups
85
+ - Multi-session learning
86
+ - Suggested improvements to answers
87
+
88
+ ### Phase 4: Community
89
+ - Plugin system for custom frameworks
90
+ - Shareable interview templates
91
+ - Community question database
92
+ - Analytics and insights
93
+
94
+ ## Key Metrics
95
+
96
+ ### Quality Metrics
97
+ - Information Richness Score (0-100%)
98
+ - Average Answer Quality (0-100%)
99
+ - Comprehensive Answers Count
100
+ - Total Word Count
101
+
102
+ ### Session Metrics
103
+ - Session Completion Rate
104
+ - Resume Success Rate
105
+ - Average Time per Framework
106
+ - Data Loss Incidents (target: 0)
107
+
108
+ ### Adoption Metrics
109
+ - NPM Downloads
110
+ - GitHub Stars
111
+ - Issue Resolution Time
112
+ - Community Contributions