wogiflow 1.0.23 → 1.0.25

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.
@@ -0,0 +1,57 @@
1
+ Quick capture an idea or bug without interrupting your current work. Provide a brief title: `/wogi-capture Add dark mode toggle`
2
+
3
+ ## Usage
4
+
5
+ ```bash
6
+ /wogi-capture "Your idea or bug here"
7
+ /wogi-capture "Bug: login fails on Safari"
8
+ ```
9
+
10
+ Just provide a brief title. That's it.
11
+
12
+ ## What Happens
13
+
14
+ 1. **Auto-detect type** from keywords:
15
+ - "bug", "fix", "broken", "error", "crash", "fails" → `bug`
16
+ - Everything else → `feature`
17
+
18
+ 2. **Auto-tag** from current context (if a task is in progress)
19
+
20
+ 3. **Add to backlog** in `ready.json` with minimal metadata
21
+
22
+ 4. **Minimal confirmation** - just "Captured: [title]"
23
+
24
+ ## Backlog Triage
25
+
26
+ Items go to a `backlog` array in ready.json. Use `/wogi-ready` to see them.
27
+
28
+ Later you can:
29
+ - Promote to `ready` (use `/wogi-story` to create proper story)
30
+ - Discard if no longer relevant
31
+ - Convert to bug with `/wogi-bug`
32
+
33
+ ## Examples
34
+
35
+ ```
36
+ /wogi-capture Add export to PDF
37
+ → Captured: Add export to PDF (feature)
38
+
39
+ /wogi-capture Bug: form validation not working
40
+ → Captured: Bug: form validation not working (bug)
41
+
42
+ /wogi-capture Broken image on profile page
43
+ → Captured: Broken image on profile page (bug)
44
+ ```
45
+
46
+ ## CLI Usage
47
+
48
+ ```bash
49
+ node scripts/flow-capture.js "Add dark mode toggle"
50
+ node scripts/flow-capture.js "Bug: login fails" --json
51
+ ```
52
+
53
+ ## Options
54
+
55
+ - `--type <type>` - Force type (bug/feature) instead of auto-detect
56
+ - `--tags <tags>` - Add comma-separated tags
57
+ - `--json` - Output JSON instead of minimal confirmation
@@ -9,6 +9,51 @@ Based on `config.json` corrections mode:
9
9
  - **hybrid**: Use for significant/complex fixes
10
10
  - **always-detailed**: Use for every fix
11
11
 
12
+ ## Auto-Triggered Corrections (NEW)
13
+
14
+ Corrections can be automatically prompted when failures are detected:
15
+
16
+ **Trigger Points:**
17
+ - Lint/TypeScript failures after file edit
18
+ - Test failures after implementation
19
+ - Critical review findings (severity "critical")
20
+ - Repeated tech debt (3+ occurrences)
21
+
22
+ **When triggered, you'll see:**
23
+ ```
24
+ ⚠️ TypeScript error detected:
25
+ Property 'x' does not exist on type 'Y'
26
+
27
+ Would you like to record this as a correction for future learning?
28
+ This helps avoid similar mistakes.
29
+
30
+ [Yes, record correction] [No, skip]
31
+ ```
32
+
33
+ **If user selects Yes:**
34
+ 1. Create correction file with pre-filled context
35
+ 2. Update feedback-patterns.md with pattern count
36
+ 3. If pattern count >= 3, prompt for promotion to decisions.md
37
+
38
+ **API for scripts:**
39
+ ```javascript
40
+ const { promptForCorrection, createAutoCorrection } = require('./flow-correct');
41
+
42
+ // Check if should prompt
43
+ const prompt = promptForCorrection({
44
+ type: 'typecheck',
45
+ error: 'Property x does not exist',
46
+ files: ['src/api.ts'],
47
+ taskId: 'wf-abc123'
48
+ });
49
+
50
+ if (prompt.shouldPrompt) {
51
+ // Ask user via AskUserQuestion
52
+ // If yes, create correction:
53
+ createAutoCorrection(prompt.correctionData);
54
+ }
55
+ ```
56
+
12
57
  ## Steps
13
58
 
14
59
  1. Read `config.json` to check corrections mode
