owflow 0.1.0 → 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 +14 -6
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: reviews-reality-check
3
+ description: Comprehensive reality assessment of completed work to verify it actually works and is production-ready
4
+ ---
5
+
6
+ **ACTION REQUIRED**: This command delegates to a different skill. The `<command-name>` tag refers to THIS command, not the target. Call the Task tool with subagent_type="reality-assessor" NOW. Pass the task path in the prompt. Do not read files, explore code, or execute workflow steps yourself.
7
+
8
+ You are running a comprehensive reality check using the `reality-assessor` agent.
9
+
10
+ ## Your Task
11
+
12
+ You are performing no-nonsense reality assessment to determine if completed work actually works and solves the business problem.
13
+
14
+ ## Parse User Request
15
+
16
+ **Determine the following from the user's request:**
17
+
18
+ 1. **Task path**:
19
+ - If provided: Use the specified task directory path
20
+ - If not provided: Use question to ask for task path
21
+
22
+ ## Your Instructions
23
+
24
+ **Invoke the reality-assessor agent NOW using the Task tool:**
25
+
26
+ ```
27
+ Task Tool:
28
+ - subagent_type: reality-assessor
29
+ - description: Reality assessment
30
+ - prompt: |
31
+ You are the reality-assessor agent. Assess the reality of completion for: [task-path]
32
+
33
+ Your task:
34
+ 1. Load all available verification reports (implementation-verifier, pragmatic-review.md, code-review-report.md, spec-audit.md)
35
+ 2. Assess claimed completion (check implementation-plan.md markers, test results, verification status)
36
+ 3. Validate functional completeness:
37
+ - Run tests yourself (don't trust reports)
38
+ - Test end-to-end workflows (not just unit tests)
39
+ - Try error scenarios (invalid inputs, edge cases, realistic data)
40
+ - Test integration with dependent systems
41
+ - Test under realistic conditions
42
+ 4. Identify reality gaps (functionality, quality, production readiness)
43
+ 5. Check integration points (data flow, API contracts, auth, external systems)
44
+ 6. Generate reality assessment report with clear deployment decision
45
+
46
+ Save report to: verification/reality-check.md
47
+
48
+ Focus on: Does this ACTUALLY work for intended purpose? Functional reality over technical perfection.
49
+
50
+ Provide clear deployment decision: ✅ Ready | ⚠️ Issues Found | ❌ Not Ready
51
+ ```
52
+
53
+ **Wait for the agent to complete before proceeding.**
54
+
55
+ The reality-assessor agent will:
56
+
57
+ 1. Review all available verification reports
58
+ 2. Validate claimed completions through independent testing
59
+ 3. Test end-to-end functionality (not just isolated tests)
60
+ 4. Identify gaps between claims and reality
61
+ 5. Check integration with rest of system
62
+ 6. Assess production readiness
63
+ 7. Provide pragmatic action plan (if gaps exist)
64
+ 8. Make clear GO/NO-GO deployment decision
65
+
66
+ ## Examples
67
+
68
+ **Example 1**: Reality check before deployment
69
+
70
+ ```
71
+ User: /reviews-reality-check .owflow/tasks/development/2025-11-17-payment-processing/
72
+ ```
73
+
74
+ **Example 2**: Verify claimed completion
75
+
76
+ ```
77
+ User: /reviews-reality-check .owflow/tasks/development/2025-11-17-login-timeout/
78
+ ```
79
+
80
+ **Example 3**: Production readiness check
81
+
82
+ ```
83
+ User: /reviews-reality-check .owflow/tasks/development/2025-11-17-user-dashboard/ --production
84
+ ```
85
+
86
+ ## What to Expect
87
+
88
+ The reality-assessor will provide:
89
+
90
+ - Reality vs claims gap analysis
91
+ - Critical gaps preventing deployment (Critical severity)
92
+ - Quality gaps affecting reliability (High/Medium severity)
93
+ - Integration issues with system components
94
+ - Functional completeness percentage assessment
95
+ - Pragmatic action plan with specific steps
96
+ - Clear deployment decision (✅ Ready | ⚠️ Issues | ❌ Not Ready)
97
+ - Evidence-based assessment (test results, error messages, observed behavior)
98
+
99
+ ## Notes
100
+
101
+ - This is validation only - no code will be modified
102
+ - Runs actual tests and workflows, doesn't just read reports
103
+ - Tests with realistic data and scenarios
104
+ - Checks production configuration and deployment readiness
105
+ - Focus on: Does it ACTUALLY work and solve the problem?
106
+ - Severity levels guide deployment decision:
107
+ - **Critical**: Must fix before deployment (prevents GO decision)
108
+ - **High**: Should fix soon (allows conditional GO with monitoring)
109
+ - **Medium**: Can deploy with known issues
110
+ - **Low**: Minor issues, acceptable
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: reviews-spec-audit
3
+ description: Independent specification audit to verify completeness and clarity before implementation
4
+ ---
5
+
6
+ **ACTION REQUIRED**: This command delegates to a different skill. The `<command-name>` tag refers to THIS command, not the target. Call the Task tool with subagent_type="spec-auditor" NOW. Pass the spec path in the prompt. Do not read files, explore code, or execute workflow steps yourself.
7
+
8
+ You are running an independent specification audit using the `spec-auditor` agent.
9
+
10
+ ## Your Task
11
+
12
+ You are performing senior auditor review of specifications to verify completeness, clarity, and implementability.
13
+
14
+ ## Parse User Request
15
+
16
+ **Determine the following from the user's request:**
17
+
18
+ 1. **Specification path**:
19
+ - If provided: Use the specified spec file path
20
+ - If not provided: Use question to ask for spec.md path
21
+
22
+ 2. **Audit type**:
23
+ - **Pre-implementation**: Audit spec before building (default)
24
+ - **Post-implementation**: Audit spec vs actual implementation (if implementation exists)
25
+
26
+ ## Your Instructions
27
+
28
+ **Invoke the spec-auditor agent NOW using the Task tool:**
29
+
30
+ ```
31
+ Task Tool:
32
+ - subagent_type: spec-auditor
33
+ - description: Specification audit
34
+ - prompt: |
35
+ You are the spec-auditor agent. Audit the specification at: [spec-path]
36
+
37
+ Your task:
38
+ 1. Read and comprehend the specification thoroughly
39
+ 2. [If pre-implementation]: Identify ambiguities, missing details, unclear sections
40
+ 3. [If post-implementation]: Examine actual implementation independently
41
+ 4. [If post-implementation]: Compare specification vs implementation
42
+ 5. Categorize gaps (Missing/Incomplete/Incorrect/Extra/Ambiguous)
43
+ 6. Assign severity to each finding (Critical/High/Medium/Low)
44
+ 7. Request clarification for ambiguous specifications
45
+ 8. Generate comprehensive audit report
46
+
47
+ [If post-implementation]:
48
+ - Use az CLI to verify Azure resources if applicable
49
+ - Use gh CLI to verify GitHub integration if applicable
50
+ - Examine codebase, database schemas, API endpoints, configurations
51
+ - Trust nothing, verify everything independently
52
+
53
+ Save report to: verification/spec-audit.md
54
+
55
+ Focus on: Evidence-based assessment. Every finding must have file:line references or clear evidence.
56
+ ```
57
+
58
+ **Wait for the agent to complete before proceeding.**
59
+
60
+ The spec-auditor agent will:
61
+
62
+ 1. Thoroughly read and understand specification
63
+ 2. Identify ambiguities, unclear sections, missing details
64
+ 3. (If post-impl) Independently examine actual implementation
65
+ 4. (If post-impl) Compare specification vs implementation using external tools
66
+ 5. Categorize gaps with evidence
67
+ 6. Assign severity with justification
68
+ 7. Ask clarifying questions for ambiguities
69
+ 8. Provide recommendations for compliance
70
+
71
+ ## Examples
72
+
73
+ **Example 1**: Pre-implementation spec audit
74
+
75
+ ```
76
+ User: /reviews-spec-audit .owflow/tasks/development/2025-11-17-user-auth/implementation/spec.md
77
+ ```
78
+
79
+ **Example 2**: Post-implementation audit
80
+
81
+ ```
82
+ User: /reviews-spec-audit .owflow/tasks/development/2025-11-17-user-auth/ --post-implementation
83
+ ```
84
+
85
+ **Example 3**: Audit with clarification focus
86
+
87
+ ```
88
+ User: /reviews-spec-audit spec.md --focus=ambiguity
89
+ ```
90
+
91
+ ## What to Expect
92
+
93
+ The spec-auditor will provide:
94
+
95
+ - Specification completeness assessment
96
+ - Ambiguities and unclear sections identified
97
+ - (If post-impl) Gaps between spec and implementation (Missing/Incomplete/Incorrect/Extra)
98
+ - All findings with evidence (file:line references or absence proof)
99
+ - Severity assessment (Critical/High/Medium/Low)
100
+ - Clarification questions for stakeholders
101
+ - Compliance status (✅ Compliant | ⚠️ Mostly Compliant | ❌ Non-Compliant)
102
+ - Specific recommendations for each finding
103
+
104
+ ## Notes
105
+
106
+ - This is analysis only - no code or specs will be modified
107
+ - Senior auditor perspective: healthy skepticism, verify independently
108
+ - Uses external tools (az CLI, gh CLI) for deployment verification
109
+ - Focus on functional reality, not theoretical compliance
110
+ - Severity levels guide prioritization:
111
+ - **Critical**: Breaks core functionality, blocks deployment
112
+ - **High**: Important feature missing/incorrect
113
+ - **Medium**: Nice-to-have missing, workarounds exist
114
+ - **Low**: Minor discrepancy, low user impact
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: standards-discover
3
+ description: Discover coding standards from project configuration files, code patterns, documentation, and external sources (PRs, CI/CD)
4
+ argument-hint: [task description]
5
+ generated-from-skill: true
6
+ ---
7
+
8
+ CRITICAL INSTRUCTION: You MUST invoke the standards-discover skill immediately as your FIRST action.
9
+
10
+ Use the Skill tool with these exact parameters:
11
+ name: "standards-discover"
12
+ prompt: "$ARGUMENTS"
13
+
14
+ DO NOT:
15
+
16
+ - Analyze the task before invoking the skill
17
+ - Decide the task is "straightforward" and skip the skill
18
+ - Substitute your own approach or workflow
19
+ - Execute any part of the workflow yourself
20
+
21
+ WHY: The user explicitly chose this workflow by using /standards-discover.
22
+ Invoke the skill now and let it orchestrate the complete workflow.
23
+
24
+ ---
25
+
26
+ ## About This Workflow
27
+
28
+ Discover coding standards from project configuration files, code patterns, documentation, and external sources (PRs, CI/CD)
29
+
30
+ The skill handles:
31
+
32
+ - Task directory creation and state management
33
+ - Phase execution with interactive gates
34
+ - Subagent delegation for specialized work
35
+ - Pause/resume capability
36
+
37
+ See `skills/standards-discover/SKILL.md` for complete workflow documentation.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: standards-update
3
+ description: Update or create project standards from conversation context or explicit description
4
+ argument-hint: "[description of standard/convention] [--from=PATH]"
5
+ generated-from-skill: true
6
+ ---
7
+
8
+ CRITICAL INSTRUCTION: You MUST invoke the standards-update skill immediately as your FIRST action.
9
+
10
+ Use the Skill tool with these exact parameters:
11
+ name: "standards-update"
12
+ prompt: "$ARGUMENTS"
13
+
14
+ DO NOT:
15
+
16
+ - Analyze the task before invoking the skill
17
+ - Decide the task is "straightforward" and skip the skill
18
+ - Substitute your own approach or workflow
19
+ - Execute any part of the workflow yourself
20
+
21
+ WHY: The user explicitly chose this workflow by using /standards-update.
22
+ Invoke the skill now and let it orchestrate the complete workflow.
23
+
24
+ ---
25
+
26
+ ## About This Workflow
27
+
28
+ Update or create project standards from conversation context or explicit description
29
+
30
+ The skill handles:
31
+
32
+ - Task directory creation and state management
33
+ - Phase execution with interactive gates
34
+ - Subagent delegation for specialized work
35
+ - Pause/resume capability
36
+
37
+ See `skills/standards-update/SKILL.md` for complete workflow documentation.
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: work
3
+ description: Unified entry point — auto-classifies tasks and routes to appropriate workflow. ALWAYS execute when invoked via slash command.
4
+ ---
5
+
6
+ **NOTE**: This is a multi-step workflow that invokes the task-classifier subagent and orchestrator skills at specific steps. The `<command-name>` tag refers to THIS command only — you MUST still use the Skill tool to invoke those other skills when instructed below. Follow ALL steps in order.
7
+
8
+ # Unified Work Entry Point
9
+
10
+ Auto-classifies tasks and routes to the appropriate workflow orchestrator. Supports resuming existing tasks or starting new ones.
11
+
12
+ ## Usage
13
+
14
+ ```bash
15
+ /work [task description | task folder path | issue identifier]
16
+ ```
17
+
18
+ ### Input Types
19
+
20
+ | Input Type | Example |
21
+ | ---------------- | ----------------------------------------------------------------- |
22
+ | Task folder path | `.owflow/tasks/development/2025-10-23-login-timeout` |
23
+ | Folder name only | `2025-10-26-user-auth` (searches all task types) |
24
+ | Task description | `"Fix login timeout error on mobile"` |
25
+ | GitHub issue | `#456`, `GH-456`, `https://github.com/owner/repo/issues/456` |
26
+ | Jira ticket | `PROJ-456`, `https://company.atlassian.net/browse/PROJ-456` |
27
+ | Azure DevOps | `AB#123`, `https://dev.azure.com/org/project/_workitems/edit/123` |
28
+ | No argument | Prompts for input |
29
+
30
+ ## Examples
31
+
32
+ ```bash
33
+ # Resume existing task
34
+ /work ".owflow/tasks/development/2025-10-23-login-timeout"
35
+ /work "2025-10-26-user-auth"
36
+
37
+ # New task (auto-classifies)
38
+ /work "Fix login timeout error on mobile devices"
39
+ /work "Add user authentication with email/password"
40
+ /work "Improve dashboard loading performance"
41
+
42
+ # From issue tracker
43
+ /work "#456"
44
+ /work "PROJ-123"
45
+ /work "AB#789"
46
+ ```
47
+
48
+ ## How It Works
49
+
50
+ 1. **Detect existing task** - If input is a task folder path, route to resume
51
+ 2. **Classify new task** - Invoke task-classifier subagent to determine workflow type
52
+ 3. **Route to workflow** - Use Skill tool to invoke appropriate orchestrator skill
53
+
54
+ ## Workflow Type Routing
55
+
56
+ | Classification | Routes To (Skill) |
57
+ | -------------- | ----------------- |
58
+ | development | `development` |
59
+ | performance | `performance` |
60
+ | migration | `migration` |
61
+ | research | `research` |
62
+ | product-design | `product-design` |
63
+
64
+ ---
65
+
66
+ ## Workflow
67
+
68
+ ### Step 1: Parse Input and Detect Task Folder
69
+
70
+ **Check if input is an existing task folder:**
71
+
72
+ 1. Try path as-is (absolute path)
73
+ 2. Try prepending `.owflow/` (relative path)
74
+ 3. Search `.owflow/tasks/*/` for folder name match
75
+
76
+ **If folder exists AND contains `orchestrator-state.yml`:**
77
+
78
+ - Go to **Step 2: Resume Existing Task**
79
+
80
+ **If NOT a task folder:**
81
+
82
+ - Go to **Step 3: Classify & Route New Task**
83
+
84
+ **If no argument provided:**
85
+
86
+ - Prompt user: "What would you like to work on?" with input examples
87
+ - Then check if input is task folder or description
88
+
89
+ ### Step 2: Resume Existing Task
90
+
91
+ **When existing task detected:**
92
+
93
+ 1. Read `orchestrator-state.yml` from task folder
94
+ 2. Determine workflow type from folder path:
95
+
96
+ | Folder | Workflow Type |
97
+ | ----------------- | -------------- |
98
+ | `development/` | development |
99
+ | `performance/` | performance |
100
+ | `migrations/` | migration |
101
+ | `research/` | research |
102
+ | `product-design/` | product-design |
103
+
104
+ 3. Extract status from state file:
105
+ - `completed`: null = in-progress, timestamp = finished
106
+ - `completed_phases`: derive active phase as first phase not in this list
107
+ - `failed_phases`: array of failed attempts
108
+
109
+ 4. Present status to user with question:
110
+
111
+ **For In-Progress Tasks:**
112
+
113
+ ```
114
+ Options:
115
+ 1. Resume from next incomplete phase
116
+ 2. Restart from specific phase
117
+ 3. Cancel
118
+ ```
119
+
120
+ **For Completed Tasks:**
121
+
122
+ ```
123
+ Options:
124
+ 1. View task details
125
+ 2. Create follow-up development task
126
+ 3. Re-run verification phase
127
+ 4. Cancel
128
+ ```
129
+
130
+ **For Failed Tasks:**
131
+
132
+ ```
133
+ Options:
134
+ 1. Resume with fresh attempts (--reset-attempts --clear-failures)
135
+ 2. Retry failed phase
136
+ 3. Restart from specific phase
137
+ 4. Cancel
138
+ ```
139
+
140
+ 5. **Route using Skill tool:**
141
+
142
+ ```
143
+ Use Skill tool:
144
+ skill: "[orchestrator-name]"
145
+ args: "--resume [task_path] [flags]"
146
+ ```
147
+
148
+ Examples:
149
+
150
+ - Resume development: `skill: "development"` with `args: "--resume .owflow/tasks/development/2025-10-23-fix"`
151
+ - Restart from phase: `skill: "development"` with `args: "--resume .owflow/tasks/development/2025-10-26-auth --from=verify"`
152
+ - Fresh attempts: `skill: "migration"` with `args: "--resume .owflow/tasks/migrations/2025-10-20-redux --reset-attempts"`
153
+
154
+ ### Step 3: Classify & Route New Task
155
+
156
+ **For new task descriptions:**
157
+
158
+ 1. **Invoke task-classifier subagent** to determine workflow type:
159
+
160
+ ```
161
+ Use Task tool:
162
+ subagent_type: "task-classifier"
163
+ description: "Classify task type"
164
+ prompt: "Classify this task into a workflow type: [task description].
165
+ Return structured YAML classification result."
166
+
167
+ The subagent will:
168
+ - Detect issue identifiers (GitHub, Jira)
169
+ - Fetch issue details if available
170
+ - Analyze codebase context
171
+ - Match keywords and calculate confidence
172
+ - Confirm with user if needed
173
+ - Return classification in YAML format
174
+ ```
175
+
176
+ 2. **Parse classification result:**
177
+
178
+ ```yaml
179
+ classification:
180
+ task_type: [development|performance|migration|research|product-design]
181
+ confidence: [percentage]
182
+ reasoning: [explanation]
183
+ ```
184
+
185
+ 3. **Route to appropriate workflow using Skill tool:**
186
+
187
+ ```
188
+ Display:
189
+ Task classified as: [task_type] ([confidence]% confidence)
190
+ Routing to [task_type] workflow...
191
+
192
+ Use Skill tool:
193
+ skill: "[orchestrator-name]"
194
+ args: "[description]"
195
+ ```
196
+
197
+ **Routing examples:**
198
+
199
+ - development (92%): `skill: "development"` with `args: "Fix login timeout error"`
200
+ - development (88%): `skill: "development"` with `args: "Add filtering to user table"`
201
+ - performance (95%): `skill: "performance"` with `args: "Optimize slow dashboard queries"`
202
+
203
+ ---
204
+
205
+ ## Error Handling
206
+
207
+ ### Classification Fails
208
+
209
+ If task-classifier returns error:
210
+
211
+ ```
212
+ Display:
213
+ "Unable to automatically classify this task. Please select manually:"
214
+
215
+ Use question with options:
216
+ 1. Development - Fix bugs, improve features, or add new capabilities
217
+ 2. Performance - Optimize speed/efficiency
218
+ 3. Migration - Move to new tech/pattern
219
+ 4. Research - Investigate and document findings
220
+ 5. Product Design - Design features or products before building them
221
+
222
+ Then route to selected workflow using Skill tool.
223
+ ```
224
+
225
+ ### User Cancels
226
+
227
+ ```
228
+ Display:
229
+ "Task cancelled. You can:
230
+ - Run /work again when ready
231
+ - Use specific workflow commands directly:
232
+ /development, /performance, etc."
233
+ ```
234
+
235
+ ---
236
+
237
+ ## Resume Skill Reference
238
+
239
+ | Workflow Type | Skill | Args |
240
+ | -------------- | ---------------- | --------------------------------------------------- |
241
+ | development | `development` | `--resume [path] [--from=PHASE] [--reset-attempts]` |
242
+ | performance | `performance` | `--resume [path] [--from=PHASE]` |
243
+ | migration | `migration` | `--resume [path] [--from=PHASE]` |
244
+ | research | `research` | `--resume [path] [--from=PHASE]` |
245
+ | product-design | `product-design` | `--resume [path] [--from=PHASE]` |
246
+
247
+ ---
248
+
249
+ ## Integration Notes
250
+
251
+ ### With Task Classifier
252
+
253
+ The `/work` command delegates classification to the task-classifier subagent via Task tool, which:
254
+
255
+ - Fetches issue details from GitHub/Jira/Azure DevOps (via MCP, CLI tools, or WebFetch)
256
+ - Analyzes codebase context for better classification
257
+ - Uses confidence-based user confirmation
258
+ - Returns structured classification result
259
+
260
+ ### With Orchestrators
261
+
262
+ After classification/detection, this command routes to the appropriate orchestrator via Skill tool:
263
+
264
+ - Each orchestrator handles its specific workflow (spec, plan, implement, verify, etc.)
265
+ - State is persisted in `orchestrator-state.yml` for pause/resume
266
+ - Auto-recovery handles common failures
267
+
268
+ ### With Project Documentation
269
+
270
+ Uses project documentation for context:
271
+
272
+ - `.owflow/docs/INDEX.md` - Project overview and standards
273
+ - `.owflow/tasks/` - Existing task directories
274
+
275
+ ---
276
+
277
+ ## Key Behaviors
278
+
279
+ 1. **Single entry point** - One command for all workflow types
280
+ 2. **Auto-classification** - Intelligent routing based on task description
281
+ 3. **Resume support** - Detects and resumes existing tasks
282
+ 4. **Issue integration** - Fetches details from GitHub/Jira/Azure DevOps
283
+ 5. **Direct skill invocation** - Uses Skill tool for immediate orchestrator loading
284
+ 6. **Graceful fallback** - Manual selection if classification fails