owflow 0.1.10 → 0.3.0

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 (82) hide show
  1. package/README.md +81 -28
  2. package/dist/agents/code-reviewer.md +1 -1
  3. package/dist/agents/production-readiness-checker.md +1 -1
  4. package/dist/agents/project-analyzer.md +0 -1
  5. package/dist/agents/task-classifier.md +3 -3
  6. package/dist/commands/agents-md-generator.md +36 -0
  7. package/dist/commands/dev-analyze.md +33 -0
  8. package/dist/commands/dev-bugfix.md +37 -0
  9. package/dist/commands/dev-finalize.md +33 -0
  10. package/dist/commands/dev-implement.md +34 -0
  11. package/dist/commands/dev-plan.md +37 -0
  12. package/dist/commands/dev-spec.md +37 -0
  13. package/dist/commands/dev-tdd-red.md +33 -0
  14. package/dist/commands/dev-verify.md +33 -0
  15. package/dist/commands/development.md +11 -12
  16. package/dist/commands/diagrams-mermaid.md +3 -4
  17. package/dist/commands/flow-init.md +3 -4
  18. package/dist/commands/goal-development.md +32 -0
  19. package/dist/commands/html-renderer.md +3 -4
  20. package/dist/commands/migration.md +3 -4
  21. package/dist/commands/performance.md +3 -4
  22. package/dist/commands/research.md +3 -4
  23. package/dist/commands/reviews-code.md +4 -4
  24. package/dist/commands/reviews-pragmatic.md +4 -4
  25. package/dist/commands/reviews-production-readiness.md +4 -4
  26. package/dist/commands/reviews-reality-check.md +4 -4
  27. package/dist/commands/reviews-spec-audit.md +4 -4
  28. package/dist/commands/rule-reviewer.md +38 -0
  29. package/dist/commands/standards-discover.md +3 -4
  30. package/dist/commands/standards-update.md +3 -4
  31. package/dist/commands/work.md +19 -19
  32. package/dist/configuration/agents-config.js +66 -0
  33. package/dist/configuration/commands-config.js +21 -0
  34. package/dist/configuration/skills-config.js +10 -0
  35. package/dist/constants.js +4 -0
  36. package/dist/hooks/before-tool.js +19 -0
  37. package/dist/hooks/session-compaction.js +19 -0
  38. package/dist/index.js +11 -142
  39. package/dist/skills/agents-md-generator/SKILL.md +223 -0
  40. package/dist/skills/codebase-analyzer/SKILL.md +1 -1
  41. package/dist/skills/dev-analyze/SKILL.md +115 -0
  42. package/dist/skills/dev-bugfix/SKILL.md +452 -0
  43. package/dist/skills/dev-finalize/SKILL.md +118 -0
  44. package/dist/skills/dev-implement/SKILL.md +167 -0
  45. package/dist/skills/dev-plan/SKILL.md +147 -0
  46. package/dist/skills/dev-spec/SKILL.md +182 -0
  47. package/dist/skills/dev-tdd-red/SKILL.md +94 -0
  48. package/dist/skills/dev-verify/SKILL.md +160 -0
  49. package/dist/skills/development/SKILL.md +130 -522
  50. package/dist/skills/diagrams-mermaid/SKILL.md +3 -1
  51. package/dist/skills/docs-manager/SKILL.md +4 -4
  52. package/dist/skills/docs-manager/references/agents-md-template.md +1 -1
  53. package/dist/skills/flow-init/SKILL.md +34 -13
  54. package/dist/skills/goal-development/SKILL.md +96 -0
  55. package/dist/skills/html-renderer/SKILL.md +14 -1
  56. package/dist/skills/implementation-plan-executor/SKILL.md +1 -1
  57. package/dist/skills/implementation-verifier/SKILL.md +1 -1
  58. package/dist/skills/migration/SKILL.md +63 -18
  59. package/dist/skills/orchestrator-framework/SKILL.md +1 -1
  60. package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -0
  61. package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -0
  62. package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -0
  63. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +20 -0
  64. package/dist/skills/orchestrator-framework/references/gate-contract.md +104 -0
  65. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +3 -0
  66. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +8 -50
  67. package/dist/skills/performance/SKILL.md +52 -18
  68. package/dist/skills/research/SKILL.md +57 -24
  69. package/dist/skills/rule-reviewer/SKILL.md +334 -0
  70. package/dist/skills/standards-discover/SKILL.md +37 -14
  71. package/dist/skills/standards-update/SKILL.md +58 -10
  72. package/dist/templates/orchestrator-state-development.yml +14 -13
  73. package/dist/utils/file-util.js +25 -0
  74. package/package.json +6 -4
  75. package/dist/__tests__/verify_template.test.js +0 -102
  76. package/dist/commands/quick-bugfix.md +0 -37
  77. package/dist/commands/quick-dev.md +0 -182
  78. package/dist/commands/quick-plan.md +0 -167
  79. package/dist/skills/quick-bugfix/SKILL.md +0 -311
  80. package/dist/templates/quick-bugfix-task.yml +0 -10
  81. package/dist/templates/quick-dev-task.yml +0 -10
  82. package/dist/templates/quick-plan-task.yml +0 -11
