@orchestrator-claude/cli 1.7.2 → 1.7.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 (51) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/templates/base/.orchestrator/patterns/legacy/README.md +360 -0
  4. package/dist/templates/base/.orchestrator/patterns/legacy/php/laravel.patterns.json +396 -0
  5. package/dist/templates/base/.orchestrator/templates/legacy/README.md +296 -0
  6. package/dist/templates/base/.orchestrator/templates/legacy/analysis-report.md.hbs +342 -0
  7. package/dist/templates/base/.orchestrator/templates/legacy/api-spec.yaml.hbs +263 -0
  8. package/dist/templates/base/.orchestrator/templates/legacy/business-rules.md.hbs +449 -0
  9. package/dist/templates/base/.orchestrator/templates/legacy/database-schema.md.hbs +356 -0
  10. package/dist/templates/base/.orchestrator/templates/legacy/dead-code-report.md.hbs +330 -0
  11. package/dist/templates/base/.orchestrator/templates/legacy/discovery-report.md.hbs +267 -0
  12. package/dist/templates/base/.orchestrator/templates/legacy/final-report.md.hbs +451 -0
  13. package/dist/templates/base/.orchestrator/templates/legacy/inventory.json.schema +346 -0
  14. package/dist/templates/base/.orchestrator/templates/legacy/migration-roadmap.md.hbs +571 -0
  15. package/dist/templates/base/.orchestrator/templates/legacy/tech-debt.md.hbs +412 -0
  16. package/dist/templates/base/claude/agents/api-extractor.md +665 -0
  17. package/dist/templates/base/claude/agents/business-rule-miner.md +734 -0
  18. package/dist/templates/base/claude/agents/code-archaeologist.md +715 -0
  19. package/dist/templates/base/claude/agents/legacy-discoverer.md +578 -0
  20. package/dist/templates/base/claude/agents/legacy-synthesizer.md +1097 -0
  21. package/dist/templates/base/claude/agents/schema-extractor.md +767 -0
  22. package/dist/templates/workflows/README.md +137 -0
  23. package/dist/templates/workflows/bug-fix.json +73 -0
  24. package/dist/templates/workflows/feature-development.json +87 -0
  25. package/dist/templates/workflows/legacy-analysis.json +288 -0
  26. package/dist/templates/workflows/refactoring.json +73 -0
  27. package/package.json +1 -1
  28. package/templates/base/.orchestrator/patterns/legacy/README.md +360 -0
  29. package/templates/base/.orchestrator/patterns/legacy/php/laravel.patterns.json +396 -0
  30. package/templates/base/.orchestrator/templates/legacy/README.md +296 -0
  31. package/templates/base/.orchestrator/templates/legacy/analysis-report.md.hbs +342 -0
  32. package/templates/base/.orchestrator/templates/legacy/api-spec.yaml.hbs +263 -0
  33. package/templates/base/.orchestrator/templates/legacy/business-rules.md.hbs +449 -0
  34. package/templates/base/.orchestrator/templates/legacy/database-schema.md.hbs +356 -0
  35. package/templates/base/.orchestrator/templates/legacy/dead-code-report.md.hbs +330 -0
  36. package/templates/base/.orchestrator/templates/legacy/discovery-report.md.hbs +267 -0
  37. package/templates/base/.orchestrator/templates/legacy/final-report.md.hbs +451 -0
  38. package/templates/base/.orchestrator/templates/legacy/inventory.json.schema +346 -0
  39. package/templates/base/.orchestrator/templates/legacy/migration-roadmap.md.hbs +571 -0
  40. package/templates/base/.orchestrator/templates/legacy/tech-debt.md.hbs +412 -0
  41. package/templates/base/claude/agents/api-extractor.md +665 -0
  42. package/templates/base/claude/agents/business-rule-miner.md +734 -0
  43. package/templates/base/claude/agents/code-archaeologist.md +715 -0
  44. package/templates/base/claude/agents/legacy-discoverer.md +578 -0
  45. package/templates/base/claude/agents/legacy-synthesizer.md +1097 -0
  46. package/templates/base/claude/agents/schema-extractor.md +767 -0
  47. package/templates/workflows/README.md +137 -0
  48. package/templates/workflows/bug-fix.json +73 -0
  49. package/templates/workflows/feature-development.json +87 -0
  50. package/templates/workflows/legacy-analysis.json +288 -0
  51. package/templates/workflows/refactoring.json +73 -0
