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,343 @@
|
|
|
1
|
+
# Wogi Flow Commands Reference
|
|
2
|
+
|
|
3
|
+
Complete reference for all slash commands and CLI commands.
|
|
4
|
+
|
|
5
|
+
## Slash Commands
|
|
6
|
+
|
|
7
|
+
When user types these commands, execute the corresponding action immediately.
|
|
8
|
+
|
|
9
|
+
### Task Management
|
|
10
|
+
|
|
11
|
+
| Command | Action |
|
|
12
|
+
|---------|--------|
|
|
13
|
+
| `/wogi-ready` | Read `ready.json`, show tasks organized by status (ready, in progress, blocked). Summarize what's available to work on. |
|
|
14
|
+
| `/wogi-start [id]` | **Self-completing loop.** Load context, decompose into TodoWrite checklist, implement each scenario with self-verification, run quality gates, auto-complete when truly done. Use `--no-loop` for old behavior. |
|
|
15
|
+
| `/wogi-done [id]` | Manual completion (optional). Check quality gates, update ready.json, commit. Usually not needed since `/wogi-start` auto-completes. |
|
|
16
|
+
| `/wogi-bulk` | Execute multiple tasks in sequence. Order by dependencies + priority. Follow all Task Execution Rules for each. Compact between tasks. Options: number, task IDs, --auto, --plan. |
|
|
17
|
+
| `/wogi-status` | Show project overview: task counts, active features, bugs, component count, git status, recent request-log entries. |
|
|
18
|
+
| `/wogi-deps [id]` | Find the task in tasks.json, show what it depends on and what depends on it. |
|
|
19
|
+
|
|
20
|
+
### Story & Feature Creation
|
|
21
|
+
|
|
22
|
+
| Command | Action |
|
|
23
|
+
|---------|--------|
|
|
24
|
+
| `/wogi-story [title]` | Create a detailed story. Simple stories go flat in `.workflow/changes/`. Use `--deep` for decomposition which creates a feature folder. Auto-archived when completed. |
|
|
25
|
+
| `/wogi-bug [title]` | Create bug report in `.workflow/bugs/` with next BUG-XXX number. Use bug-report template. |
|
|
26
|
+
|
|
27
|
+
### Workflow Management
|
|
28
|
+
|
|
29
|
+
| Command | Action |
|
|
30
|
+
|---------|--------|
|
|
31
|
+
| `/wogi-review` | **Comprehensive code review.** First runs verification gates (lint, typecheck, test), then 3 parallel AI agents: Code & Logic, Security, Architecture. Triggered by command or "please review". Options: `--commits N`, `--staged`, `--skip-verify`, `--verify-only`, `--security-only`, `--quick`. |
|
|
32
|
+
| `/wogi-health` | Check all workflow files exist and are valid. Verify config.json and ready.json are valid JSON. Check app-map sync with src/components. Report issues. |
|
|
33
|
+
| `/wogi-standup` | Generate standup summary: what was done (from request-log), what's in progress, what's next, any blockers. |
|
|
34
|
+
| `/wogi-session-end` | End session: update progress, analyze session for learnings (auto-apply 90%+ confidence patterns), archive logs, offer tech debt cleanup, commit and push. |
|
|
35
|
+
| `/wogi-init` | Initialize workflow structure. Create all directories and state files. Use for new projects. |
|
|
36
|
+
|
|
37
|
+
### Component Management
|
|
38
|
+
|
|
39
|
+
| Command | Action |
|
|
40
|
+
|---------|--------|
|
|
41
|
+
| `/wogi-map` | Show app-map.md contents - all screens, modals, components. |
|
|
42
|
+
| `/wogi-map-add [name] [path] [variants]` | Add component to app-map.md. Create detail file in `.workflow/state/components/`. |
|
|
43
|
+
| `/wogi-map-scan [dir]` | Scan directory for component files. Compare with app-map. Report unmapped components. |
|
|
44
|
+
| `/wogi-map-check` | Check if mapped components still exist in codebase. Report drift. |
|
|
45
|
+
| `/wogi-map-index` | Show auto-generated component index summary. |
|
|
46
|
+
| `/wogi-map-index scan` | Rescan codebase and regenerate component-index.json. |
|
|
47
|
+
| `/wogi-map-sync` | Compare auto-generated index with curated app-map. Show what's missing, what's stale. Offer to update. |
|
|
48
|
+
|
|
49
|
+
### Code Traces
|
|
50
|
+
|
|
51
|
+
| Command | Action |
|
|
52
|
+
|---------|--------|
|
|
53
|
+
| `/wogi-trace [prompt]` | Generate task-focused code trace. Analyzes codebase to show execution flow, components involved, mermaid diagram. Saves to `.workflow/traces/`. |
|
|
54
|
+
| `/wogi-trace list` | List all saved traces. |
|
|
55
|
+
| `/wogi-trace [name]` | Load and show an existing trace. |
|
|
56
|
+
|
|
57
|
+
### Search & Context
|
|
58
|
+
|
|
59
|
+
| Command | Action |
|
|
60
|
+
|---------|--------|
|
|
61
|
+
| `/wogi-search [tag]` | Search request-log.md for entries with the given tag. Show matching entries with context. |
|
|
62
|
+
| `/wogi-context [id]` | Load all context for a task: story, product context (from product.md), related request-log entries, component docs from app-map, decisions.md patterns. |
|
|
63
|
+
|
|
64
|
+
### Export & Import
|
|
65
|
+
|
|
66
|
+
| Command | Action |
|
|
67
|
+
|---------|--------|
|
|
68
|
+
| `/wogi-export [name]` | Export CLAUDE.md, agents/, config.json to a shareable zip. Ask about including decisions.md. |
|
|
69
|
+
| `/wogi-import [file]` | Import team profile. Merge or replace workflow config. Restart required after. |
|
|
70
|
+
| `/wogi-changelog` | Generate CHANGELOG.md from request-log entries. Group by type (added, changed, fixed). |
|
|
71
|
+
|
|
72
|
+
### Browser Testing (Claude Extension)
|
|
73
|
+
|
|
74
|
+
| Command | Action |
|
|
75
|
+
|---------|--------|
|
|
76
|
+
| `/wogi-test-browser [flow]` | Open browser and execute test flow. Navigate to URLs, interact with elements, verify outcomes. Report pass/fail with screenshots. |
|
|
77
|
+
| `/wogi-test-browser all` | Run all test flows defined in `.workflow/tests/flows/`. |
|
|
78
|
+
|
|
79
|
+
### Status Line
|
|
80
|
+
|
|
81
|
+
| Command | Action |
|
|
82
|
+
|---------|--------|
|
|
83
|
+
| `/wogi-statusline-setup` | Configure Claude Code's status line to show task info and context %. Opens interactive wizard or use `--format` flag. |
|
|
84
|
+
|
|
85
|
+
### Configuration
|
|
86
|
+
|
|
87
|
+
| Command | Action |
|
|
88
|
+
|---------|--------|
|
|
89
|
+
| `/wogi-config` | Show current config.json settings summary. |
|
|
90
|
+
| `/wogi-config storybook on` | Enable auto-generation of Storybook stories for new components. |
|
|
91
|
+
| `/wogi-config storybook off` | Disable Storybook auto-generation. |
|
|
92
|
+
| `/wogi-config hooks on` | Enable pre-commit hooks. Runs `flow setup-hooks install`. |
|
|
93
|
+
| `/wogi-config hooks off` | Disable pre-commit hooks. |
|
|
94
|
+
| `/wogi-config tests-before-commit on/off` | Toggle running tests before commits. |
|
|
95
|
+
| `/wogi-config phases on/off` | Toggle phase-based planning. |
|
|
96
|
+
|
|
97
|
+
### Skills & Rules
|
|
98
|
+
|
|
99
|
+
| Command | Action |
|
|
100
|
+
|---------|--------|
|
|
101
|
+
| `/wogi-skills` | List installed and available skills. Show what commands each skill provides. |
|
|
102
|
+
| `/wogi-skills add [name]` | Install a skill package. Copy to `.claude/skills/`, update config.json. |
|
|
103
|
+
| `/wogi-skills remove [name]` | Remove installed skill. |
|
|
104
|
+
| `/wogi-skills info [name]` | Show skill details, commands, templates. |
|
|
105
|
+
| `/wogi-rules` | List all coding rules from `.claude/rules/` and installed skills. |
|
|
106
|
+
| `/wogi-rules [name]` | View specific rule file. |
|
|
107
|
+
| `/wogi-rules add [name]` | Create new rule file. |
|
|
108
|
+
|
|
109
|
+
### Hybrid Mode (Token Savings)
|
|
110
|
+
|
|
111
|
+
| Command | Action |
|
|
112
|
+
|---------|--------|
|
|
113
|
+
| `/wogi-hybrid-setup` | **Full setup for new projects.** Generates project-specific templates by analyzing codebase, then runs interactive setup to configure local LLM. |
|
|
114
|
+
| `/wogi-hybrid` | Enable hybrid mode. Runs interactive setup to detect local LLM providers. |
|
|
115
|
+
| `/wogi-hybrid-off` | Disable hybrid mode. Returns to normal Claude-only execution. |
|
|
116
|
+
| `/wogi-hybrid-status` | Show current hybrid mode configuration. |
|
|
117
|
+
| `/wogi-hybrid-edit` | Edit the current execution plan before running. |
|
|
118
|
+
|
|
119
|
+
### Durable Sessions (v2.0)
|
|
120
|
+
|
|
121
|
+
| Command | Action |
|
|
122
|
+
|---------|--------|
|
|
123
|
+
| `/wogi-suspend` | Suspend current task. Options: `--wait-ci`, `--review`, `--rate-limit N`. |
|
|
124
|
+
| `/wogi-resume` | Resume suspended task. Options: `--status`, `--approve`. |
|
|
125
|
+
| `/wogi-session-end` | End session with learning analysis, memory management, tech debt cleanup, commit and push. |
|
|
126
|
+
|
|
127
|
+
### Memory & Knowledge
|
|
128
|
+
| Command | Action |
|
|
129
|
+
|---------|--------|
|
|
130
|
+
| `/wogi-compact` | Run memory compaction. Preview with `--preview`. |
|
|
131
|
+
|
|
132
|
+
### Morning Briefing
|
|
133
|
+
|
|
134
|
+
| Command | Action |
|
|
135
|
+
|---------|--------|
|
|
136
|
+
| `/wogi-morning` | Morning briefing - show where you left off, pending tasks, recent changes. |
|
|
137
|
+
|
|
138
|
+
### Guided Edit
|
|
139
|
+
|
|
140
|
+
| Command | Action |
|
|
141
|
+
|---------|--------|
|
|
142
|
+
| `/wogi-guided-edit` | Guide through multi-file changes step by step. Shows each edit for approval. |
|
|
143
|
+
|
|
144
|
+
### Planning & Documentation
|
|
145
|
+
|
|
146
|
+
| Command | Action |
|
|
147
|
+
|---------|--------|
|
|
148
|
+
| `/wogi-correction [TASK-XXX]` | Create detailed correction report for significant bug fix. |
|
|
149
|
+
| `/wogi-help` | Show all available Wogi Flow commands with descriptions. |
|
|
150
|
+
|
|
151
|
+
## CLI Commands
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Setup
|
|
155
|
+
npm install wogiflow # Install WogiFlow in your project
|
|
156
|
+
npx flow onboard # Analyze existing project & set up context
|
|
157
|
+
|
|
158
|
+
# Task Management
|
|
159
|
+
./scripts/flow ready # See unblocked tasks
|
|
160
|
+
./scripts/flow start TASK-X # Start a task
|
|
161
|
+
./scripts/flow done TASK-X # Complete a task (auto-archives spec)
|
|
162
|
+
./scripts/flow story "title" # Create simple story (flat)
|
|
163
|
+
./scripts/flow story "t" --deep # Create decomposed story (feature folder)
|
|
164
|
+
./scripts/flow bug # Report bug
|
|
165
|
+
./scripts/flow status # Project overview
|
|
166
|
+
./scripts/flow deps TASK-X # Show task dependencies
|
|
167
|
+
|
|
168
|
+
# Workflow
|
|
169
|
+
./scripts/flow morning # Morning briefing
|
|
170
|
+
./scripts/flow health # Check workflow health
|
|
171
|
+
./scripts/flow verify <gate> # Run verification gate (lint, typecheck, test, build)
|
|
172
|
+
./scripts/flow verify all # Run all verification gates
|
|
173
|
+
./scripts/flow regression # Run regression tests
|
|
174
|
+
./scripts/flow regression --all # Test all completed tasks
|
|
175
|
+
./scripts/flow browser-suggest # Suggest browser tests for a task
|
|
176
|
+
./scripts/flow standup # Generate standup summary
|
|
177
|
+
./scripts/flow session-end # End session properly (with learning analysis)
|
|
178
|
+
./scripts/flow session-learning # Analyze session for patterns (standalone)
|
|
179
|
+
./scripts/flow search "#tag" # Search request-log
|
|
180
|
+
./scripts/flow context TASK-X # Load task context
|
|
181
|
+
./scripts/flow export-profile # Export workflow config for team
|
|
182
|
+
./scripts/flow import-profile # Import team config
|
|
183
|
+
./scripts/flow archive # Archive old request-log entries
|
|
184
|
+
./scripts/flow watch # Run file watcher for auto-validation
|
|
185
|
+
|
|
186
|
+
# Durable Sessions (v2.0)
|
|
187
|
+
./scripts/flow suspend # Suspend current task
|
|
188
|
+
./scripts/flow suspend --wait-ci # Suspend waiting for CI
|
|
189
|
+
./scripts/flow suspend --review # Suspend for human review
|
|
190
|
+
./scripts/flow resume # Resume suspended task
|
|
191
|
+
./scripts/flow resume --status # Show suspension status
|
|
192
|
+
./scripts/flow resume --approve # Approve human review
|
|
193
|
+
./scripts/flow session status # Show durable session status
|
|
194
|
+
./scripts/flow session stats # Show session statistics
|
|
195
|
+
./scripts/flow session clear # Clear active session
|
|
196
|
+
|
|
197
|
+
# Loop Enforcement
|
|
198
|
+
./scripts/flow loop status # Show active loop session
|
|
199
|
+
./scripts/flow loop stats # Show loop statistics
|
|
200
|
+
./scripts/flow loop can-exit # Check if current loop can exit
|
|
201
|
+
./scripts/flow loop enable # Enable loop enforcement
|
|
202
|
+
./scripts/flow loop disable # Disable loop enforcement
|
|
203
|
+
|
|
204
|
+
# Components
|
|
205
|
+
./scripts/flow update-map # Add/scan components
|
|
206
|
+
./scripts/flow map-index # Show component index
|
|
207
|
+
./scripts/flow map-index scan # Rescan codebase
|
|
208
|
+
./scripts/flow map-sync # Compare index with app-map
|
|
209
|
+
|
|
210
|
+
# Skills & Learning
|
|
211
|
+
./scripts/flow skill-learn # Extract learnings from recent changes
|
|
212
|
+
./scripts/flow skill-create <n> # Create a new skill
|
|
213
|
+
./scripts/flow skill detect # Detect frameworks in project
|
|
214
|
+
./scripts/flow skill list # List installed skills
|
|
215
|
+
./scripts/flow correct # Capture a correction/learning
|
|
216
|
+
./scripts/flow correct "desc" # Quick mode with description
|
|
217
|
+
./scripts/flow correct list # List recent corrections
|
|
218
|
+
./scripts/flow aggregate # Aggregate learnings across skills
|
|
219
|
+
./scripts/flow aggregate --promote # Interactive promotion wizard
|
|
220
|
+
|
|
221
|
+
# Code Traces
|
|
222
|
+
./scripts/flow trace "prompt" # Generate code trace
|
|
223
|
+
./scripts/flow trace list # List saved traces
|
|
224
|
+
./scripts/flow trace show <name> # Show a saved trace
|
|
225
|
+
|
|
226
|
+
# Run History
|
|
227
|
+
./scripts/flow run-trace start <n> # Start a new traced run
|
|
228
|
+
./scripts/flow run-trace end # End current run
|
|
229
|
+
./scripts/flow history # List recent runs
|
|
230
|
+
./scripts/flow inspect <run-id> # Show run details
|
|
231
|
+
|
|
232
|
+
# Diff Preview
|
|
233
|
+
./scripts/flow diff <f1> <f2> # Show diff between files
|
|
234
|
+
./scripts/flow diff --preview <j> # Preview proposed changes
|
|
235
|
+
./scripts/flow diff --apply <j> # Apply changes from JSON
|
|
236
|
+
./scripts/flow diff --dry-run <j> # Show diff without prompting
|
|
237
|
+
|
|
238
|
+
# Checkpoints
|
|
239
|
+
./scripts/flow checkpoint create # Create manual checkpoint
|
|
240
|
+
./scripts/flow checkpoint list # List all checkpoints
|
|
241
|
+
./scripts/flow checkpoint rollback <id> # Rollback to checkpoint
|
|
242
|
+
./scripts/flow checkpoint cleanup # Remove old checkpoints
|
|
243
|
+
|
|
244
|
+
# Memory & Knowledge./scripts/flow memory search <q> # Search stored facts
|
|
245
|
+
./scripts/flow memory stats # Show memory statistics
|
|
246
|
+
./scripts/flow memory-server # Start MCP memory server
|
|
247
|
+
./scripts/flow entropy # Show memory entropy stats
|
|
248
|
+
./scripts/flow entropy --auto # Auto-compact if entropy high
|
|
249
|
+
./scripts/flow entropy --history # Show entropy history
|
|
250
|
+
./scripts/flow compact-memory # Run full memory compaction
|
|
251
|
+
./scripts/flow compact-memory --preview # Show what would be affected
|
|
252
|
+
./scripts/flow memory-sync # Check patterns for promotion
|
|
253
|
+
./scripts/flow memory-sync --auto # Auto-promote to decisions.md
|
|
254
|
+
./scripts/flow knowledge-route <t> # Detect route for a learning
|
|
255
|
+
./scripts/flow knowledge-route store # Store a learning with route
|
|
256
|
+
./scripts/flow log-manager status # Show request-log statistics
|
|
257
|
+
./scripts/flow log-manager archive # Archive old log entries
|
|
258
|
+
|
|
259
|
+
# Hybrid Mode
|
|
260
|
+
./scripts/flow hybrid setup # Full setup (templates + config)
|
|
261
|
+
./scripts/flow hybrid enable # Enable hybrid mode
|
|
262
|
+
./scripts/flow hybrid disable # Disable hybrid mode
|
|
263
|
+
./scripts/flow hybrid status # Show hybrid configuration
|
|
264
|
+
./scripts/flow hybrid execute # Execute a plan file
|
|
265
|
+
./scripts/flow hybrid rollback # Rollback last execution
|
|
266
|
+
./scripts/flow hybrid test # Test hybrid installation
|
|
267
|
+
./scripts/flow hybrid learning # Show learning stats
|
|
268
|
+
./scripts/flow templates generate # Generate project templates
|
|
269
|
+
|
|
270
|
+
# Model Providers
|
|
271
|
+
./scripts/flow providers list # List all available providers
|
|
272
|
+
./scripts/flow providers detect # Detect running local providers
|
|
273
|
+
./scripts/flow providers test <t> # Test a provider connection
|
|
274
|
+
|
|
275
|
+
# Declarative Workflows
|
|
276
|
+
./scripts/flow workflow list # List available workflows
|
|
277
|
+
./scripts/flow workflow run <n> # Run a workflow
|
|
278
|
+
./scripts/flow workflow create <n> # Create workflow template
|
|
279
|
+
|
|
280
|
+
# Metrics & Analysis
|
|
281
|
+
./scripts/flow metrics # Show command success/failure stats
|
|
282
|
+
./scripts/flow metrics --problems # Show only problematic commands
|
|
283
|
+
./scripts/flow metrics --reset # Clear all metrics
|
|
284
|
+
./scripts/flow insights # Generate codebase insights
|
|
285
|
+
./scripts/flow auto-context "t" # Preview context for a task
|
|
286
|
+
./scripts/flow model-adapter # Show model adapter info
|
|
287
|
+
./scripts/flow complexity "task" # Assess task complexity
|
|
288
|
+
./scripts/flow safety # Run security scan
|
|
289
|
+
./scripts/flow context-init "t" # Initialize context for task
|
|
290
|
+
|
|
291
|
+
# Worktree Isolation
|
|
292
|
+
./scripts/flow worktree enable # Enable worktree isolation
|
|
293
|
+
./scripts/flow worktree disable # Disable worktree isolation
|
|
294
|
+
./scripts/flow worktree list # List active task worktrees
|
|
295
|
+
./scripts/flow worktree cleanup # Remove stale worktrees
|
|
296
|
+
./scripts/flow worktree status # Show worktree configuration
|
|
297
|
+
|
|
298
|
+
# Parallel Execution
|
|
299
|
+
./scripts/flow parallel config # Show parallel config
|
|
300
|
+
./scripts/flow parallel check # Check tasks for parallel potential
|
|
301
|
+
./scripts/flow parallel analyze # Analyze tasks for parallel potential
|
|
302
|
+
./scripts/flow parallel suggest # Check if parallel should be suggested
|
|
303
|
+
./scripts/flow parallel enable # Enable parallel execution
|
|
304
|
+
./scripts/flow parallel disable # Disable parallel execution
|
|
305
|
+
|
|
306
|
+
# Figma Analyzer
|
|
307
|
+
./scripts/flow figma scan # Scan codebase for components
|
|
308
|
+
./scripts/flow figma show [name] # Show component details
|
|
309
|
+
./scripts/flow figma extract <f> # Extract from Figma MCP data
|
|
310
|
+
./scripts/flow figma match <f> # Match against registry
|
|
311
|
+
./scripts/flow figma analyze <f> # Full pipeline
|
|
312
|
+
./scripts/flow figma confirm <f> # Interactive confirmation
|
|
313
|
+
./scripts/flow figma generate # Generate code from decisions
|
|
314
|
+
./scripts/flow figma server # Start MCP server
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
## Command Execution
|
|
318
|
+
|
|
319
|
+
When user types a slash command:
|
|
320
|
+
1. Parse the command and arguments
|
|
321
|
+
2. Execute the action (read files, update state, etc.)
|
|
322
|
+
3. Provide clear output
|
|
323
|
+
4. If command modifies files, log to request-log if appropriate
|
|
324
|
+
|
|
325
|
+
Example:
|
|
326
|
+
```
|
|
327
|
+
User: /wogi-ready
|
|
328
|
+
Agent:
|
|
329
|
+
📋 **Task Queue**
|
|
330
|
+
|
|
331
|
+
**Ready (3)**
|
|
332
|
+
• TASK-012: Add forgot password link [High]
|
|
333
|
+
• TASK-015: User profile page [Medium]
|
|
334
|
+
• TASK-018: Settings modal [Low]
|
|
335
|
+
|
|
336
|
+
**In Progress (1)**
|
|
337
|
+
• TASK-011: Login form validation
|
|
338
|
+
|
|
339
|
+
**Blocked (1)**
|
|
340
|
+
• TASK-020: Email notifications (waiting on TASK-019)
|
|
341
|
+
|
|
342
|
+
Recommend starting with TASK-012 (high priority, no dependencies).
|
|
343
|
+
```
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Setup & Onboarding
|
|
2
|
+
|
|
3
|
+
Everything related to initial setup, codebase analysis, and populating workflow state files.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
Before WogiFlow can help with your project, it needs context:
|
|
10
|
+
- What framework and language are you using?
|
|
11
|
+
- What components already exist?
|
|
12
|
+
- What patterns and conventions does your team follow?
|
|
13
|
+
- What's the current state of development?
|
|
14
|
+
|
|
15
|
+
The setup and onboarding process gathers this context automatically and stores it in workflow state files.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
### Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install wogiflow
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The postinstall script automatically creates the `.workflow/` directory structure.
|
|
28
|
+
|
|
29
|
+
### Analyze Existing Project
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx flow onboard
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This analyzes your codebase and populates:
|
|
36
|
+
- `decisions.md` - Coding patterns and conventions
|
|
37
|
+
- `app-map.md` - Component registry
|
|
38
|
+
- `project.md` - Project specification
|
|
39
|
+
- Initial tasks from known issues
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Features in This Category
|
|
44
|
+
|
|
45
|
+
| Feature | Purpose |
|
|
46
|
+
|---------|---------|
|
|
47
|
+
| [Installation](./installation.md) | Set up workflow for new projects |
|
|
48
|
+
| [Onboarding](./onboarding-existing.md) | Analyze and configure existing projects |
|
|
49
|
+
| [Component Indexing](./component-indexing.md) | Auto-scan and register components |
|
|
50
|
+
| [Framework Detection](./framework-detection.md) | Auto-detect tech stack and suggest skills |
|
|
51
|
+
| [Team Setup](./team-setup.md) | Configure team sync and shared knowledge |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Key Configuration
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"componentIndex": {
|
|
60
|
+
"autoScan": true,
|
|
61
|
+
"scanOn": ["sessionStart"],
|
|
62
|
+
"directories": ["src/components", "src/hooks", "src/services"]
|
|
63
|
+
},
|
|
64
|
+
"skillLearning": {
|
|
65
|
+
"autoDetectFrameworks": true,
|
|
66
|
+
"fetchOfficialDocs": true
|
|
67
|
+
},
|
|
68
|
+
"codebaseInsights": {
|
|
69
|
+
"enabled": true,
|
|
70
|
+
"generateOn": ["onboarding", "manual"]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## What Gets Created
|
|
78
|
+
|
|
79
|
+
### Directory Structure
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
.workflow/
|
|
83
|
+
├── config.json # All configuration
|
|
84
|
+
├── specs/
|
|
85
|
+
│ └── project.md # Project specification
|
|
86
|
+
├── state/
|
|
87
|
+
│ ├── ready.json # Task queues
|
|
88
|
+
│ ├── app-map.md # Component registry
|
|
89
|
+
│ ├── decisions.md # Coding patterns
|
|
90
|
+
│ ├── request-log.md # Change history
|
|
91
|
+
│ ├── progress.md # Current progress
|
|
92
|
+
│ └── component-index.json # Auto-scanned index
|
|
93
|
+
├── .claude/skills/ # Installed skills (Claude Code 2.1+)
|
|
94
|
+
├── agents/ # Agent personas
|
|
95
|
+
└── traces/ # Code traces
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### State Files Purpose
|
|
99
|
+
|
|
100
|
+
| File | Purpose | Who Updates |
|
|
101
|
+
|------|---------|-------------|
|
|
102
|
+
| `ready.json` | Task queues (ready, inProgress, completed) | System |
|
|
103
|
+
| `app-map.md` | Component registry | AI + Human |
|
|
104
|
+
| `decisions.md` | Coding patterns | AI + Human |
|
|
105
|
+
| `request-log.md` | Change history | AI |
|
|
106
|
+
| `progress.md` | Session handoff notes | AI |
|
|
107
|
+
| `component-index.json` | Auto-scanned components | System |
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Onboarding Flow
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
115
|
+
│ ONBOARDING FLOW │
|
|
116
|
+
├─────────────────────────────────────────────────────────────┤
|
|
117
|
+
│ │
|
|
118
|
+
│ 1. Detect Tech Stack │
|
|
119
|
+
│ ├─ Language (TypeScript, Python, etc.) │
|
|
120
|
+
│ ├─ Framework (React, NestJS, FastAPI, etc.) │
|
|
121
|
+
│ └─ Database (PostgreSQL, MongoDB, etc.) │
|
|
122
|
+
│ │
|
|
123
|
+
│ 2. Scan Components │
|
|
124
|
+
│ ├─ React/Vue components │
|
|
125
|
+
│ ├─ Pages/Routes │
|
|
126
|
+
│ ├─ Services/Modules │
|
|
127
|
+
│ └─ API endpoints │
|
|
128
|
+
│ │
|
|
129
|
+
│ 3. Project Interview │
|
|
130
|
+
│ ├─ Project name and description │
|
|
131
|
+
│ ├─ PRD/documentation │
|
|
132
|
+
│ ├─ Current state (early/MVP/production) │
|
|
133
|
+
│ ├─ Known issues/tech debt │
|
|
134
|
+
│ └─ Coding preferences │
|
|
135
|
+
│ │
|
|
136
|
+
│ 4. Generate Files │
|
|
137
|
+
│ ├─ project.md (specification) │
|
|
138
|
+
│ ├─ app-map.md (component registry) │
|
|
139
|
+
│ ├─ decisions.md (patterns) │
|
|
140
|
+
│ └─ Initial tasks │
|
|
141
|
+
│ │
|
|
142
|
+
│ 5. Suggest Skills │
|
|
143
|
+
│ └─ Framework-specific skill installation │
|
|
144
|
+
│ │
|
|
145
|
+
└─────────────────────────────────────────────────────────────┘
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Commands
|
|
151
|
+
|
|
152
|
+
| Command | Purpose |
|
|
153
|
+
|---------|---------|
|
|
154
|
+
| `npm install wogiflow` | Install WogiFlow and create .workflow structure |
|
|
155
|
+
| `npx flow onboard` | Analyze existing project |
|
|
156
|
+
| `/wogi-map-index` | Show/regenerate component index |
|
|
157
|
+
| `/wogi-map-scan` | Scan for unmapped components |
|
|
158
|
+
| `/wogi-health` | Check workflow health |
|
|
159
|
+
| `/wogi-import` | Import team profile |
|
|
160
|
+
| `/wogi-export` | Export workflow profile |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Next Steps After Setup
|
|
165
|
+
|
|
166
|
+
1. **Review Generated Files**: Check `decisions.md` and `app-map.md` for accuracy
|
|
167
|
+
2. **Run Health Check**: `/wogi-health` to verify setup
|
|
168
|
+
3. **View Tasks**: `/wogi-ready` to see available tasks
|
|
169
|
+
4. **Start Working**: `/wogi-start TASK-001`
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Related
|
|
174
|
+
|
|
175
|
+
- [Task Execution](../02-task-execution/) - How to execute tasks
|
|
176
|
+
- [Configuration Reference](../configuration/all-options.md) - All config options
|
|
177
|
+
- [Self-Improvement](../03-self-improvement/) - How WogiFlow learns
|