owflow 0.2.0 → 0.4.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 (111) hide show
  1. package/README.md +83 -28
  2. package/dist/agents/code-reviewer.md +1 -1
  3. package/dist/agents/information-gatherer.md +691 -691
  4. package/dist/agents/production-readiness-checker.md +1 -1
  5. package/dist/agents/project-analyzer.md +0 -1
  6. package/dist/agents/research-planner.md +450 -447
  7. package/dist/agents/research-synthesizer.md +403 -401
  8. package/dist/agents/solution-brainstormer.md +257 -257
  9. package/dist/agents/solution-designer.md +372 -372
  10. package/dist/agents/task-classifier.md +3 -3
  11. package/dist/commands/agents-md-generator.md +36 -0
  12. package/dist/commands/dev-analyze.md +33 -0
  13. package/dist/commands/dev-bugfix.md +37 -0
  14. package/dist/commands/dev-finalize.md +33 -0
  15. package/dist/commands/dev-implement.md +34 -0
  16. package/dist/commands/dev-plan.md +37 -0
  17. package/dist/commands/dev-spec.md +37 -0
  18. package/dist/commands/dev-tdd-red.md +33 -0
  19. package/dist/commands/dev-verify.md +33 -0
  20. package/dist/commands/development.md +11 -12
  21. package/dist/commands/diagrams-mermaid.md +3 -4
  22. package/dist/commands/flow-init.md +3 -4
  23. package/dist/commands/goal-development.md +32 -0
  24. package/dist/commands/goal-research.md +33 -0
  25. package/dist/commands/html-renderer.md +3 -4
  26. package/dist/commands/migration.md +3 -4
  27. package/dist/commands/performance.md +3 -4
  28. package/dist/commands/research-brainstorm.md +33 -0
  29. package/dist/commands/research-converge.md +33 -0
  30. package/dist/commands/research-design.md +33 -0
  31. package/dist/commands/research-finalize.md +33 -0
  32. package/dist/commands/research-fork.md +40 -0
  33. package/dist/commands/research-gather.md +33 -0
  34. package/dist/commands/research-plan.md +37 -0
  35. package/dist/commands/research-quick.md +37 -0
  36. package/dist/commands/research-synthesize.md +33 -0
  37. package/dist/commands/research.md +55 -37
  38. package/dist/commands/reviews-code.md +4 -4
  39. package/dist/commands/reviews-pragmatic.md +4 -4
  40. package/dist/commands/reviews-production-readiness.md +4 -4
  41. package/dist/commands/reviews-reality-check.md +4 -4
  42. package/dist/commands/reviews-spec-audit.md +4 -4
  43. package/dist/commands/rule-reviewer.md +38 -0
  44. package/dist/commands/standards-discover.md +3 -4
  45. package/dist/commands/standards-update.md +3 -4
  46. package/dist/commands/work.md +21 -21
  47. package/dist/configuration/skills-config.js +1 -1
  48. package/dist/index.js +5 -2
  49. package/dist/skills/agents-md-generator/SKILL.md +223 -0
  50. package/dist/skills/codebase-analyzer/SKILL.md +1 -1
  51. package/dist/skills/dev-analyze/SKILL.md +115 -0
  52. package/dist/skills/dev-bugfix/SKILL.md +452 -0
  53. package/dist/skills/dev-finalize/SKILL.md +118 -0
  54. package/dist/skills/dev-implement/SKILL.md +167 -0
  55. package/dist/skills/dev-plan/SKILL.md +147 -0
  56. package/dist/skills/dev-spec/SKILL.md +182 -0
  57. package/dist/skills/dev-tdd-red/SKILL.md +94 -0
  58. package/dist/skills/dev-verify/SKILL.md +160 -0
  59. package/dist/skills/development/SKILL.md +130 -522
  60. package/dist/skills/diagrams-mermaid/SKILL.md +3 -1
  61. package/dist/skills/docs-manager/SKILL.md +4 -4
  62. package/dist/skills/docs-manager/references/agents-md-template.md +1 -1
  63. package/dist/skills/flow-init/SKILL.md +34 -13
  64. package/dist/skills/goal-development/SKILL.md +96 -0
  65. package/dist/skills/goal-research/SKILL.md +118 -0
  66. package/dist/skills/html-renderer/SKILL.md +14 -1
  67. package/dist/skills/implementation-plan-executor/SKILL.md +1 -1
  68. package/dist/skills/implementation-verifier/SKILL.md +1 -1
  69. package/dist/skills/migration/SKILL.md +63 -18
  70. package/dist/skills/orchestrator-framework/SKILL.md +1 -1
  71. package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -0
  72. package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -0
  73. package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -0
  74. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +27 -0
  75. package/dist/skills/orchestrator-framework/references/gate-contract.md +112 -0
  76. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +3 -0
  77. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +8 -50
  78. package/dist/skills/performance/SKILL.md +52 -18
  79. package/dist/skills/research/SKILL.md +249 -462
  80. package/dist/skills/research-brainstorm/SKILL.md +120 -0
  81. package/dist/skills/{research → research-brainstorm}/references/brainstorming-techniques.md +1 -1
  82. package/dist/skills/research-converge/SKILL.md +130 -0
  83. package/dist/skills/research-design/SKILL.md +146 -0
  84. package/dist/skills/{research → research-design}/references/design-techniques.md +1 -1
  85. package/dist/skills/research-finalize/SKILL.md +125 -0
  86. package/dist/skills/research-fork/SKILL.md +190 -0
  87. package/dist/skills/research-gather/SKILL.md +133 -0
  88. package/dist/skills/research-plan/SKILL.md +141 -0
  89. package/dist/skills/research-quick/SKILL.md +139 -0
  90. package/dist/skills/research-synthesize/SKILL.md +127 -0
  91. package/dist/skills/rule-reviewer/SKILL.md +334 -0
  92. package/dist/skills/standards-discover/SKILL.md +37 -14
  93. package/dist/skills/standards-update/SKILL.md +58 -10
  94. package/dist/templates/orchestrator-state-development.yml +14 -13
  95. package/dist/templates/orchestrator-state-research.yml +19 -13
  96. package/dist/tools/fork_task.js +36 -0
  97. package/dist/tools/verify_template.js +10 -31
  98. package/dist/utils/file-util.js +14 -8
  99. package/dist/utils/fork-task.js +74 -0
  100. package/dist/utils/plugin-info.js +20 -0
  101. package/dist/utils/yaml-structure.js +32 -0
  102. package/package.json +1 -1
  103. package/dist/commands/quick-bugfix.md +0 -37
  104. package/dist/commands/quick-dev.md +0 -182
  105. package/dist/commands/quick-plan.md +0 -167
  106. package/dist/constants.js +0 -4
  107. package/dist/skills/quick-bugfix/SKILL.md +0 -311
  108. package/dist/templates/quick-bugfix-task.yml +0 -10
  109. package/dist/templates/quick-dev-task.yml +0 -10
  110. package/dist/templates/quick-plan-task.yml +0 -11
  111. /package/dist/skills/{research → research-plan}/references/research-methodologies.md +0 -0