@@ -9,6 +9,8 @@ Use when creating NEW orchestrators or auditing existing ones. Not loaded during
9
9
  Before considering an orchestrator complete, verify ALL items:
10
10
 
11
11
  - [ ] **Step 0: Load Framework** — Initialization reads `orchestrator-patterns.md`
12
+ - [ ] **Entry Gate** — Skill body opens with the Entry Gate contract (argument resolution, prerequisite table, blocked output, skip/resume semantics — see [Gate Contract](gate-contract.md))
13
+ - [ ] **Exit Gate** — Skill body closes with the Exit Gate contract (results box, results-acceptance question, next-step hint on Accept, STOP — see [Gate Contract](gate-contract.md))
12
14
  - [ ] **State file creation** — Explicit step to CREATE `orchestrator-state.yml`
13
15
  - [ ] **State verification** — Explicit step to use `verify_template` to check YAML validity after creation
14
16
  - [ ] **Phase structure** — Each phase has: Purpose, Execute, Output, State, Transition (`→ Pause` / `→ AUTO-CONTINUE` / `→ Conditional`)
@@ -39,6 +41,7 @@ Before considering an orchestrator complete, verify ALL items:
39
41
  | Stopping at AUTO-CONTINUE transitions | Brief summary is fine, but must proceed immediately |
40
42
  | Missing standards references | INDEX.md must be referenced in relevant phases |
41
43
  | Auto-accepting subagent decisions | User must consent via question |
44
+ | Ending without results-acceptance | Exit Gate question MUST fire before next-step hint |
42
45
 
43
46
  ---
44
47
 
@@ -2,58 +2,14 @@
2
2
 
3
3
  Shared execution rules, schemas, and patterns for all workflow orchestrators.
4
4
 
5
- ---
6
-
7
- ## 1. Delegation Rules
8
-
9
- **Always use Skill/Task tools to delegate. Never execute delegated work inline.**
10
-
11
- When a phase requires delegation:
12
-
13
- 1. Use the **Skill tool** for **skills** — loads SKILL.md instructions into the main agent's context; the main agent executes the skill's instructions and continues with the orchestrator workflow afterward
14
- 2. Use the **Task tool** for **subagents/agents** — spawns an isolated subprocess that returns results when complete
15
- 3. Wait for completion before continuing
16
-
17
- **Skills and agents are NOT interchangeable.** Skills always use Skill tool; agents always use Task tool. Never invoke a skill via Task tool (`subagent_type`) — it will fail with "Agent type not found."
18
-
19
- **Why skills MUST use Skill tool**: Skills like `codebase-analyzer`, `implementation-plan-executor`, and `implementation-verifier` spawn their own subagents (Explore agents, reporters, planners). Subagents cannot spawn other subagents — so these skills must run in the main agent context via Skill tool.
20
-
21
- **Companion agent pattern** (e.g., `docs-operator`): Only works for skills that do NOT spawn subagents (like `docs-manager` which only does file operations). A companion agent preloads the skill via the `skills` frontmatter field and is invoked via Task tool. This pattern fails for any skill that needs to spawn subagents.
22
-
23
- ### Anti-Patterns
24
-
25
- | Anti-Pattern | Why It's Wrong | Correct Approach |
26
- | --------------------------------------- | ------------------------------------------- | ----------------------------------------------------- |
27
- | "I'll analyze the codebase..." | Bypasses codebase-analyzer skill | Use `Skill` tool with `codebase-analyzer` |
28
- | "Let me create the specification..." | Bypasses specification-creator | Use `Task` tool with `specification-creator` subagent |
29
- | "Looking at the gaps between..." | Bypasses gap-analyzer subagent | Use `Task` tool with `gap-analyzer` |
30
- | "I'll implement this by..." | Bypasses implementation-plan-executor skill | Use `Skill` tool with `implementation-plan-executor` |
31
- | Reading a SKILL.md then doing the work | Skill files are instructions FOR skills | Use Skill tool to invoke |
32
- | Spawning Explore agents in orchestrator | Codebase-analyzer manages its own agents | Invoke skill, let IT spawn agents |
33
-
34
- ### When Inline Execution is Acceptable
35
-
36
- These do NOT require delegation:
37
-
38
- 1. **Clarifying questions phases** — question is direct
39
- 2. **State updates** — Reading/writing orchestrator-state.yml
40
- 3. **Phase announcements** — Outputting status messages
41
- 4. **Simple decisions** — Enabling/disabling optional phases
42
- 5. **Finalization** — Creating summary, updating metadata
5
+ Some heavily cross-referenced sections live in their own reference files:
43
6
 
