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,87 @@
|
|
|
1
|
+
Manage skill packages for specialized development workflows.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
- `/wogi-skills` - List installed and available skills
|
|
5
|
+
- `/wogi-skills add [name]` - Install a skill
|
|
6
|
+
- `/wogi-skills remove [name]` - Remove a skill
|
|
7
|
+
- `/wogi-skills info [name]` - Show skill details
|
|
8
|
+
|
|
9
|
+
## What Are Skills?
|
|
10
|
+
|
|
11
|
+
Skills are modular add-ons that provide:
|
|
12
|
+
- Specialized slash commands
|
|
13
|
+
- Code templates
|
|
14
|
+
- Coding rules/conventions
|
|
15
|
+
- Best practices for specific tech stacks
|
|
16
|
+
|
|
17
|
+
## Available Skills
|
|
18
|
+
|
|
19
|
+
| Skill | Description | Commands Added |
|
|
20
|
+
|-------|-------------|----------------|
|
|
21
|
+
| `nestjs` | NestJS module builder | `/nestjs-scaffold`, `/nestjs-entity`, `/nestjs-db` |
|
|
22
|
+
| `react` | React component patterns | `/react-component`, `/react-hook` |
|
|
23
|
+
| `python` | Python/FastAPI patterns | `/python-endpoint`, `/python-test` |
|
|
24
|
+
|
|
25
|
+
## Output - List
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
🧰 Wogi Flow Skills
|
|
29
|
+
|
|
30
|
+
Installed:
|
|
31
|
+
✓ nestjs - NestJS module builder
|
|
32
|
+
Commands: /nestjs-scaffold, /nestjs-entity, /nestjs-db
|
|
33
|
+
|
|
34
|
+
Available:
|
|
35
|
+
○ react - React component patterns
|
|
36
|
+
○ python - Python/FastAPI patterns
|
|
37
|
+
|
|
38
|
+
Use: /wogi-skills add [name] to install
|
|
39
|
+
/wogi-skills info [name] for details
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Output - Info
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
📦 Skill: nestjs
|
|
46
|
+
|
|
47
|
+
NestJS module builder with production-ready patterns.
|
|
48
|
+
|
|
49
|
+
Commands:
|
|
50
|
+
/nestjs-scaffold [name] Create complete module
|
|
51
|
+
/nestjs-entity [name] Create TypeORM entity
|
|
52
|
+
/nestjs-dto [name] Create DTOs with validation
|
|
53
|
+
/nestjs-migration [name] Generate migration
|
|
54
|
+
/nestjs-db migrate Run migrations
|
|
55
|
+
/nestjs-db seed Run seed data
|
|
56
|
+
|
|
57
|
+
Rules included:
|
|
58
|
+
• conventions.md - Architecture patterns
|
|
59
|
+
• database.md - TypeORM patterns
|
|
60
|
+
|
|
61
|
+
Templates included:
|
|
62
|
+
• entity.template.ts
|
|
63
|
+
• dto.template.ts
|
|
64
|
+
• service.template.ts
|
|
65
|
+
• controller.template.ts
|
|
66
|
+
• module.template.ts
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Installation
|
|
70
|
+
|
|
71
|
+
When adding a skill:
|
|
72
|
+
1. Copy skill folder to `.claude/skills/[name]/`
|
|
73
|
+
2. Update `config.json` with skill in `skills.installed`
|
|
74
|
+
3. Skill commands become available immediately
|
|
75
|
+
|
|
76
|
+
## Creating Custom Skills
|
|
77
|
+
|
|
78
|
+
See: `.claude/skills/README.md` for skill creation guide
|
|
79
|
+
|
|
80
|
+
Structure:
|
|
81
|
+
```
|
|
82
|
+
.claude/skills/[name]/
|
|
83
|
+
skill.md # Description and usage
|
|
84
|
+
rules/ # Coding conventions
|
|
85
|
+
commands/ # Slash commands
|
|
86
|
+
templates/ # Code templates
|
|
87
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Generate a daily standup summary.
|
|
2
|
+
|
|
3
|
+
Gather from:
|
|
4
|
+
1. `.workflow/state/request-log.md` - Recent entries (last 24h or specify days)
|
|
5
|
+
2. `.workflow/state/ready.json` - In progress and ready tasks
|
|
6
|
+
3. `.workflow/state/progress.md` - Any noted blockers
|
|
7
|
+
|
|
8
|
+
Output format:
|
|
9
|
+
```
|
|
10
|
+
📅 Standup Summary
|
|
11
|
+
|
|
12
|
+
Yesterday:
|
|
13
|
+
• Completed TASK-011: Login form validation
|
|
14
|
+
• Fixed bug BUG-003: Password reset email
|
|
15
|
+
• Added Button variants to app-map
|
|
16
|
+
|
|
17
|
+
Today:
|
|
18
|
+
• Continue TASK-012: Forgot password link
|
|
19
|
+
• Start TASK-015: User profile page
|
|
20
|
+
|
|
21
|
+
Blockers:
|
|
22
|
+
• Waiting on API endpoint for user preferences
|
|
23
|
+
|
|
24
|
+
Notes:
|
|
25
|
+
• Decided to use React Query for data fetching (see decisions.md)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Optional: Pass number of days to look back `/wogi-standup 3`
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
Start working on a task. Provide the task ID as argument: `/wogi-start wf-XXXXXXXX`
|
|
2
|
+
|
|
3
|
+
## Structured Execution (v2.1)
|
|
4
|
+
|
|
5
|
+
This command implements a **structured execution loop**:
|
|
6
|
+
- **Model-invoked skills**: Auto-loads relevant skills based on task context
|
|
7
|
+
- **Specification mode**: Generates spec before coding (for medium/large tasks)
|
|
8
|
+
- **Four-phase loop**: Spec → Test → Implement → Verify
|
|
9
|
+
- **File-based validation**: Every phase produces artifacts
|
|
10
|
+
- **Self-reflection**: Checkpoints to pause and verify approach
|
|
11
|
+
|
|
12
|
+
### Execution Flow
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
┌─────────────────────────────────────────────────────────┐
|
|
16
|
+
│ /wogi-start wf-XXXXXXXX │
|
|
17
|
+
├─────────────────────────────────────────────────────────┤
|
|
18
|
+
│ 0.5 PARALLEL CHECK: Are other tasks parallelizable? │
|
|
19
|
+
│ → If yes: Show parallel option before proceeding │
|
|
20
|
+
│ 1. Load context + Match skills (auto-invoke) │
|
|
21
|
+
│ 2. Generate specification (if medium/large task) │
|
|
22
|
+
│ 3. SPEC PHASE: Plan implementation steps │
|
|
23
|
+
│ ┌───────────────────────────────────────────────────┐ │
|
|
24
|
+
│ │ 🪞 Reflection: Does spec fully address needs? │ │
|
|
25
|
+
│ └───────────────────────────────────────────────────┘ │
|
|
26
|
+
│ 4. TEST PHASE: Write/update tests first │
|
|
27
|
+
│ 5. IMPLEMENT PHASE: Code each acceptance criteria │
|
|
28
|
+
│ ┌───────────────────────────────────────────────────┐ │
|
|
29
|
+
│ │ FOR EACH scenario: │ │
|
|
30
|
+
│ │ → Mark in_progress │ │
|
|
31
|
+
│ │ → Implement │ │
|
|
32
|
+
│ │ → Verify (run tests, typecheck) │ │
|
|
33
|
+
│ │ → Save verification artifact │ │
|
|
34
|
+
│ │ → If failing: fix and retry │ │
|
|
35
|
+
│ │ → Mark completed │ │
|
|
36
|
+
│ └───────────────────────────────────────────────────┘ │
|
|
37
|
+
│ ┌───────────────────────────────────────────────────┐ │
|
|
38
|
+
│ │ 🪞 Reflection: Any bugs or regressions? │ │
|
|
39
|
+
│ └───────────────────────────────────────────────────┘ │
|
|
40
|
+
│ 5.5 CRITERIA CHECK: Re-read spec, verify EACH done │
|
|
41
|
+
│ → If ANY not done: implement it, loop back │
|
|
42
|
+
│ 6. VERIFY PHASE: Spec verification + quality gates │
|
|
43
|
+
│ → MANDATORY: Verify all spec deliverables exist │
|
|
44
|
+
│ 7. Save final verification artifact │
|
|
45
|
+
│ ┌───────────────────────────────────────────────────┐ │
|
|
46
|
+
│ │ 🪞 Reflection: Does this match user request? │ │
|
|
47
|
+
│ └───────────────────────────────────────────────────┘ │
|
|
48
|
+
│ 8. Update request-log, app-map, ready.json │
|
|
49
|
+
│ 9. Commit changes │
|
|
50
|
+
│ 10. ✓ Task complete │
|
|
51
|
+
└─────────────────────────────────────────────────────────┘
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Step 0.5: Parallel Execution Check (Automatic)
|
|
55
|
+
|
|
56
|
+
**Before starting, automatically check if parallel execution is available:**
|
|
57
|
+
|
|
58
|
+
1. Read `.workflow/state/ready.json`
|
|
59
|
+
2. Check if there are 2+ tasks in the `ready` array
|
|
60
|
+
3. If yes, run parallel detection:
|
|
61
|
+
```bash
|
|
62
|
+
node scripts/flow-parallel.js check
|
|
63
|
+
```
|
|
64
|
+
Or programmatically check `findParallelizable(readyTasks)`
|
|
65
|
+
|
|
66
|
+
4. **If parallelizable tasks exist**, display:
|
|
67
|
+
```
|
|
68
|
+
⚡ PARALLEL EXECUTION AVAILABLE
|
|
69
|
+
Note: X other tasks could run in parallel with this one.
|
|
70
|
+
Tasks: wf-002, wf-003 (no dependencies with wf-001)
|
|
71
|
+
|
|
72
|
+
Options:
|
|
73
|
+
- Continue with wf-001 (sequential execution)
|
|
74
|
+
- Run wf-001, wf-002, wf-003 in parallel (faster, isolated worktrees)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
5. **Decision criteria** (agent should consider):
|
|
78
|
+
- **Use parallel** when: Tasks are independent, user wants speed, tasks don't share files
|
|
79
|
+
- **Use sequential** when: Tasks share files, need to review each result, prefer careful approach
|
|
80
|
+
|
|
81
|
+
6. If parallel is chosen: Use `flow parallel` with worktree isolation
|
|
82
|
+
7. If sequential: Continue with this task normally
|
|
83
|
+
|
|
84
|
+
**This check happens automatically at the start of every `/wogi-start`**
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### Step 1: Load Context + Match Skills
|
|
89
|
+
|
|
90
|
+
1. Read `.workflow/state/ready.json`
|
|
91
|
+
2. Find the task in the ready array
|
|
92
|
+
3. Move it to inProgress array, save ready.json
|
|
93
|
+
4. Load task context:
|
|
94
|
+
- Find story file in `.workflow/changes/*/wf-XXXXXXXX.md` or tasks.json
|
|
95
|
+
- Extract user story, acceptance criteria, technical notes
|
|
96
|
+
5. Check `.workflow/state/app-map.md` for components mentioned
|
|
97
|
+
6. Check `.workflow/state/decisions.md` for relevant patterns
|
|
98
|
+
7. **Auto-invoke skills** based on task context:
|
|
99
|
+
- Run skill matcher against task description
|
|
100
|
+
- Load matched skills (patterns.md, anti-patterns.md, learnings.md)
|
|
101
|
+
- Display matched skills with scores
|
|
102
|
+
|
|
103
|
+
**Skill Matching Output:**
|
|
104
|
+
```
|
|
105
|
+
🔧 Matched Skills:
|
|
106
|
+
nestjs [●●●●○]
|
|
107
|
+
keyword: "service", "entity", task type: "feature"
|
|
108
|
+
react [●●○○○]
|
|
109
|
+
keyword: "component"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Step 1.5: Generate Specification (Medium/Large Tasks)
|
|
113
|
+
|
|
114
|
+
For medium/large tasks (check `config.json → specificationMode`):
|
|
115
|
+
|
|
116
|
+
1. Generate specification to `.workflow/specs/wf-XXXXXXXX.md`:
|
|
117
|
+
- Acceptance criteria (structured Given/When/Then)
|
|
118
|
+
- Implementation steps
|
|
119
|
+
- Files to change (auto-detected)
|
|
120
|
+
- Test strategy
|
|
121
|
+
- Verification commands
|
|
122
|
+
2. Display spec summary
|
|
123
|
+
3. **Reflection checkpoint**: "Does this spec fully address the requirements?"
|
|
124
|
+
4. Wait for implicit approval (continue = approved)
|
|
125
|
+
|
|
126
|
+
**Spec Output:**
|
|
127
|
+
```
|
|
128
|
+
📋 Generated Specification:
|
|
129
|
+
|
|
130
|
+
Acceptance Criteria: 4 scenarios
|
|
131
|
+
Implementation Steps: 6 steps
|
|
132
|
+
Files to Change: 3 files (medium confidence)
|
|
133
|
+
Verification Commands: 4 commands
|
|
134
|
+
|
|
135
|
+
🪞 Reflection: Does this spec fully address the requirements?
|
|
136
|
+
- Are there any edge cases not covered?
|
|
137
|
+
- Is the scope clear and achievable?
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Step 2: Decompose into TodoWrite Checklist
|
|
141
|
+
|
|
142
|
+
Extract each acceptance criteria scenario as a TodoWrite item:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Given [context] When [action] Then [outcome]
|
|
146
|
+
→ Todo: "Implement: [short description of scenario]"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Also add:
|
|
150
|
+
- "Update request-log.md with task entry"
|
|
151
|
+
- "Update app-map.md if new components created"
|
|
152
|
+
- "Run quality gates"
|
|
153
|
+
- "Commit changes"
|
|
154
|
+
|
|
155
|
+
### Step 3: Execute Each Scenario (Loop)
|
|
156
|
+
|
|
157
|
+
For each acceptance criteria:
|
|
158
|
+
|
|
159
|
+
1. **Mark in_progress** in TodoWrite
|
|
160
|
+
2. **Implement** the scenario following matched skill patterns
|
|
161
|
+
3. **Run verification** (saves artifact to `.workflow/verifications/`):
|
|
162
|
+
- Run lint: `npm run lint`
|
|
163
|
+
- Run typecheck: `npm run typecheck` or `npx tsc --noEmit`
|
|
164
|
+
- Run related tests if they exist
|
|
165
|
+
4. **Save verification artifact** (JSON file with exit codes, output)
|
|
166
|
+
5. **If not working**: Debug, fix, retry verification (max 5 attempts)
|
|
167
|
+
6. **Mark completed** only when verification passes
|
|
168
|
+
|
|
169
|
+
**Verification Artifact:**
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"taskId": "wf-abc123",
|
|
173
|
+
"phase": "implementation",
|
|
174
|
+
"timestamp": "2026-01-10T...",
|
|
175
|
+
"results": [
|
|
176
|
+
{"command": "npm run lint", "exitCode": 0, "passed": true},
|
|
177
|
+
{"command": "npm run typecheck", "exitCode": 0, "passed": true}
|
|
178
|
+
],
|
|
179
|
+
"allPassed": true
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Step 3.5: Criteria Completion Verification (MANDATORY)
|
|
184
|
+
|
|
185
|
+
**This is the enforcement loop that ensures everything was actually done.**
|
|
186
|
+
|
|
187
|
+
After implementing all scenarios, BEFORE running quality gates:
|
|
188
|
+
|
|
189
|
+
1. **Re-read the original acceptance criteria** from the spec file
|
|
190
|
+
2. **For EACH criterion**, verify it was actually implemented:
|
|
191
|
+
```
|
|
192
|
+
┌─────────────────────────────────────────────────────────┐
|
|
193
|
+
│ CRITERIA COMPLETION CHECK │
|
|
194
|
+
├─────────────────────────────────────────────────────────┤
|
|
195
|
+
│ Re-reading acceptance criteria from spec... │
|
|
196
|
+
│ │
|
|
197
|
+
│ □ Criterion 1: Given X, When Y, Then Z │
|
|
198
|
+
│ → Check: Does the code actually do Z when Y? │
|
|
199
|
+
│ → Status: ✓ IMPLEMENTED / ✗ NOT DONE │
|
|
200
|
+
│ │
|
|
201
|
+
│ □ Criterion 2: Given A, When B, Then C │
|
|
202
|
+
│ → Check: Does the code actually do C when B? │
|
|
203
|
+
│ → Status: ✓ IMPLEMENTED / ✗ NOT DONE │
|
|
204
|
+
│ │
|
|
205
|
+
│ ... for ALL criteria │
|
|
206
|
+
└─────────────────────────────────────────────────────────┘
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
3. **If ANY criterion is NOT implemented**:
|
|
210
|
+
- Add it back to TodoWrite as in_progress
|
|
211
|
+
- Implement it
|
|
212
|
+
- Verify it works
|
|
213
|
+
- Return to step 3.5 and re-check ALL criteria again
|
|
214
|
+
|
|
215
|
+
4. **Only proceed when ALL criteria show ✓ IMPLEMENTED**
|
|
216
|
+
|
|
217
|
+
**This is NOT optional. This is what prevents "claiming done when not done."**
|
|
218
|
+
|
|
219
|
+
The key question for each criterion:
|
|
220
|
+
> "If I run the code right now, does it actually do what this criterion describes?"
|
|
221
|
+
|
|
222
|
+
Not "did I write code for this" but "does the code WORK as specified?"
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### Step 4: Run Quality Gates + Final Verification
|
|
227
|
+
|
|
228
|
+
**MANDATORY FIRST CHECK - Spec Verification Gate:**
|
|
229
|
+
|
|
230
|
+
Before running any other quality gates, verify all deliverables from the spec exist:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
node scripts/flow-spec-verifier.js verify wf-XXXXXXXX
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
This checks:
|
|
237
|
+
1. Parse the task's spec file (`.workflow/changes/wf-XXXXXXXX.md`)
|
|
238
|
+
2. Extract all promised files from Technical Notes / Components sections
|
|
239
|
+
3. Verify each file exists
|
|
240
|
+
4. Verify JS/JSON files have valid syntax
|
|
241
|
+
|
|
242
|
+
**Output:**
|
|
243
|
+
```
|
|
244
|
+
═══════════════════════════════════════════════════
|
|
245
|
+
Spec Verification
|
|
246
|
+
═══════════════════════════════════════════════════
|
|
247
|
+
Spec: .workflow/changes/wf-abc123.md
|
|
248
|
+
|
|
249
|
+
✓ Spec verification passed (5/5 deliverables)
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**If spec verification fails:**
|
|
253
|
+
```
|
|
254
|
+
✗ Spec verification FAILED (3/5 deliverables)
|
|
255
|
+
|
|
256
|
+
Missing files:
|
|
257
|
+
✗ scripts/flow-missing-feature.js
|
|
258
|
+
(listed in: Technical Notes → Components)
|
|
259
|
+
```
|
|
260
|
+
→ **STOP. Create the missing files before proceeding.**
|
|
261
|
+
→ Do NOT skip this check. This prevents implementation gaps.
|
|
262
|
+
|
|
263
|
+
**After spec verification passes**, read `config.json` → `qualityGates` for task type and verify:
|
|
264
|
+
|
|
265
|
+
- `tests`: Run test command if configured, ensure passing
|
|
266
|
+
- `requestLogEntry`: Verify entry exists in request-log.md
|
|
267
|
+
- `appMapUpdate`: Verify new components are in app-map.md
|
|
268
|
+
- `noNewFeatures`: (for refactors) Verify no new features added
|
|
269
|
+
|
|
270
|
+
**Save final verification artifact** to `.workflow/verifications/wf-XXXXXXXX-final.json`
|
|
271
|
+
|
|
272
|
+
**Reflection checkpoint:**
|
|
273
|
+
```
|
|
274
|
+
🪞 Reflection: Have I introduced any bugs or regressions?
|
|
275
|
+
- Does the code follow project patterns from decisions.md?
|
|
276
|
+
- Is there any code that could be simplified?
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**If any gate fails**: Fix the issue and re-verify. Do not proceed until all required gates pass.
|
|
280
|
+
|
|
281
|
+
### Step 5: Final Reflection + Finalize
|
|
282
|
+
|
|
283
|
+
1. **Pre-completion reflection:**
|
|
284
|
+
```
|
|
285
|
+
🪞 Reflection: Does this match what the user asked for?
|
|
286
|
+
- Have all acceptance criteria been met?
|
|
287
|
+
- Are there any loose ends to address?
|
|
288
|
+
```
|
|
289
|
+
2. Update ready.json: Move task to recentlyCompleted
|
|
290
|
+
3. Git add and commit with message: `feat: Complete wf-XXXXXXXX - [title]`
|
|
291
|
+
4. Show completion summary with verification results
|
|
292
|
+
|
|
293
|
+
### Output
|
|
294
|
+
|
|
295
|
+
**Start:**
|
|
296
|
+
```
|
|
297
|
+
✓ Started: wf-XXXXXXXX - [Title]
|
|
298
|
+
|
|
299
|
+
🔧 Matched Skills:
|
|
300
|
+
nestjs [●●●●○] - keyword: "service", task type: "feature"
|
|
301
|
+
|
|
302
|
+
📋 Specification generated: .workflow/specs/wf-XXXXXXXX.md
|
|
303
|
+
Acceptance Criteria: 4 scenarios
|
|
304
|
+
Implementation Steps: 6 steps
|
|
305
|
+
Files to Change: 3 (medium confidence)
|
|
306
|
+
|
|
307
|
+
User Story:
|
|
308
|
+
As a [user], I want [action], so that [benefit]
|
|
309
|
+
|
|
310
|
+
Acceptance Criteria (4 scenarios):
|
|
311
|
+
□ 1. Given... When... Then...
|
|
312
|
+
□ 2. Given... When... Then...
|
|
313
|
+
□ 3. Given... When... Then...
|
|
314
|
+
□ 4. Given... When... Then...
|
|
315
|
+
|
|
316
|
+
🪞 Reflection: Does spec fully address requirements? ✓
|
|
317
|
+
|
|
318
|
+
Beginning structured execution loop...
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**During (for each scenario):**
|
|
322
|
+
```
|
|
323
|
+
[IMPLEMENT] Working on scenario 1/4: [description]
|
|
324
|
+
→ Implementing...
|
|
325
|
+
→ Running verification...
|
|
326
|
+
✓ lint passed
|
|
327
|
+
✓ typecheck passed
|
|
328
|
+
→ Artifact saved: .workflow/verifications/wf-XXXXXXXX-scenario-1.json
|
|
329
|
+
→ ✓ Scenario complete
|
|
330
|
+
|
|
331
|
+
[IMPLEMENT] Working on scenario 2/4: [description]
|
|
332
|
+
→ Implementing...
|
|
333
|
+
→ Running verification...
|
|
334
|
+
✗ typecheck failed: Property 'x' does not exist
|
|
335
|
+
→ Fixing...
|
|
336
|
+
→ Running verification... ✓
|
|
337
|
+
→ Artifact saved: .workflow/verifications/wf-XXXXXXXX-scenario-2.json
|
|
338
|
+
→ ✓ Scenario complete
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
**Reflection checkpoint (post-implementation):**
|
|
342
|
+
```
|
|
343
|
+
🪞 Reflection: Have I introduced any bugs or regressions?
|
|
344
|
+
- Code follows patterns from decisions.md ✓
|
|
345
|
+
- No unnecessary complexity detected ✓
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
**End:**
|
|
349
|
+
```
|
|
350
|
+
[CRITERIA CHECK] Re-reading acceptance criteria from spec...
|
|
351
|
+
✓ Criterion 1: "Given X, When Y, Then Z" - IMPLEMENTED
|
|
352
|
+
✓ Criterion 2: "Given A, When B, Then C" - IMPLEMENTED
|
|
353
|
+
✓ Criterion 3: "Error handling for invalid input" - IMPLEMENTED
|
|
354
|
+
✓ Criterion 4: "Config option to disable feature" - IMPLEMENTED
|
|
355
|
+
→ All 4/4 criteria verified as implemented
|
|
356
|
+
|
|
357
|
+
[VERIFY] Running spec verification...
|
|
358
|
+
✓ Spec verification passed (5/5 deliverables)
|
|
359
|
+
|
|
360
|
+
[VERIFY] Running quality gates...
|
|
361
|
+
✓ tests passed (12/12)
|
|
362
|
+
✓ lint passed
|
|
363
|
+
✓ typecheck passed
|
|
364
|
+
✓ requestLogEntry found
|
|
365
|
+
✓ appMapUpdate verified
|
|
366
|
+
|
|
367
|
+
Final verification artifact: .workflow/verifications/wf-XXXXXXXX-final.json
|
|
368
|
+
|
|
369
|
+
🪞 Reflection: Does this match user request? ✓
|
|
370
|
+
|
|
371
|
+
✓ Completed: wf-XXXXXXXX - [Title]
|
|
372
|
+
4/4 scenarios implemented
|
|
373
|
+
Verification artifacts: 5 files
|
|
374
|
+
Changes committed: "feat: Complete wf-XXXXXXXX - [title]"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
## Options
|
|
378
|
+
|
|
379
|
+
### `--no-loop`
|
|
380
|
+
Disable the self-completing loop. Just load context and stop (old behavior):
|
|
381
|
+
```
|
|
382
|
+
/wogi-start wf-XXXXXXXX --no-loop
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### `--no-spec`
|
|
386
|
+
Skip specification generation (for small tasks or quick fixes):
|
|
387
|
+
```
|
|
388
|
+
/wogi-start wf-XXXXXXXX --no-spec
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### `--no-skills`
|
|
392
|
+
Skip automatic skill loading:
|
|
393
|
+
```
|
|
394
|
+
/wogi-start wf-XXXXXXXX --no-skills
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### `--no-reflection`
|
|
398
|
+
Skip reflection checkpoints (faster but less thorough):
|
|
399
|
+
```
|
|
400
|
+
/wogi-start wf-XXXXXXXX --no-reflection
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### `--max-retries N`
|
|
404
|
+
Limit retry attempts per scenario (default: 5):
|
|
405
|
+
```
|
|
406
|
+
/wogi-start wf-XXXXXXXX --max-retries 3
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### `--pause-between`
|
|
410
|
+
Ask for confirmation between scenarios:
|
|
411
|
+
```
|
|
412
|
+
/wogi-start wf-XXXXXXXX --pause-between
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### `--verify-only`
|
|
416
|
+
Only run verification without implementation (for debugging):
|
|
417
|
+
```
|
|
418
|
+
/wogi-start wf-XXXXXXXX --verify-only
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### `--phased`
|
|
422
|
+
Enable phased execution mode (Contract → Skeleton → Core → Edge Cases → Polish):
|
|
423
|
+
```
|
|
424
|
+
/wogi-start wf-XXXXXXXX --phased
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
This breaks implementation into focused phases with context isolation:
|
|
428
|
+
1. **Contract**: Define interfaces, types, API contracts (NO implementation)
|
|
429
|
+
2. **Skeleton**: Create file structure, stub implementations (NO logic)
|
|
430
|
+
3. **Core Logic**: Implement happy path only (assume valid inputs)
|
|
431
|
+
4. **Edge Cases**: Handle errors and validation (NO core logic changes)
|
|
432
|
+
5. **Polish**: Optimization, cleanup, documentation
|
|
433
|
+
|
|
434
|
+
Each phase has constraints to prevent scope creep. Use for complex tasks.
|
|
435
|
+
|
|
436
|
+
Phase commands:
|
|
437
|
+
- `flow phase complete <taskId>` - Complete current phase
|
|
438
|
+
- `flow phase skip <taskId>` - Skip current phase
|
|
439
|
+
- `flow phase status <taskId>` - Show phase status
|
|
440
|
+
|
|
441
|
+
## When Things Go Wrong
|
|
442
|
+
|
|
443
|
+
### Scenario keeps failing after max retries
|
|
444
|
+
- Stop and report: "Scenario X failed after N attempts. Issue: [description]"
|
|
445
|
+
- Leave task in inProgress
|
|
446
|
+
- User can investigate and re-run `/wogi-start TASK-XXX` to continue
|
|
447
|
+
|
|
448
|
+
### Quality gate keeps failing
|
|
449
|
+
- Report which gate is failing and why
|
|
450
|
+
- Attempt to fix automatically
|
|
451
|
+
- If can't fix after 3 attempts, stop and report
|
|
452
|
+
|
|
453
|
+
### Context getting too large
|
|
454
|
+
- After 3+ scenarios, check context size
|
|
455
|
+
- If getting large, commit current progress and suggest `/wogi-compact`
|
|
456
|
+
- Progress is preserved in files and ready.json
|
|
457
|
+
|
|
458
|
+
## Important
|
|
459
|
+
|
|
460
|
+
- **TodoWrite is mandatory**: Use it to track progress through scenarios
|
|
461
|
+
- **Self-verification is mandatory**: Don't mark scenarios done without checking they work
|
|
462
|
+
- **Criteria completion check is mandatory**: After implementing, re-read ALL criteria and verify EACH one actually works. If any is not done, implement it and check again. This is the loop that prevents "claiming done when not done."
|
|
463
|
+
- **Spec verification is mandatory**: All files promised in spec must exist before completion
|
|
464
|
+
- **Quality gates are mandatory**: Task isn't done until gates pass
|
|
465
|
+
- **Commits preserve progress**: Even if you stop mid-task, work is saved
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Show full project overview.
|
|
2
|
+
|
|
3
|
+
Run `./scripts/flow status` to see the overview.
|
|
4
|
+
|
|
5
|
+
Options:
|
|
6
|
+
- `--json` - Output JSON for programmatic access
|
|
7
|
+
|
|
8
|
+
Related: `/wogi-morning` for session-focused briefing with suggested next action.
|
|
9
|
+
|
|
10
|
+
Gather information from:
|
|
11
|
+
1. `.workflow/state/ready.json` - Task counts by status
|
|
12
|
+
2. `.workflow/changes/` - Active features
|
|
13
|
+
3. `.workflow/bugs/` - Open bugs
|
|
14
|
+
4. `.workflow/state/app-map.md` - Component count
|
|
15
|
+
5. `git status` - Branch and uncommitted changes
|
|
16
|
+
6. `.workflow/state/request-log.md` - Recent activity (last 5 entries)
|
|
17
|
+
|
|
18
|
+
Output format:
|
|
19
|
+
```
|
|
20
|
+
📊 Project Status
|
|
21
|
+
|
|
22
|
+
Tasks:
|
|
23
|
+
Ready: 5 | In Progress: 2 | Blocked: 1 | Completed: 12
|
|
24
|
+
|
|
25
|
+
Features:
|
|
26
|
+
• auth (3 tasks remaining)
|
|
27
|
+
• user-profile (1 task remaining)
|
|
28
|
+
|
|
29
|
+
Bugs: 2 open
|
|
30
|
+
|
|
31
|
+
Components: 24 mapped
|
|
32
|
+
|
|
33
|
+
Git:
|
|
34
|
+
Branch: feature/auth
|
|
35
|
+
Uncommitted: 3 files
|
|
36
|
+
|
|
37
|
+
Recent Activity:
|
|
38
|
+
• R-045: Added login form validation
|
|
39
|
+
• R-044: Fixed password reset flow
|
|
40
|
+
• R-043: Created Button component
|
|
41
|
+
```
|