owflow 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +8 -1
  2. package/dist/agents/bottleneck-analyzer.md +329 -0
  3. package/dist/agents/code-quality-pragmatist.md +354 -0
  4. package/dist/agents/code-reviewer.md +239 -0
  5. package/dist/agents/codebase-analysis-reporter.md +246 -0
  6. package/dist/agents/docs-operator.md +23 -0
  7. package/dist/agents/e2e-test-verifier.md +448 -0
  8. package/dist/agents/gap-analyzer.md +502 -0
  9. package/dist/agents/implementation-completeness-checker.md +220 -0
  10. package/dist/agents/implementation-planner.md +309 -0
  11. package/dist/agents/information-gatherer.md +691 -0
  12. package/dist/agents/production-readiness-checker.md +279 -0
  13. package/dist/agents/project-analyzer.md +404 -0
  14. package/dist/agents/reality-assessor.md +366 -0
  15. package/dist/agents/research-planner.md +447 -0
  16. package/dist/agents/research-synthesizer.md +401 -0
  17. package/dist/agents/solution-brainstormer.md +257 -0
  18. package/dist/agents/solution-designer.md +372 -0
  19. package/dist/agents/spec-auditor.md +298 -0
  20. package/dist/agents/specification-creator.md +334 -0
  21. package/dist/agents/task-classifier.md +462 -0
  22. package/dist/agents/task-group-implementer.md +284 -0
  23. package/dist/agents/test-suite-runner.md +195 -0
  24. package/dist/agents/ui-mockup-generator.md +369 -0
  25. package/dist/agents/user-docs-generator.md +509 -0
  26. package/dist/commands/development.md +37 -0
  27. package/dist/commands/flow-init.md +37 -0
  28. package/dist/commands/migration.md +37 -0
  29. package/dist/commands/performance.md +37 -0
  30. package/dist/commands/product-design.md +37 -0
  31. package/dist/commands/quick-bugfix.md +37 -0
  32. package/dist/commands/quick-dev.md +140 -0
  33. package/dist/commands/quick-plan.md +132 -0
  34. package/dist/commands/research.md +37 -0
  35. package/dist/commands/reviews-code.md +90 -0
  36. package/dist/commands/reviews-pragmatic.md +99 -0
  37. package/dist/commands/reviews-production-readiness.md +113 -0
  38. package/dist/commands/reviews-reality-check.md +110 -0
  39. package/dist/commands/reviews-spec-audit.md +114 -0
  40. package/dist/commands/standards-discover.md +37 -0
  41. package/dist/commands/standards-update.md +37 -0
  42. package/dist/commands/work.md +284 -0
  43. package/dist/skills/codebase-analyzer/SKILL.md +162 -0
  44. package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -0
  45. package/dist/skills/codebase-analyzer/references/combined.md +31 -0
  46. package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -0
  47. package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -0
  48. package/dist/skills/codebase-analyzer/references/migration-target.md +23 -0
  49. package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -0
  50. package/dist/skills/development/SKILL.md +669 -0
  51. package/dist/skills/docs-manager/SKILL.md +379 -0
  52. package/dist/skills/docs-manager/docs/INDEX.md +199 -0
  53. package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -0
  54. package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -0
  55. package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -0
  56. package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -0
  57. package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -0
  58. package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -0
  59. package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -0
  60. package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -0
  61. package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -0
  62. package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -0
  63. package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -0
  64. package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -0
  65. package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -0
  66. package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -0
  67. package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -0
  68. package/dist/skills/docs-manager/references/claude-md-template.md +29 -0
  69. package/dist/skills/docs-manager/references/index-md-template.md +73 -0
  70. package/dist/skills/flow-init/SKILL.md +198 -0
  71. package/dist/skills/flow-init/references/architecture-template.md +45 -0
  72. package/dist/skills/flow-init/references/roadmap-templates.md +93 -0
  73. package/dist/skills/flow-init/references/tech-stack-template.md +70 -0
  74. package/dist/skills/flow-init/references/vision-templates.md +75 -0
  75. package/dist/skills/implementation-plan-executor/SKILL.md +378 -0
  76. package/dist/skills/implementation-verifier/SKILL.md +307 -0
  77. package/dist/skills/migration/SKILL.md +380 -0
  78. package/dist/skills/migration/references/migration-strategies.md +397 -0
  79. package/dist/skills/migration/references/migration-types.md +437 -0
  80. package/dist/skills/orchestrator-framework/SKILL.md +65 -0
  81. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +47 -0
  82. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +329 -0
  83. package/dist/skills/performance/SKILL.md +418 -0
  84. package/dist/skills/performance/references/performance-optimization-guide.md +365 -0
  85. package/dist/skills/product-design/SKILL.md +843 -0
  86. package/dist/skills/product-design/references/characteristic-detection.md +92 -0
  87. package/dist/skills/product-design/references/interaction-patterns.md +206 -0
  88. package/dist/skills/product-design/references/visual-companion.md +190 -0
  89. package/dist/skills/product-design/server/index.ts +359 -0
  90. package/dist/skills/product-design/server/template.html +256 -0
  91. package/dist/skills/quick-bugfix/SKILL.md +241 -0
  92. package/dist/skills/research/SKILL.md +493 -0
  93. package/dist/skills/research/references/brainstorming-techniques.md +84 -0
  94. package/dist/skills/research/references/design-techniques.md +40 -0
  95. package/dist/skills/research/references/research-methodologies.md +710 -0
  96. package/dist/skills/standards-discover/SKILL.md +236 -0
  97. package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -0
  98. package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -0
  99. package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -0
  100. package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -0
  101. package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -0
  102. package/dist/skills/standards-update/SKILL.md +159 -0
  103. package/package.json +7 -6