@@ -0,0 +1,175 @@
1
+ # /wogi-extract-review - Zero-Loss Task Extraction with Mandatory Review
2
+
3
+ Extract tasks from long input with 100% capture rate and mandatory human review.
4
+
5
+ ## Purpose
6
+
7
+ When processing transcripts, meeting notes, or long prompts, this command ensures NOTHING is missed by:
8
+ 1. Capturing EVERY distinct statement (no filtering)
9
+ 2. Deduplicating similar items
10
+ 3. Requiring explicit human review and confirmation
11
+ 4. Only proceeding when user confirms the list is complete
12
+
13
+ ## Philosophy
14
+
15
+ **OLD approach (lossy):** Input → Filter → Filter → Output (70-80% lost)
16
+ **NEW approach (zero-loss):** Input → Capture All → Dedupe → Review → Confirm → Output (100% captured)
17
+
18
+ ## Usage
19
+
20
+ ```bash
21
+ # Start zero-loss extraction
22
+ flow extract-zero-loss start
23
+
24
+ # Or pipe content
25
+ cat transcript.txt | flow extract-zero-loss start
26
+
27
+ # Check review status
28
+ flow extract-zero-loss status
29
+
30
+ # View items by category
31
+ flow extract-zero-loss show pending
32
+ flow extract-zero-loss show high # High confidence items
33
+ flow extract-zero-loss show medium # Medium confidence
34
+ flow extract-zero-loss show low # Low confidence
35
+ flow extract-zero-loss show filler # Potential filler
36
+
37
+ # Review actions
38
+ flow extract-zero-loss confirm <id> # Confirm as task
39
+ flow extract-zero-loss remove <id> "<reason>" # Remove (reason required!)
40
+ flow extract-zero-loss merge <src> <target> # Merge duplicate
41
+
42
+ # Bulk actions
43
+ flow extract-zero-loss confirm-high # Confirm all high-confidence
44
+ flow extract-zero-loss dismiss-filler # Dismiss filler items
45
+
46
+ # Complete review (MANDATORY before proceeding)
47
+ flow extract-zero-loss complete
48
+
49
+ # Get confirmed tasks
50
+ flow extract-zero-loss tasks
51
+ ```
52
+
53
+ ## Review Workflow
54
+
55
+ ### Step 1: Start Extraction
56
+ ```
57
+ flow extract-zero-loss start < transcript.txt
58
+ ```
59
+
60
+ This extracts EVERYTHING from the input using multiple strategies:
61
+ - Sentence boundaries
62
+ - Line breaks
63
+ - Speaker changes
64
+ - List items (bullets, numbers)
65
+ - Comma-separated items with action verbs
66
+
67
+ ### Step 2: Quick Review High-Confidence Items
68
+ ```
69
+ flow extract-zero-loss show high
70
+ ```
71
+
72
+ These items almost certainly contain tasks. Review and confirm or adjust.
73
+
74
+ ### Step 3: Review Medium-Confidence Items
75
+ ```
76
+ flow extract-zero-loss show medium
77
+ ```
78
+
79
+ Many valid tasks here. Review carefully.
80
+
81
+ ### Step 4: Review Low-Confidence Items
82
+ ```
83
+ flow extract-zero-loss show low
84
+ ```
85
+
86
+ Some may be tasks phrased informally. Don't skip!
87
+
88
+ ### Step 5: Handle Filler (Optional)
89
+ ```
90
+ flow extract-zero-loss dismiss-filler
91
+ ```
92
+
93
+ Dismiss conversational filler like "um", "okay", "thanks".
94
+
95
+ ### Step 6: Confirm Completeness (MANDATORY)
96
+ ```
97
+ flow extract-zero-loss complete
98
+ ```
99
+
100
+ User must explicitly confirm the task list is complete before proceeding.
101
+
102
+ ## Integration with Long-Input Processing
103
+
104
+ After zero-loss extraction and review:
105
+ 1. Confirmed tasks become the input for topic extraction
106
+ 2. Topics are generated from the confirmed task list
107
+ 3. Standard 4-pass processing continues
108
+
109
+ ```bash
110
+ # Full flow
111
+ cat transcript.txt | flow extract-zero-loss start
112
+ flow extract-zero-loss confirm-high
113
+ # ... manual review ...
114
+ flow extract-zero-loss complete
115
+ flow long-input topics # Now uses confirmed tasks
116
+ flow long-input pass2
117
+ flow long-input pass3
118
+ flow long-input pass4
119
+ ```
120
+
121
+ ## Why This Matters
122
+
123
+ > "When I work with my employees, when we have a meeting, even if it takes an hour or two, when I give a task, an employee will write it down, add a comment on Figma, add it to Jira, write it down in his notebook, but nothing is getting missed."
124
+
125
+ This system ensures:
126
+ - **100% capture rate** - Nothing is auto-filtered
127
+ - **Explicit confirmation** - User reviews everything
128
+ - **Audit trail** - Track what was confirmed vs removed
129
+ - **Reason required** - Can't remove without explanation
130
+
131
+ ## Confidence Levels
132
+
133
+ Items are scored (not filtered!) by confidence:
134
+
135
+ **High Confidence** - Contains explicit requirement signals:
136
+ - "We need to add..."
137
+ - "Should display..."
138
+ - "Must have..."
139
+ - "I would like..."
140
+ - "Change X to Y"
141
+
142
+ **Medium Confidence** - Contains softer signals:
143
+ - "Maybe we could..."
144
+ - "What if we..."
145
+ - "Going to need..."
146
+
147
+ **Low Confidence** - No clear signals but may be tasks:
148
+ - Short statements
149
+ - Questions
150
+ - Partial sentences
151
+
152
+ **Filler** - Conversational noise (still captured!):
153
+ - "Um", "Okay", "Thanks"
154
+ - "Can you hear me?"
155
+ - "Makes sense"
156
+
157
+ ## Files
158
+
159
+ | File | Location |
160
+ |------|----------|
161
+ | Extraction module | `scripts/flow-zero-loss-extraction.js` |
162
+ | Review module | `scripts/flow-extraction-review.js` |
163
+ | Review session | `.workflow/tmp/long-input/review-session.json` |
164
+
165
+ ## For Claude
166
+
167
+ When processing long transcripts:
168
+
169
+ 1. **Always use zero-loss extraction** for meeting transcripts and reviews
170
+ 2. **Present items by confidence level** to the user
171
+ 3. **Never skip low-confidence items** - user must explicitly dismiss
172
+ 4. **Require completeness confirmation** before proceeding to topic extraction
173
+ 5. **Log all confirmed tasks** for audit trail
174
+
175
+ The goal is **100% task capture rate**, not 90%.
@@ -0,0 +1,164 @@
1
+ Run a multi-model peer review where different AI models review the same code.
2
+
3
+ ## How It Works
4
+
5
+ 1. **Primary model (Claude)** reviews the changes for improvements
6
+ 2. **Secondary model(s)** review the same changes
7
+ 3. **Findings are compared** and disagreements surfaced
8
+ 4. **Primary model responds** to peer feedback:
9
+ - Defends decisions with context
10
+ - OR acknowledges valid alternatives
11
+
12
+ ## Key Difference from `/wogi-review`
13
+
14
+ | `/wogi-review` | `/wogi-peer-review` |
15
+ |----------------|---------------------|
16
+ | "Is this correct, secure, working?" | "Is this the BEST approach?" |
17
+ | Bug detection | Optimization opportunities |
18
+ | Security vulnerabilities | Alternative implementations |
19
+ | Architecture conflicts | Pattern suggestions |
20
+ | Verification-focused | Improvement-focused |
21
+
22
+ ## What Peer Review Surfaces
23
+
24
+ 1. **Optimization opportunities** - "This works, but could be faster/cleaner"
25
+ 2. **Alternative approaches** - "Consider doing X instead of Y"
26
+ 3. **Cross-model disagreements** - Where different models see things differently
27
+ 4. **Pattern suggestions** - "Other codebases typically do this as..."
28
+ 5. **Missed edge cases** - Fresh eyes catch what familiarity misses
29
+
30
+ ## Usage
31
+
32
+ ```bash
33
+ /wogi-peer-review # Review staged changes
34
+ /wogi-peer-review --files src/*.ts # Review specific files
35
+ /wogi-peer-review --task wf-abc123 # Review task changes
36
+ ```
37
+
38
+ ## Provider Configuration
39
+
40
+ Configure in `.workflow/config.json` under `peerReview`:
41
+
42
+ ### Option A: API Keys (Default)
43
+ ```json
44
+ "peerReview": {
45
+ "enabled": true,
46
+ "provider": "api",
47
+ "models": ["openai:gpt-4o", "google:gemini-pro"],
48
+ "apiKeys": {
49
+ "openai": "${OPENAI_API_KEY}",
50
+ "google": "${GOOGLE_API_KEY}"
51
+ }
52
+ }
53
+ ```
54
+
55
+ ### Option B: MCP Integration
56
+ ```json
57
+ "peerReview": {
58
+ "enabled": true,
59
+ "provider": "mcp",
60
+ "mcpServers": {
61
+ "openai": "mcp-openai",
62
+ "google": "mcp-gemini"
63
+ }
64
+ }
65
+ ```
66
+
67
+ ### Option C: Manual Mode
68
+ ```json
69
+ "peerReview": {
70
+ "enabled": true,
71
+ "provider": "manual"
72
+ }
73
+ ```
74
+
75
+ When manual:
76
+ 1. Outputs the review prompt
77
+ 2. User runs in Cursor/other tool
78
+ 3. User pastes results back
79
+ 4. Claude synthesizes
80
+
81
+ ## Review Flow
82
+
83
+ ```
84
+ ┌─────────────────────────────────────────────────────────┐
85
+ │ /wogi-peer-review │
86
+ ├─────────────────────────────────────────────────────────┤
87
+ │ 1. Collect code changes (git diff or specified files) │
88
+ │ 2. Generate improvement-focused prompt │
89
+ │ 3. Claude reviews for improvements │
90
+ │ 4. Secondary model(s) review │
91
+ │ 5. Compare findings: │
92
+ │ • Both agree → Strong suggestion │
93
+ │ • Disagree → Present both perspectives │
94
+ │ 6. Claude responds to peer feedback: │
95
+ │ • "I have more context, here's why X is better..." │
96
+ │ • "Valid point, Y would be an improvement..." │
97
+ │ 7. Output final synthesis │
98
+ └─────────────────────────────────────────────────────────┘
99
+ ```
100
+
101
+ ## Review Prompt Template
102
+
103
+ The peer review focuses on improvements, not correctness:
104
+
105
+ ```
106
+ Review this code for IMPROVEMENT OPPORTUNITIES, not bugs:
107
+
108
+ 1. **Optimization**: Can this be faster/more efficient?
109
+ 2. **Alternatives**: Are there better approaches?
110
+ 3. **Patterns**: Does this follow best practices?
111
+ 4. **Readability**: Could this be clearer/simpler?
112
+ 5. **Extensibility**: Will this be easy to extend?
113
+
114
+ Code:
115
+ [code changes]
116
+
117
+ Respond with:
118
+ - Specific improvement suggestions
119
+ - Alternative approaches considered
120
+ - Trade-off analysis for any changes
121
+ ```
122
+
123
+ ## Output
124
+
125
+ ```
126
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
127
+ 🔍 Peer Review Results
128
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
129
+
130
+ ✅ Agreement (2/2 models):
131
+ • Consider using early return for readability
132
+ • Extract repeated logic to helper function
133
+
134
+ ⚖️ Disagreement:
135
+ • Claude: Prefer inline styling for this case
136
+ • GPT-4: Recommend extracting to CSS module
137
+ → Resolution: Context-dependent, current approach is valid
138
+
139
+ 💡 Unique Insights:
140
+ • [GPT-4] Consider memoization for expensive computation
141
+ • [Claude] Current architecture handles edge case X well
142
+
143
+ 📊 Summary:
144
+ 3 actionable improvements identified
145
+ 1 disagreement resolved
146
+ Code quality: Good, with minor optimization opportunities
147
+ ```
148
+
149
+ ## When to Use
150
+
151
+ - Before merging significant changes
152
+ - For security-sensitive code
153
+ - When you want high confidence
154
+ - For learning different perspectives
155
+ - When stuck on architecture decisions
156
+
157
+ ## Options
158
+
159
+ - `--provider <name>` - Override configured provider
160
+ - `--model <name>` - Specify secondary model
161
+ - `--files <glob>` - Review specific files
162
+ - `--task <id>` - Review task changes
163
+ - `--json` - Output JSON for automation
164
+ - `--verbose` - Show full model responses
@@ -96,6 +96,47 @@ This command implements a **structured execution loop**:
96
96
  5. Check `.workflow/state/app-map.md` for components mentioned
