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.
Files changed (121) hide show
  1. package/.claude/commands/wogi-bug.md +43 -0
  2. package/.claude/commands/wogi-bulk.md +144 -0
  3. package/.claude/commands/wogi-changelog.md +36 -0
  4. package/.claude/commands/wogi-compact.md +99 -0
  5. package/.claude/commands/wogi-config.md +50 -0
  6. package/.claude/commands/wogi-context.md +68 -0
  7. package/.claude/commands/wogi-correction.md +73 -0
  8. package/.claude/commands/wogi-debt.md +128 -0
  9. package/.claude/commands/wogi-deps.md +32 -0
  10. package/.claude/commands/wogi-epics.md +145 -0
  11. package/.claude/commands/wogi-export.md +100 -0
  12. package/.claude/commands/wogi-feature.md +149 -0
  13. package/.claude/commands/wogi-guided-edit.md +83 -0
  14. package/.claude/commands/wogi-health.md +43 -0
  15. package/.claude/commands/wogi-help.md +96 -0
  16. package/.claude/commands/wogi-hybrid-edit.md +36 -0
  17. package/.claude/commands/wogi-hybrid-off.md +24 -0
  18. package/.claude/commands/wogi-hybrid-setup.md +79 -0
  19. package/.claude/commands/wogi-hybrid-status.md +45 -0
  20. package/.claude/commands/wogi-hybrid.md +54 -0
  21. package/.claude/commands/wogi-import.md +44 -0
  22. package/.claude/commands/wogi-init.md +618 -0
  23. package/.claude/commands/wogi-log.md +38 -0
  24. package/.claude/commands/wogi-map-add.md +29 -0
  25. package/.claude/commands/wogi-map-check.md +35 -0
  26. package/.claude/commands/wogi-map-index.md +98 -0
  27. package/.claude/commands/wogi-map-scan.md +38 -0
  28. package/.claude/commands/wogi-map-sync.md +91 -0
  29. package/.claude/commands/wogi-map.md +33 -0
  30. package/.claude/commands/wogi-morning.md +65 -0
  31. package/.claude/commands/wogi-onboard.md +99 -0
  32. package/.claude/commands/wogi-plan.md +173 -0
  33. package/.claude/commands/wogi-ready.md +84 -0
  34. package/.claude/commands/wogi-resume.md +95 -0
  35. package/.claude/commands/wogi-review.md +636 -0
  36. package/.claude/commands/wogi-roadmap.md +241 -0
  37. package/.claude/commands/wogi-rules.md +104 -0
  38. package/.claude/commands/wogi-search.md +33 -0
  39. package/.claude/commands/wogi-session-end.md +49 -0
  40. package/.claude/commands/wogi-setup-stack.md +151 -0
  41. package/.claude/commands/wogi-skill-learn.md +66 -0
  42. package/.claude/commands/wogi-skills.md +87 -0
  43. package/.claude/commands/wogi-standup.md +28 -0
  44. package/.claude/commands/wogi-start.md +465 -0
  45. package/.claude/commands/wogi-status.md +41 -0
  46. package/.claude/commands/wogi-statusline-setup/skill.md +109 -0
  47. package/.claude/commands/wogi-story.md +98 -0
  48. package/.claude/commands/wogi-suspend.md +87 -0
  49. package/.claude/commands/wogi-test-browser.md +43 -0
  50. package/.claude/commands/wogi-trace.md +198 -0
  51. package/.claude/docs/architecture.md +37 -0
  52. package/.claude/docs/commands.md +343 -0
  53. package/.claude/docs/knowledge-base/01-setup-onboarding/README.md +177 -0
  54. package/.claude/docs/knowledge-base/01-setup-onboarding/component-indexing.md +341 -0
  55. package/.claude/docs/knowledge-base/01-setup-onboarding/framework-detection.md +269 -0
  56. package/.claude/docs/knowledge-base/01-setup-onboarding/installation.md +146 -0
  57. package/.claude/docs/knowledge-base/01-setup-onboarding/onboarding-existing.md +317 -0
  58. package/.claude/docs/knowledge-base/01-setup-onboarding/team-setup.md +346 -0
  59. package/.claude/docs/knowledge-base/02-task-execution/01-task-planning.md +259 -0
  60. package/.claude/docs/knowledge-base/02-task-execution/02-execution-loop.md +443 -0
  61. package/.claude/docs/knowledge-base/02-task-execution/03-verification.md +417 -0
  62. package/.claude/docs/knowledge-base/02-task-execution/04-completion.md +374 -0
  63. package/.claude/docs/knowledge-base/02-task-execution/05-session-review.md +170 -0
  64. package/.claude/docs/knowledge-base/02-task-execution/README.md +173 -0
  65. package/.claude/docs/knowledge-base/02-task-execution/external-integrations.md +133 -0
  66. package/.claude/docs/knowledge-base/02-task-execution/model-management.md +202 -0
  67. package/.claude/docs/knowledge-base/02-task-execution/specification-mode.md +292 -0
  68. package/.claude/docs/knowledge-base/02-task-execution/sync-daemon.md +96 -0
  69. package/.claude/docs/knowledge-base/02-task-execution/trade-offs.md +345 -0
  70. package/.claude/docs/knowledge-base/02-task-execution/workflow-steps.md +357 -0
  71. package/.claude/docs/knowledge-base/03-self-improvement/README.md +199 -0
  72. package/.claude/docs/knowledge-base/03-self-improvement/long-input-processing.md +160 -0
  73. package/.claude/docs/knowledge-base/03-self-improvement/model-learning.md +334 -0
  74. package/.claude/docs/knowledge-base/03-self-improvement/project-learning.md +301 -0
  75. package/.claude/docs/knowledge-base/03-self-improvement/skill-learning.md +372 -0
  76. package/.claude/docs/knowledge-base/03-self-improvement/skill-matching.md +304 -0
  77. package/.claude/docs/knowledge-base/03-self-improvement/team-learning.md +342 -0
  78. package/.claude/docs/knowledge-base/04-memory-context/README.md +189 -0
  79. package/.claude/docs/knowledge-base/04-memory-context/context-management.md +308 -0
  80. package/.claude/docs/knowledge-base/04-memory-context/memory-commands.md +176 -0
  81. package/.claude/docs/knowledge-base/04-memory-context/memory-systems.md +359 -0
  82. package/.claude/docs/knowledge-base/04-memory-context/prd-management.md +115 -0
  83. package/.claude/docs/knowledge-base/04-memory-context/session-persistence.md +359 -0
  84. package/.claude/docs/knowledge-base/04-memory-context/team-history.md +317 -0
  85. package/.claude/docs/knowledge-base/05-development-tools/README.md +84 -0
  86. package/.claude/docs/knowledge-base/05-development-tools/code-traces.md +278 -0
  87. package/.claude/docs/knowledge-base/05-development-tools/figma-analyzer.md +253 -0
  88. package/.claude/docs/knowledge-base/05-development-tools/guided-edit.md +173 -0
  89. package/.claude/docs/knowledge-base/05-development-tools/mcp-integrations.md +286 -0
  90. package/.claude/docs/knowledge-base/06-safety-guardrails/README.md +153 -0
  91. package/.claude/docs/knowledge-base/06-safety-guardrails/checkpoint-rollback.md +302 -0
  92. package/.claude/docs/knowledge-base/06-safety-guardrails/commit-gates.md +309 -0
  93. package/.claude/docs/knowledge-base/06-safety-guardrails/damage-control.md +292 -0
  94. package/.claude/docs/knowledge-base/06-safety-guardrails/security-scanning.md +291 -0
  95. package/.claude/docs/knowledge-base/README.md +92 -0
  96. package/.claude/docs/knowledge-base/configuration/README.md +228 -0
  97. package/.claude/docs/knowledge-base/configuration/all-options.md +1632 -0
  98. package/.claude/docs/knowledge-base/future-features.md +277 -0
  99. package/.claude/docs/stack.md +25 -0
  100. package/.claude/docs/testing.md +71 -0
  101. package/.claude/rules/README.md +60 -0
  102. package/.claude/rules/architecture/component-reuse.md +38 -0
  103. package/.claude/rules/architecture/document-structure.md +76 -0
  104. package/.claude/rules/architecture/feature-refactoring-cleanup.md +87 -0
  105. package/.claude/rules/architecture/model-management.md +35 -0
  106. package/.claude/rules/code-style/naming-conventions.md +55 -0
  107. package/.claude/rules/security/security-patterns.md +116 -0
  108. package/.claude/skills/.gitkeep +0 -0
  109. package/.claude/skills/README.md +131 -0
  110. package/.claude/skills/_template/commands/.gitkeep +0 -0
  111. package/.claude/skills/_template/knowledge/anti-patterns.md +49 -0
  112. package/.claude/skills/_template/knowledge/learnings.md +60 -0
  113. package/.claude/skills/_template/knowledge/patterns.md +45 -0
  114. package/.claude/skills/_template/rules/.gitkeep +0 -0
  115. package/.claude/skills/_template/skill.md +99 -0
  116. package/.claude/skills/_template/templates/.gitkeep +0 -0
  117. package/.claude/skills/figma-analyzer/knowledge/anti-patterns.md +216 -0
  118. package/.claude/skills/figma-analyzer/knowledge/patterns.md +144 -0
  119. package/.claude/skills/figma-analyzer/skill.md +236 -0
  120. package/lib/installer.js +59 -19
  121. package/package.json +5 -1