package/README.md CHANGED
@@ -76,7 +76,7 @@ In `opencode.json`:
76
76
  Initialize your project to auto-detect coding standards and generate project documentation:
77
77
 
78
78
  ```bash
79
- /flow-init
79
+ /owflow:flow-init
80
80
  ```
81
81
 
82
82
  This scans your codebase and creates `.owflow/` with standards, docs, and task folders. May take a few minutes on larger projects.
@@ -84,28 +84,28 @@ This scans your codebase and creates `.owflow/` with standards, docs, and task f
84
84
  If you have another project already using Owflow, you can reuse its standards as a starting point:
85
85
 
86
86
  ```bash
87
- /flow-init --standards-from=/path/to/other-project
87
+ /owflow:flow-init --standards-from=/path/to/other-project
88
88
  ```
89
89
 
90
90
  ### First Workflow
91
91
 
92
92
  ```bash
93
- /development Add user profile page with avatar upload
93
+ /owflow:development Add user profile page with avatar upload
94
94
  ```
95
95
 
96
96
  Or just discuss your task with Agent and then run:
97
97
 
98
98
  ```bash
99
- /development
99
+ /owflow:development
100
100
  ```
101
101
 
102
- The plugin picks up context from your conversation - no arguments needed.
102
+ The plugin picks up context from your conversation - no arguments needed. Prefer everything in one session? Use `/owflow:goal-development` (autonomous mode) instead - it runs the same pipeline without handoffs between phases (subskills run back-to-back in one session).
103
103
 