97
97
  6. Check `.workflow/state/decisions.md` for relevant patterns
98
98
  7. **Auto-invoke skills** based on task context:
99
+
100
+ ### Step 1.2: Clarifying Questions (NEW)
101
+
102
+ **BEFORE generating specifications**, ask clarifying questions to catch assumptions early:
103
+
104
+ ```
105
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
106
+ ❓ Clarifying Questions
107
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
108
+ Before implementation, consider clarifying:
109
+
110
+ 🎯 Scope Validation
111
+ 1. Found X related files. Should I modify all of them?
112
+
113
+ 💡 Assumption Surfacing
114
+ 2. Should I assume [pattern] for this task?
115
+
116
+ 🔀 Edge Cases
117
+ 3. What should happen when [error condition]?
118
+
119
+ Note: You can proceed without answering, but clarification may prevent rework.
120
+ ```
121
+
122
+ **Question Categories:**
123
+ - **Scope Validation**: "Found X components. Are we changing all?"
124
+ - **Assumption Surfacing**: "Should I assume [pattern] for this task?"
125
+ - **Edge Cases**: "What about [similar scenario]?"
126
+ - **Integration Points**: "This touches [component]. Dependency concerns?"
127
+ - **Implementation Preferences**: "Any specific approach you prefer?"
128
+
129
+ **Config**: Controlled by `config.clarifyingQuestions`:
130
+ - `enabled`: true/false
131
+ - `maxQuestions`: max questions to ask (default: 5)
132
+ - `skipForSmallTasks`: skip for small tasks (default: true)
133
+ - `smallTaskThreshold`: files count threshold (default: 2)
134
+
135
+ **Skipped for**: Small tasks (≤2 files), bugfixes, tasks with explicit specs
136
+
137
+ ---
138
+
139
+ **Skill Matching Output:**
99
140
  - Run skill matcher against task description
