owflow 0.1.1 → 0.1.3

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 (104) 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/index.js +3 -2
  44. package/dist/skills/codebase-analyzer/SKILL.md +162 -0
  45. package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -0
  46. package/dist/skills/codebase-analyzer/references/combined.md +31 -0
  47. package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -0
  48. package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -0
  49. package/dist/skills/codebase-analyzer/references/migration-target.md +23 -0
  50. package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -0
  51. package/dist/skills/development/SKILL.md +669 -0
  52. package/dist/skills/docs-manager/SKILL.md +379 -0
  53. package/dist/skills/docs-manager/docs/INDEX.md +199 -0
  54. package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -0
  55. package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -0
  56. package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -0
  57. package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -0
  58. package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -0
  59. package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -0
  60. package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -0
  61. package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -0
  62. package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -0
  63. package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -0
  64. package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -0
  65. package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -0
  66. package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -0
  67. package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -0
  68. package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -0
  69. package/dist/skills/docs-manager/references/claude-md-template.md +29 -0
  70. package/dist/skills/docs-manager/references/index-md-template.md +73 -0
  71. package/dist/skills/flow-init/SKILL.md +198 -0
  72. package/dist/skills/flow-init/references/architecture-template.md +45 -0
  73. package/dist/skills/flow-init/references/roadmap-templates.md +93 -0
  74. package/dist/skills/flow-init/references/tech-stack-template.md +70 -0
  75. package/dist/skills/flow-init/references/vision-templates.md +75 -0
  76. package/dist/skills/implementation-plan-executor/SKILL.md +378 -0
  77. package/dist/skills/implementation-verifier/SKILL.md +307 -0
  78. package/dist/skills/migration/SKILL.md +380 -0
  79. package/dist/skills/migration/references/migration-strategies.md +397 -0
  80. package/dist/skills/migration/references/migration-types.md +437 -0
  81. package/dist/skills/orchestrator-framework/SKILL.md +65 -0
  82. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +47 -0
  83. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +329 -0
  84. package/dist/skills/performance/SKILL.md +418 -0
  85. package/dist/skills/performance/references/performance-optimization-guide.md +365 -0
  86. package/dist/skills/product-design/SKILL.md +843 -0
  87. package/dist/skills/product-design/references/characteristic-detection.md +92 -0
  88. package/dist/skills/product-design/references/interaction-patterns.md +206 -0
  89. package/dist/skills/product-design/references/visual-companion.md +190 -0
  90. package/dist/skills/product-design/server/index.ts +359 -0
  91. package/dist/skills/product-design/server/template.html +256 -0
  92. package/dist/skills/quick-bugfix/SKILL.md +241 -0
  93. package/dist/skills/research/SKILL.md +493 -0
  94. package/dist/skills/research/references/brainstorming-techniques.md +84 -0
  95. package/dist/skills/research/references/design-techniques.md +40 -0
  96. package/dist/skills/research/references/research-methodologies.md +710 -0
  97. package/dist/skills/standards-discover/SKILL.md +236 -0
  98. package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -0
  99. package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -0
  100. package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -0
  101. package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -0
  102. package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -0
  103. package/dist/skills/standards-update/SKILL.md +159 -0
  104. package/package.json +44 -43