104
104
  ## How It Works
105
105
 
106
106
  1. You describe a task - either as an argument or just in conversation
107
107
  2. The plugin classifies it (feature, bug, enhancement, etc.) and proposes a workflow
108
- 3. You confirm, and it guides you through phases: **requirements → spec → plan → implement → verify**
108
+ 3. You confirm, and it guides you through the pipeline of development subskills: **analysis → spec → plan → implement → verify → finalize**
109
109
  4. At each phase, it asks for your input and decisions
110
110
  5. You get tested, verified code with a detailed work log
111
111
 
@@ -117,12 +117,12 @@ Every workflow command works without arguments. The plugin reads your current co
117
117
 
118
118
  ```
119
119
  You: "The login page throws a 500 error when the session expires"
120
- You: /development
120
+ You: /owflow:development
121
121
  → Auto-detects: bug fix, extracts description from conversation
122
122
  ```
123
123
 
124
124
  ```
125
- You: /standards-update
125
+ You: /owflow:standards-update
126
126
  → Scans conversation for patterns like "we always use..." or "prefer X over Y"
127
127
  ```
128
128
 
@@ -130,35 +130,75 @@ You can always be explicit when you prefer - arguments and flags simply override
130
130
 
131
131
  ## Supported Workflows
132
132
 
133
- | Command | Use When |
134
- | -------------- | ------------------------------------------- |
135
- | `/development` | Features, bug fixes, enhancements |
136
- | `/research` | Research with synthesis and solution design |
137
- | `/performance` | Optimizing speed or resource usage |
138
- | `/migration` | Changing technologies or patterns |
133
+ | Command | Use When |
134
+ | ---------------------- | ------------------------------------------- |
135
+ | `/owflow:development` | Features, bug fixes, enhancements |
136
+ | `/owflow:research` | Research with synthesis and solution design |
137
+ | `/owflow:performance` | Optimizing speed or resource usage |
138
+ | `/owflow:migration` | Changing technologies or patterns |
139
139
 
140
- Task type (feature/bug/enhancement) is auto-detected from context. Override with `--type=feature|bug|enhancement` if needed. Or use `/work` as a single entry point that routes to the right workflow.
140
+ Task type (feature/bug/enhancement) is auto-detected from context. Override with `--type=feature|bug|enhancement` if needed. Or use `/owflow:work` as a single entry point that routes to the right workflow.
141
+
142
+ ### Research Utility
143
+
144
+ | Command | Use When |
145
+ | ----------------------------- | -------------------------------------------------------------------------------- |
146
+ | `/owflow:research-quick "<description>"` | Condensed research: brief → plan → gather → synthesis in one pass |
147
+ | `/owflow:research-fork <task-path> ["<what this fork should explore>"]` | Branch a research task and re-run from the fork point with different choices |
141
148
 
142
149
  ### Quick Commands
143
150
 
144
151
  For smaller tasks that don't need a full workflow:
145
152
 