@@ -0,0 +1,571 @@
1
+ # Migration Roadmap: {{projectName}}
2
+
3
+ **Generated:** {{generatedAt}}
4
+ **Agent:** legacy-synthesizer
5
+ **Workflow Phase:** RECOMMEND
6
+ **Strategy:** {{strategy.name}}
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ {{summary}}
13
+
14
+ **Recommended Strategy:** {{strategy.name}}
15
+ **Total Duration:** {{roadmap.totalDuration}}
16
+ **Total Effort:** {{roadmap.totalEffort}} hours
17
+ **Estimated Cost:** {{roadmap.estimatedCost}}
18
+ **Risk Level:** {{roadmap.riskLevel}}
19
+
20
+ ---
21
+
22
+ ## Migration Strategy
23
+
24
+ ### {{strategy.name}}
25
+
26
+ {{strategy.description}}
27
+
28
+ **Why This Strategy:**
29
+ {{#each strategy.reasons}}
30
+ - {{this}}
31
+ {{/each}}
32
+
33
+ **Key Principles:**
34
+ {{#each strategy.principles}}
35
+ - {{this}}
36
+ {{/each}}
37
+
38
+ **Success Criteria:**
39
+ {{#each strategy.successCriteria}}
40
+ - {{this}}
41
+ {{/each}}
42
+
43
+ ---
44
+
45
+ ## Migration Phases
46
+
47
+ {{#each phases}}
48
+ ## Phase {{@index}}: {{name}}
49
+
50
+ **Duration:** {{duration}}
51
+ **Effort:** {{effort}} hours
52
+ **Team Size:** {{teamSize}} developers
53
+ **Dependencies:** {{#if dependencies}}{{dependencies}}{{else}}None{{/if}}
54
+
55
+ ### Objectives
56
+
57
+ {{#each objectives}}
58
+ - {{this}}
59
+ {{/each}}
60
+
61
+ ### Scope
62
+
63
+ {{scope}}
64
+
65
+ ### Activities
66
+
67
+ {{#each activities}}
68
+ {{@index}}. **{{title}}** ({{effort}}h)
69
+ - Description: {{description}}
70
+ - Deliverables: {{deliverables}}
71
+ - Owner: {{owner}}
72
+ - Dependencies: {{#if dependencies}}{{dependencies}}{{else}}None{{/if}}
73
+ {{/each}}
74
+
75
+ ### Deliverables
76
+
77
+ {{#each deliverables}}
78
+ - {{name}} - {{description}}
79
+ {{/each}}
80
+
81
+ ### Success Metrics
82
+
83
+ {{#each metrics}}
84
+ - {{metric}}: {{target}}
85
+ {{/each}}
86
+
87
+ ### Risks
88
+
89
+ {{#each risks}}
90
+ #### {{severity}}: {{title}}
91
+
92
+ - **Probability:** {{probability}}
93
+ - **Impact:** {{impact}}
94
+ - **Mitigation:** {{mitigation}}
95
+ - **Contingency:** {{contingency}}
96
+ {{/each}}
97
+
98
+ ### Go/No-Go Criteria
99
+
100
+ {{#each goNoGoCriteria}}
101
+ - {{criteria}} {{#if critical}}**(CRITICAL)**{{/if}}
102
+ {{/each}}
103
+
104
+ ---
105
+
106
+ {{/each}}
107
+
108
+ ---
109
+
110
+ ## Timeline
111
+
112
+ ```mermaid
113
+ gantt
114
+ title Migration Timeline
115
+ dateFormat YYYY-MM-DD
116
+ section Phase 1
117
+ {{#each phases}}
118
+ {{name}}: {{startDate}}, {{endDate}}
119
+ {{/each}}
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Dependency Graph
125
+
126
+ ```mermaid
127
+ graph TD
128
+ {{#each dependencies}}
129
+ {{source}}[{{sourceLabel}}] -->|{{relationship}}| {{target}}[{{targetLabel}}]
130
+ {{/each}}
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Quick Wins
136
+
137
+ Immediate improvements with low effort and high impact:
138
+
139
+ {{#each quickWins}}
140
+ ### {{@index}}. {{title}}
141
+
142
+ - **Effort:** {{effort}} hours
143
+ - **Impact:** {{impact}}
144
+ - **Timeline:** {{timeline}}
145
+ - **Dependencies:** {{#if dependencies}}{{dependencies}}{{else}}None{{/if}}
146
+
147
+ **Description:**
148
+ {{description}}
149
+
150
+ **Expected Benefits:**
151
+ {{#each benefits}}
152
+ - {{this}}
153
+ {{/each}}
154
+
155
+ **Implementation:**
156
+ {{#each steps}}
157
+ {{@index}}. {{this}}
158
+ {{/each}}
159
+
160
+ ---
161
+
162
+ {{/each}}
163
+
164
+ ---
165
+
166
+ ## Technology Choices
167
+
168
+ {{#each technologies}}
169
+ ### {{category}}
170
+
171
+ **Current:** {{current}}
172
+ **Target:** {{target}}
173
+ **Reason:** {{reason}}
174
+
175
+ **Migration Path:**
176
+ {{#each migrationPath}}
177
+ {{@index}}. {{this}}
178
+ {{/each}}
179
+
180
+ **Training Required:** {{#if trainingRequired}}✅ {{trainingHours}}h{{else}}❌{{/if}}
181
+
182
+ ---
183
+
184
+ {{/each}}
185
+
186
+ ---
187
+
188
+ ## Architecture Evolution
189
+
190
+ ### Current Architecture
191
+
192
+ ```mermaid
193
+ {{currentArchitectureDiagram}}
194
+ ```
195
+
196
+ {{currentArchitectureDescription}}
197
+
198
+ ### Target Architecture
199
+
200
+ ```mermaid
201
+ {{targetArchitectureDiagram}}
202
+ ```
203
+
204
+ {{targetArchitectureDescription}}
205
+
206
+ ### Transition States
207
+
208
+ {{#each transitionStates}}
209
+ #### State {{@index}}: {{name}} (After Phase {{phase}})
210
+
211
+ ```mermaid
212
+ {{diagram}}
213
+ ```
214
+
215
+ **Characteristics:**
216
+ {{#each characteristics}}
217
+ - {{this}}
218
+ {{/each}}
219
+
220
+ ---
221
+
222
+ {{/each}}
223
+
224
+ ---
225
+
226
+ ## Data Migration Strategy
227
+
228
+ ### Approach
229
+
230
+ {{dataMigration.approach}}
231
+
232
+ ### Data Mapping
233
+
234
+ {{#each dataMigration.mappings}}
235
+ - **{{sourceTable}}** → **{{targetEntity}}**
236
+ - Transformation: {{transformation}}
237
+ - Complexity: {{complexity}}
238
+ - Estimated Records: {{estimatedRecords}}
239
+ {{/each}}
240
+
241
+ ### Migration Steps
242
+
243
+ {{#each dataMigration.steps}}
244
+ {{@index}}. {{step}} ({{duration}})
245
+ - Risk: {{risk}}
246
+ - Rollback: {{rollback}}
247
+ {{/each}}
248
+
249
+ ### Data Validation
250
+
251
+ {{#each dataMigration.validations}}
252
+ - {{validation}}: {{criteria}}
253
+ {{/each}}
254
+
255
+ ---
256
+
257
+ ## Testing Strategy
258
+
259
+ ### Test Phases
260
+
261
+ {{#each testingStrategy.phases}}
262
+ #### {{name}}
263
+
264
+ - **When:** {{when}}
265
+ - **Duration:** {{duration}}
266
+ - **Coverage Target:** {{coverageTarget}}%
267
+
268
+ **Test Types:**
269
+ {{#each testTypes}}
270
+ - {{type}}: {{description}} ({{count}} tests)
271
+ {{/each}}
272
+
273
+ **Entry Criteria:**
274
+ {{#each entryCriteria}}
275
+ - {{this}}
276
+ {{/each}}
277
+
278
+ **Exit Criteria:**
279
+ {{#each exitCriteria}}
280
+ - {{this}}
281
+ {{/each}}
282
+
283
+ ---
284
+
285
+ {{/each}}
286
+
287
+ ### Test Automation
288
+
289
+ - **Unit Tests:** {{testingStrategy.automation.unit}}% automated
290
+ - **Integration Tests:** {{testingStrategy.automation.integration}}% automated
291
+ - **E2E Tests:** {{testingStrategy.automation.e2e}}% automated
292
+
293
+ ---
294
+
295
+ ## Deployment Strategy
296
+
297
+ {{#each deploymentStrategy}}
298
+ ### {{environment}}
299
+
300
+ - **Approach:** {{approach}}
301
+ - **Frequency:** {{frequency}}
302
+ - **Rollback Time:** {{rollbackTime}}
303
+
304
+ **Deployment Steps:**
305
+ {{#each steps}}
306
+ {{@index}}. {{this}}
307
+ {{/each}}
308
+
309
+ **Health Checks:**
310
+ {{#each healthChecks}}
311
+ - {{check}}: {{threshold}}
312
+ {{/each}}
313
+
314
+ ---
315
+
316
+ {{/each}}
317
+
318
+ ---
319
+
320
+ ## Risk Management
321
+
322
+ ### Risk Register
323
+
324
+ {{#each riskRegister}}
325
+ #### {{id}}: {{title}}
326
+
327
+ - **Category:** {{category}}
328
+ - **Probability:** {{probability}} ({{probabilityPercent}}%)
329
+ - **Impact:** {{impact}} ({{impactScore}}/10)
330
+ - **Risk Score:** {{riskScore}}/100
331
+ - **Owner:** {{owner}}
332
+
333
+ **Description:**
334
+ {{description}}
335
+
336
+ **Indicators:**
337
+ {{#each indicators}}
338
+ - {{this}}
339
+ {{/each}}
340
+
341
+ **Mitigation:**
342
+ {{mitigation}}
343
+
344
+ **Contingency Plan:**
345
+ {{contingency}}
346
+
347
+ **Status:** {{status}}
348
+
349
+ ---
350
+
351
+ {{/each}}
352
+
353
+ ### Risk Heatmap
354
+
355
+ | Impact/Probability | Low | Medium | High |
356
+ |--------------------|-----|--------|------|
357
+ | **High** | {{riskHeatmap.highLow}} | {{riskHeatmap.highMedium}} | {{riskHeatmap.highHigh}} |
358
+ | **Medium** | {{riskHeatmap.mediumLow}} | {{riskHeatmap.mediumMedium}} | {{riskHeatmap.mediumHigh}} |
359
+ | **Low** | {{riskHeatmap.lowLow}} | {{riskHeatmap.lowMedium}} | {{riskHeatmap.lowHigh}} |
360
+
361
+ ---
362
+
363
+ ## Resource Plan
364
+
365
+ ### Team Structure
366
+
367
+ {{#each resources.team}}
368
+ #### {{role}}
369
+
370
+ - **Headcount:** {{headcount}}
371
+ - **Allocation:** {{allocation}}%
372
+ - **Duration:** {{duration}}
373
+ - **Skills Required:** {{skills}}
374
+ {{#if training}}
375
+ - **Training:** {{training}}
376
+ {{/if}}
377
+
378
+ ---
379
+
380
+ {{/each}}
381
+
382
+ ### Budget
383
+
384
+ | Category | Cost | Notes |
385
+ |----------|------|-------|
386
+ {{#each resources.budget}}
387
+ | {{category}} | {{cost}} | {{notes}} |
388
+ {{/each}}
389
+ | **Total** | **{{resources.totalCost}}** | - |
390
+
391
+ ### External Dependencies
392
+
393
+ {{#if resources.external}}
394
+ {{#each resources.external}}
395
+ - **{{vendor}}**: {{service}}
396
+ - Cost: {{cost}}
397
+ - Timeline: {{timeline}}
398
+ - Risk: {{risk}}
399
+ {{/each}}
400
+ {{else}}
401
+ No external dependencies identified.
402
+ {{/if}}
403
+
404
+ ---
405
+
406
+ ## Success Metrics
407
+
408
+ ### Key Performance Indicators (KPIs)
409
+
410
+ {{#each kpis}}
411
+ | Metric | Baseline | Target | Current | Status |
412
+ |--------|----------|--------|---------|--------|
413
+ | {{name}} | {{baseline}} | {{target}} | {{current}} | {{status}} |
414
+ {{/each}}
415
+
416
+ ### Monitoring & Reporting
417
+
418
+ - **Frequency:** {{monitoring.frequency}}
419
+ - **Dashboards:** {{monitoring.dashboards}}
420
+ - **Stakeholder Updates:** {{monitoring.stakeholderUpdates}}
421
+
422
+ **Escalation Criteria:**
423
+ {{#each monitoring.escalation}}
424
+ - {{criteria}}: {{action}}
425
+ {{/each}}
426
+
427
+ ---
428
+
429
+ ## Rollback Strategy
430
+
431
+ {{#each rollbackStrategies}}
432
+ ### {{phase}}
433
+
434
+ **Trigger Conditions:**
435
+ {{#each triggers}}
436
+ - {{this}}
437
+ {{/each}}
438
+
439
+ **Rollback Steps:**
440
+ {{#each steps}}
441
+ {{@index}}. {{this}} ({{duration}})
442
+ {{/each}}
443
+
444
+ **Data Recovery:**
445
+ {{dataRecovery}}
446
+
447
+ **Estimated Rollback Time:** {{rollbackTime}}
448
+
449
+ ---
450
+
451
+ {{/each}}
452
+
453
+ ---
454
+
455
+ ## Communication Plan
456
+
457
+ {{#each communicationPlan}}
458
+ ### {{stakeholder}}
459
+
460
+ - **Frequency:** {{frequency}}
461
+ - **Channel:** {{channel}}
462
+ - **Content:** {{content}}
463
+ - **Owner:** {{owner}}
464
+
465
+ {{#if keyMessages}}
466
+ **Key Messages:**
467
+ {{#each keyMessages}}
468
+ - {{this}}
469
+ {{/each}}
470
+ {{/if}}
471
+
472
+ ---
473
+
474
+ {{/each}}
475
+
476
+ ---
477
+
478
+ ## Training Plan
479
+
480
+ {{#each trainingPlan}}
481
+ ### {{topic}}
482
+
483
+ - **Audience:** {{audience}}
484
+ - **Duration:** {{duration}}
485
+ - **Format:** {{format}}
486
+ - **Trainer:** {{trainer}}
487
+ - **Materials:** {{materials}}
488
+
489
+ **Learning Objectives:**
490
+ {{#each objectives}}
491
+ - {{this}}
492
+ {{/each}}
493
+
494
+ **Schedule:** {{schedule}}
495
+
496
+ ---
497
+
498
+ {{/each}}
499
+
500
+ ---
501
+
502
+ ## Assumptions & Constraints
503
+
504
+ ### Assumptions
505
+
506
+ {{#each assumptions}}
507
+ - {{this}}
508
+ {{/each}}
509
+
510
+ ### Constraints
511
+
512
+ {{#each constraints}}
513
+ - {{this}}
514
+ {{/each}}
515
+
516
+ ### Critical Success Factors
517
+
518
+ {{#each criticalSuccessFactors}}
519
+ - {{this}}
520
+ {{/each}}
521
+
522
+ ---
523
+
524
+ ## Appendices
525
+
526
+ ### Appendix A: Alternative Strategies Considered
527
+
528
+ {{#each alternativeStrategies}}
529
+ #### {{name}}
530
+
531
+ **Description:** {{description}}
532
+
533
+ **Pros:**
534
+ {{#each pros}}
535
+ - {{this}}
536
+ {{/each}}
537
+
538
+ **Cons:**
539
+ {{#each cons}}
540
+ - {{this}}
541
+ {{/each}}
542
+
543
+ **Why Not Chosen:** {{whyNotChosen}}
544
+
545
+ ---
546
+
547
+ {{/each}}
548
+
549
+ ### Appendix B: Cost-Benefit Analysis
550
+
551
+ | Benefit | Quantification | Timeline |
552
+ |---------|----------------|----------|
553
+ {{#each costBenefitAnalysis.benefits}}
554
+ | {{benefit}} | {{value}} | {{timeline}} |
555
+ {{/each}}
556
+
557
+ **Break-Even Point:** {{costBenefitAnalysis.breakEven}}
558
+
559
+ **ROI:** {{costBenefitAnalysis.roi}}% over {{costBenefitAnalysis.roiPeriod}}
560
+
561
+ ### Appendix C: Glossary
562
+
563
+ {{#each glossary}}
564
+ - **{{term}}**: {{definition}}
565
+ {{/each}}
566
+
567
+ ---
568
+
569
+ **Generated by:** legacy-synthesizer agent
570
+ **Standards:** AGENT-PROMPT-STANDARDS v1.1
571
+ **RFC:** RFC-004-LEGACY-ANALYSIS-WORKFLOW