44
- For all analysis, planning, implementation, and verification phases: **ALWAYS DELEGATE**.
7
+ - [Delegation Rules](delegation-rules.md) — Skill/Task tool delegation contract (was Section 1)
8
+ - [Dispatcher & Handoff Pattern](dispatcher-handoff.md) — subskill loop, mode table, per-step state writes (was Section 7)
9
+ - [Command Namespacing](command-namespacing.md) — `owflow:` prefix rules (was Section 8)
10
+ - [Gate Contract](gate-contract.md) — Entry Gate & Exit Gate skill contract, incl. exceptions (was Section 9)
45
11
 
46
- **Never acceptable inline** (regardless of perceived task simplicity):
47
-
48
- - Specification creation → always delegate to `specification-creator` subagent
49
- - Implementation planning → always delegate to `implementation-planner` subagent
50
- - Gap analysis → always delegate to `gap-analyzer` subagent
51
- - Codebase analysis → always delegate to `codebase-analyzer` skill
52
- - Code review → always delegate to `code-reviewer` subagent
53
- - Test execution → always delegate to `test-suite-runner` subagent
54
- - Implementation completeness → always delegate to `implementation-completeness-checker` subagent
55
-
56
- "The task is simple" is NOT a valid reason to skip delegation.
12
+ Section numbering below is kept as-is so existing cross-references stay valid.
57
13
 
58
14
  ---
59
15
 
@@ -272,3 +228,5 @@ If prerequisites missing, use question: "Start from Phase 1", "Specify different
272
228
  | User chooses "Proceed with known issues" | Proceed with warning logged |
273
229
  | Max iterations (3) reached | Ask user how to proceed |
274
230
  | Critical issues remain unresolved | **MUST NOT proceed** — require user approval first |
231
+
232
+ ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: performance
2
+ name: owflow:performance
3
3
  description: Orchestrates performance optimization workflows using static code analysis to identify bottlenecks (N+1 queries, missing indexes, O(n^2) algorithms, blocking I/O, memory leaks). Accepts optional user-provided profiling data. Reuses standard specification, planning, implementation, and verification phases.
4
4
  user-invocable: true
5
5
  ---
@@ -8,24 +8,36 @@ user-invocable: true
8
8
 
9
9
  Static-analysis-first performance optimization workflow. Identifies bottlenecks by reading code, then uses the standard specification/planning/implementation/verification pipeline to fix them.
10
10
 
11
- ## Initialization
11
+ Gates follow the shared contract in [Gate Contract](../orchestrator-framework/references/gate-contract.md).
12
+
13
+ ## Entry Gate
12
14
 
13
15
  **BEFORE executing any phase, you MUST complete these steps:**
14
16
 
15
- ### Step 1: Load Framework Patterns
17
+ ### Argument resolution
18
+
19
+ - **Performance issue description provided** → use it as the task description.
20
+ - **Task path / identifier** (directory under `.owflow/tasks/performance/`) → resume mode: read `orchestrator-state.yml`, find the first incomplete phase (`--from=PHASE` overrides), validate existing artifacts, then continue from there.
21
+ - **Nothing provided** → ask via `question`: "What is slow or performance-constrained? Describe the symptom (endpoint, page, job), expected vs actual behavior, and any profiling data you have." — collect the description, plus optional profiling data paths, before proceeding.
22
+
23
+ ### Prerequisites
16
24
 