146
- | Command | Use When | Artifacts |
147
- | --------------- | ----------------------------------------------------------- | --------------------------------------- |
148
- | `/quick-plan` | You want a plan with standards awareness before coding | `task.yml`, `findings.md` |
149
- | `/quick-dev` | You know what to do - just implement with standards applied | `task.yml`, `summary.md` |
150
- | `/quick-bugfix` | Quick TDD-driven bug fix — write failing test, fix, verify | `task.yml`, `findings.md`, `summary.md` |
153
+ | Command | Use When | Artifacts |
154
+ | -------------------------------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
155
+ | `/owflow:dev-spec --quick` | Standards-aware, resumable spec before any plan — spec only | `orchestrator-state.yml`, `analysis/quick-analysis.md`, `analysis/requirements.md`, `implementation/spec.md` |
156
+ | `/owflow:dev-plan --quick` | Standards-aware, resumable plan before coding — plan only | `orchestrator-state.yml`, `analysis/quick-analysis.md`, `implementation/spec.md`, `implementation/implementation-plan.md` |
157
+ | `/owflow:dev-implement --quick` | Task is clear, no architectural decisions needed | `orchestrator-state.yml`, `analysis/quick-analysis.md`, `implementation/spec.md`, `implementation/implementation-plan.md`, `work-log.md` |
158
+ | `/owflow:dev-bugfix` | Quick TDD-driven bug fix — write failing test, fix, verify | `orchestrator-state.yml`, `analysis/findings.md`, `summary.md` |
159
+
160
+ Every quick lane creates a standard development task under `.owflow/tasks/development/` (full `orchestrator-state.yml` with the lane as `orchestrator.entry_point`) and stops at that lane's exit gate — continuable later by any dev-* subskill (`/owflow:dev-verify`, `/owflow:development <task-path>`, …).
161
+
162
+ Quick development uses the standard pipeline instead: `/owflow:dev-implement --quick "<description>"` bootstraps a regular development task (`orchestrator-state.yml`, condensed spec + plan), implements it, and stops — continue later with `/owflow:dev-verify` or stop there if the results are enough. Plan-only tasks work the same way: `/owflow:dev-plan --quick "<description>"` bootstraps a regular development task and stops after the plan — continue with `/owflow:dev-implement` or stop there if the plan is enough. Spec-only tasks condense one step further: `/owflow:dev-spec --quick "<description>"` bootstraps a regular development task and stops after the condensed specification (written directly on the fly, no specification-creator subagent; audit skipped) — continue with `/owflow:dev-plan` or stop there if the spec is enough.
163
+
164
+ **The `--quick` flag is optional.** You can start from a bare prompt with any quick-lane command — the skill bootstraps the task and then asks whether to run the condensed quick lane or escalate to the full pipeline. Pass `--quick` to skip that question and go straight to the quick lane. Invoked with no argument at all, the skill prompts you for a task description, task path, or identifier. Bug-shaped descriptions route to `/owflow:dev-bugfix` instead (you can insist on proceeding if you prefer).
165
+
166
+ ```bash
167
+ # Quick lane, no questions asked
168
+ /owflow:dev-spec --quick "Add server-side pagination to the users list"
169
+ /owflow:dev-plan --quick "Add rate limiting to the public API"
170
+ /owflow:dev-implement --quick "Add a logout button to the navbar"
171
+
172
+ # Bare prompt — the skill asks: quick lane or full pipeline?
173
+ /owflow:dev-spec "Design the CSV export for the invoices table"
174
+ /owflow:dev-plan "Add rate limiting to the public API"
175
+ /owflow:dev-implement "Add CSV export to the invoices table"
176
+
177
+ # No argument — prompts for a description, task path, or identifier
178
+ /owflow:dev-spec
179
+ /owflow:dev-plan
180
+ /owflow:dev-implement
181
+ ```
182
+
183
+ ### Fine-Grained Control: Development Subskills
184
+
185
+ The full `/owflow:development` workflow consists of standalone subskills — `/owflow:dev-analyze`, `/owflow:dev-tdd-red`, `/owflow:dev-spec`, `/owflow:dev-plan`, `/owflow:dev-implement`, `/owflow:dev-verify`, `/owflow:dev-finalize` — which you can also invoke individually. Each accepts a task path, or just a task-directory identifier:
186
+
187
+ ```bash
188
+ /owflow:dev-spec 2026-01-12-my-feature
189
+ /owflow:dev-verify .owflow/tasks/development/2026-01-12-my-feature
190
+ ```
151
191
 
152
- All quick commands create lightweight task directories under `.owflow/tasks/quick-{type}/` with a `task.yml` for traceability.
192
+ If a subskill is invoked too early in the workflow (prerequisite phases not yet complete), it stops and tells you exactly which steps to run first, in order. If the workflow state doesn't exist yet, use `/owflow:development <description>` to start from scratch.
153
193
 