@@ -0,0 +1,292 @@
1
+ # Specification Mode
2
+
3
+ Generate comprehensive specifications before implementation starts, following a "spec-first" approach.
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ Specification mode ensures quality planning before coding. For medium and large tasks, a specification is generated and optionally approved before any implementation begins.
10
+
11
+ Key principle: **"Quality code starts with quality planning"**
12
+
13
+ ---
14
+
15
+ ## When Specs Are Generated
16
+
17
+ ```
18
+ ┌─────────────────────────────────────────────────────────────────────┐
19
+ │ SPEC GENERATION TRIGGERS │
20
+ ├─────────────────────────────────────────────────────────────────────┤
21
+ │ │
22
+ │ Task Size Assessment │
23
+ │ ──────────────────── │
24
+ │ │
25
+ │ SMALL (< 3 files) │
26
+ │ → No spec, proceed directly │
27
+ │ │
28
+ │ MEDIUM (3-10 files) │
29
+ │ → Generate spec │
30
+ │ → Show summary │
31
+ │ → Continue = implicit approval │
32
+ │ │
33
+ │ LARGE (> 10 files) │
34
+ │ → Generate spec │
35
+ │ → Require explicit approval │
36
+ │ → Wait for user confirmation │
37
+ │ │
38
+ └─────────────────────────────────────────────────────────────────────┘
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Configuration
44
+
45
+ ```json
46
+ {
47
+ "specificationMode": {
48
+ "enabled": true,
49
+ "requireForMedium": true, // Require spec for medium tasks
50
+ "requireForLarge": true, // Require spec for large tasks
51
+ "requireApproval": {
52
+ "small": false, // No approval needed
53
+ "medium": false, // Implicit approval (continue = ok)
54
+ "large": true // Explicit approval required
55
+ },
56
+ "autoDetectComplexity": true, // Auto-assess task size
57
+ "includeFileList": true, // List files to be modified
58
+ "includeTestStrategy": true // Include testing approach
59
+ }
60
+ }
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Spec Structure
66
+
67
+ Generated specs are saved to `.workflow/specs/`:
68
+
69
+ ```markdown
70
+ # Specification: wf-abc123
71
+
72
+ **Task**: Implement user authentication
73
+ **Generated**: 2026-01-10T10:30:00Z
74
+ **Complexity**: Medium (5 files)
75
+
76
+ ## Acceptance Criteria
77
+
78
+ ### Scenario 1: Happy path login
79
+ **Given** a registered user
80
+ **When** they enter valid credentials
81
+ **Then** they are redirected to dashboard
82
+
83
+ ### Scenario 2: Invalid credentials
84
+ **Given** a registered user
85
+ **When** they enter wrong password
86
+ **Then** they see error message
87
+
88
+ ## Implementation Steps
89
+
90
+ 1. Create AuthService with login method
91
+ 2. Create LoginForm component
92
+ 3. Add route protection middleware
93
+ 4. Update navigation for auth state
94
+ 5. Add unit tests
95
+
96
+ ## Files to Change
97
+
98
+ | File | Action | Confidence |
99
+ |------|--------|------------|
100
+ | src/services/auth.ts | Create | High |
101
+ | src/components/LoginForm.tsx | Create | High |
102
+ | src/middleware/auth.ts | Create | Medium |
103
+ | src/App.tsx | Modify | High |
104
+
105
+ ## Test Strategy
106
+
107
+ - Unit: AuthService methods
108
+ - Integration: Login flow
109
+ - E2E: Full authentication journey
110
+
111
+ ## Verification Commands
112
+
113
+ ```bash
114
+ npm run typecheck
115
+ npm test -- --coverage
116
+ npm run lint
117
+ ```
118
+ ```
119
+
120
+ ---
121
+
122
+ ## Spec Workflow
123
+
124
+ ### 1. Task Start
125
+
126
+ ```bash
127
+ /wogi-start wf-abc123
128
+ ```
129
+
130
+ ### 2. Complexity Assessment
131
+
132
+ System analyzes:
133
+ - Number of acceptance criteria
134
+ - Files likely to change
135
+ - Scope of changes
136
+
137
+ ### 3. Spec Generation
138
+
139
+ ```
140
+ 📋 Generated Specification:
141
+
142
+ Acceptance Criteria: 4 scenarios
143
+ Implementation Steps: 6 steps
144
+ Files to Change: 5 files (medium confidence)
145
+ Verification Commands: 4 commands
146
+
147
+ Saved to: .workflow/specs/wf-abc123.md
148
+ ```
149
+
150
+ ### 4. Reflection Checkpoint
151
+
152
+ ```
153
+ 🪞 Reflection: Does this spec fully address the requirements?
154
+ - Are there any edge cases not covered?
155
+ - Is the scope clear and achievable?
156
+
157
+ [Continue to proceed, or provide feedback]
158
+ ```
159
+
160
+ ### 5. Implementation
161
+
162
+ Only after spec is approved does implementation begin.
163
+
164
+ ---
165
+
166
+ ## File Detection
167
+
168
+ The spec generator analyzes the task to predict files:
169
+
170
+ | Signal | Detection Method |
171
+ |--------|------------------|
172
+ | Component names | Grep for existing components |
173
+ | Service patterns | Match against app-map |
174
+ | Route changes | Analyze routing files |
175
+ | Test files | Infer from implementation files |
176
+
177
+ Confidence levels:
178
+ - **High**: Explicit file mentioned or clear pattern
179
+ - **Medium**: Inferred from context
180
+ - **Low**: Best guess based on conventions
181
+
182
+ ---
183
+
184
+ ## Skipping Specs
185
+
186
+ ### Per-Task
187
+
188
+ ```bash
189
+ /wogi-start wf-abc123 --no-spec
190
+ ```
191
+
192
+ ### Globally
193
+
194
+ ```json
195
+ {
196
+ "specificationMode": {
197
+ "enabled": false
198
+ }
199
+ }
200
+ ```
201
+
202
+ ### For Small Tasks
203
+
204
+ Small tasks (< 3 files) skip specs by default.
205
+
206
+ ---
207
+
208
+ ## Spec Approval
209
+
210
+ ### Implicit Approval (Medium Tasks)
211
+
212
+ Continuing execution = approval:
213
+ ```
214
+ 📋 Specification generated
215
+
216
+ [User continues without objection]
217
+ → Spec approved implicitly
218
+ ```
219
+
220
+ ### Explicit Approval (Large Tasks)
221
+
222
+ Requires confirmation:
223
+ ```
224
+ 📋 Specification generated
225
+
226
+ This is a large task (12 files). Please review the spec:
227
+ .workflow/specs/wf-abc123.md
228
+
229
+ Approve and proceed? [y/n]
230
+ ```
231
+
232
+ ---
233
+
234
+ ## Spec Updates
235
+
236
+ Specs can be updated during implementation:
237
+
238
+ ```
239
+ 🔄 Updating specification:
240
+ - Added Scenario 5 (edge case discovered)
241
+ - Changed file confidence for middleware
242
+ - Added integration test step
243
+ ```
244
+
245
+ ---
246
+
247
+ ## Verification Against Spec
248
+
249
+ After implementation, verify against spec:
250
+
251
+ ```
252
+ ✓ Verifying against specification...
253
+
254
+ Acceptance Criteria:
255
+ ✓ Scenario 1: Happy path login
256
+ ✓ Scenario 2: Invalid credentials
257
+ ✓ Scenario 3: Session persistence
258
+ ✗ Scenario 4: Password reset (not implemented)
259
+
260
+ Files Changed:
261
+ ✓ src/services/auth.ts (created)
262
+ ✓ src/components/LoginForm.tsx (created)
263
+ ✓ src/middleware/auth.ts (created)
264
+ ✗ src/utils/validation.ts (unexpected)
265
+ ```
266
+
267
+ ---
268
+
269
+ ## Best Practices
270
+
271
+ 1. **Review specs before proceeding** - Catch scope issues early
272
+ 2. **Update specs when scope changes** - Keep documentation accurate
273
+ 3. **Use confidence levels** - High confidence = plan is solid
274
+ 4. **Check file predictions** - Catch missing components early
275
+
276
+ ---
277
+
278
+ ## Commands
279
+
280
+ | Option | Description |
281
+ |--------|-------------|
282
+ | `--no-spec` | Skip specification generation |
283
+ | `--spec-only` | Generate spec without implementation |
284
+ | `--respec` | Regenerate specification |
285
+
286
+ ---
287
+
288
+ ## Related
289
+
290
+ - [Task Planning](./01-task-planning.md) - Story creation
291
+ - [Execution Loop](./02-execution-loop.md) - Implementation flow
292
+ - [Verification](./03-verification.md) - Quality gates
@@ -0,0 +1,96 @@
1
+ # Background Sync Daemon
2
+
3
+ Keep workflow state synchronized in the background.
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The sync daemon watches for changes and keeps state files fresh across multiple agent sessions or branches.
10
+
11
+ **Script**: `flow-sync-daemon.js`
12
+
13
+ ---
14
+
15
+ ## Commands
16
+
17
+ ```bash
18
+ # Start the daemon
19
+ flow sync-daemon start
20
+
21
+ # Stop the daemon
22
+ flow sync-daemon stop
23
+
24
+ # Check status
25
+ flow sync-daemon status
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Configuration
31
+
32
+ Add to `.workflow/config.json`:
33
+
34
+ ```json
35
+ {
36
+ "syncDaemon": {
37
+ "enabled": true,
38
+ "watchPaths": [".workflow/state/"],
39
+ "syncOnChange": true,
40
+ "syncOnBranchSwitch": true,
41
+ "heartbeatMs": 5000
42
+ }
43
+ }
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Watched Paths
49
+
50
+ By default, the daemon watches:
51
+
52
+ - `.workflow/state/` - All state files
53
+ - `.workflow/memory/` - Memory database changes
54
+ - `ready.json` - Task queue changes
55
+
56
+ ---
57
+
58
+ ## Use Cases
59
+
60
+ ### Multi-Agent Workflows
61
+
62
+ When running multiple Claude Code sessions:
63
+ - Daemon keeps `ready.json` in sync
64
+ - Prevents task conflicts
65
+ - Shares completion status
66
+
67
+ ### Git Branch Switching
68
+
69
+ When switching branches:
70
+ - Daemon detects `.git/HEAD` changes
71
+ - Reloads state for new branch
72
+ - Preserves branch-specific context
73
+
74
+ ---
75
+
76
+ ## Status Output
77
+
78
+ ```bash
79
+ $ flow sync-daemon status
80
+
81
+ Sync Daemon Status
82
+ ════════════════════════════════════════
83
+ Status: Running
84
+ PID: 12345
85
+ Uptime: 2h 15m
86
+ Last Sync: 2 minutes ago
87
+ Watches: 3 paths
88
+ Changes: 47 synced
89
+ ```
90
+
91
+ ---
92
+
93
+ ## Related
94
+
95
+ - [External Integrations](./external-integrations.md) - Sync with Jira/Linear
96
+ - [Session Persistence](../04-memory-context/session-persistence.md) - State management