100
141
  - Load matched skills (patterns.md, anti-patterns.md, learnings.md)
101
142
  - Display matched skills with scores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wogiflow",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "AI-powered development workflow management system with multi-model support",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
package/scripts/flow CHANGED
@@ -56,6 +56,7 @@ show_help() {
56
56
  echo " story <title> --deep Create story with automatic decomposition"
57
57
  echo " new-feature <n> Create new feature"
58
58
  echo " bug <title> Create bug report"
59
+ echo " capture <title> Quick capture idea/bug without interrupting flow"
59
60
  echo ""
60
61
  echo "Roadmap & Planning:"
61
62
  echo " roadmap Show project roadmap"
@@ -363,6 +364,9 @@ case "${1:-}" in
363
364
  bug)
364
365
  node "$SCRIPT_DIR/flow-bug.js" "${@:2}"
365
366
  ;;
367
+ capture)
368
+ node "$SCRIPT_DIR/flow-capture.js" "${@:2}"
369
+ ;;
366
370
  status)
367
371
  node "$SCRIPT_DIR/flow-status.js" "${@:2}"
368
372
  ;;
@@ -471,6 +475,9 @@ case "${1:-}" in
471
475
  review)
472
476
  node "$SCRIPT_DIR/flow-review.js" "${@:2}"
473
477
  ;;
478
+ peer-review)
479
+ node "$SCRIPT_DIR/flow-peer-review.js" "${@:2}"
480
+ ;;
474
481
  correct)
475
482
  node "$SCRIPT_DIR/flow-correct.js" "${@:2}"
476
483
  ;;
@@ -489,6 +496,9 @@ case "${1:-}" in
489
496
  context)
490
497
  "$SCRIPT_DIR/flow-context" "${@:2}"
491
498
  ;;
499
+ clarifying-questions|clarify)
500
+ node "$SCRIPT_DIR/flow-clarifying-questions.js" "${@:2}"
501
+ ;;
492
502
  links)
493
503
  node "$SCRIPT_DIR/flow-links.js" "${@:2}"
494
504
  ;;