@@ -0,0 +1,710 @@
1
+ # Research Methodologies Reference
2
+
3
+ This reference provides conceptual patterns and decision frameworks for research methodology selection and execution in the AI SDLC Research Orchestrator.
4
+
5
+ ## Purpose
6
+
7
+ Research methodologies guide how information is gathered, analyzed, and synthesized to answer research questions. This reference helps the orchestrator select appropriate methodologies based on research type and adapt execution strategies to research objectives.
8
+
9
+ ---
10
+
11
+ ## Research Type Classification
12
+
13
+ ### Decision Criteria
14
+
15
+ Research type classification determines which methodology to apply. Use question analysis and keyword detection:
16
+
17
+ **Technical Research**:
18
+
19
+ - **Keywords**: "how does", "where is", "what patterns", "how is implemented", "architecture of"
20
+ - **Focus**: Understanding codebase implementation, patterns, and architecture
21
+ - **Primary sources**: Source code, configuration, tests
22
+ - **Output emphasis**: Implementation details, architectural diagrams, pattern documentation
23
+
24
+ **Requirements Research**:
25
+
26
+ - **Keywords**: "what are the requirements", "user needs", "business requirements", "stakeholder", "acceptance criteria"
27
+ - **Focus**: Understanding what needs to be built and why
28
+ - **Primary sources**: Documentation, issues, user stories, PRs
29
+ - **Output emphasis**: Requirements lists, user stories, constraints, priorities
30
+
31
+ **Literature Research**:
32
+
33
+ - **Keywords**: "best practices", "industry standards", "recommended approach", "how others do", "state of the art"
34
+ - **Focus**: Understanding established patterns and recommendations
35
+ - **Primary sources**: Documentation, web resources, framework docs, academic papers
36
+ - **Output emphasis**: Best practices, trade-offs, recommendations
37
+
38
+ **Mixed Research**:
39
+
40
+ - **Keywords**: Combination of above or broad questions like "everything about X"
41
+ - **Focus**: Comprehensive understanding requiring multiple perspectives
42
+ - **Primary sources**: All applicable sources
43
+ - **Output emphasis**: Holistic view with multiple dimensions
44
+
45
+ ---
46
+
47
+ ## Methodology Selection Framework
48
+
49
+ ### Technical Research Methodology
50
+
51
+ **When to use**: Investigating how something works in the codebase
52
+
53
+ **Approach**: Codebase analysis with iterative deepening
54
+
55
+ **Strategy**:
56
+
57
+ 1. **Broad Discovery**: Pattern matching to find all relevant files
58
+ 2. **Structural Analysis**: Understand organization and architecture
59
+ 3. **Implementation Reading**: Read code to understand details
60
+ 4. **Flow Tracing**: Follow execution paths and data flows
61
+ 5. **Integration Mapping**: Understand connections and dependencies
62
+
63
+ **Tools**:
64
+
65
+ - Glob: File pattern matching
66
+ - Grep: Code pattern searching
67
+ - Read: Full file analysis
68
+ - Bash: Directory structure exploration
69
+
70
+ **Expected Timeline**: 2-4 phases depending on complexity
71
+
72
+ **Success Indicators**:
73
+
74
+ - All major components identified
75
+ - Execution flows documented
76
+ - Integration points mapped
77
+ - Patterns recognized and documented
78
+
79
+ ---
80
+
81
+ ### Requirements Research Methodology
82
+
83
+ **When to use**: Understanding what needs to be built
84
+
85
+ **Approach**: Documentation synthesis with stakeholder input analysis
86
+
87
+ **Strategy**:
88
+
89
+ 1. **Document Collection**: Gather all requirement sources
90
+ 2. **Content Extraction**: Extract requirements, user stories, acceptance criteria
91
+ 3. **Categorization**: Organize by priority, stakeholder, feature area
92
+ 4. **Gap Identification**: Find missing, conflicting, or unclear requirements
93
+ 5. **Synthesis**: Create comprehensive requirement specification
94
+
95
+ **Tools**:
96
+
97
+ - Glob: Find requirement documents
98
+ - Read: Document analysis
99
+ - Grep: Search for keywords (requirement, must, should, acceptance criteria)
100
+
101
+ **Expected Timeline**: 2-3 phases
102
+
103
+ **Success Indicators**:
104
+
105
+ - All requirements captured
106
+ - Priorities established
107
+ - Conflicts resolved
108
+ - Acceptance criteria clear
109
+
110
+ ---
111
+
112
+ ### Literature Research Methodology
113
+
114
+ **When to use**: Understanding best practices or industry approaches
115
+
116
+ **Approach**: Multi-source review with comparative analysis
117
+
118
+ **Strategy**:
119
+
120
+ 1. **Source Identification**: Find authoritative sources (framework docs, standards, papers)
121
+ 2. **Content Review**: Read and extract key recommendations
122
+ 3. **Comparison**: Compare different approaches and their trade-offs
123
+ 4. **Applicability Assessment**: Evaluate what fits project constraints
124
+ 5. **Recommendation**: Synthesize into actionable recommendations
125
+
126
+ **Tools**:
127
+
128
+ - WebSearch: Find authoritative sources
129
+ - WebFetch: Read external documentation
130
+ - Read: Internal documentation review
131
+
132
+ **Expected Timeline**: 2-3 phases
133
+
134
+ **Success Indicators**:
135
+
136
+ - Multiple authoritative sources consulted
137
+ - Approaches compared and contrasted
138
+ - Trade-offs understood
139
+ - Recommendations aligned with project constraints
140
+
141
+ ---
142
+
143
+ ### Mixed Research Methodology
144
+
145
+ **When to use**: Complex questions requiring multiple perspectives
146
+
147
+ **Approach**: Hybrid methodology combining above approaches
148
+
149
+ **Strategy**:
150
+
151
+ 1. **Question Decomposition**: Break into technical, requirements, and literature sub-questions
152
+ 2. **Parallel Investigation**: Execute appropriate methodology for each sub-question
153
+ 3. **Cross-Referencing**: Identify relationships between different dimensions
154
+ 4. **Integrated Synthesis**: Combine insights into holistic view
155
+
156
+ **Tools**: All applicable tools from above methodologies
157
+
158
+ **Expected Timeline**: 3-5 phases depending on breadth
159
+
160
+ **Success Indicators**:
161
+
162
+ - All dimensions investigated
163
+ - Relationships mapped between dimensions
164
+ - Holistic understanding achieved
165
+ - Comprehensive recommendations provided
166
+
167
+ ---
168
+
169
+ ## Source Identification Patterns
170
+
171
+ ### Codebase Sources
172
+
173
+ **File Pattern Generation**:
174
+
175
+ 1. Extract key terms from research question (nouns, technical terms)
176
+ 2. Generate patterns:
177
+
178
+ ```
179
+ **/*{term}*.{js,ts,py,java,go,rb,php}
180
+ **/services/{term}*
181
+ **/controllers/{term}*
182
+ **/middleware/{term}*
183
+ **/models/{term}*
184
+ **/utils/{term}*
185
+ ```
186
+
187
+ 3. Search by concept:
188
+ ```
189
+ Authentication → **/*auth*, **/security/*, **/session/*
190
+ Database → **/*db*, **/*database*, **/*models*, **/*repository*
191
+ API → **/*api*, **/*routes*, **/*controllers*, **/*endpoints*
192
+ ```
193
+
194
+ **Directory Structure Analysis**:
195
+
196
+ - List directories to understand organization
197
+ - Identify module boundaries
198
+ - Map feature areas
199
+
200
+ **Test Files**:
201
+
202
+ - Tests provide usage examples and expected behavior
203
+ - Pattern: `**/*test*, **/*spec*, tests/**, __tests__/**`
204
+
205
+ **Configuration**:
206
+
207
+ - Configuration reveals setup and dependencies
208
+ - Files: `package.json`, `pom.xml`, `requirements.txt`, `Gemfile`, `go.mod`
209
+ - Config directories: `config/`, `.config/`, `conf/`
210
+
211
+ ---
212
+
213
+ ### Documentation Sources
214
+
215
+ **Project Documentation**:
216
+
217
+ - `.owflow/docs/**/*.md` - AI SDLC framework documentation
218
+ - `docs/**/*.md` - Project documentation
219
+ - `README.md`, `ARCHITECTURE.md`, `CONTRIBUTING.md` - Root docs
220
+
221
+ **Code Documentation**:
222
+
223
+ - Inline comments
224
+ - JSDoc, Javadoc, docstrings
225
+ - Header comments explaining purpose
226
+
227
+ **Standard Locations**:
228
+
229
+ ```
230
+ docs/
231
+ architecture/
232
+ api/
233
+ guides/
234
+ standards/
235
+ .owflow/docs/
236
+ project/
237
+ standards/
238
+ ```
239
+
240
+ ---
241
+
242
+ ### Configuration Sources
243
+
244
+ **Dependency Files**:
245
+
246
+ - JavaScript: `package.json`, `yarn.lock`
247
+ - Python: `requirements.txt`, `Pipfile`, `pyproject.toml`
248
+ - Java: `pom.xml`, `build.gradle`
249
+ - Ruby: `Gemfile`
250
+ - Go: `go.mod`
251
+
252
+ **Environment Configuration**:
253
+
254
+ - `.env.example` (never .env - contains secrets)
255
+ - `config/*.{json,yml,yaml,toml}`
256
+ - Environment-specific: `config/development.yml`, `config/production.yml`
257
+
258
+ **Infrastructure Configuration**:
259
+
260
+ - `docker-compose.yml`
261
+ - `Dockerfile`
262
+ - `kubernetes/*.yaml`
263
+ - `.github/workflows/*.yml` (CI/CD)
264
+
265
+ ---
266
+
267
+ ### External Sources
268
+
269
+ **Framework Documentation**:
270
+
271
+ - Official docs for frameworks used (React, Django, Spring, Rails, etc.)
272
+ - Version-specific documentation (match versions in project)
273
+
274
+ **Best Practices**:
275
+
276
+ - Official style guides
277
+ - Industry standards (OWASP, W3C, IETF RFCs)
278
+ - Authoritative blogs and articles
279
+
280
+ **Academic Sources**:
281
+
282
+ - Research papers (if applicable)
283
+ - Technical specifications
284
+ - Standards documents
285
+
286
+ **Caution**: Validate external sources are:
287
+
288
+ - Authoritative (official or widely recognized)
289
+ - Current (not outdated)
290
+ - Applicable (matches project context)
291
+
292
+ ---
293
+
294
+ ## Information Gathering Strategies
295
+
296
+ ### Iterative Deepening Strategy
297
+
298
+ **Phase 1: Broad Discovery** (fast, high-level)
299
+
300
+ - Use Glob to find all potentially relevant files
301
+ - Quick scan of directory structure
302
+ - Identify major areas
303
+
304
+ **Phase 2: Targeted Reading** (moderate depth)
305
+
306
+ - Read key files completely
307
+ - Extract main components and patterns
308
+ - Identify integration points
309
+
310
+ **Phase 3: Deep Dive** (detailed analysis)
311
+
312
+ - Trace specific flows
313
+ - Understand implementation details
314
+ - Map dependencies
315
+
316
+ **Phase 4: Verification** (validation)
317
+
318
+ - Cross-reference findings
319
+ - Validate understanding with tests
320
+ - Identify gaps
321
+
322
+ **Adaptation**: Skip or combine phases based on research complexity
323
+
324
+ ---
325
+
326
+ ### Multi-Source Triangulation Strategy
327
+
328
+ **Purpose**: Validate findings through multiple independent sources
329
+
330
+ **Approach**:
331
+
332
+ 1. Gather information from source type A (e.g., code)
333
+ 2. Gather information from source type B (e.g., docs)
334
+ 3. Gather information from source type C (e.g., tests)
335
+ 4. Compare findings across sources
336
+ 5. High confidence: Sources agree
337
+ 6. Medium confidence: Some agreement
338
+ 7. Low confidence: Sources disagree or single source only
339
+
340
+ **Example**:
341
+
342
+ - **Code** says authentication uses JWT
343
+ - **Configuration** shows jwt library in dependencies
344
+ - **Tests** validate JWT token generation
345
+ - **Conclusion**: High confidence - JWT authentication confirmed by 3 sources
346
+
347
+ ---
348
+
349
+ ### Progressive Refinement Strategy
350
+
351
+ **Purpose**: Start broad, progressively narrow focus
352
+
353
+ **Approach**:
354
+
355
+ 1. **Start Broad**: Search entire codebase for relevant terms
356
+ 2. **Initial Filtering**: Identify most relevant directories/files
357
+ 3. **Focused Investigation**: Deep dive into filtered set
358
+ 4. **Targeted Expansion**: Expand to related areas as needed
359
+ 5. **Final Verification**: Confirm understanding is complete
360
+
361
+ **Example**:
362
+
363
+ 1. Search for "payment" across entire codebase → 150 files
364
+ 2. Filter to payment module → 30 files
365
+ 3. Read core payment service files → 5 files
366
+ 4. Expand to payment gateway integration → 8 more files
367
+ 5. Verify with payment tests → 10 test files
368
+
369
+ ---
370
+
371
+ ## Analysis Frameworks
372
+
373
+ ### Technical Research Analysis Framework
374
+
375
+ **Component Inventory**:
376
+
377
+ - List all components/modules/classes
378
+ - Categorize by responsibility (service, controller, model, util)
379
+ - Map directory structure to logical architecture
380
+
381
+ **Pattern Recognition**:
382
+
383
+ - Identify design patterns (singleton, factory, strategy, etc.)
384
+ - Recognize architectural patterns (MVC, layered, microservices)
385
+ - Document consistency of pattern application
386
+
387
+ **Flow Analysis**:
388
+
389
+ - Trace request/response flows
390
+ - Map data transformations
391
+ - Document control flow (decision points, loops)
392
+ - Identify error handling flows
393
+
394
+ **Integration Mapping**:
395
+
396
+ - Internal dependencies (module A depends on module B)
397
+ - External dependencies (third-party libraries, external APIs)
398
+ - Database interactions
399
+ - Infrastructure dependencies
400
+
401
+ **Quality Assessment**:
402
+
403
+ - Code quality (duplication, complexity, readability)
404
+ - Test coverage (what's tested, what's not)
405
+ - Documentation quality (comprehensive, missing, outdated)
406
+ - Consistency (naming, structure, patterns)
407
+
408
+ ---
409
+
410
+ ### Requirements Research Analysis Framework
411
+
412
+ **Requirement Extraction**:
413
+
414
+ - Explicit requirements (stated directly)
415
+ - Implicit requirements (inferred from context)
416
+ - Non-functional requirements (performance, security, scalability)
417
+
418
+ **Categorization**:
419
+
420
+ - By feature area (reporting, authentication, data management)
421
+ - By stakeholder (admin, user, developer, operations)
422
+ - By priority (must-have, should-have, nice-to-have)
423
+ - By type (functional, non-functional, constraint)
424
+
425
+ **Gap Analysis**:
426
+
427
+ - Missing requirements (not specified)
428
+ - Ambiguous requirements (unclear)
429
+ - Conflicting requirements (contradictory)
430
+ - Incomplete requirements (missing details)
431
+
432
+ **Acceptance Criteria**:
433
+
434
+ - Testable conditions for requirement completion
435
+ - Success metrics
436
+ - User validation approach
437
+
438
+ ---
439
+
440
+ ### Literature Research Analysis Framework
441
+
442
+ **Source Evaluation**:
443
+
444
+ - Authority (official docs, recognized experts)
445
+ - Currency (up-to-date vs outdated)
446
+ - Relevance (applicable to project context)
447
+ - Completeness (comprehensive vs superficial)
448
+
449
+ **Approach Comparison**:
450
+
451
+ - Approach A: Description, pros, cons, use cases
452
+ - Approach B: Description, pros, cons, use cases
453
+ - Trade-offs: When to use which
454
+
455
+ **Applicability Assessment**:
456
+
457
+ - Technical fit (compatible with tech stack)
458
+ - Constraint fit (works within limitations)
459
+ - Resource fit (feasible with available resources)
460
+ - Risk assessment (implementation risks)
461
+
462
+ **Recommendation Synthesis**:
463
+
464
+ - What to adopt (and why)
465
+ - What to adapt (and how)
466
+ - What to avoid (and why)
467
+
468
+ ---
469
+
470
+ ## Research Execution Patterns
471
+
472
+ ### Serial Execution Pattern
473
+
474
+ **When**: Phases depend on each other
475
+
476
+ **Flow**:
477
+
478
+ 1. Complete Phase 1 fully
479
+ 2. Use Phase 1 outputs for Phase 2
480
+ 3. Complete Phase 2 fully
481
+ 4. Continue sequentially
482
+
483
+ **Example**: Discovery → Reading → Deep Dive → Synthesis
484
+
485
+ ---
486
+
487
+ ### Parallel Execution Pattern
488
+
489
+ **When**: Independent sub-questions can be investigated simultaneously
490
+
491
+ **Flow**:
492
+
493
+ 1. Decompose research question into independent sub-questions
494
+ 2. Investigate each sub-question in parallel
495
+ 3. Synthesize findings together
496
+
497
+ **Example**:
498
+
499
+ - Sub-question A: "How is authentication implemented?" (codebase)
500
+ - Sub-question B: "What are authentication best practices?" (literature)
501
+ - Both investigated independently, then synthesized
502
+
503
+ ---
504
+
505
+ ### Spiral Pattern
506
+
507
+ **When**: Understanding develops iteratively through repeated cycles
508
+
509
+ **Flow**:
510
+
511
+ 1. Cycle 1: Surface-level understanding across all areas
512
+ 2. Cycle 2: Moderate depth across all areas (informed by Cycle 1)
513
+ 3. Cycle 3: Deep understanding in key areas (informed by Cycle 2)
514
+
515
+ **Example**:
516
+
517
+ - Cycle 1: Find all auth-related files (broad discovery)
518
+ - Cycle 2: Read main auth files (targeted reading)
519
+ - Cycle 3: Trace auth flow end-to-end (deep dive)
520
+
521
+ ---
522
+
523
+ ## Success Criteria Patterns
524
+
525
+ ### Technical Research Success Criteria
526
+
527
+ ✅ **Complete Component Inventory**: All major components identified
528
+ ✅ **Documented Flows**: Key execution paths traced and documented
529
+ ✅ **Pattern Recognition**: Design and architectural patterns identified
530
+ ✅ **Integration Mapping**: Dependencies and integration points mapped
531
+ ✅ **Evidence-Based**: All claims backed by code references
532
+
533
+ ---
534
+
535
+ ### Requirements Research Success Criteria
536
+
537
+ ✅ **Comprehensive Coverage**: All requirements sources consulted
538
+ ✅ **Categorized Requirements**: Requirements organized by priority, stakeholder, type
539
+ ✅ **Gaps Identified**: Missing, ambiguous, conflicting requirements documented
540
+ ✅ **Acceptance Criteria**: Clear success conditions defined
541
+ ✅ **Stakeholder Alignment**: Requirements mapped to stakeholder needs
542
+
543
+ ---
544
+
545
+ ### Literature Research Success Criteria
546
+
547
+ ✅ **Authoritative Sources**: Multiple credible sources consulted
548
+ ✅ **Comparative Analysis**: Different approaches compared
549
+ ✅ **Trade-offs Understood**: Pros/cons of each approach documented
550
+ ✅ **Applicability Assessed**: Recommendations match project constraints
551
+ ✅ **Actionable Recommendations**: Clear guidance for next steps
552
+
553
+ ---
554
+
555
+ ## Confidence Scoring Patterns
556
+
557
+ ### High Confidence (90-100%)
558
+
559
+ **Indicators**:
560
+
561
+ - Multiple independent sources confirm
562
+ - Direct evidence (code, explicit docs)
563
+ - No contradictions found
564
+ - Verified through tests or usage examples
565
+
566
+ **Example**: "Authentication uses Passport.js with JWT strategy"
567
+
568
+ - Evidence: Code imports, configuration, tests, documentation all confirm
569
+
570
+ ---
571
+
572
+ ### Medium Confidence (60-89%)
573
+
574
+ **Indicators**:
575
+
576
+ - Single source or indirect evidence
577
+ - Inferred from patterns or context
578
+ - Minor contradictions or gaps
579
+ - Partial verification
580
+
581
+ **Example**: "Token refresh might be handled by client"
582
+
583
+ - Evidence: Server doesn't have refresh endpoint, but client code unclear
584
+
585
+ ---
586
+
587
+ ### Low Confidence (<60%)
588
+
589
+ **Indicators**:
590
+
591
+ - Speculation or assumption
592
+ - Contradictory evidence
593
+ - No direct confirmation
594
+ - Significant gaps in understanding
595
+
596
+ **Example**: "OAuth integration appears incomplete"
597
+
598
+ - Evidence: OAuth packages installed but no routes configured (ambiguous intent)
599
+
600
+ ---
601
+
602
+ ## Adaptation Strategies
603
+
604
+ ### Adjust Scope Based on Findings
605
+
606
+ **Expand Scope**:
607
+
608
+ - If initial findings reveal related areas that must be understood
609
+ - If dependencies require understanding of additional components
610
+
611
+ **Narrow Scope**:
612
+
613
+ - If research question can be answered with subset of sources
614
+ - If areas are well-documented and don't need deep investigation
615
+
616
+ ---
617
+
618
+ ### Adjust Depth Based on Complexity
619
+
620
+ **Increase Depth**:
621
+
622
+ - If implementations are complex or non-standard
623
+ - If documentation is missing or incomplete
624
+ - If contradictions need resolution
625
+
626
+ **Decrease Depth**:
627
+
628
+ - If implementations are standard and well-documented
629
+ - If patterns are consistent and clear
630
+ - If multiple sources confirm understanding
631
+
632
+ ---
633
+
634
+ ### Adjust Timeline Based on Findings
635
+
636
+ **Extend Timeline**:
637
+
638
+ - Significant gaps in documentation
639
+ - Complex implementations requiring deep analysis
640
+ - Multiple contradictions to resolve
641
+
642
+ **Shorten Timeline**:
643
+
644
+ - Excellent documentation available
645
+ - Standard implementations
646
+ - High confidence early findings
647
+
648
+ ---
649
+
650
+ ## Common Pitfalls and Mitigations
651
+
652
+ ### Pitfall: Scope Creep
653
+
654
+ **Problem**: Research expands beyond original question
655
+ **Mitigation**: Continuously refer back to research question; document scope expansions explicitly
656
+
657
+ ---
658
+
659
+ ### Pitfall: Insufficient Evidence
660
+
661
+ **Problem**: Making claims without adequate proof
662
+ **Mitigation**: Maintain strict citation discipline; mark low-confidence findings
663
+
664
+ ---
665
+
666
+ ### Pitfall: Missing Integration Points
667
+
668
+ **Problem**: Understanding components in isolation without seeing how they connect
669
+ **Mitigation**: Explicitly include integration mapping phase
670
+
671
+ ---
672
+
673
+ ### Pitfall: Outdated Information
674
+
675
+ **Problem**: Relying on old documentation or examples
676
+ **Mitigation**: Check file timestamps; prioritize recently modified files; verify docs match code
677
+
678
+ ---
679
+
680
+ ### Pitfall: Over-Confidence
681
+
682
+ **Problem**: Stating findings with more confidence than evidence warrants
683
+ **Mitigation**: Use confidence scoring; acknowledge limitations; document uncertainties
684
+
685
+ ---
686
+
687
+ ## Methodology Selection Decision Tree
688
+
689
+ ```
690
+ Research Question Received
691
+ |
692
+ v
693
+ Keywords Indicate Type?
694
+ |
695
+ +----+----+
696
+ | |
697
+ Technical Requirements Literature Mixed
698
+ | | | |
699
+ v v v v
700
+ Codebase Documentation Web All
701
+ Analysis Synthesis Research Methods
702
+ | | | |
703
+ v v v v
704
+ Iterative Extraction Comparative Hybrid
705
+ Deepening Analysis Analysis Approach
706
+ ```
707
+
708
+ ---
709
+
710
+ This reference provides patterns and frameworks. Actual implementation adapts these concepts to specific research contexts.