wogiflow 1.0.21 → 1.0.22
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.
- package/.claude/commands/wogi-bug.md +43 -0
- package/.claude/commands/wogi-bulk.md +144 -0
- package/.claude/commands/wogi-changelog.md +36 -0
- package/.claude/commands/wogi-compact.md +99 -0
- package/.claude/commands/wogi-config.md +50 -0
- package/.claude/commands/wogi-context.md +68 -0
- package/.claude/commands/wogi-correction.md +73 -0
- package/.claude/commands/wogi-debt.md +128 -0
- package/.claude/commands/wogi-deps.md +32 -0
- package/.claude/commands/wogi-epics.md +145 -0
- package/.claude/commands/wogi-export.md +100 -0
- package/.claude/commands/wogi-feature.md +149 -0
- package/.claude/commands/wogi-guided-edit.md +83 -0
- package/.claude/commands/wogi-health.md +43 -0
- package/.claude/commands/wogi-help.md +96 -0
- package/.claude/commands/wogi-hybrid-edit.md +36 -0
- package/.claude/commands/wogi-hybrid-off.md +24 -0
- package/.claude/commands/wogi-hybrid-setup.md +79 -0
- package/.claude/commands/wogi-hybrid-status.md +45 -0
- package/.claude/commands/wogi-hybrid.md +54 -0
- package/.claude/commands/wogi-import.md +44 -0
- package/.claude/commands/wogi-init.md +618 -0
- package/.claude/commands/wogi-log.md +38 -0
- package/.claude/commands/wogi-map-add.md +29 -0
- package/.claude/commands/wogi-map-check.md +35 -0
- package/.claude/commands/wogi-map-index.md +98 -0
- package/.claude/commands/wogi-map-scan.md +38 -0
- package/.claude/commands/wogi-map-sync.md +91 -0
- package/.claude/commands/wogi-map.md +33 -0
- package/.claude/commands/wogi-morning.md +65 -0
- package/.claude/commands/wogi-onboard.md +99 -0
- package/.claude/commands/wogi-plan.md +173 -0
- package/.claude/commands/wogi-ready.md +84 -0
- package/.claude/commands/wogi-resume.md +95 -0
- package/.claude/commands/wogi-review.md +636 -0
- package/.claude/commands/wogi-roadmap.md +241 -0
- package/.claude/commands/wogi-rules.md +104 -0
- package/.claude/commands/wogi-search.md +33 -0
- package/.claude/commands/wogi-session-end.md +49 -0
- package/.claude/commands/wogi-setup-stack.md +151 -0
- package/.claude/commands/wogi-skill-learn.md +66 -0
- package/.claude/commands/wogi-skills.md +87 -0
- package/.claude/commands/wogi-standup.md +28 -0
- package/.claude/commands/wogi-start.md +465 -0
- package/.claude/commands/wogi-status.md +41 -0
- package/.claude/commands/wogi-statusline-setup/skill.md +109 -0
- package/.claude/commands/wogi-story.md +98 -0
- package/.claude/commands/wogi-suspend.md +87 -0
- package/.claude/commands/wogi-test-browser.md +43 -0
- package/.claude/commands/wogi-trace.md +198 -0
- package/.claude/docs/architecture.md +37 -0
- package/.claude/docs/commands.md +343 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/README.md +177 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/component-indexing.md +341 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/framework-detection.md +269 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/installation.md +146 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/onboarding-existing.md +317 -0
- package/.claude/docs/knowledge-base/01-setup-onboarding/team-setup.md +346 -0
- package/.claude/docs/knowledge-base/02-task-execution/01-task-planning.md +259 -0
- package/.claude/docs/knowledge-base/02-task-execution/02-execution-loop.md +443 -0
- package/.claude/docs/knowledge-base/02-task-execution/03-verification.md +417 -0
- package/.claude/docs/knowledge-base/02-task-execution/04-completion.md +374 -0
- package/.claude/docs/knowledge-base/02-task-execution/05-session-review.md +170 -0
- package/.claude/docs/knowledge-base/02-task-execution/README.md +173 -0
- package/.claude/docs/knowledge-base/02-task-execution/external-integrations.md +133 -0
- package/.claude/docs/knowledge-base/02-task-execution/model-management.md +202 -0
- package/.claude/docs/knowledge-base/02-task-execution/specification-mode.md +292 -0
- package/.claude/docs/knowledge-base/02-task-execution/sync-daemon.md +96 -0
- package/.claude/docs/knowledge-base/02-task-execution/trade-offs.md +345 -0
- package/.claude/docs/knowledge-base/02-task-execution/workflow-steps.md +357 -0
- package/.claude/docs/knowledge-base/03-self-improvement/README.md +199 -0
- package/.claude/docs/knowledge-base/03-self-improvement/long-input-processing.md +160 -0
- package/.claude/docs/knowledge-base/03-self-improvement/model-learning.md +334 -0
- package/.claude/docs/knowledge-base/03-self-improvement/project-learning.md +301 -0
- package/.claude/docs/knowledge-base/03-self-improvement/skill-learning.md +372 -0
- package/.claude/docs/knowledge-base/03-self-improvement/skill-matching.md +304 -0
- package/.claude/docs/knowledge-base/03-self-improvement/team-learning.md +342 -0
- package/.claude/docs/knowledge-base/04-memory-context/README.md +189 -0
- package/.claude/docs/knowledge-base/04-memory-context/context-management.md +308 -0
- package/.claude/docs/knowledge-base/04-memory-context/memory-commands.md +176 -0
- package/.claude/docs/knowledge-base/04-memory-context/memory-systems.md +359 -0
- package/.claude/docs/knowledge-base/04-memory-context/prd-management.md +115 -0
- package/.claude/docs/knowledge-base/04-memory-context/session-persistence.md +359 -0
- package/.claude/docs/knowledge-base/04-memory-context/team-history.md +317 -0
- package/.claude/docs/knowledge-base/05-development-tools/README.md +84 -0
- package/.claude/docs/knowledge-base/05-development-tools/code-traces.md +278 -0
- package/.claude/docs/knowledge-base/05-development-tools/figma-analyzer.md +253 -0
- package/.claude/docs/knowledge-base/05-development-tools/guided-edit.md +173 -0
- package/.claude/docs/knowledge-base/05-development-tools/mcp-integrations.md +286 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/README.md +153 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/checkpoint-rollback.md +302 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/commit-gates.md +309 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/damage-control.md +292 -0
- package/.claude/docs/knowledge-base/06-safety-guardrails/security-scanning.md +291 -0
- package/.claude/docs/knowledge-base/README.md +92 -0
- package/.claude/docs/knowledge-base/configuration/README.md +228 -0
- package/.claude/docs/knowledge-base/configuration/all-options.md +1632 -0
- package/.claude/docs/knowledge-base/future-features.md +277 -0
- package/.claude/docs/stack.md +25 -0
- package/.claude/docs/testing.md +71 -0
- package/.claude/rules/README.md +60 -0
- package/.claude/rules/architecture/component-reuse.md +38 -0
- package/.claude/rules/architecture/document-structure.md +76 -0
- package/.claude/rules/architecture/feature-refactoring-cleanup.md +87 -0
- package/.claude/rules/architecture/model-management.md +35 -0
- package/.claude/rules/code-style/naming-conventions.md +55 -0
- package/.claude/rules/security/security-patterns.md +116 -0
- package/.claude/skills/.gitkeep +0 -0
- package/.claude/skills/README.md +131 -0
- package/.claude/skills/_template/commands/.gitkeep +0 -0
- package/.claude/skills/_template/knowledge/anti-patterns.md +49 -0
- package/.claude/skills/_template/knowledge/learnings.md +60 -0
- package/.claude/skills/_template/knowledge/patterns.md +45 -0
- package/.claude/skills/_template/rules/.gitkeep +0 -0
- package/.claude/skills/_template/skill.md +99 -0
- package/.claude/skills/_template/templates/.gitkeep +0 -0
- package/.claude/skills/figma-analyzer/knowledge/anti-patterns.md +216 -0
- package/.claude/skills/figma-analyzer/knowledge/patterns.md +144 -0
- package/.claude/skills/figma-analyzer/skill.md +236 -0
- package/lib/installer.js +59 -19
- package/package.json +5 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Create a bug report. Provide title: `/wogi-bug Login button not responding`
|
|
2
|
+
|
|
3
|
+
Run `./scripts/flow bug "<title>"` to create a bug report.
|
|
4
|
+
|
|
5
|
+
Options:
|
|
6
|
+
- `--from <task-id>` - Task ID that discovered this bug (auto-populated if task in progress)
|
|
7
|
+
- `--priority <P>` - Priority P0-P4 (auto-boosted to P1 if discovered during task)
|
|
8
|
+
- `--severity <s>` - Severity: critical, high, medium, low (default: medium)
|
|
9
|
+
- `--json` - Output JSON
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
```bash
|
|
13
|
+
flow bug "Login button not responding"
|
|
14
|
+
flow bug "Null pointer in Profile API" --from wf-a1b2c3d4 --priority P0
|
|
15
|
+
flow bug "Fix auth header" --severity critical
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Output:
|
|
19
|
+
```
|
|
20
|
+
Created: wf-f2d409c2
|
|
21
|
+
|
|
22
|
+
File: .workflow/bugs/wf-f2d409c2.md
|
|
23
|
+
Title: Login button not responding
|
|
24
|
+
Priority: P1
|
|
25
|
+
Severity: medium
|
|
26
|
+
Discovered From: wf-a1b2c3d4 (auto-detected)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Bug report includes:
|
|
30
|
+
- Hash-based ID (wf-XXXXXXXX format)
|
|
31
|
+
- Priority (P0-P4, auto-boosted if discovered during task)
|
|
32
|
+
- Discovered From tracking (links bug to source task)
|
|
33
|
+
- Description
|
|
34
|
+
- Steps to reproduce
|
|
35
|
+
- Expected vs Actual
|
|
36
|
+
- Severity
|
|
37
|
+
- Tags (#bug, #screen:X, #component:Y)
|
|
38
|
+
- Status tracking
|
|
39
|
+
|
|
40
|
+
The `discovered-from` field enables learning:
|
|
41
|
+
- Track which tasks tend to discover bugs
|
|
42
|
+
- Auto-boost priority when bug is found during task work
|
|
43
|
+
- Link bugs back to their source for better traceability
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Execute multiple tasks in sequence, following all workflow rules.
|
|
2
|
+
|
|
3
|
+
**v2.1**: Now uses task queue for automatic continuation between tasks.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
- `/wogi-bulk` - Work through all ready tasks
|
|
8
|
+
- `/wogi-bulk 3` - Work through next 3 tasks
|
|
9
|
+
- `/wogi-bulk wf-001 wf-002 wf-003` - Work specific tasks in order
|
|
10
|
+
|
|
11
|
+
**Natural Language Alternative** (no slash command needed):
|
|
12
|
+
- "do story 1-3" or "work on tasks 1-5"
|
|
13
|
+
- "do wf-001, wf-002, wf-003"
|
|
14
|
+
- "work on these 3 stories"
|
|
15
|
+
|
|
16
|
+
## How It Works (v2.1)
|
|
17
|
+
|
|
18
|
+
1. **Initialize Queue**:
|
|
19
|
+
- Parse task IDs from arguments or natural language
|
|
20
|
+
- Store in durable session's `taskQueue`
|
|
21
|
+
- Run `flow queue init <task-ids>`
|
|
22
|
+
|
|
23
|
+
2. **Start First Task**:
|
|
24
|
+
- Run `/wogi-start <first-task-id>`
|
|
25
|
+
- Full execution loop with all quality gates
|
|
26
|
+
|
|
27
|
+
3. **Automatic Continuation**:
|
|
28
|
+
- When task completes, stop hook checks queue
|
|
29
|
+
- If more tasks, outputs next task instruction
|
|
30
|
+
- Continues until queue is empty
|
|
31
|
+
|
|
32
|
+
4. **Quality Per Task**:
|
|
33
|
+
- Each task runs complete execution loop
|
|
34
|
+
- Spec generation (if needed)
|
|
35
|
+
- All acceptance criteria verification
|
|
36
|
+
- Quality gates and validation
|
|
37
|
+
- Request log and app-map updates
|
|
38
|
+
|
|
39
|
+
## Execution Flow
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
43
|
+
│ /wogi-bulk 3 │
|
|
44
|
+
├─────────────────────────────────────────────────────────────┤
|
|
45
|
+
│ 1. Get 3 ready tasks sorted by priority │
|
|
46
|
+
│ 2. Initialize task queue: [wf-001, wf-002, wf-003] │
|
|
47
|
+
│ 3. Start wf-001 (full loop) │
|
|
48
|
+
│ → All scenarios implemented and verified │
|
|
49
|
+
│ → Quality gates pass │
|
|
50
|
+
│ → Committed │
|
|
51
|
+
│ 4. Stop hook detects queue has more tasks │
|
|
52
|
+
│ 5. Auto-continue to wf-002 (full loop) │
|
|
53
|
+
│ → ... │
|
|
54
|
+
│ 6. Auto-continue to wf-003 (full loop) │
|
|
55
|
+
│ → ... │
|
|
56
|
+
│ 7. Queue empty - stop │
|
|
57
|
+
└─────────────────────────────────────────────────────────────┘
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Output
|
|
61
|
+
|
|
62
|
+
**Start:**
|
|
63
|
+
```
|
|
64
|
+
📋 Task Queue Initialized
|
|
65
|
+
|
|
66
|
+
Tasks (3):
|
|
67
|
+
1. wf-001 - Add user login [P1]
|
|
68
|
+
2. wf-002 - Password reset [P2]
|
|
69
|
+
3. wf-003 - Session management [P2]
|
|
70
|
+
|
|
71
|
+
Starting first task...
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Between Tasks (automatic):**
|
|
75
|
+
```
|
|
76
|
+
✓ Task complete!
|
|
77
|
+
|
|
78
|
+
Continuing to next task in queue: wf-002
|
|
79
|
+
(2 task(s) remaining)
|
|
80
|
+
|
|
81
|
+
Run: /wogi-start wf-002
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Final (after last task):**
|
|
85
|
+
```
|
|
86
|
+
✓ All tasks complete!
|
|
87
|
+
|
|
88
|
+
Queue Summary:
|
|
89
|
+
✓ wf-001 - Add user login
|
|
90
|
+
✓ wf-002 - Password reset
|
|
91
|
+
✓ wf-003 - Session management
|
|
92
|
+
|
|
93
|
+
3/3 tasks completed successfully.
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Options
|
|
97
|
+
|
|
98
|
+
- `--auto` - Don't pause between tasks (default behavior in v2.1)
|
|
99
|
+
- `--pause` - Pause and ask before each task
|
|
100
|
+
- `--plan` - Show order without executing
|
|
101
|
+
- `--feature <name>` - Only tasks in specified feature
|
|
102
|
+
|
|
103
|
+
## Configuration
|
|
104
|
+
|
|
105
|
+
In `config.json`:
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"taskQueue": {
|
|
109
|
+
"enabled": true,
|
|
110
|
+
"autoContinue": true,
|
|
111
|
+
"pauseBetweenTasks": false, // Default: automatic
|
|
112
|
+
"maxQueueSize": 10,
|
|
113
|
+
"showProgressSummary": true
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## CLI Commands
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Initialize queue directly
|
|
122
|
+
flow queue init wf-001 wf-002 wf-003
|
|
123
|
+
|
|
124
|
+
# Check queue status
|
|
125
|
+
flow queue status
|
|
126
|
+
|
|
127
|
+
# Parse natural language
|
|
128
|
+
flow queue parse "do story 1-3"
|
|
129
|
+
|
|
130
|
+
# Clear queue
|
|
131
|
+
flow queue clear
|
|
132
|
+
|
|
133
|
+
# Advance manually
|
|
134
|
+
flow queue advance
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Important Rules
|
|
138
|
+
|
|
139
|
+
1. **Full loop per task** - Each task runs complete execution with all quality gates
|
|
140
|
+
2. **Automatic continuation** - Default is no pause between tasks
|
|
141
|
+
3. **Commit after each task** - Progress saved even if interrupted
|
|
142
|
+
4. **Stop on failure** - If quality gates fail, stop and report
|
|
143
|
+
5. **Respect dependencies** - Tasks sorted by dependencies then priority
|
|
144
|
+
6. **Context management** - Consider `/wogi-compact` after 3+ tasks
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Generate a CHANGELOG from request-log entries.
|
|
2
|
+
|
|
3
|
+
Parse `.workflow/state/request-log.md` and group by type:
|
|
4
|
+
- `new` → Added
|
|
5
|
+
- `change` → Changed
|
|
6
|
+
- `fix` → Fixed
|
|
7
|
+
- `refactor` → Refactored
|
|
8
|
+
- `remove` → Removed
|
|
9
|
+
|
|
10
|
+
Output standard changelog format:
|
|
11
|
+
```markdown
|
|
12
|
+
# Changelog
|
|
13
|
+
|
|
14
|
+
## [Unreleased]
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Forgot password link on login page (R-045)
|
|
18
|
+
- User profile page with avatar upload (R-042)
|
|
19
|
+
- Button ghost variant (R-038)
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Updated form validation to use react-hook-form (R-044)
|
|
23
|
+
- Improved error message styling (R-040)
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- Password visibility toggle state (R-043)
|
|
27
|
+
- Mobile responsive issues on dashboard (R-039)
|
|
28
|
+
|
|
29
|
+
### Refactored
|
|
30
|
+
- Extracted AuthForm from LoginScreen (R-037)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
- `/wogi-changelog` - All unreleased changes
|
|
35
|
+
- `/wogi-changelog v1.0` - Changes since v1.0 tag
|
|
36
|
+
- `/wogi-changelog --save` - Write to CHANGELOG.md file
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Compact the conversation to free up context space using the recursive summary tree.
|
|
2
|
+
|
|
3
|
+
## Recursive Context Compaction
|
|
4
|
+
|
|
5
|
+
WogiFlow uses a hierarchical summary tree to manage context:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Root (overview)
|
|
9
|
+
├── Tasks Section (summary)
|
|
10
|
+
│ ├── Task 1 (details, expandable)
|
|
11
|
+
│ └── Task 2 (details, expandable)
|
|
12
|
+
├── Decisions Section (summary)
|
|
13
|
+
│ └── Decision details (expandable)
|
|
14
|
+
└── Files Section (summary)
|
|
15
|
+
└── File changes (expandable)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Before Compacting
|
|
19
|
+
|
|
20
|
+
1. **Update progress.md** with:
|
|
21
|
+
- Current task being worked on
|
|
22
|
+
- What's been done this session
|
|
23
|
+
- Next steps
|
|
24
|
+
- Any decisions made
|
|
25
|
+
|
|
26
|
+
2. **Ensure request-log is current** - All changes logged
|
|
27
|
+
|
|
28
|
+
3. **Save any in-progress work** - Commit or stash
|
|
29
|
+
|
|
30
|
+
## Automatic Context Saving
|
|
31
|
+
|
|
32
|
+
When compacting, the system automatically:
|
|
33
|
+
1. Builds a hierarchical summary tree of the session
|
|
34
|
+
2. Stores summaries at multiple levels (root → sections → details)
|
|
35
|
+
3. Applies relevance decay to older items
|
|
36
|
+
4. Enables on-demand expansion when details are needed later
|
|
37
|
+
|
|
38
|
+
## Format for Context Summary
|
|
39
|
+
|
|
40
|
+
Provide this information for the compaction system:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
## Session Summary for Compaction
|
|
44
|
+
|
|
45
|
+
**Goal**: [What user wanted to accomplish]
|
|
46
|
+
|
|
47
|
+
**Completed**:
|
|
48
|
+
- [Task/change 1]
|
|
49
|
+
- [Task/change 2]
|
|
50
|
+
|
|
51
|
+
**In Progress**:
|
|
52
|
+
- TASK-XXX: [description] - [current state, what's left]
|
|
53
|
+
|
|
54
|
+
**Key Decisions**:
|
|
55
|
+
- [Decision 1]
|
|
56
|
+
- [Decision 2]
|
|
57
|
+
|
|
58
|
+
**Files Modified**:
|
|
59
|
+
- [file1.tsx] - [what changed]
|
|
60
|
+
- [file2.tsx] - [what changed]
|
|
61
|
+
|
|
62
|
+
**Next Steps**:
|
|
63
|
+
1. [Step 1]
|
|
64
|
+
2. [Step 2]
|
|
65
|
+
|
|
66
|
+
**Context to Preserve**:
|
|
67
|
+
- [Important context that should survive compaction]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Context Pressure Monitoring
|
|
71
|
+
|
|
72
|
+
Check context pressure status:
|
|
73
|
+
- **Normal**: Under 50k tokens - no action needed
|
|
74
|
+
- **Warning**: 50k-80k tokens - consider compacting soon
|
|
75
|
+
- **Critical**: Over 80k tokens - compact immediately
|
|
76
|
+
|
|
77
|
+
## CLI Commands
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# View tree stats
|
|
81
|
+
node scripts/flow-context-compact stats
|
|
82
|
+
|
|
83
|
+
# Check context pressure
|
|
84
|
+
node scripts/flow-context-compact pressure
|
|
85
|
+
|
|
86
|
+
# View serialized tree
|
|
87
|
+
node scripts/flow-context-compact show
|
|
88
|
+
|
|
89
|
+
# Manual compact
|
|
90
|
+
node scripts/flow-context-compact compact
|
|
91
|
+
|
|
92
|
+
# Compact and prune old nodes
|
|
93
|
+
node scripts/flow-context-compact compact --prune
|
|
94
|
+
|
|
95
|
+
# Get context for a query
|
|
96
|
+
node scripts/flow-context-compact context "authentication task"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
After providing the summary, tell user: "Ready to compact. Please run /compact or continue and I'll auto-compact when needed."
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
View or modify workflow configuration.
|
|
2
|
+
|
|
3
|
+
**View config:** `/wogi-config`
|
|
4
|
+
Shows current settings from `.workflow/config.json`
|
|
5
|
+
|
|
6
|
+
**Toggle settings:** `/wogi-config [setting] [on/off]`
|
|
7
|
+
|
|
8
|
+
Available settings:
|
|
9
|
+
- `storybook on/off` - Auto-generate Storybook stories for new components
|
|
10
|
+
- `hooks on/off` - Enable/disable pre-commit git hooks
|
|
11
|
+
- `tests-before-commit on/off` - Run tests before each commit
|
|
12
|
+
|
|
13
|
+
Examples:
|
|
14
|
+
```
|
|
15
|
+
/wogi-config
|
|
16
|
+
→ Shows all current settings
|
|
17
|
+
|
|
18
|
+
/wogi-config storybook on
|
|
19
|
+
→ Enables Storybook auto-generation
|
|
20
|
+
→ Updates componentRules.autoGenerateStorybook: true
|
|
21
|
+
|
|
22
|
+
/wogi-config hooks on
|
|
23
|
+
→ Runs: ./scripts/flow setup-hooks install
|
|
24
|
+
|
|
25
|
+
/wogi-config tests-before-commit on
|
|
26
|
+
→ Updates testing.runBeforeCommit: true
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Output for view:
|
|
30
|
+
```
|
|
31
|
+
⚙️ Workflow Configuration
|
|
32
|
+
|
|
33
|
+
Quality Gates:
|
|
34
|
+
feature: tests, appMapUpdate, requestLogEntry
|
|
35
|
+
bugfix: tests, requestLogEntry
|
|
36
|
+
|
|
37
|
+
Testing:
|
|
38
|
+
Run after task: off
|
|
39
|
+
Run before commit: off
|
|
40
|
+
Browser tests: off
|
|
41
|
+
|
|
42
|
+
Components:
|
|
43
|
+
Auto Storybook: off
|
|
44
|
+
Require app-map entry: on
|
|
45
|
+
|
|
46
|
+
Hooks:
|
|
47
|
+
Pre-commit: not installed
|
|
48
|
+
|
|
49
|
+
Use /wogi-config [setting] on/off to change.
|
|
50
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Load all context needed to implement a task. Provide task ID: `/wogi-context wf-012`
|
|
2
|
+
|
|
3
|
+
## What It Loads
|
|
4
|
+
|
|
5
|
+
1. **Story** - From `.workflow/changes/*/wf-XXX.md` or tasks.json
|
|
6
|
+
2. **Product Context** - Relevant sections from product.md (using PIN system)
|
|
7
|
+
3. **Related history** - Search request-log for task ID and related tags
|
|
8
|
+
4. **Components** - Load details for any components mentioned in technical notes
|
|
9
|
+
5. **Decisions** - Show relevant patterns from decisions.md
|
|
10
|
+
|
|
11
|
+
## Product Context Loading
|
|
12
|
+
|
|
13
|
+
If `.workflow/state/product.md` exists:
|
|
14
|
+
- Extract keywords from task description
|
|
15
|
+
- Use section-resolver to find relevant PIN sections
|
|
16
|
+
- Include product vision, user personas, or feature context that applies
|
|
17
|
+
|
|
18
|
+
This replaces the need for separate PRD loading - product context is automatically included.
|
|
19
|
+
|
|
20
|
+
## Output
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
📚 Context for wf-012
|
|
24
|
+
|
|
25
|
+
═══════════════════════════════════════
|
|
26
|
+
STORY
|
|
27
|
+
═══════════════════════════════════════
|
|
28
|
+
[Full story content with acceptance criteria]
|
|
29
|
+
|
|
30
|
+
═══════════════════════════════════════
|
|
31
|
+
PRODUCT CONTEXT
|
|
32
|
+
═══════════════════════════════════════
|
|
33
|
+
From product.md (sections: user-auth, security):
|
|
34
|
+
• Users should be able to reset passwords via email
|
|
35
|
+
• Security: All auth tokens expire after 24 hours
|
|
36
|
+
• Target users: Enterprise teams with SSO requirements
|
|
37
|
+
|
|
38
|
+
═══════════════════════════════════════
|
|
39
|
+
RELATED HISTORY
|
|
40
|
+
═══════════════════════════════════════
|
|
41
|
+
• R-038: Added AuthForm component
|
|
42
|
+
• R-032: Created login screen
|
|
43
|
+
|
|
44
|
+
═══════════════════════════════════════
|
|
45
|
+
COMPONENTS
|
|
46
|
+
═══════════════════════════════════════
|
|
47
|
+
Button (primary, secondary):
|
|
48
|
+
Path: components/ui/Button
|
|
49
|
+
Used in: LoginForm, SignupForm
|
|
50
|
+
|
|
51
|
+
Link (default, subtle):
|
|
52
|
+
Path: components/ui/Link
|
|
53
|
+
|
|
54
|
+
═══════════════════════════════════════
|
|
55
|
+
DECISIONS
|
|
56
|
+
═══════════════════════════════════════
|
|
57
|
+
• Use Link component for navigation, not button
|
|
58
|
+
• Form validation uses react-hook-form
|
|
59
|
+
|
|
60
|
+
Ready to implement.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
/wogi-context wf-012 # Load all context for task
|
|
67
|
+
/wogi-context wf-012 --brief # Shorter summary
|
|
68
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Create a detailed correction report for a significant bug fix.
|
|
2
|
+
|
|
3
|
+
Usage: `/wogi-correction [TASK-XXX]`
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
Based on `config.json` corrections mode:
|
|
8
|
+
- **inline**: Only use when explicitly requested
|
|
9
|
+
- **hybrid**: Use for significant/complex fixes
|
|
10
|
+
- **always-detailed**: Use for every fix
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. Read `config.json` to check corrections mode
|
|
15
|
+
2. Find next correction number for the task
|
|
16
|
+
3. Create correction report at `.workflow/corrections/[TASK-XXX]-correction-[N].md`
|
|
17
|
+
4. Add summary to request-log.md with link to detail
|
|
18
|
+
|
|
19
|
+
## Gather Information
|
|
20
|
+
|
|
21
|
+
Ask user for:
|
|
22
|
+
1. **What was expected?** - The correct behavior
|
|
23
|
+
2. **What happened?** - The actual behavior
|
|
24
|
+
3. **Error message?** - If applicable
|
|
25
|
+
4. **Root cause?** - Why it happened
|
|
26
|
+
5. **Solution?** - What was changed
|
|
27
|
+
6. **Prevention?** - How to avoid in future
|
|
28
|
+
|
|
29
|
+
## Output
|
|
30
|
+
|
|
31
|
+
Create detailed report:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
# Correction Report: TASK-012-Correction-1
|
|
35
|
+
|
|
36
|
+
## Problem Description
|
|
37
|
+
### What Was Expected
|
|
38
|
+
User should see dashboard after login
|
|
39
|
+
|
|
40
|
+
### What Actually Happened
|
|
41
|
+
Redirect failed, stayed on login page
|
|
42
|
+
|
|
43
|
+
### Error Message
|
|
44
|
+
TypeError: Cannot read property 'id' of undefined
|
|
45
|
+
|
|
46
|
+
## Root Cause Analysis
|
|
47
|
+
Auth token not being sent in header
|
|
48
|
+
|
|
49
|
+
## Solution Applied
|
|
50
|
+
| File | Change |
|
|
51
|
+
|------|--------|
|
|
52
|
+
| api.ts | Added Authorization header |
|
|
53
|
+
|
|
54
|
+
## Prevention Measures
|
|
55
|
+
1. Add integration test for auth flow
|
|
56
|
+
2. Update API client documentation
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Add to request-log.md:
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
### R-045 | 2024-01-15
|
|
63
|
+
**Type**: fix
|
|
64
|
+
**Tags**: #bug:BUG-003 #task:TASK-012
|
|
65
|
+
**Request**: Fix login redirect failure
|
|
66
|
+
**Result**: Added auth header to API client
|
|
67
|
+
**Correction**: [TASK-012-correction-1](../corrections/TASK-012-correction-1.md)
|
|
68
|
+
**Files**: `api.ts`
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Template
|
|
72
|
+
|
|
73
|
+
Use: `.workflow/templates/correction-report.md`
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
View and manage technical debt across sessions.
|
|
2
|
+
|
|
3
|
+
**Triggers**: `/wogi-debt`, "show debt", "technical debt", "debt status"
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
/wogi-debt # Show debt summary dashboard
|
|
9
|
+
/wogi-debt list # List all open items
|
|
10
|
+
/wogi-debt list --aging # Show items seen 3+ sessions
|
|
11
|
+
/wogi-debt list --fixable # Show auto-fixable items
|
|
12
|
+
/wogi-debt fix # Run auto-fixes (batch all at once)
|
|
13
|
+
/wogi-debt dismiss <id> # Mark as won't-fix
|
|
14
|
+
/wogi-debt promote <id> # Create task from debt item
|
|
15
|
+
/wogi-debt promote-aging # Create tasks for all aging items
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## How It Works
|
|
19
|
+
|
|
20
|
+
Technical debt is captured automatically from `/wogi-session-review` and persisted to `.workflow/state/tech-debt.json`. Each issue tracks:
|
|
21
|
+
|
|
22
|
+
- **File and line**: Where the issue was found
|
|
23
|
+
- **Severity**: critical, high, medium, low
|
|
24
|
+
- **Sessions seen**: How many sessions this issue has persisted
|
|
25
|
+
- **Auto-fixable**: Whether safe batch fixing is possible
|
|
26
|
+
|
|
27
|
+
### Issue Aging
|
|
28
|
+
|
|
29
|
+
Issues that persist across multiple sessions are flagged as "aging":
|
|
30
|
+
- **Session 1-2**: Normal tracking
|
|
31
|
+
- **Session 3+**: Marked as aging, shown in warnings
|
|
32
|
+
- **Auto-promotion**: Aging items can auto-create tasks
|
|
33
|
+
|
|
34
|
+
### Auto-Fixable Issues
|
|
35
|
+
|
|
36
|
+
Certain issue types can be safely batch-fixed:
|
|
37
|
+
- `console.log` statements → Remove line
|
|
38
|
+
- `debugger` statements → Remove line
|
|
39
|
+
- Unused imports → Remove import
|
|
40
|
+
- Empty catch blocks → Add comment
|
|
41
|
+
|
|
42
|
+
When you run `/wogi-debt fix`, ALL auto-fixable items are processed at once.
|
|
43
|
+
|
|
44
|
+
## Execution Steps
|
|
45
|
+
|
|
46
|
+
When `/wogi-debt` is invoked:
|
|
47
|
+
|
|
48
|
+
1. **Load tech debt data** from `.workflow/state/tech-debt.json`
|
|
49
|
+
2. **Parse arguments** to determine action (list, fix, dismiss, promote)
|
|
50
|
+
3. **Execute action**:
|
|
51
|
+
- `list`: Filter and display issues based on flags
|
|
52
|
+
- `fix`: Run auto-fix engine on all fixable items
|
|
53
|
+
- `dismiss`: Mark issue as won't-fix
|
|
54
|
+
- `promote`: Create task in ready.json from debt item
|
|
55
|
+
4. **Display results** with severity colors and counts
|
|
56
|
+
|
|
57
|
+
## Output Format
|
|
58
|
+
|
|
59
|
+
### Summary Dashboard
|
|
60
|
+
```
|
|
61
|
+
╔══════════════════════════════════════════════════════════╗
|
|
62
|
+
║ Technical Debt Dashboard ║
|
|
63
|
+
╚══════════════════════════════════════════════════════════╝
|
|
64
|
+
|
|
65
|
+
Summary: 15 open items
|
|
66
|
+
Critical: 0 High: 2 Medium: 5 Low: 8
|
|
67
|
+
|
|
68
|
+
⚠ 3 items aging (3+ sessions)
|
|
69
|
+
✓ 6 auto-fixable items available
|
|
70
|
+
|
|
71
|
+
Commands:
|
|
72
|
+
flow tech-debt list List all items
|
|
73
|
+
flow tech-debt list --aging Show aging items
|
|
74
|
+
flow tech-debt fix Run auto-fixes
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### List View
|
|
78
|
+
```
|
|
79
|
+
━━━ All Open Issues ━━━
|
|
80
|
+
[td-001] scripts/utils.js:45 (low)
|
|
81
|
+
console.log statement
|
|
82
|
+
Fix: Remove debugging statement
|
|
83
|
+
|
|
84
|
+
[td-002] scripts/main.js:234 (medium) ⚠ 5 sessions
|
|
85
|
+
Magic number should be named constant
|
|
86
|
+
Fix: Extract to TIMEOUT_MS
|
|
87
|
+
|
|
88
|
+
Total: 15 items
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Integration Points
|
|
92
|
+
|
|
93
|
+
- **Session Review**: Issues captured after `/wogi-session-review`
|
|
94
|
+
- **Morning Briefing**: Debt summary shown in `/wogi-morning`
|
|
95
|
+
- **Session End**: Optional cleanup prompt in `/wogi-session-end`
|
|
96
|
+
- **Task System**: Aging items auto-promoted to ready.json
|
|
97
|
+
|
|
98
|
+
## Config Options
|
|
99
|
+
|
|
100
|
+
In `.workflow/config.json`:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"techDebt": {
|
|
105
|
+
"enabled": true,
|
|
106
|
+
"promptOnSessionEnd": true,
|
|
107
|
+
"showInMorningBriefing": true,
|
|
108
|
+
"agingThreshold": 3,
|
|
109
|
+
"autoFix": {
|
|
110
|
+
"enabled": true,
|
|
111
|
+
"types": ["console.log", "unused-import", "debugger", "empty-catch"]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## When No Debt Found
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
╔══════════════════════════════════════════════════════════╗
|
|
121
|
+
║ Technical Debt Dashboard ║
|
|
122
|
+
╚══════════════════════════════════════════════════════════╝
|
|
123
|
+
|
|
124
|
+
Summary: 0 open items
|
|
125
|
+
✓ No technical debt tracked
|
|
126
|
+
|
|
127
|
+
Run /wogi-session-review to scan for issues.
|
|
128
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Show dependency tree for a task. Provide task ID: `/wogi-deps wf-015`
|
|
2
|
+
|
|
3
|
+
Search all tasks.json files in `.workflow/changes/` to find:
|
|
4
|
+
1. What this task depends on
|
|
5
|
+
2. What other tasks depend on this task
|
|
6
|
+
|
|
7
|
+
Output:
|
|
8
|
+
```
|
|
9
|
+
🔗 Dependencies for wf-015
|
|
10
|
+
|
|
11
|
+
Depends On:
|
|
12
|
+
✓ wf-012: Add forgot password link (completed)
|
|
13
|
+
→ wf-014: User API endpoint (in progress)
|
|
14
|
+
|
|
15
|
+
Blocking:
|
|
16
|
+
• wf-018: Profile settings modal
|
|
17
|
+
• wf-020: Account deletion
|
|
18
|
+
|
|
19
|
+
Status: BLOCKED (waiting on wf-014)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If task has no dependencies, show:
|
|
23
|
+
```
|
|
24
|
+
🔗 Dependencies for wf-015
|
|
25
|
+
|
|
26
|
+
Depends On: None
|
|
27
|
+
|
|
28
|
+
Blocking:
|
|
29
|
+
• wf-018: Profile settings modal
|
|
30
|
+
|
|
31
|
+
Status: READY
|
|
32
|
+
```
|