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,146 @@
1
+ # Installation
2
+
3
+ Set up WogiFlow for your project.
4
+
5
+ ---
6
+
7
+ ## Quick Install
8
+
9
+ ```bash
10
+ npm install wogiflow
11
+ ```
12
+
13
+ This automatically:
14
+ 1. Creates the `.workflow/` directory structure
15
+ 2. Copies template files to `.workflow/state/`
16
+ 3. Sets up necessary subdirectories
17
+
18
+ ---
19
+
20
+ ## What Gets Created
21
+
22
+ ```
23
+ .workflow/
24
+ ├── config.json # Configuration (200+ options)
25
+ ├── state/
26
+ │ ├── ready.json # Task queues
27
+ │ ├── app-map.md # Component registry
28
+ │ ├── decisions.md # Coding patterns
29
+ │ ├── request-log.md # Change history
30
+ │ ├── progress.md # Session notes
31
+ │ └── component-index.json # Auto-scanned components
32
+ ├── changes/ # Feature change sets
33
+ ├── memory/ # Local memory database
34
+ └── verifications/ # Verification artifacts
35
+ ```
36
+
37
+ ---
38
+
39
+ ## For Existing Projects
40
+
41
+ After installing, run onboarding to analyze your codebase:
42
+
43
+ ```bash
44
+ npx flow onboard
45
+ ```
46
+
47
+ This analyzes your codebase and populates:
48
+ - `decisions.md` - Detected coding patterns
49
+ - `app-map.md` - Found components
50
+ - `component-index.json` - Auto-scanned index
51
+
52
+ See [Onboarding Existing Projects](./onboarding-existing.md).
53
+
54
+ ---
55
+
56
+ ## Post-Installation
57
+
58
+ ### 1. Review Config
59
+
60
+ Check `.workflow/config.json` and adjust settings:
61
+
62
+ ```json
63
+ {
64
+ "enforcement": {
65
+ "strictMode": true,
66
+ "requireStoryForMediumTasks": true
67
+ },
68
+ "loops": {
69
+ "enforced": true,
70
+ "maxRetries": 5
71
+ }
72
+ }
73
+ ```
74
+
75
+ ### 2. Add to Git
76
+
77
+ ```bash
78
+ git add .workflow/
79
+ git commit -m "feat: add WogiFlow workflow"
80
+ ```
81
+
82
+ ### 3. Verify Setup
83
+
84
+ ```bash
85
+ npx flow health
86
+ ```
87
+
88
+ Or in Claude:
89
+ ```
90
+ /wogi-health
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Updating WogiFlow
96
+
97
+ ```bash
98
+ npm update wogiflow
99
+ ```
100
+
101
+ ---
102
+
103
+ ## Default Configuration
104
+
105
+ The installer creates a balanced config:
106
+
107
+ | Setting | Default | Purpose |
108
+ |---------|---------|---------|
109
+ | `enforcement.strictMode` | `true` | Require tasks for implementation |
110
+ | `loops.enforced` | `true` | Enable self-completing loops |
111
+ | `loops.maxRetries` | `5` | Retry failed verifications |
112
+ | `durableSteps.enabled` | `true` | Enable crash recovery |
113
+ | `autoLog` | `true` | Auto-log changes |
114
+ | `autoUpdateAppMap` | `true` | Auto-update component registry |
115
+
116
+ ---
117
+
118
+ ## Troubleshooting
119
+
120
+ ### Permission Denied
121
+
122
+ ```bash
123
+ chmod +x ./node_modules/wogiflow/scripts/flow*
124
+ ```
125
+
126
+ ### Missing Dependencies
127
+
128
+ Ensure Node.js 18+ is installed:
129
+ ```bash
130
+ node --version # Should be 18+
131
+ ```
132
+
133
+ ### Config Validation Errors
134
+
135
+ Check JSON syntax:
136
+ ```bash
137
+ node -e "JSON.parse(require('fs').readFileSync('.workflow/config.json'))"
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Related
143
+
144
+ - [Onboarding Existing Projects](./onboarding-existing.md)
145
+ - [Configuration Reference](../configuration/all-options.md)
146
+ - [Component Indexing](./component-indexing.md)
@@ -0,0 +1,317 @@
1
+ # Onboarding Existing Projects
2
+
3
+ Analyze an existing codebase and set up WogiFlow with full context.
4
+
5
+ ---
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ npx flow onboard
11
+ ```
12
+
13
+ This interactive process:
14
+ 1. Detects your tech stack
15
+ 2. Scans for components
16
+ 3. Asks about your project
17
+ 4. Generates populated state files
18
+
19
+ ---
20
+
21
+ ## Detection Phase
22
+
23
+ ### Tech Stack Detection
24
+
25
+ Automatically detects:
26
+
27
+ | Type | How Detected |
28
+ |------|--------------|
29
+ | **Language** | `tsconfig.json`, `package.json`, `requirements.txt`, `go.mod` |
30
+ | **Framework** | Dependencies in package.json, config files |
31
+ | **Database** | ORM packages, docker-compose services |
32
+ | **Package Manager** | Lock files (npm, yarn, pnpm, pip) |
33
+
34
+ ### Supported Frameworks
35
+
36
+ | Framework | Detection Method |
37
+ |-----------|-----------------|
38
+ | Next.js | `next` in package.json, `next.config.js` |
39
+ | React | `react` in package.json |
40
+ | NestJS | `@nestjs/core`, `nest-cli.json` |
41
+ | Vue | `vue` in package.json |
42
+ | Angular | `@angular/core`, `angular.json` |
43
+ | FastAPI | `fastapi` in requirements.txt |
44
+ | Django | `django` in requirements.txt |
45
+ | Express | `express` in package.json |
46
+
47
+ ### Component Scanning
48
+
49
+ Scans for:
50
+ - React/Vue components in `src/components/`
51
+ - Pages in `src/pages/`, `pages/`, `app/`
52
+ - NestJS modules (`.module.ts`)
53
+ - API routes in `pages/api/`, `app/api/`
54
+ - Services in `src/services/`
55
+
56
+ ---
57
+
58
+ ## Project Interview
59
+
60
+ The onboarding process asks about:
61
+
62
+ ### 1. Project Basics
63
+ - Project name (auto-detected from package.json)
64
+ - Brief description
65
+
66
+ ### 2. Documentation
67
+ - PRD or technical spec
68
+ - README with project overview
69
+ - Architecture documentation
70
+
71
+ Documents found automatically:
72
+ - `PRD.md`, `prd.md`
73
+ - `README.md`
74
+ - `ARCHITECTURE.md`
75
+ - `docs/technical-spec.md`
76
+
77
+ ### 3. Current State
78
+ - Early development
79
+ - MVP / working prototype
80
+ - Production with active users
81
+ - Maintenance mode
82
+
83
+ ### 4. Goals
84
+ - Add new features
85
+ - Fix bugs
86
+ - Refactor/improve code quality
87
+ - Add tests
88
+ - Documentation
89
+ - Performance optimization
90
+ - Security improvements
91
+
92
+ ### 5. Known Issues
93
+ Input existing bugs and tech debt to create initial tasks.
94
+
95
+ ### 6. Coding Preferences
96
+ Patterns and conventions your team follows.
97
+
98
+ ---
99
+
100
+ ## What Gets Generated
101
+
102
+ ### project.md (Specification)
103
+
104
+ ```markdown
105
+ # Project Specification: my-app
106
+
107
+ ## Overview
108
+ A web application for managing tasks...
109
+
110
+ ## Tech Stack
111
+ | Component | Technology |
112
+ |-----------|------------|
113
+ | Language | TypeScript |
114
+ | Framework | Next.js |
115
+ | Database | PostgreSQL (Prisma) |
116
+
117
+ ## Goals
118
+ - Add new features
119
+ - Fix bugs
120
+
121
+ ## Known Issues / Tech Debt
122
+ - Login sometimes fails on slow connections
123
+ - Dashboard needs performance optimization
124
+ ```
125
+
126
+ ### app-map.md (Component Registry)
127
+
128
+ ```markdown
129
+ # App Map - Component Registry
130
+
131
+ ## Screens / Pages
132
+ | Screen | Route | Description |
133
+ |--------|-------|-------------|
134
+ | Login | /login | User authentication |
135
+ | Dashboard | /dashboard | Main dashboard |
136
+
137
+ ## Components
138
+ | Component | Path | Type |
139
+ |-----------|------|------|
140
+ | Button | src/components/Button.tsx | UI |
141
+ | Modal | src/components/Modal.tsx | UI |
142
+
143
+ ## Modules / Services
144
+ | Module | Path | Description |
145
+ |--------|------|-------------|
146
+ | auth | src/services/auth.ts | Authentication |
147
+ ```
148
+
149
+ ### decisions.md (Patterns)
150
+
151
+ ```markdown
152
+ # Project Decisions
153
+
154
+ ## Tech Stack
155
+ - **Language**: TypeScript
156
+ - **Framework**: Next.js
157
+ - **Database**: PostgreSQL (Prisma)
158
+
159
+ ## Conventions
160
+ - Use functional components
161
+ - Services should be thin
162
+ - All API calls through axios wrapper
163
+ ```
164
+
165
+ ### Initial Tasks
166
+
167
+ From known issues:
168
+ ```json
169
+ {
170
+ "tasks": [
171
+ {
172
+ "id": "TASK-001",
173
+ "title": "Login sometimes fails on slow connections",
174
+ "type": "bugfix"
175
+ },
176
+ {
177
+ "id": "TASK-002",
178
+ "title": "Dashboard needs performance optimization",
179
+ "type": "refactor"
180
+ }
181
+ ]
182
+ }
183
+ ```
184
+
185
+ ---
186
+
187
+ ## Skill Suggestions
188
+
189
+ Based on detected framework, suggests relevant skills:
190
+
191
+ | Framework | Suggested Skill |
192
+ |-----------|----------------|
193
+ | NestJS | `nestjs` |
194
+ | React/Next.js | `react` |
195
+ | FastAPI/Django/Flask | `python` |
196
+
197
+ Skills are added to `config.json`:
198
+ ```json
199
+ {
200
+ "skills": {
201
+ "installed": ["react"]
202
+ }
203
+ }
204
+ ```
205
+
206
+ ---
207
+
208
+ ## Post-Onboarding Steps
209
+
210
+ ### 1. Review Generated Files
211
+
212
+ ```bash
213
+ # Check detected components
214
+ cat .workflow/state/app-map.md
215
+
216
+ # Check detected patterns
217
+ cat .workflow/state/decisions.md
218
+
219
+ # Check project spec
220
+ cat .workflow/specs/project.md
221
+ ```
222
+
223
+ ### 2. Fill in Gaps
224
+
225
+ Edit files to add:
226
+ - Missing components
227
+ - Team-specific patterns
228
+ - Architectural decisions
229
+
230
+ ### 3. Verify Health
231
+
232
+ ```bash
233
+ /wogi-health
234
+ ```
235
+
236
+ ### 4. View Tasks
237
+
238
+ ```bash
239
+ /wogi-ready
240
+ ```
241
+
242
+ ### 5. Start Working
243
+
244
+ ```bash
245
+ /wogi-start TASK-001
246
+ ```
247
+
248
+ ---
249
+
250
+ ## Re-running Onboarding
251
+
252
+ If you need to update the analysis:
253
+
254
+ ```bash
255
+ ./scripts/flow onboard
256
+ # Answer "y" when asked to re-run
257
+ ```
258
+
259
+ This will:
260
+ - Re-detect tech stack
261
+ - Re-scan components
262
+ - Preserve your customizations (with option to overwrite)
263
+
264
+ ---
265
+
266
+ ## Hybrid Mode Setup
267
+
268
+ Onboarding also configures hybrid mode context:
269
+
270
+ ```json
271
+ {
272
+ "hybrid": {
273
+ "projectContext": {
274
+ "uiFramework": "react",
275
+ "stylingApproach": "tailwind",
276
+ "componentDirs": ["src/components"],
277
+ "availableComponents": {...}
278
+ }
279
+ }
280
+ }
281
+ ```
282
+
283
+ This helps local LLMs understand your project structure.
284
+
285
+ ---
286
+
287
+ ## Troubleshooting
288
+
289
+ ### Components Not Detected
290
+
291
+ Check directory patterns in config:
292
+ ```json
293
+ {
294
+ "componentIndex": {
295
+ "directories": ["src/components", "src/hooks", "src/services"]
296
+ }
297
+ }
298
+ ```
299
+
300
+ ### Framework Not Detected
301
+
302
+ Verify dependencies are in package.json or requirements.txt.
303
+
304
+ ### PRD Not Found
305
+
306
+ Specify path manually when prompted, or use:
307
+ ```bash
308
+ # Paste PRD directly during interview
309
+ ```
310
+
311
+ ---
312
+
313
+ ## Related
314
+
315
+ - [Installation](./installation.md) - For new projects
316
+ - [Component Indexing](./component-indexing.md) - Auto-scanning details
317
+ - [Framework Detection](./framework-detection.md) - Skill auto-creation