owflow 0.2.0 → 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 (74) hide show
  1. package/README.md +61 -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/skills/agents-md-generator/SKILL.md +223 -0
  33. package/dist/skills/codebase-analyzer/SKILL.md +1 -1
  34. package/dist/skills/dev-analyze/SKILL.md +115 -0
  35. package/dist/skills/dev-bugfix/SKILL.md +452 -0
  36. package/dist/skills/dev-finalize/SKILL.md +118 -0
  37. package/dist/skills/dev-implement/SKILL.md +167 -0
  38. package/dist/skills/dev-plan/SKILL.md +147 -0
  39. package/dist/skills/dev-spec/SKILL.md +182 -0
  40. package/dist/skills/dev-tdd-red/SKILL.md +94 -0
  41. package/dist/skills/dev-verify/SKILL.md +160 -0
  42. package/dist/skills/development/SKILL.md +130 -522
  43. package/dist/skills/diagrams-mermaid/SKILL.md +3 -1
  44. package/dist/skills/docs-manager/SKILL.md +4 -4
  45. package/dist/skills/docs-manager/references/agents-md-template.md +1 -1
  46. package/dist/skills/flow-init/SKILL.md +34 -13
  47. package/dist/skills/goal-development/SKILL.md +96 -0
  48. package/dist/skills/html-renderer/SKILL.md +14 -1
  49. package/dist/skills/implementation-plan-executor/SKILL.md +1 -1
  50. package/dist/skills/implementation-verifier/SKILL.md +1 -1
  51. package/dist/skills/migration/SKILL.md +63 -18
  52. package/dist/skills/orchestrator-framework/SKILL.md +1 -1
  53. package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -0
  54. package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -0
  55. package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -0
  56. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +20 -0
  57. package/dist/skills/orchestrator-framework/references/gate-contract.md +104 -0
  58. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +3 -0
  59. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +8 -50
  60. package/dist/skills/performance/SKILL.md +52 -18
  61. package/dist/skills/research/SKILL.md +57 -24
  62. package/dist/skills/rule-reviewer/SKILL.md +334 -0
  63. package/dist/skills/standards-discover/SKILL.md +37 -14
  64. package/dist/skills/standards-update/SKILL.md +58 -10
  65. package/dist/templates/orchestrator-state-development.yml +14 -13
  66. package/dist/utils/file-util.js +13 -7
  67. package/package.json +1 -1
  68. package/dist/commands/quick-bugfix.md +0 -37
  69. package/dist/commands/quick-dev.md +0 -182
  70. package/dist/commands/quick-plan.md +0 -167
  71. package/dist/skills/quick-bugfix/SKILL.md +0 -311
  72. package/dist/templates/quick-bugfix-task.yml +0 -10
  73. package/dist/templates/quick-dev-task.yml +0 -10
  74. package/dist/templates/quick-plan-task.yml +0 -11
