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,241 @@
1
+ # /wogi-roadmap - Roadmap Management
2
+
3
+ View and manage the project roadmap for deferred work and future phases.
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ /wogi-roadmap # Show roadmap summary
9
+ /wogi-roadmap add "title" # Add item to roadmap
10
+ /wogi-roadmap validate "title" # Validate dependencies before implementing
11
+ /wogi-roadmap promote "title" # Move item to ready.json as a story
12
+ ```
13
+
14
+ ## When to Use
15
+
16
+ - **View deferred work**: See what's planned for later
17
+ - **Add deferred phases**: When breaking large features into phases
18
+ - **Before implementing**: Validate dependencies are still valid
19
+ - **Promote to active**: When ready to implement a deferred item
20
+
21
+ ## Steps
22
+
23
+ ### Show Roadmap (Default)
24
+
25
+ 1. Read `.workflow/roadmap.md`
26
+ 2. Parse phases: Now, Next, Later, Ideas, Completed
27
+ 3. Display summary with item counts per phase
28
+ 4. Show dependencies for items in Later phase
29
+
30
+ **Output format:**
31
+ ```
32
+ ==================================================
33
+ Project Roadmap
34
+ ==================================================
35
+
36
+ > Now (Current Focus) (2)
37
+ Authentication system ← Phase 0: Setup
38
+ User profile page
39
+
40
+ - Next (Ready to Plan) (3)
41
+ Password reset flow ← Phase 1: Auth
42
+ Email verification
43
+ OAuth integration ← Phase 1: Auth
44
+
45
+ o Later (Future Phases) (4)
46
+ Two-factor auth ← Phase 2: Security
47
+ Session management ← Phase 2: Security
48
+ API rate limiting
49
+ Audit logging ← Phase 3: Compliance
50
+
51
+ ? Ideas (Exploration) (1)
52
+ Single sign-on
53
+
54
+ File: .workflow/roadmap.md
55
+ Commands: add, validate, promote, move
56
+ ```
57
+
58
+ ### Add Item
59
+
60
+ When user runs `/wogi-roadmap add "Feature name"`:
61
+
62
+ 1. Parse optional flags:
63
+ - `--phase=<now|next|later|ideas>` (default: later)
64
+ - `--depends="Parent phase"`
65
+ - `--assumes="assumption1, assumption2"`
66
+ - `--files="path/to/file.ts, other/file.ts"`
67
+
68
+ 2. Create item block:
69
+ ```markdown
70
+ ### [Feature Name]
71
+
72
+ **Status:** Deferred
73
+ **Created:** [TODAY]
74
+ **Depends On:** [from --depends or ask user]
75
+
76
+ **Assumes:**
77
+ - [from --assumes or ask user]
78
+
79
+ **Key Files:**
80
+ - [from --files or ask user]
81
+
82
+ **Context When Deferred:**
83
+ [Ask user or infer from current work]
84
+
85
+ **Implementation Plan:**
86
+ 1. [Ask user]
87
+ ```
88
+
89
+ 3. Insert into appropriate phase section in `.workflow/roadmap.md`
90
+
91
+ 4. Confirm: "Added '[Feature]' to [phase] phase"
92
+
93
+ ### Validate Item
94
+
95
+ When user runs `/wogi-roadmap validate "Feature name"`:
96
+
97
+ 1. Find the item in roadmap.md
98
+ 2. Check each dependency:
99
+
100
+ **Depends On:**
101
+ - Is parent phase/feature marked complete?
102
+ - Check both roadmap.md (Completed section) and ready.json (recentlyCompleted)
103
+
104
+ **Key Files:**
105
+ - Do the listed files still exist?
106
+ - (Advanced) Do they still have expected exports/interfaces?
107
+
108
+ **Assumes:**
109
+ - Flag assumptions for AI review
110
+ - Look for contradicting patterns in codebase
111
+
112
+ 3. Report results:
113
+
114
+ **If valid:**
115
+ ```
116
+ Validating: OAuth integration
117
+
118
+ + All dependencies valid
119
+ + Ready to implement
120
+ ```
121
+
122
+ **If issues found:**
123
+ ```
124
+ Validating: OAuth integration
125
+
126
+ Issues (blocking):
127
+ - Key file not found: src/auth/jwt.ts
128
+
129
+ Warnings (review recommended):
130
+ - Dependency not marked complete: Phase 1: Auth
131
+ - Assumption needs verification: Using JWT tokens
132
+
133
+ Cannot proceed until issues are resolved.
134
+ ```
135
+
136
+ ### Promote Item
137
+
138
+ When user runs `/wogi-roadmap promote "Feature name"`:
139
+
140
+ 1. Validate the item first (run validate step)
141
+ 2. If validation fails, show issues and ask to proceed anyway
142
+ 3. If valid (or user confirms):
143
+ - Extract implementation plan
144
+ - Run `/wogi-story "[Feature name]"` to create story
145
+ - Move item to "Completed" section in roadmap
146
+ - Add note: "Promoted to story on [DATE]"
147
+
148
+ ### Move Item
149
+
150
+ When user runs `/wogi-roadmap move "Feature" --to=next`:
151
+
152
+ 1. Find item in current phase
153
+ 2. Remove from current location
154
+ 3. Insert into target phase
155
+ 4. Confirm: "Moved '[Feature]' from [old] to [new]"
156
+
157
+ ## AI Behavior Integration
158
+
159
+ ### When User Requests Large Feature
160
+
161
+ If you detect a request that would require 5+ tasks or multiple phases:
162
+
163
+ 1. Break down into phases
164
+ 2. Present breakdown to user
165
+ 3. If user agrees to defer later phases:
166
+ ```javascript
167
+ // For each deferred phase:
168
+ const item = {
169
+ title: "Phase N: Feature description",
170
+ dependsOn: "Phase N-1: Previous phase",
171
+ assumes: [
172
+ "Key assumption from current implementation",
173
+ "Another architectural decision"
174
+ ],
175
+ keyFiles: [
176
+ "src/relevant/file.ts - Contains X interface",
177
+ "src/other/file.ts - Has Y dependency"
178
+ ],
179
+ context: "Current state description",
180
+ plan: ["Step 1", "Step 2", "Step 3"]
181
+ };
182
+
183
+ // Add to roadmap
184
+ const { addItem } = require('./scripts/flow-roadmap');
185
+ addItem(item, 'later');
186
+ ```
187
+
188
+ 4. Inform user: "Added N items to your roadmap. Run `/wogi-roadmap` to see them."
189
+
190
+ ### When Modifying Key Files
191
+
192
+ Before modifying any file, check if it's listed in roadmap items:
193
+
194
+ ```javascript
195
+ const { parseRoadmap } = require('./scripts/flow-roadmap');
196
+ const roadmap = parseRoadmap();
197
+
198
+ // Collect all key files from all phases
199
+ const keyFiles = [];
200
+ for (const [phase, items] of Object.entries(roadmap.phases)) {
201
+ for (const item of items) {
202
+ if (item.keyFiles) {
203
+ keyFiles.push(...item.keyFiles.map(f => ({
204
+ file: f,
205
+ item: item.title,
206
+ phase
207
+ })));
208
+ }
209
+ }
210
+ }
211
+
212
+ // Check if target file is in list
213
+ const affected = keyFiles.filter(k =>
214
+ k.file.includes(targetFile) || targetFile.includes(k.file.split(' - ')[0])
215
+ );
216
+
217
+ if (affected.length > 0) {
218
+ // Warn user
219
+ }
220
+ ```
221
+
222
+ ## If Roadmap Doesn't Exist
223
+
224
+ ```
225
+ No roadmap found for this project.
226
+
227
+ Would you like me to create one? This helps track:
228
+ - Deferred work from large features
229
+ - Future phases and their dependencies
230
+ - Ideas for later exploration
231
+
232
+ [Yes, create roadmap] [No thanks]
233
+ ```
234
+
235
+ If yes, copy template from `templates/roadmap.md` to `.workflow/roadmap.md`.
236
+
237
+ ## Related Commands
238
+
239
+ - `/wogi-story` - Create detailed story with acceptance criteria
240
+ - `/wogi-ready` - View tasks ready to implement
241
+ - `/wogi-status` - Overall project status
@@ -0,0 +1,104 @@
1
+ View and manage project coding rules.
2
+
3
+ Usage:
4
+ - `/wogi-rules` - List all rules
5
+ - `/wogi-rules [name]` - View specific rule
6
+ - `/wogi-rules sync` - Sync decisions.md to .claude/rules/
7
+
8
+ ## How Rules Work (v2.1.0)
9
+
10
+ Rules are **auto-generated** from `.workflow/state/decisions.md`:
11
+
12
+ ```
13
+ decisions.md (Source of Truth) .claude/rules/ (Auto-Generated)
14
+ ├── ## Component Architecture → component-architecture.md
15
+ ├── ## Coding Standards → coding-standards.md
16
+ ├── ## API Patterns → api-patterns.md
17
+ └── ## 2026-01-02 → 2026-01-02.md
18
+ ```
19
+
20
+ **Key Points:**
21
+ - Edit `decisions.md` to add/change rules
22
+ - `.claude/rules/` is auto-generated (don't edit directly)
23
+ - Rules sync automatically when decisions.md changes
24
+ - Path-scoped rules only load when working on relevant files
25
+
26
+ ## Manual Sync
27
+
28
+ If rules seem out of date:
29
+ ```bash
30
+ node scripts/flow-rules-sync.js
31
+ ```
32
+
33
+ Or use this command:
34
+ ```
35
+ /wogi-rules sync
36
+ ```
37
+
38
+ ## Path Scoping
39
+
40
+ Rules are automatically scoped based on section keywords:
41
+
42
+ | Keyword in Section | Files Loaded For |
43
+ |--------------------|------------------|
44
+ | component, ui | `src/components/**/*` |
45
+ | api, backend | `src/api/**/*` |
46
+ | test, testing | `**/*.{test,spec}.*` |
47
+ | style, css | `**/*.{css,scss}` |
48
+ | database, entity | `src/**/*.entity.*` |
49
+
50
+ ## Output - List
51
+
52
+ ```
53
+ Project Rules
54
+
55
+ Source: .workflow/state/decisions.md
56
+
57
+ Generated Rules (.claude/rules/):
58
+ - component-architecture.md (paths: src/components/**/*)
59
+ - coding-standards.md
60
+ - api-patterns.md (paths: src/api/**/*)
61
+ - 2026-01-02.md
62
+
63
+ Last synced: 2026-01-08
64
+
65
+ Use: /wogi-rules [name] to view a rule
66
+ /wogi-rules sync to regenerate rules
67
+ ```
68
+
69
+ ## Adding Rules
70
+
71
+ To add a new rule:
72
+
73
+ 1. Add a new `## Section` to decisions.md:
74
+ ```markdown
75
+ ## API Validation
76
+
77
+ - All API endpoints must validate input
78
+ - Use Zod schemas for request validation
79
+ - Return 400 for validation errors
80
+ ```
81
+
82
+ 2. Rules auto-sync on next decisions.md update, or run:
83
+ ```
84
+ /wogi-rules sync
85
+ ```
86
+
87
+ ## Execution
88
+
89
+ When user runs `/wogi-rules`:
90
+
91
+ 1. List rules in `.claude/rules/`
92
+ 2. Show source (decisions.md)
93
+ 3. Show path scoping for each rule
94
+ 4. Show last sync time
95
+
96
+ When user runs `/wogi-rules sync`:
97
+
98
+ 1. Run `node scripts/flow-rules-sync.js`
99
+ 2. Show updated rules
100
+
101
+ When user runs `/wogi-rules [name]`:
102
+
103
+ 1. Read `.claude/rules/[name].md`
104
+ 2. Display content
@@ -0,0 +1,33 @@
1
+ Search the request log by tag or keyword. Provide search term: `/wogi-search #screen:login`
2
+
3
+ Search `.workflow/state/request-log.md` for:
4
+ - Tags: `#screen:name`, `#component:name`, `#feature:name`, `#bug:id`
5
+ - Keywords: Any text in request or result fields
6
+
7
+ Output matching entries with context:
8
+ ```
9
+ 🔍 Search: #screen:login
10
+
11
+ Found 3 entries:
12
+
13
+ R-045 | 2024-01-15 14:32
14
+ Type: change
15
+ Tags: #screen:login #component:AuthForm
16
+ Request: "Add forgot password link"
17
+ Result: Added link, routes to /forgot-password
18
+ Files: LoginScreen.tsx, routes.ts
19
+
20
+ R-038 | 2024-01-14 09:15
21
+ Type: fix
22
+ Tags: #screen:login #bug:BUG-003
23
+ Request: "Fix password visibility toggle"
24
+ Result: Fixed icon state, added aria-label
25
+ Files: LoginForm.tsx
26
+
27
+ R-032 | 2024-01-13 11:20
28
+ Type: new
29
+ Tags: #screen:login
30
+ Request: "Create login screen"
31
+ Result: Basic login form with email/password
32
+ Files: LoginScreen.tsx, LoginForm.tsx
33
+ ```
@@ -0,0 +1,49 @@
1
+ Properly end a work session.
2
+
3
+ Steps:
4
+ 1. **Check request-log** - Ensure all changes are logged
5
+ 2. **Check log size** - If over 50 entries, suggest archiving
6
+ 3. **Check app-map** - If new components created, verify they're added
7
+ 4. **Update progress.md** - Add handoff notes for next session
8
+ 5. **Commit changes** - Stage and commit all workflow files
9
+ 6. **Offer to push** - Ask if should push to remote
10
+
11
+ Output:
12
+ ```
13
+ 📤 Ending Session
14
+
15
+ Checking request-log...
16
+ ✓ 3 entries added today
17
+ ⚠ Log has 67 entries - consider: ./scripts/flow archive --keep 50
18
+
19
+ Checking app-map...
20
+ ✓ 1 new component added (ProfileCard)
21
+
22
+ Updating progress.md...
23
+ Added handoff notes
24
+
25
+ Committing...
26
+ ✓ Committed: "chore: End session - 3 changes logged"
27
+
28
+ Push to remote? (y/n)
29
+ ```
30
+
31
+ Progress.md handoff format:
32
+ ```markdown
33
+ ## Session End: 2024-01-15 17:30
34
+
35
+ ### Completed
36
+ - TASK-012: Forgot password link
37
+ - Fixed BUG-004
38
+
39
+ ### In Progress
40
+ - TASK-015: User profile (70% done)
41
+
42
+ ### Next Session
43
+ - Finish profile page styling
44
+ - Start TASK-018
45
+
46
+ ### Notes
47
+ - API endpoint for preferences not ready yet
48
+ - Decided to use shadcn/ui for modal
49
+ ```
@@ -0,0 +1,151 @@
1
+ Interactive tech stack wizard that configures your project and generates skills.
2
+
3
+ Usage:
4
+ - `/wogi-setup-stack` - Run interactive wizard
5
+ - `/wogi-setup-stack --fetch-docs` - Fetch documentation for existing skills via Context7
6
+ - `/wogi-setup-stack --regenerate` - Regenerate skills from saved selections
7
+
8
+ ## What This Does
9
+
10
+ 1. **Interactive Wizard** - Guides you through selecting:
11
+ - Project type (web, mobile, backend, full-stack, CLI, library)
12
+ - Frontend framework (React, Next.js, Vue, Svelte, Angular, etc.)
13
+ - Backend framework (Express, NestJS, FastAPI, Django, etc.)
14
+ - State management (Redux, Zustand, TanStack Query, Pinia, etc.)
15
+ - Styling (Tailwind, CSS Modules, Styled Components, etc.)
16
+ - Database & ORM (PostgreSQL, MongoDB, Prisma, etc.)
17
+ - Testing (Jest, Vitest, Playwright, Cypress, etc.)
18
+ - Additional tools (Docker, GraphQL, Auth, etc.)
19
+
20
+ 2. **"Choose Best For Me"** - Enter `?` at any prompt for recommended defaults:
21
+ - Frontend: Next.js
22
+ - State: TanStack Query + Zustand
23
+ - Styling: Tailwind + shadcn/ui
24
+ - Backend: NestJS (TS) or FastAPI (Python)
25
+ - Database: PostgreSQL + Prisma
26
+ - Testing: Vitest + Playwright
27
+
28
+ 3. **Skills Generation** - Creates skill files for each technology:
29
+ - `skill.md` - Overview and when to apply
30
+ - `knowledge/patterns.md` - Best practices
31
+ - `knowledge/anti-patterns.md` - Common mistakes
32
+ - `rules/conventions.md` - Coding standards
33
+
34
+ 4. **Skills Index** - Creates `.claude/skills/skills-index.json` for easy access
35
+
36
+ 5. **Updates**:
37
+ - Adds tech stack to `decisions.md`
38
+ - Updates `config.json` with installed skills
39
+
40
+ ## Running the Wizard
41
+
42
+ ```bash
43
+ # Via Claude Code command
44
+ /wogi-setup-stack
45
+
46
+ # Or directly
47
+ node scripts/flow-stack-wizard.js
48
+ ```
49
+
50
+ ## Output
51
+
52
+ ```
53
+ ============================================================
54
+ Tech Stack Wizard
55
+ Configure your project and generate coding patterns
56
+ ============================================================
57
+
58
+ What type of project is this?
59
+ (1) Web Application
60
+ (2) Mobile App (React Native / Flutter / Native)
61
+ ...
62
+
63
+ Your choice: 5
64
+
65
+ What's your focus?
66
+ (1) Frontend only
67
+ (2) Backend only
68
+ (3) Full-stack (both)
69
+
70
+ Your choice: 3
71
+
72
+ ...
73
+
74
+ ============================================================
75
+ Your Tech Stack
76
+ ============================================================
77
+
78
+ Project Type: Full-Stack (Frontend + Backend)
79
+ Frontend: Next.js
80
+ State Management: TanStack Query (server state)
81
+ Styling: shadcn/ui + Tailwind
82
+ Backend: NestJS
83
+ Database: Prisma
84
+
85
+ Generate skills and fetch documentation? [Y/n] y
86
+
87
+ Generating skills for:
88
+ - Next.js
89
+ - TanStack Query
90
+ - Tailwind CSS
91
+ - NestJS
92
+ - Prisma
93
+
94
+ Processing Next.js...
95
+ ✓ Created: .claude/skills/nextjs
96
+
97
+ ...
98
+
99
+ ✓ Created: .claude/skills/skills-index.json
100
+ ✓ Updated: .workflow/state/decisions.md
101
+ ✓ Updated: .workflow/config.json
102
+
103
+ ✓ Skills generated successfully!
104
+ ```
105
+
106
+ ## Fetching Documentation
107
+
108
+ After running the wizard, populate skills with real documentation:
109
+
110
+ ```
111
+ /wogi-setup-stack --fetch-docs
112
+ ```
113
+
114
+ This uses Context7 MCP to fetch latest docs and extract:
115
+ - Best practices
116
+ - Common patterns
117
+ - Anti-patterns
118
+ - Code examples
119
+
120
+ ## Skills Index Structure
121
+
122
+ ```json
123
+ {
124
+ "version": "1.0",
125
+ "generated": "2024-01-06T12:00:00Z",
126
+ "skills": {
127
+ "nextjs": {
128
+ "path": ".claude/skills/nextjs/",
129
+ "covers": ["next.js", "app router", "server components"],
130
+ "sections": {
131
+ "patterns": "knowledge/patterns.md",
132
+ "anti-patterns": "knowledge/anti-patterns.md"
133
+ }
134
+ }
135
+ },
136
+ "projectStack": ["nextjs", "tailwind", "prisma"]
137
+ }
138
+ ```
139
+
140
+ ## Re-running the Wizard
141
+
142
+ You can run the wizard again to:
143
+ - Add new technologies
144
+ - Change existing selections
145
+ - Regenerate skills with updated documentation
146
+
147
+ Existing learnings in `knowledge/learnings.md` are preserved.
148
+
149
+ ## Integration
150
+
151
+ Run `/wogi-setup-stack` anytime after installing WogiFlow to configure your tech stack.
@@ -0,0 +1,66 @@
1
+ ---
2
+ description: Manually trigger skill learning extraction from recent changes
3
+ ---
4
+
5
+ # Skill Learning
6
+
7
+ This command extracts learnings from recent work and updates relevant skills.
8
+
9
+ ## What It Does
10
+
11
+ 1. Analyzes changed files (staged or recent commits)
12
+ 2. Matches files to installed skills by pattern
13
+ 3. Updates skill knowledge files:
14
+ - `knowledge/learnings.md` - What was done
15
+ - `knowledge/patterns.md` - What worked (on success)
16
+ - `knowledge/anti-patterns.md` - What to avoid (on errors)
17
+ 4. Logs unmatched files to `feedback-patterns.md`
18
+
19
+ ## When to Use
20
+
21
+ This runs automatically on:
22
+ - **Pre-commit hook** (if hooks enabled)
23
+ - **Session end** (`/wogi-session-end`)
24
+ - **Context compaction** (`/wogi-compact`)
25
+
26
+ Use this command manually when:
27
+ - You want to extract learnings mid-session
28
+ - After fixing a significant bug
29
+ - After discovering a new pattern
30
+
31
+ ## Execute
32
+
33
+ ```bash
34
+ # Manual extraction from current changes
35
+ node scripts/flow-skill-learn.js --trigger=manual
36
+
37
+ # Target specific skill
38
+ node scripts/flow-skill-learn.js --skill=nestjs
39
+
40
+ # Preview without making changes
41
+ node scripts/flow-skill-learn.js --dry-run --verbose
42
+ ```
43
+
44
+ ## Configuration
45
+
46
+ Skill learning is controlled by `config.json`:
47
+
48
+ ```json
49
+ {
50
+ "skillLearning": {
51
+ "enabled": true,
52
+ "autoExtract": true,
53
+ "triggers": {
54
+ "onCommit": true,
55
+ "onTaskComplete": true,
56
+ "onCompact": true
57
+ }
58
+ }
59
+ }
60
+ ```
61
+
62
+ ## Related Commands
63
+
64
+ - `/wogi-skills` - List installed skills
65
+ - `/wogi-skill-create` - Create a new skill
66
+ - `/wogi-session-end` - End session (includes learning extraction)