@@ -0,0 +1,241 @@
1
+ ---
2
+ name: quick-bugfix
3
+ description: Quick bug fix with TDD red/green gates and complexity escalation
4
+ argument-hint: "[bug description]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Quick Bug Fix
9
+
10
+ Lightweight TDD-driven bug fix workflow with planning mode. Analyze the bug, present a fix plan for approval, then reproduce with a failing test, fix, and verify. No orchestrator state, no task directory, no subagents.
11
+
12
+ For complex bugs that grow beyond a quick fix, suggests escalating to the full development workflow (`/development`).
13
+
14
+ ## Usage
15
+
16
+ ```bash
17
+ /quick-bugfix "Login form submits twice on slow connections"
18
+ /quick-bugfix "API returns 500 when email contains special characters"
19
+ /quick-bugfix "Dark mode toggle doesn't persist after refresh"
20
+ ```
21
+
22
+ ## When to Use
23
+
24
+ **Use `/quick-bugfix` when:**
25
+
26
+ - Bug is reasonably scoped and reproducible
27
+ - You have a clear description of expected vs actual behavior
28
+ - Fix likely touches a small number of files
29
+
30
+ **Use `/development` instead when:**
31
+
32
+ - Bug requires architectural changes
33
+ - Multiple subsystems are involved
34
+ - You need formal specification and planning
35
+
36
+ ---
37
+
38
+ ## Workflow
39
+
40
+ ### Step 1: Parse Input
41
+
42
+ **Get the bug description:**
43
+
44
+ - If provided as argument, use it directly
45
+ - If not provided, scan the recent conversation for bug context (error messages, reproduction steps, discussed symptoms). If found, use that as the bug description.
46
+ - Only if no argument AND no bug context in session, use question:
47
+ ```
48
+ "Describe the bug — what's the expected behavior vs actual behavior?"
49
+ ```
50
+
51
+ ### Step 2: Discover Standards
52
+
53
+ **CRITICAL: This step MUST complete before entering plan mode.**
54
+
55
+ **Check if `.owflow/docs/INDEX.md` exists:**
56
+
57
+ **If exists:**
58
+
59
+ 1. Read INDEX.md to discover available documentation and standards
60
+ 2. Identify which standards are relevant based on:
61
+ - The categories and files listed in INDEX.md
62
+ - The area of the bug (e.g., API, frontend, database)
63
+ - Keywords in the bug description
64
+ 3. **READ the applicable standard files** (see Standards Reading Enforcement below)
65
+
66
+ **If not exists:**
67
+
68
+ - Note that no standards are available
69
+ - Suggest running `/flow-init` in completion message
70
+
71
+ ### Standards Reading Enforcement (MANDATORY)
72
+
73
+ **BLOCKING**: Reading INDEX.md alone is NOT sufficient. You MUST read actual standard files.
74
+
75
+ **Enforcement Process**:
76
+
77
+ 1. Read INDEX.md to discover available standards
78
+ 2. Identify which standards apply based on the bug area
79
+ 3. **READ each applicable standard file** using Read tool (not just note it exists)
80
+ 4. Apply standards during fix implementation
81
+ 5. List applied standards in completion summary
82
+
83
+ **Examples of standard discovery**:
84
+
85
+ - Bug in API handler → Read API and error-handling standards
86
+ - Bug in form validation → Read validation and frontend standards
87
+ - Bug in database query → Read database and backend standards
88
+
89
+ ### Step 3: Analyze & Assess Complexity
90
+
91
+ **Explore the codebase to understand the bug:**
92
+
93
+ 1. Search for relevant files (Glob, Grep, Read)
94
+ 2. Trace the code path where the bug occurs
95
+ 3. Identify: likely root cause, affected files, existing tests
96
+ 4. Form a root cause hypothesis
97
+
98
+ **Complexity Escalation Check:**
99
+
100
+ Assess whether this bug exceeds quick-fix scope. If **2 or more** of these signals are detected, suggest escalation:
101
+
102
+ | Signal | Example |
103
+ | ----------------------------------------------------------- | ---------------------------------------------------------------- |
104
+ | Changes span 5+ files across multiple modules | Bug in shared utility affects API, frontend, and background jobs |
105
+ | Requires database schema or data model changes | Missing column, wrong relationship, migration needed |
106
+ | Multiple valid fix approaches with architectural trade-offs | Could fix at API layer, middleware layer, or client layer |
107
+ | Security-sensitive code | Auth, crypto, permissions, input sanitization |
108
+ | Root cause unclear after initial analysis | Symptoms don't point to a single location |
109
+
110
+ **If escalation triggered:**
111
+
112
+ Use question:
113
+
114
+ - Question: "This bug appears more complex than a quick fix — [describe why]. How would you like to proceed?"
115
+ - Options:
116
+ 1. "Continue with quick fix" — proceed, accepting the complexity
117
+ 2. "Switch to full development workflow" — stop here and suggest running `/development` with the bug description and analysis context
118
+
119
+ **If no escalation needed or user chooses to continue:** proceed to Step 4.
120
+
121
+ ### Step 4: Enter Planning Mode
122
+
123
+ **Use the `EnterPlanMode` tool to present the fix plan for user approval.**
124
+
125
+ Standards context from Step 2 and analysis from Step 3 MUST inform the plan.
126
+
127
+ **Plan file content:**
128
+
129
+ ```markdown
130
+ ## Bug Analysis
131
+
132
+ **Root Cause**: [hypothesis with evidence — file paths, code references]
133
+ **Affected Files**: [list of files that need changes]
134
+
135
+ ## Proposed Fix
136
+
137
+ [Description of the fix approach — what changes, why this approach]
138
+
139
+ ## Test Strategy
140
+
141
+ [What the failing test will assert — setup conditions, expected behavior]
142
+
143
+ ## Applicable Standards
144
+
145
+ [List each standard file read, with key guidelines extracted from each.
146
+ If no standards exist: "No AI SDLC standards found. Consider running `/flow-init`."]
147
+
148
+ ## Standards Compliance Checklist
149
+
150
+ - [ ] [Guideline from standard file] (from `standards/[path]`)
151
+ - [ ] [Guideline from standard file] (from `standards/[path]`)
152
+ ```
153
+
154
+ ### ExitPlanMode Gate: Mandatory Sections
155
+
156
+ **BLOCKING: Do NOT call `ExitPlanMode` until the plan file contains:**
157
+
158
+ 1. **"## Bug Analysis"** — root cause hypothesis with evidence
159
+ 2. **"## Proposed Fix"** — what changes and why
160
+ 3. **"## Test Strategy"** — what the TDD red test will assert
161
+ 4. **"## Applicable Standards"** — standards read and key guidelines
162
+ 5. **"## Standards Compliance Checklist"** — checkboxes for applicable guidelines
163
+
164
+ If any section is missing, add it before calling ExitPlanMode.
165
+
166
+ ### Step 5: TDD Red Gate
167
+
168
+ **Write a failing test that reproduces the bug.**
169
+
170
+ 1. Identify the appropriate test file (existing test suite or create new test file following project conventions)
171
+ 2. Write a test that:
172
+ - Sets up the conditions that trigger the bug
173
+ - Asserts the **correct** (expected) behavior
174
+ - Should FAIL with current code (proving the bug exists)
175
+ 3. Run the test
176
+
177
+ **The test MUST fail.** This proves the bug is real and reproducible.
178
+
179
+ **If the test passes:**
180
+
181
+ - The bug may not be what we think, or it's already fixed
182
+ - Investigate further — re-read the bug description, check if conditions are correct
183
+ - Use question: "The reproduction test passes — the expected behavior already works under these conditions. Is the bug description accurate, or are there additional conditions?"
184
+
185
+ ### Step 6: Fix & Verify (TDD Green)
186
+
187
+ **Implement the fix:**
188
+
189
+ 1. Apply the fix based on the approved plan from Step 4
190
+ 2. **Apply discovered standards** from Step 2
191
+ 3. Run the failing test — it MUST now pass
192
+ 4. Run the full test file and related test files to check for regressions
193
+
194
+ **If tests fail after fix:**
195
+
196
+ - Analyze the failure
197
+ - Adjust the fix
198
+ - Re-run tests
199
+ - Maximum 3 fix-and-verify iterations
200
+
201
+ **If still failing after 3 attempts:**
202
+
203
+ - Stop and present findings to the user
204
+ - Suggest escalating to `/development` for a more thorough approach
205
+
206
+ ### Step 7: Summary
207
+
208
+ **Provide completion summary:**
209
+
210
+ - **Root cause**: What caused the bug
211
+ - **Fix**: What was changed and why
212
+ - **Files modified**: List of changed files
213
+ - **Standards applied**: Which standards from INDEX.md were followed
214
+ - **Tests**: Which tests were run and their results (including the TDD red→green transition)
215
+ - **Commit suggestion**: Propose a commit message
216
+
217
+ **Post-implementation: verify standards compliance using the checklist from the plan file.**
218
+
219
+ ---
220
+
221
+ ## What This Does
222
+
223
+ 1. **Parses** bug description from user input
224
+ 2. **Discovers** applicable standards from `.owflow/docs/INDEX.md`
225
+ 3. **Analyzes** codebase to find root cause and assess complexity
226
+ 4. **Escalates** to full development workflow if bug is too complex
227
+ 5. **Plans** the fix and presents for user approval via planning mode
228
+ 6. **Reproduces** bug with a failing test (TDD Red)
229
+ 7. **Fixes** the bug and verifies test passes (TDD Green)
230
+ 8. **Summarizes** root cause, fix, standards applied, and test results
231
+
232
+ ## Graceful Fallback
233
+
234
+ **If `.owflow/docs/` does not exist:**
235
+
236
+ Proceed with the bug fix normally, then note:
237
+
238
+ ```
239
+ "No AI SDLC standards found. Consider running `/flow-init` to initialize
240
+ project documentation and coding standards for better consistency."
241
+ ```