17
- **Read the framework reference file NOW using the Read tool:**
25
+ | Required for this skill | Where verified | Produced by |
26
+ | ----------------------- | ----------------------------------------------------- | ---------------------------- |
27
+ | State file exists | `<task-path>/orchestrator-state.yml` (resume mode) | prior `/owflow:performance` run |
18
28
 
19
- 1. `../orchestrator-framework/references/orchestrator-patterns.md` - Delegation rules, interactive mode, state schema, initialization, context passing, issue resolution
29
+ On resume, if the state file is missing → print: `No performance task found at <path>. Run /owflow:performance <description> to start from scratch.` and STOP. Validate expected artifacts for completed phases (remove entries with missing artifacts).
20
30
 
21
- ### Step 2: Initialize Workflow
31
+ ### Execution steps
22
32
 
23
- 1. **Create Task Items**: Use `TaskCreate` for all phases (see Phase Configuration), then set dependencies with `TaskUpdate addBlockedBy`
24
- 2. **Create Task Directory**: `.owflow/tasks/performance/YYYY-MM-DD-task-name/`
25
- 3. **Create Subdirectories**: `analysis/`, `analysis/user-profiling-data/`, `implementation/`, `verification/`
26
- 4. **Initialize State**: Create `orchestrator-state.yml` with performance context
27
- - **CRITICAL**: Use the `verify_template` tool immediately after creation to check YAML validity against `orchestrator-state-performance.yml`.
28
- 5. **Discover project documentation**: Read `.owflow/docs/INDEX.md` (if exists), extract ALL file paths from the "Project Documentation" section — includes predefined docs AND any user-added project docs. Store as `project_context.project_doc_paths` in state.
33
+ 1. **Load framework patterns** — Read `../orchestrator-framework/references/orchestrator-patterns.md` NOW: delegation rules, interactive mode, state schema, initialization, context passing, issue resolution.
34
+ 2. **Initialize workflow:**
35
+ 1. **Create Task Items**: Use `TaskCreate` for all phases (see Phase Configuration), then set dependencies with `TaskUpdate addBlockedBy`
36
+ 2. **Create Task Directory**: `.owflow/tasks/performance/YYYY-MM-DD-task-name/`
37
+ 3. **Create Subdirectories**: `analysis/`, `analysis/user-profiling-data/`, `implementation/`, `verification/`
38
+ 4. **Initialize State**: Create `orchestrator-state.yml` with performance context
39
+ - **CRITICAL**: Use the `verify_template` tool immediately after creation to check YAML validity against `orchestrator-state-performance.yml`.
40
+ 5. **Discover project documentation**: Read `.owflow/docs/INDEX.md` (if exists), extract ALL file paths from the "Project Documentation" section — includes predefined docs AND any user-added project docs. Store as `project_context.project_doc_paths` in state.
29
41
 
30
42
  **Output**:
31
43
 
@@ -326,11 +338,11 @@ question - Display executive summary: total issues found, issues fixed, issues r
326
338
 
327
339
  ---
328
340
 
329
- ### Phase 9: Finalization
341
+ ### Phase 9: Finalization → Exit Gate
330
342
 
331
343
  > **Phase gate**: Requires `question` confirmation from Phase 8 before executing.
332
344
 
333
- **Purpose**: Complete workflow and provide next steps
345
+ **Purpose**: Present optimization results, confirm correctness with the user, and close the workflow (Exit Gate contract, [Gate Contract](../orchestrator-framework/references/gate-contract.md))
334
346
  **Execute**: Direct - create summary, update state, guide commit
335
347
  **Output**: Workflow summary
336
348
  **State**: Set `task.status: completed`
@@ -339,12 +351,34 @@ question - Display executive summary: total issues found, issues fixed, issues r
339
351
 
340
352
  1. Create workflow summary (bottlenecks found, optimizations implemented, verification result)
341
353
  2. Update task status to "completed"
342
- 3. Provide commit message template
343
- 4. Guide performance-specific next steps:
354
+ 3. **Results box**:
355
+
356
+ ```markdown
357
+ ## ✅ PERFORMANCE WORKFLOW COMPLETE — <task name>
358
+
359
+ **Bottlenecks found** — [count by severity]
360
+ **Optimizations applied** — [count + key ones]
361
+ **Verification** — [final verdict]
362
+ **Estimated improvement** — [range from analysis]
363
+
364
+ **Artifacts**
365
+ - `analysis/performance-analysis.md`
366
+ - `implementation/work-log.md`
367
+ - `verification/implementation-verification.md`
368
+ ```
369
+
370
+ 4. **Results-acceptance question** — use `question` — "Are these results correct?" with options:
371
+ - **Accept** — workflow is complete; print next steps below.
372
+ - **Adjust** — re-run the affected phase (additional optimizations, re-verification) with the user's corrections, then re-present the results box.
373
+ - **Discuss** — walk through bottleneck findings, optimization rationale, and measurement caveats in more depth; then re-ask.
374
+ - **Stop here** — print the resume command (`/owflow:performance <task-path>`) and end.
375
+
376
+ 5. **Next steps (after Accept)** — performance-specific guidance:
344
377
  - Run the application and verify improvements manually