154
194
  ## Standards-Aware Development
155
195
 
156
196
  This is the key differentiator. Owflow doesn't just run workflows - it learns your project's conventions and enforces them:
157
197
 
158
- - **`flow-init`** scans config files, source code, and documentation to auto-detect your coding standards
198
+ - **`/owflow:flow-init`** scans config files, source code, and documentation to auto-detect your coding standards
159
199
  - **Continuous checking** - standards are consulted before specification, during planning, and while coding (not just at the start)
160
- - **`/standards-discover`** refreshes standards from your evolving codebase
161
- - **`/standards-update`** lets you add or refine standards manually, or sync from another project with `--from=PATH`
200
+ - **`/owflow:standards-discover`** refreshes standards from your evolving codebase
201
+ - **`/owflow:standards-update`** lets you add or refine standards manually, or sync from another project with `--from=PATH`
162
202
 
163
203
  Standards live in `.owflow/docs/standards/` and are indexed in `.owflow/docs/INDEX.md`.
164
204
 
@@ -176,24 +216,39 @@ TBD
176
216
 
177
217
  **Start workflows in a fresh session.** This is especially useful when chaining workflows (e.g., research → development). Research artifacts already contain all the context needed, so a clean session avoids noise from prior conversation.
178
218
 
179
- **Chain workflows by passing a task folder.** If you've completed a research workflow and want to build on those results, pass the task folder directly:
219
+ **Chain workflows by passing a task folder.** If you've completed a research workflow and want to build on those results, pass the task folder directly — by path, or just by its directory identifier if the name is unique:
180
220
 
181
221
  ```bash
182
- /development .owflow/tasks/research/2026-01-12-oauth-research
222
+ /owflow:development .owflow/tasks/research/2026-01-12-oauth-research
183
223
  ```
184
224
 
185
225
  You can also append additional instructions to narrow scope or guide the workflow:
186
226
 
187
227
  ```bash
188
- /development .owflow/tasks/research/2026-01-12-oauth-research Implement only phase 1
228
+ /owflow:development .owflow/tasks/research/2026-01-12-oauth-research Implement only phase 1
229
+ ```
230
+
231
+ **Fork a research task to diverge from it.** If you want to re-run part of a completed research with different choices while keeping the original intact, fork it. Passing the task path is enough — the skill reads that research, then asks what the fork should explore, where it should diverge, and what to call it, with suggestions drawn from the research itself:
232
+
233
+ ```bash
234
+ /owflow:research-fork .owflow/tasks/research/2026-01-12-oauth-research
189
235
  ```
190
236
 
237
+ Answer the three questions (or supply the answers up front — each one then gets skipped):
238
+
239
+ ```bash
240
+ /owflow:research-fork .owflow/tasks/research/2026-01-12-oauth-research "compare scoping alternatives" \
241
+ --from=synthesis-complete --name="compare-scoping-alternatives"
242
+ ```
243
+
244
+ The copy is verbatim (all artifacts, including those from after the fork point) and only the fork's `completed_phases` is trimmed at the fork point, so the fork resumes at the step after it. The source task is never modified.
245
+
191
246
  ## Known Issues
192
247
 
193
248
  **Orchestrator may stall after long phases.** After context compaction (which typically happens after lengthy phases like implementation), the main agent may stop progressing automatically. If you notice it's idle, just type something like "continue" or "proceed" — it will pick up where it left off. You can also re-invoke the workflow in resume mode to reload the orchestrator state:
194
249
 
195
250
  ```bash
196
- /development .owflow/tasks/development/2026-03-24-my-feature
251
+ /owflow:development .owflow/tasks/development/2026-03-24-my-feature
197
252
  ```
198
253
 
199
254
  ## Learn More
@@ -228,7 +228,7 @@ issue_counts:
228
228
 
229
229
  ## Integration
230
230
 
231
- **Invoked by**: implementation-verifier (Phase 3), standalone via `/reviews-code` command
231
+ **Invoked by**: implementation-verifier (Phase 3), standalone via `/owflow:reviews-code` command
232
232
 
233
233
  **Prerequisites**:
234
234