@@ -0,0 +1,160 @@
1
+ ---
2
+ name: owflow:dev-verify
3
+ description: Development — verification options prompt, comprehensive implementation verification, and user-driven fix loop.
4
+ argument-hint: "[task-path-or-identifier]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Dev Verify — Verification & Issue Resolution (options-chosen, verification-done)
9
+
10
+ Work phase of the development workflow. Lets the user pick which verification checks run, then delegates comprehensive verification with a fix-then-reverify loop.
11
+
12
+ ## Entry Gate
13
+
14
+ Resolve the `task-path-or-identifier` argument BEFORE anything else (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)):
15
+
16
+ - **Path** (absolute or project-relative) to the task directory — use as-is.
17
+ - **Identifier** — exact directory name inside `.owflow/tasks/development/` (e.g., `2026-01-12-my-task`); resolve to its path.
18
+ - If the argument is **missing**, the path does **not exist**, or matches **no identifier** → print the blocked block, then STOP (never guess or auto-pick a task):
19
+ 1. Steps that must be completed first (in order), each with its command:
20
+ - Codebase & gap analysis (`codebase-analysed`, `gap-analysed`) → `/owflow:dev-analyze <task-path>`
21
+ - TDD red gate (`tdd-red-proven`) — only when a reproducible defect was detected → `/owflow:dev-tdd-red <task-path>`
22
+ - Requirements, specification & audit (`spec-written`, `spec-audited`) → `/owflow:dev-spec <task-path>`
23
+ - Implementation planning (`plan-created`) → `/owflow:dev-plan <task-path>`
24
+ - Implementation & TDD green gate (`implementation-done`, `tdd-green-proven`) → `/owflow:dev-implement <task-path>`
25
+ 2. List available dev-task identifiers (directories under `.owflow/tasks/development/`) to resume from, if any.
26
+ 3. Hint: `Run /owflow:development <description> to start a task from scratch, or pass a task path/identifier to resume.`
27
+
28
+ ### Prerequisites
29
+
30
+ | Required for this skill | Where verified | Produced by |
31
+ | ----------------------- | ------------------------------------------------ | ------------------------------------ |
32
+ | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:development <desc>` |
33
+ | Implementation done | `implementation-done` in `completed_phases` | `/owflow:dev-implement <task-path>` |
34
+
35
+ **Dev-bugfix tasks are verified here too**: a task produced or resumed by `/owflow:dev-bugfix` reaches this skill with `implementation-done` complete but no spec/plan — that is valid; verification does NOT require them. A consecutive dev-bugfix run on a verified task resets the downstream slugs, so the user is routed here for re-verification.
36
+
37
+ 1. **Read `orchestrator-state.yml`** from the task path. If missing → mid-pipeline bootstrap ([Missing-state Bootstrap](../orchestrator-framework/references/gate-contract.md), starting slug `options-chosen`): `question` — create a fresh standard development task starting at this step, or decline → print `No development task found at <path>. Run /owflow:development <description> to start a task from scratch.` and STOP.
38
+ 2. **Prerequisite check**: `implementation-done` in `completed_phases` (implementation done). If missing → print the blocked block, then STOP:
39
+ - Steps that must be completed first: analysis (`codebase-analysed`, `gap-analysed`) → TDD red gate (`tdd-red-proven`, only when a reproducible defect was detected) → specification (`spec-written`) → implementation planning (`plan-created`) → implementation (`implementation-done`).
40
+ - `Run /owflow:dev-implement <task-path> first` (or the command for the earliest missing earlier step: `/owflow:dev-analyze`, `/owflow:dev-tdd-red`, `/owflow:dev-spec`, or `/owflow:dev-plan`).
41
+ - If no task exists yet: `Run /owflow:development <description> to start a task from scratch.`
42
+ 3. **Re-verification**: if `options-chosen` and `verification-done` are already complete and re-running after fixes, confirm scope via `question` (full re-run vs only failed checks).
43
+
44
+ ## Execute
45
+
46
+ **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md) and [Issue Resolution](../orchestrator-framework/references/orchestrator-patterns.md) (Section 6).
47
+
48
+ ### Verification Options Prompt (`options-chosen`, inline)
49
+
50
+ **Step 1**: Display the verification plan:
51
+
52
+ ```
53
+ Verification Plan:
54
+ Obligatory (always run):
55
+ ✓ Completeness check
56
+ ✓ Test suite (skipped — passed during implementation; re-enabled after fixes)
57
+
58
+ Recommended (adjustable):
59
+ ✓ Code review — quality and security analysis
60
+ ✓ Pragmatic review — detects over-engineering
61
+ ✓ Reality check — validates work solves the problem
62
+ ✓ Production readiness — deployment readiness checks
63
+
64
+ Conditional:
65
+ [✓/—] E2E browser testing — [reason]
66
+ [✓/—] User documentation — [reason]
67
+ ```
68
+
69
+ **Step 2** (3 questions):
70
+
71
+ - **Q1** (always): `question` (multi-select) — "Which standard verifications to run?" Options: "Code review (Recommended)", "Pragmatic review (Recommended)", "Reality check (Recommended)", "Production readiness (Recommended)". All pre-selected.
72
+ - **Q2** (skip if `options.e2e_enabled: false` and no `--e2e` flag): "Enable E2E browser verification?" — "Yes (Recommended)" / "No, skip".
73
+ - **Q3** (skip if `options.user_docs_enabled: false` and no `--user-docs` flag): "Generate user documentation?" — "Yes (Recommended)" / "No, skip".
74
+
75
+ Set all chosen `options.*` in state. **Auto-set** `skip_test_suite: true` (full suite passed during implementation; cleared before re-verification if fixes are applied).
76
+
77
+ **State write**: append `options-chosen` to `completed_phases`; write chosen `options.*` and `skip_test_suite`; bump `orchestrator.updated`; re-read + `verify_template` (see State Update Convention).
78
+
79
+ ### Verification & Issue Resolution (`verification-done`)
80
+
81
+ **Step 1**: Skill tool - `implementation-verifier`. Pass: task_path, task_description, chosen verification options, `verification_context` if re-verifying.
82
+
83
+ **Step 2**: Display detailed issue breakdown grouped by category and severity:
84
+
85
+ ```
86
+ Verification Results:
87
+ Critical ([N]):
88
+ - [category]: [description] — [file:line] [fixable/manual]
89
+ Warning ([N]):
90
+ - [category]: [description] — [file:line] [fixable/manual]
91
+ Info ([N]):
92
+ - [description] (listed for awareness, not actionable)
93
+ ```
94
+
95
+ **Step 3**: Gate on status — `passed` → skip to State Update. `passed_with_issues` or `failed` → fix loop (Step 4).
96
+
97
+ **Step 4**: User-driven fix loop (max 3 iterations):
98
+
99
+ 1. Present critical + warning issues as a numbered list.
100
+ 2. `question` — "Which issues should I fix?" Options: "Fix all fixable issues" / "Let me choose specific issues" / "Skip fixes, proceed as-is".
101
+ 3. Fix selected issues; **immediately** log each to `verification_context.fixes_applied` in state (not deferred to the end).
102
+ 4. After fixes: set `skip_test_suite: false` (code changed, tests must re-run).
103
+ 5. `question` — "Re-run verification to check fixes?" → re-invoke `implementation-verifier` → back to Step 2, or "No, proceed to next phase".
104
+ 6. **Immediately** update `verification_context.reverify_count` and `verification_context.last_status` in state after each verifier run.
105
+
106
+ **Exit conditions**: no critical issues remain → proceed; user explicitly chooses to proceed with issues → proceed with issues logged; max 3 iterations → `question` "Proceed with known issues?" / "Stop workflow". **MUST NOT proceed with unresolved critical issues unless the user explicitly approves.**
107
+
108
+ ## State Update Convention (per step)
109
+
110
+ Apply after EVERY phase/step above:
111
+
112
+ 1. **Write immediately** — update `orchestrator-state.yml` as soon as the step completes, appending ONLY the step slug actually performed plus that step's fields. Never defer writes to the end of the skill.
113
+ 2. **Options prompt** — append `options-chosen` to `completed_phases` with the chosen `options.*` and `skip_test_suite` (written right after the options prompt, before verification starts).
114
+ 3. **Per verifier run** — update `verification_context.last_status`, `issues_found`, `fixes_applied`, and `reverify_count` immediately after each `implementation-verifier` run and after each fix-loop iteration (per steps 3/6 above), so an interruption loses nothing.
115
+ 4. **Completion** — append `verification-done` to `completed_phases` only at skill exit: status `passed`, or user-approved proceed with issues logged. Bump `orchestrator.updated` on every write.
116
+ 5. **Failures** — if `implementation-verifier` itself fails or the workflow stops with unresolved critical issues, do NOT append `verification-done` to `completed_phases`; append it to `orchestrator.failed_phases` and increment `auto_fix_attempts["verification-done"]`.
117
+ 6. **Validate** — after every write, re-read the file to confirm values, then run the `verify_template` tool with `filePath: <task-path>/orchestrator-state.yml`, `templateName: orchestrator-state-development.yml`. Fix any reported issue immediately before proceeding.
118
+ 7. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run to confirm the full state matches everything performed in this session.
119
+
120
+ ## Exit Gate
121
+
122
+ Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill.
123
+
124
+ ### Results box
125
+
126
+ ```markdown
127
+ ## ✅ DEV VERIFY COMPLETE — <task name>
128
+
129
+ **Overall status** — [✅ passed / ⚠ passed_with_issues / ❌ failed]
130
+ **Issues found** — [total] ([critical] C / [warning] W / [info] I)
131
+ **Fixed** — [count]
132
+ **Remaining** — [by severity]
133
+
134
+ **Artifacts**
135
+ - `verification/implementation-verification.md`
136
+ - `verification/code-review-report.md` [if run]
137
+ - `verification/pragmatic-review.md` [if run]
138
+ - `verification/reality-check.md` [if run]
139
+ - `verification/production-readiness-report.md` [if run]
140
+ ```
141
+
142
+ ### Results-acceptance question
143
+
144
+ Use `question` — "Are these results correct?" with options:
145
+
146
+ - **Accept** — verification outcome is good (including approved proceed-with-issues); continue.
147
+ - **Adjust** — run additional fixes and/or another verification round (within the fix-loop limits), then re-present the results box.
148
+ - **Discuss** — walk through specific findings (issue details, fixability assessment, recommendations) in more depth; then re-ask.
149
+ - **Stop here** — print the resume command (`/owflow:dev-verify <task-path>`) and end.
150
+
151
+ ### Next steps (after Accept)
152
+
153
+ - `→ /owflow:dev-finalize <task-path>` — `required` to close the workflow: conditional E2E verification, optional user documentation, and commit guidance (whether E2E/docs run is decided inside based on task characteristics). Remaining after: none — workflow ends.
154
+
155
+ **Other options**:
156
+
157
+ - `/owflow:reviews-code <task-path>` / `/owflow:reviews-pragmatic <task-path>` — `optional` — standalone re-runs of individual reviews; do not advance phases
158
+ - `/owflow:goal-development <task-path>` — `optional` shortcut: finishes the remaining phases in one loop (finalize)
159
+
160
+ Then STOP.