345
378
  - Consider profiling with runtime tools to measure actual impact
346
379
  - Monitor production metrics after deployment
347
380
  - Address remaining P2/P3 bottlenecks if needed
381
+ - `/owflow:standards-update "<lesson learned>"` — capture optimization patterns as standards
348
382
 
349
383
  → End of workflow
350
384
 
@@ -396,7 +430,7 @@ Refer to the template [src/templates/orchestrator-state-performance.yml](../../t
396
430
 
397
431
  Invoked via:
398
432
 
399
- - `/performance [description]` (new)
400
- - `/performance [task-path] [--from=PHASE]` (resume)
433
+ - `/owflow:performance [description]` (new)
434
+ - `/owflow:performance [task-path] [--from=PHASE]` (resume)
401
435
 
402
436
  Task directory: `.owflow/tasks/performance/YYYY-MM-DD-task-name/`
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: research
2
+ name: owflow:research
3
3
  description: Orchestrates comprehensive research workflows from question definition through findings documentation. Handles technical, requirements, literature, and mixed research types with adaptive methodology, multi-source gathering, pattern synthesis, and evidence-based reporting. Supports standalone research tasks and embedded research phase in other workflows.
4
4
  user-invocable: true
5
5
  ---
@@ -8,22 +8,34 @@ user-invocable: true
8
8
 
9
9
  Systematic research workflow from question definition to evidence-based documentation.
10
10
 
11
- ## Initialization
11
+ Gates follow the shared contract in [Gate Contract](../orchestrator-framework/references/gate-contract.md).
12
+
13
+ ## Entry Gate
12
14
 
13
15
  **BEFORE executing any phase, you MUST complete these steps:**
14
16
 
15
- ### Step 1: Load Framework Patterns
17
+ ### Argument resolution
18
+
19
+ - **Research question provided** → use it as the task description.
20
+ - **Task path / identifier** (directory under `.owflow/tasks/research/`) → resume mode: read `orchestrator-state.yml`, find the first incomplete phase (`--from=PHASE` overrides), validate existing artifacts, then continue from there.
21
+ - **Nothing provided** → ask via `question`: "What is your research question?" (free-form answer), then proceed.
22
+
23
+ ### Prerequisites
16
24
 
17
- **Read the framework reference file NOW using the Read tool:**
25
+ | Required for this skill | Where verified | Produced by |
26
+ | ----------------------- | ----------------------------------------------------- | -------------------------- |
27
+ | State file exists | `<task-path>/orchestrator-state.yml` (resume mode) | prior `/owflow:research` run |
18
28
 
19
- 1. `../orchestrator-framework/references/orchestrator-patterns.md` - Delegation rules, interactive mode, state schema, initialization, context passing, issue resolution
29
+ On resume, if the state file is missing → print: `No research task found at <path>. Run /owflow:research <question> to start from scratch.` and STOP. Validate expected artifacts for completed phases (remove entries with missing artifacts).
20
30
 
21
- ### Step 2: Initialize Workflow
31
+ ### Execution steps
22
32
 
23
- 1. **Create Task Items**: Use `TaskCreate` for all phases (see Phase Configuration), then set dependencies with `TaskUpdate addBlockedBy`
24
- 2. **Create Task Directory**: `.owflow/tasks/research/YYYY-MM-DD-task-name/`
25
- 3. **Initialize State**: Create `orchestrator-state.yml` with research context
26
- - **CRITICAL**: Use the `verify_template` tool immediately after creation to check YAML validity against `orchestrator-state-research.yml`.
33
+ 1. **Load framework patterns** — Read `../orchestrator-framework/references/orchestrator-patterns.md` NOW: delegation rules, interactive mode, state schema, initialization, context passing, issue resolution.
34
+ 2. **Initialize workflow:**
35
+ 1. **Create Task Items**: Use `TaskCreate` for all phases (see Phase Configuration), then set dependencies with `TaskUpdate addBlockedBy`
36
+ 2. **Create Task Directory**: `.owflow/tasks/research/YYYY-MM-DD-task-name/`
37
+ 3. **Initialize State**: Create `orchestrator-state.yml` with research context
38
+ - **CRITICAL**: Use the `verify_template` tool immediately after creation to check YAML validity against `orchestrator-state-research.yml`.
27
39
 
28
40
  **Output**:
29
41
 
@@ -341,26 +353,47 @@ question - "Design complete. Continue to output generation?"
341
353
 
342
354
  ---
343
355
 
344
- ### Phase 6: Completion
356
+ ### Phase 6: Completion → Exit Gate
345
357
 
346
358
  > **Phase gate**: Requires `question` confirmation from the preceding phase before executing.
347
359
 
348
- **Purpose**: Summarize research results and suggest next steps
360
+ **Purpose**: Present research results, confirm correctness with the user, and hand off (Exit Gate contract, [Gate Contract](../orchestrator-framework/references/gate-contract.md))
349
361
  **Execute**: Direct
350
362
  **Output**: No new files — summarizes existing outputs
351
363
 
352
364
  **Process**:
353
365
 
354
366
  1. Inventory all generated outputs: `outputs/research-report.md` (always), plus conditional: `solution-exploration.md`, `high-level-design.md`, `decision-log.md`
355
- 2. Present executive summary to user:
356
- - Key findings and confidence level
357
- - Which optional phases ran (brainstorming, design)
358
- - Key decision highlights (if brainstorming/design ran)
359
- 3. If design artifacts exist, suggest starting development in a fresh session:
360
- ```
361
- To start development based on this research, clear context first or start a new session, then run:
362
- /development [task-path]
363
- ```
367
+ 2. **Results box**:
368
+
369
+ ```markdown
370
+ ## ✅ RESEARCH COMPLETE — <research question>
371
+
372
+ **Type** — [research type]
373
+ **Confidence** — [confidence level]
374
+ **Phases run** — [e.g. 1, 3-4 brainstorm, 5 design]
375
+ **Key findings** — [2-3 one-line highlights]
376
+ **Decisions** — [count of ADRs, if design ran]
377
+
378
+ **Artifacts**
379
+ - `outputs/research-report.md`
380
+ - `outputs/solution-exploration.md` [conditional]
381
+ - `outputs/high-level-design.md` [conditional]
382
+ - `outputs/decision-log.md` [conditional]
383
+ ```
384
+
385
+ 3. **Results-acceptance question** — use `question` — "Are these results correct?" with options:
386
+ - **Accept** — research is complete; print next steps (below).
387
+ - **Adjust** — re-run the affected phase (re-gather, re-brainstorm, re-design) with the user's corrections, then re-present the results box.
388
+ - **Discuss** — walk through specific findings or decisions in more depth; then re-ask.
389
+ - **Stop here** — print the resume command (`/owflow:research <task-path>`) and end.
390
+
391
+ 4. **Next steps (after Accept)** — if design artifacts exist, suggest starting development in a fresh session:
392
+
393
+ ```
394
+ To start development based on this research, clear context first or start a new session, then run:
395
+ → /owflow:development <task-path>
396
+ ```
364
397
 
365
398
  → End of workflow
366
399
 
@@ -420,7 +453,7 @@ Refer to the template [src/templates/orchestrator-state-research.yml](../../temp
420
453
 
421
454
  ### As Standalone Research
422
455
 
423
- **Command**: `/research [research-question]`
456
+ **Command**: `/owflow:research [research-question]`
424
457
  **Flow**: Complete all phases, save outputs in task directory
425
458
 
426
459
  ### As Embedded Research Phase
@@ -444,8 +477,8 @@ Refer to `research_outputs` in the template [src/templates/orchestrator-state-re
444
477
 
445
478
  Invoked via:
446
479
 
447
- - `/research [question] [--type=TYPE] [--brainstorm] [--no-brainstorm] [--design] [--no-design]` (new)
448
- - `/research [task-path] [--from=PHASE]` (resume)
480
+ - `/owflow:research [question] [--type=TYPE] [--brainstorm] [--no-brainstorm] [--design] [--no-design]` (new)
481
+ - `/owflow:research [task-path] [--from=PHASE]` (resume)
449
482
 
450
483
  **Brainstorming flags**:
451
484