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,437 @@
1
+ # Migration Types Reference
2
+
3
+ > **Design Documentation**: This file serves as **design documentation** for developers and Claude implementing migration workflows. It provides guidance for identifying migration types and adapting workflows accordingly.
4
+
5
+ **Purpose:** Pattern guide for the three migration types: Code, Data, and Architecture
6
+
7
+ This reference provides characteristics, detection patterns, and workflow adaptations for each migration type supported by the migration orchestrator.
8
+
9
+ ---
10
+
11
+ ## Table of Contents
12
+
13
+ 1. [Overview](#overview)
14
+ 2. [Code Migration](#code-migration)
15
+ 3. [Data Migration](#data-migration)
16
+ 4. [Architecture Migration](#architecture-migration)
17
+ 5. [General Migration](#general-migration)
18
+ 6. [Type Detection Algorithm](#type-detection-algorithm)
19
+
20
+ ---
21
+
22
+ ## Overview
23
+
24
+ Migration types classify migrations based on **what** is being changed:
25
+
26
+ | Type | Focus | Examples | Risk Profile |
27
+ |------|-------|----------|--------------|
28
+ | **Code** | Language, framework, library | Vue 2→3, Python 2→3, Express→Fastify | Medium |
29
+ | **Data** | Database, storage, schema | MySQL→PostgreSQL, MongoDB→DynamoDB | High |
30
+ | **Architecture** | Patterns, structure | REST→GraphQL, Monolith→Microservices | High |
31
+ | **General** | Mixed or unclear | Complex refactoring with multiple aspects | Variable |
32
+
33
+ ### Why Type Matters
34
+
35
+ Different types require different:
36
+ - **Risk assessments**: Data migrations are highest risk (data loss potential)
37
+ - **Verification approaches**: Data needs integrity checks, code needs functional tests
38
+ - **Rollback strategies**: Data rollback more complex than code rollback
39
+ - **Tools and techniques**: Database tools for data, test suites for code
40
+
41
+ ---
42
+
43
+ ## Code Migration
44
+
45
+ ### Definition
46
+
47
+ **What**: Changing programming language, framework, library, or major version with breaking changes
48
+
49
+ **Characteristics**:
50
+ - Source code modifications (syntax, APIs, patterns)
51
+ - Dependency updates (package.json, requirements.txt, pom.xml)
52
+ - No data transformation (data structures unchanged or minimal changes)
53
+ - Primarily affects developers (users may not notice if functionality same)
54
+
55
+ ### Examples
56
+
57
+ **Framework Migrations**:
58
+ - Vue 2 → Vue 3 (composition API, breaking changes)
59
+ - Angular 8 → Angular 15 (modules to standalone components)
60
+ - React Class Components → Hooks
61
+ - Express 4 → Express 5
62
+
63
+ **Language Migrations**:
64
+ - Python 2 → Python 3 (print statements, unicode)
65
+ - JavaScript → TypeScript (type annotations)
66
+ - Java 8 → Java 17 (new syntax, APIs)
67
+
68
+ **Library Migrations**:
69
+ - Moment.js → Day.js (date handling library change)
70
+ - Axios → Fetch API (HTTP client change)
71
+ - Lodash → Native JavaScript (utility functions)
72
+
73
+ ### Detection Keywords
74
+
75
+ **Primary Indicators**:
76
+ - Framework/library names: React, Vue, Angular, Express, Flask, Django, Spring, Rails
77
+ - Version terms: "upgrade", "migrate from X to Y", "move to version N"
78
+ - Language names: Python, Java, JavaScript, TypeScript, Go, Rust
79
+
80
+ **Example Descriptions**:
81
+ - "Migrate from Vue 2 to Vue 3" → Code migration (framework)
82
+ - "Upgrade Express to v5" → Code migration (major version)
83
+ - "Convert JavaScript to TypeScript" → Code migration (language)
84
+
85
+ ### Workflow Adaptations
86
+
87
+ **Phase 1 (Current State Analysis)**:
88
+ - Focus: Locate all source files using old framework/library
89
+ - Analyze: Dependency tree, API usage patterns, deprecated features used
90
+
91
+ **Phase 2 (Target State Planning)**:
92
+ - Focus: Breaking changes between versions, API equivalents
93
+ - Output: Breaking changes list, API migration map
94
+
95
+ **Phase 3 (Specification)**:
96
+ - Include: Compatibility shim requirements (if needed)
97
+ - Rollback: Simple (revert code via git)
98
+
99
+ **Phase 5 (Execution)**:
100
+ - Strategy: Incremental (by module/component)
101
+ - Testing: Functional tests per module
102
+
103
+ **Phase 6 (Verification)**:
104
+ - Focus: Functional equivalence (behavior unchanged)
105
+ - Tests: Full test suite, manual testing of critical flows
106
+
107
+ ### Risk Profile
108
+
109
+ **Medium Risk**:
110
+ - **Risk**: Breaking changes causing bugs, build failures
111
+ - **Mitigation**: Comprehensive test coverage, incremental migration
112
+ - **Rollback**: Relatively easy (git revert)
113
+
114
+ ---
115
+
116
+ ## Data Migration
117
+
118
+ ### Definition
119
+
120
+ **What**: Changing database platform, storage system, or schema structure
121
+
122
+ **Characteristics**:
123
+ - Data transformation (format, structure, relationships)
124
+ - Schema changes (tables, columns, indexes, constraints)
125
+ - Data integrity critical (no data loss tolerated)
126
+ - Often requires dual-run (old and new databases running in parallel)
127
+
128
+ ### Examples
129
+
130
+ **Platform Migrations**:
131
+ - MySQL → PostgreSQL (SQL database change)
132
+ - MongoDB → DynamoDB (document to key-value)
133
+ - Redis → Memcached (caching layer change)
134
+ - On-premise DB → Cloud DB (AWS RDS, Azure SQL)
135
+
136
+ **Schema Migrations**:
137
+ - Normalize database (split tables, add relationships)
138
+ - Denormalize for performance (merge tables)
139
+ - Add partitioning/sharding
140
+
141
+ **Storage Migrations**:
142
+ - Local files → S3 (file storage migration)
143
+ - S3 → GCS (cloud provider change)
144
+ - SQL → NoSQL (data model change)
145
+
146
+ ### Detection Keywords
147
+
148
+ **Primary Indicators**:
149
+ - Database names: MySQL, PostgreSQL, MongoDB, Redis, DynamoDB, Cassandra, Oracle
150
+ - Data terms: "schema change", "data migration", "database migration", "move data"
151
+ - Storage terms: "S3", "blob storage", "file migration"
152
+
153
+ **Example Descriptions**:
154
+ - "Migrate database from MySQL to PostgreSQL" → Data migration (platform)
155
+ - "Move from MongoDB to DynamoDB" → Data migration (NoSQL change)
156
+ - "Migrate schema to normalized structure" → Data migration (schema)
157
+
158
+ ### Workflow Adaptations
159
+
160
+ **Phase 1 (Current State Analysis)**:
161
+ - Focus: Database schema, row counts, data volume, stored procedures
162
+ - Analyze: Data relationships, foreign keys, indexes, constraints
163
+
164
+ **Phase 2 (Target State Planning)**:
165
+ - Focus: Data transformation requirements, data mapping (old → new schema)
166
+ - Output: Data transformation specification, estimated migration time
167
+
168
+ **Phase 3 (Specification)**:
169
+ - Include: Data validation procedures, integrity checks, rollback procedures
170
+ - Rollback: Complex (requires backup/restore strategies)
171
+ - Dual-Run: Often required (zero-downtime)
172
+
173
+ **Phase 5 (Execution)**:
174
+ - Strategy: Incremental + Dual-Run (high confidence in strategy choice)
175
+ - Testing: Data integrity checks after each batch
176
+
177
+ **Phase 6 (Verification)**:
178
+ - Focus: Data integrity (100% row count match, checksums, data validation)
179
+ - Tests: Full test suite + data integrity tests + performance benchmarks
180
+ - Critical: If data integrity fails, HALT (don't auto-fix, prompt user)
181
+
182
+ ### Risk Profile
183
+
184
+ **High Risk**:
185
+ - **Risk**: Data loss, data corruption, downtime
186
+ - **Mitigation**: Backups before migration, dual-run, incremental batches, 100% data validation
187
+ - **Rollback**: Complex (restore from backup, may lose data written during migration)
188
+
189
+ **Special Requirements**:
190
+ - **Backup**: Full backup before starting (non-negotiable)
191
+ - **Data Validation**: 100% row count match, checksums, business rule validation
192
+ - **Dual-Run**: Strongly recommended (old and new databases in parallel)
193
+ - **Monitoring**: Data synchronization lag, replication errors
194
+ - **Testing**: More verification attempts (max 3 instead of 2 for auto-fix)
195
+
196
+ ---
197
+
198
+ ## Architecture Migration
199
+
200
+ ### Definition
201
+
202
+ **What**: Changing fundamental system structure, communication patterns, or architectural style
203
+
204
+ **Characteristics**:
205
+ - System-wide changes (affects multiple components/services)
206
+ - Changes how components interact (APIs, communication patterns)
207
+ - May affect both code and data (comprehensive migration)
208
+ - Often requires gradual transition (old and new coexist)
209
+
210
+ ### Examples
211
+
212
+ **API Style Migrations**:
213
+ - REST API → GraphQL (query language change)
214
+ - SOAP → REST (API pattern modernization)
215
+ - RPC → REST (communication pattern change)
216
+
217
+ **Architecture Pattern Migrations**:
218
+ - Monolith → Microservices (decomposition)
219
+ - Microservices → Monolith (consolidation)
220
+ - MVC → Component-Based (frontend architecture change)
221
+ - Layered → Hexagonal (backend architecture change)
222
+
223
+ **Infrastructure Migrations**:
224
+ - On-Premise → Cloud (infrastructure change)
225
+ - Single Server → Distributed (scalability)
226
+ - Synchronous → Event-Driven (async patterns)
227
+
228
+ ### Detection Keywords
229
+
230
+ **Primary Indicators**:
231
+ - Pattern names: REST, GraphQL, gRPC, SOAP, RPC
232
+ - Architecture styles: Monolith, Microservices, Serverless, Event-Driven, Hexagonal
233
+ - Refactoring terms: "refactor to", "change architecture", "restructure"
234
+
235
+ **Example Descriptions**:
236
+ - "Refactor REST API to GraphQL" → Architecture migration (API style)
237
+ - "Migrate monolith to microservices" → Architecture migration (decomposition)
238
+ - "Change from MVC to component-based architecture" → Architecture migration (pattern)
239
+
240
+ ### Workflow Adaptations
241
+
242
+ **Phase 1 (Current State Analysis)**:
243
+ - Focus: System components, communication patterns, dependencies between components
244
+ - Analyze: Coupling/cohesion, service boundaries, data flow
245
+
246
+ **Phase 2 (Target State Planning)**:
247
+ - Focus: New architecture structure, component boundaries, communication patterns
248
+ - Output: Architecture diagram, component mapping (old → new)
249
+
250
+ **Phase 3 (Specification)**:
251
+ - Include: Strangler fig pattern (if applicable), component interaction diagrams
252
+ - Rollback: Moderate to complex (depends on dual-run feasibility)
253
+ - Dual-Run: Often required (old and new architectures in parallel)
254
+
255
+ **Phase 5 (Execution)**:
256
+ - Strategy: Incremental (by component/service) + Dual-Run (if possible)
257
+ - Testing: Integration tests, end-to-end tests, performance tests
258
+
259
+ **Phase 6 (Verification)**:
260
+ - Focus: System-level behavior (end-to-end flows work), performance comparison
261
+ - Tests: Full test suite + integration tests + E2E tests
262
+
263
+ ### Risk Profile
264
+
265
+ **High Risk**:
266
+ - **Risk**: System-wide breakage, performance degradation, complex rollback
267
+ - **Mitigation**: Strangler fig pattern, incremental component migration, dual-run
268
+ - **Rollback**: Moderate to complex (depends on how well old/new coexist)
269
+
270
+ **Special Patterns**:
271
+ - **Strangler Fig**: Gradually replace old system with new (route traffic to new incrementally)
272
+ - **Branch by Abstraction**: Create abstraction layer, switch implementations behind it
273
+ - **Parallel Run**: Run old and new architectures in parallel, compare results
274
+
275
+ ---
276
+
277
+ ## General Migration
278
+
279
+ ### Definition
280
+
281
+ **What**: Migrations that don't fit cleanly into Code/Data/Architecture, or mix multiple types
282
+
283
+ **Characteristics**:
284
+ - Ambiguous description ("modernize", "refactor" without specifics)
285
+ - Multiple aspects (code + data + architecture)
286
+ - Catch-all for unclear migrations
287
+
288
+ ### Examples
289
+
290
+ - "Modernize legacy system" (unclear scope)
291
+ - "Refactor application for scalability" (multiple aspects)
292
+ - "Migrate to cloud" (infrastructure + code + data)
293
+
294
+ ### Workflow Adaptations
295
+
296
+ **Phase 1-2 (Analysis + Planning)**:
297
+ - Spend extra time clarifying scope
298
+ - Prompt user to specify what's changing (code, data, architecture, or all)
299
+ - May reclassify after analysis
300
+
301
+ **General Approach**:
302
+ - Use conservative defaults (high risk, incremental + rollback + dual-run)
303
+ - Prompt user more frequently for decisions
304
+ - Extra verification steps
305
+
306
+ ---
307
+
308
+ ## Type Detection Algorithm
309
+
310
+ ### Overview
311
+
312
+ Migration type detection uses keyword matching with confidence scoring.
313
+
314
+ ### Algorithm Pattern
315
+
316
+ **Input**: `"Migrate from Vue 2 to Vue 3"`
317
+
318
+ **Steps**:
319
+ 1. **Extract Keywords**: `["migrate", "Vue", "2", "3"]`
320
+ 2. **Match Against Patterns**:
321
+ - Code: `["Vue"]` → 1 match
322
+ - Data: `[]` → 0 matches
323
+ - Architecture: `[]` → 0 matches
324
+ 3. **Calculate Scores**:
325
+ - Code: 1 match → 100% confidence (only category with matches)
326
+ - Data: 0 matches → 0%
327
+ - Architecture: 0 matches → 0%
328
+ 4. **Select Type**: Code (highest score)
329
+ 5. **Confirm with User** (interactive mode): "Detected migration type: Code. Correct? [Y/n]"
330
+
331
+ ### Keyword Categories
332
+
333
+ **Code Migration Keywords**:
334
+ ```
335
+ Frameworks: React, Vue, Angular, Express, Flask, Django, Rails, Spring, Laravel
336
+ Languages: Python, Java, JavaScript, TypeScript, Go, Rust, C++, C#, Ruby, PHP
337
+ Terms: "upgrade", "migrate from X to Y", "version", "framework migration"
338
+ ```
339
+
340
+ **Data Migration Keywords**:
341
+ ```
342
+ Databases: MySQL, PostgreSQL, MongoDB, Redis, DynamoDB, Cassandra, Oracle, SQL Server
343
+ Terms: "database", "schema", "data migration", "move data", "storage", "S3", "blob"
344
+ ```
345
+
346
+ **Architecture Migration Keywords**:
347
+ ```
348
+ Patterns: REST, GraphQL, gRPC, SOAP, Monolith, Microservices, Serverless, Event-Driven
349
+ Terms: "refactor to", "architecture", "pattern", "system design", "restructure"
350
+ ```
351
+
352
+ ### Ambiguity Handling
353
+
354
+ **Multiple Matches** (e.g., "Migrate MySQL database to PostgreSQL and refactor to microservices"):
355
+ - Scores: Code=0, Data=2 ("MySQL", "PostgreSQL"), Architecture=1 ("microservices")
356
+ - Primary Type: Data (highest score)
357
+ - Classification: Data + Architecture (mixed)
358
+ - Prompt user: "Detected primary type: Data. Also includes architecture changes. Proceed as data migration? [Y/n/specify]"
359
+
360
+ **No Clear Matches** (e.g., "Modernize application"):
361
+ - Scores: Code=0, Data=0, Architecture=0
362
+ - Classification: General
363
+ - Prompt user: "Unable to detect migration type. Please specify: [Code/Data/Architecture/Mixed]"
364
+
365
+ ### Confidence Levels
366
+
367
+ | Score | Confidence | Action |
368
+ |-------|------------|--------|
369
+ | Single category with matches | 100% | Auto-detect, confirm in interactive |
370
+ | Primary category (>50% of matches) | 70-90% | Auto-detect, prompt to confirm |
371
+ | Tied categories | 50% | Prompt user to choose |
372
+ | No matches | 0% | Classify as General, prompt user |
373
+
374
+ ---
375
+
376
+ ## Web Research Requirements by Type
377
+
378
+ External research is automatically triggered by the gap-analyzer during Phase 2 (Target State Planning). The level of research depends on migration type.
379
+
380
+ | Migration Type | External Research | Query Focus | Priority Sources |
381
+ |---------------|-------------------|-------------|------------------|
382
+ | **Code** (Version Upgrade) | **Required** | Migration guides, breaking changes, API changes | Official docs, release notes, upgrade guides |
383
+ | **Code** (Library Swap) | **Required** | Comparison guides, migration paths, compatibility | Official docs, community migration stories |
384
+ | **Data** (Platform Change) | **Recommended** | Compatibility, data transformation, tooling | Official docs, DBA resources, cloud provider docs |
385
+ | **Data** (Schema Change) | **Optional** | Best practices only | Internal docs preferred |
386
+ | **Architecture** | **Recommended** | Pattern implementation, migration strategies | Architecture blogs, official docs |
387
+ | **General** | **Optional** | Clarification research | N/A |
388
+
389
+ ### When to Skip External Research
390
+
391
+ - Pure internal refactoring (no external technology change)
392
+ - Schema changes within same database platform
393
+ - Minor version upgrades (patch versions only)
394
+ - When offline mode required
395
+ - User explicitly requests `--no-web-research`
396
+
397
+ ### Research Depth by Complexity
398
+
399
+ | Complexity | Research Depth | Queries | Focus |
400
+ |------------|---------------|---------|-------|
401
+ | Simple (<10 files) | Essential | 2-3 | Official migration guide only |
402
+ | Moderate (10-30 files) | Essential | 2-3 | Migration guide + breaking changes |
403
+ | Complex (>30 files) | Expanded | 4-6 | Guide + breaking changes + community experiences |
404
+ | Data migration (any size) | Expanded | 4-6 | Guide + compatibility + data transformation |
405
+
406
+ ### Example Research Queries
407
+
408
+ **Code Migration (Vue 2 → Vue 3)**:
409
+ - Primary: "Vue 2 to Vue 3 migration guide"
410
+ - Secondary: "Vue 3 breaking changes 2024"
411
+ - Expanded: "Vue 3 composition API migration examples"
412
+
413
+ **Data Migration (MySQL → PostgreSQL)**:
414
+ - Primary: "MySQL to PostgreSQL migration guide"
415
+ - Secondary: "PostgreSQL migration tools 2024"
416
+ - Expanded: "MySQL PostgreSQL syntax differences"
417
+
418
+ **Architecture Migration (REST → GraphQL)**:
419
+ - Primary: "REST to GraphQL migration guide"
420
+ - Secondary: "GraphQL migration best practices"
421
+ - Expanded: "REST GraphQL coexistence patterns"
422
+
423
+ ---
424
+
425
+ ## Summary
426
+
427
+ **Key Takeaways**:
428
+ 1. **Code**: Focus on functional equivalence, incremental migration, medium risk
429
+ 2. **Data**: Focus on data integrity, dual-run often required, high risk
430
+ 3. **Architecture**: Focus on system-level behavior, strangler fig pattern, high risk
431
+ 4. **General**: Conservative defaults, extra clarification with user
432
+
433
+ **References in SKILL.md**:
434
+ - Initialization (Step 2): Type detection algorithm
435
+ - Phase 1 (Analysis): Type-specific analysis focus
436
+ - Phase 2 (Target Planning): Type-specific gap analysis + external research
437
+ - Phase 6 (Verification): Type-specific verification requirements
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: orchestrator-framework
3
+ description: Shared orchestration patterns for all workflow orchestrators. NOT an executable skill - provides reference documentation for phase execution, state management, interactive mode, and initialization. All orchestrators reference these patterns.
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Orchestrator Framework
8
+
9
+ This skill provides **shared reference documentation** for all orchestrator skills in the owflow plugin. It is NOT an executable skill - orchestrators reference these patterns and implement them for their specific domain.
10
+
11
+ ## Purpose
12
+
13
+ Reduce duplication across orchestrators by documenting common patterns once:
14
+
15
+ - **Phase Blocks**: Simple phase structure with inline transitions (`→ Continue`, `→ Pause`, `→ Conditional`)
16
+ - **State Management**: `orchestrator-state.yml` schema and operations
17
+ - **Phase Gates**: Pause behavior and user prompts
18
+ - **Initialization**: Task directory setup, metadata, task creation patterns
19
+
20
+ ## How Orchestrators Use This
21
+
22
+ Each orchestrator reads the framework reference file at initialization (Step 1):
23
+
24
+ ```markdown
25
+ ### Step 1: Load Framework Patterns
26
+
27
+ **Read the framework reference file NOW using the Read tool:**
28
+
29
+ 1. `../orchestrator-framework/references/orchestrator-patterns.md`
30
+ ```
31
+
32
+ ## Reference Files
33
+
34
+ | File | Purpose |
35
+ | ----------------------------------------------- | --------------------------------------------------------------------------------------------------- |
36
+ | `references/orchestrator-patterns.md` | Delegation rules, interactive mode, state schema, initialization, context passing, issue resolution |
37
+ | `references/orchestrator-creation-checklist.md` | Authoring checklist for creating new orchestrators (not loaded at runtime) |
38
+
39
+ ## Key Principles
40
+
41
+ All orchestrators follow these principles:
42
+
43
+ 1. **State-Driven Execution**: `orchestrator-state.yml` is source of truth
44
+ 2. **Resume Capability**: Any orchestrator can be paused and resumed
45
+ 3. **Interactive**: Pause after each phase for user review
46
+ 4. **User-Confirmed Rollback**: Never auto-rollback without user approval
47
+ 5. **Task Progress**: Always track progress with TaskCreate/TaskUpdate tools
48
+ 6. **Standards Discovery**: Reference `.owflow/docs/INDEX.md` throughout
49
+
50
+ ## Orchestrators Using This Framework
51
+
52
+ - `development` (bug fixes, enhancements, features)
53
+ - `performance`
54
+ - `migration`
55
+ - `research`
56
+
57
+ ## NOT an Executable Skill
58
+
59
+ This skill does NOT get invoked directly. It exists to:
60
+
61
+ 1. Provide discoverable documentation for orchestrator patterns
62
+ 2. Serve as single source of truth for common logic
63
+ 3. Enable consistent behavior across all orchestrators
64
+
65
+ When building new orchestrators, reference these patterns rather than duplicating them.
@@ -0,0 +1,47 @@
1
+ # Orchestrator Creation Checklist
2
+
3
+ Use when creating NEW orchestrators or auditing existing ones. Not loaded during normal orchestrator execution.
4
+
5
+ ---
6
+
7
+ ## Required Elements
8
+
9
+ Before considering an orchestrator complete, verify ALL items:
10
+
11
+ - [ ] **Step 0: Load Framework** — Initialization reads `orchestrator-patterns.md`
12
+ - [ ] **State file creation** — Explicit step to CREATE `orchestrator-state.yml`
13
+ - [ ] **Phase structure** — Each phase has: Purpose, Execute, Output, State, Transition (`→ Pause` / `→ AUTO-CONTINUE` / `→ Conditional`)
14
+ - [ ] **Delegation enforcement** — Each delegated phase has: ANTI-PATTERN block, INVOKE NOW block, SELF-CHECK
15
+ - [ ] **POST-CONTINUATION blocks** — After Skill tool phases, explicit instructions to read state, update completed_phases, and continue
16
+ - [ ] **Context passing** — All subagent prompts include ACCUMULATED CONTEXT section with state summaries and prior phase summaries
17
+ - [ ] **Context extraction** — Each phase's State Update extracts findings to `phase_summaries`
18
+ - [ ] **Decision gates** — Phases receiving `decisions_needed` present to user via question
19
+ - [ ] **Interactive mode** — `question` at every `→ Pause` transition
20
+ - [ ] **Standards discovery** — `.owflow/docs/INDEX.md` referenced in spec, plan, implement, verify phases
21
+ - [ ] **TaskCreate initialization** — Tasks created for all phases at workflow start with `addBlockedBy` dependencies
22
+ - [ ] **Auto-recovery table** — Max attempts per phase with recovery strategies
23
+ - [ ] **Domain context schema** — Includes `phase_summaries` structure
24
+
25
+ ---
26
+
27
+ ## Anti-Patterns
28
+
29
+ | Anti-Pattern | Why It's Wrong |
30
+ | --------------------------------------- | --------------------------------------------------- |
31
+ | Skipping Step 0 (not loading framework) | Causes AUTO-CONTINUE failures and delegation errors |
32
+ | Defining phases without transitions | Ambiguous when to pause vs continue |
33
+ | Implicit user prompts without question | User loses control |
34
+ | Inline STOP reminders at END of phases | Easily missed; use `→ Pause` transitions instead |
35
+ | Vague subagent calls ("invoke X") | Must show explicit Skill/Task tool parameters |
36
+ | Inline execution to "save time" | Must delegate regardless of perceived simplicity |
37
+ | File paths only in subagent prompts | Include state summaries and prior phase summaries |
38
+ | Stopping at AUTO-CONTINUE transitions | Brief summary is fine, but must proceed immediately |
39
+ | Missing standards references | INDEX.md must be referenced in relevant phases |
40
+ | Auto-accepting subagent decisions | User must consent via question |
41
+
42
+ ---
43
+
44
+ ## Reference
45
+
46
+ - **`orchestrator-patterns.md`** — Execution rules, schemas, and patterns
47
+ - **Existing orchestrators** — Use as implementation examples (development, performance, migration, research)