@dv.nghiem/flowdeck 0.2.4 → 0.3.0
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/README.md +24 -41
- package/dist/hooks/memory-hook.d.ts +21 -0
- package/dist/hooks/memory-hook.d.ts.map +1 -0
- package/dist/hooks/orchestrator-guard-hook.d.ts.map +1 -1
- package/dist/hooks/todo-hook.d.ts +1 -7
- package/dist/hooks/todo-hook.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +709 -420
- package/dist/services/memory-store.d.ts +40 -0
- package/dist/services/memory-store.d.ts.map +1 -0
- package/dist/tools/memory-search.d.ts +3 -0
- package/dist/tools/memory-search.d.ts.map +1 -0
- package/docs/commands/fd-doctor.md +21 -0
- package/docs/commands/fd-quick.md +33 -0
- package/docs/commands/fd-reflect.md +23 -0
- package/docs/commands/fd-status.md +31 -0
- package/docs/commands/fd-translate-intent.md +17 -0
- package/docs/commands.md +209 -271
- package/docs/configuration.md +1 -2
- package/docs/index.md +22 -28
- package/docs/memory.md +69 -0
- package/docs/quick-start.md +1 -1
- package/package.json +1 -1
- package/src/commands/fd-deploy-check.md +131 -11
- package/src/commands/fd-new-project.md +14 -1
- package/src/commands/fd-quick.md +60 -0
- package/src/commands/fd-reflect.md +41 -2
- package/src/commands/fd-status.md +84 -0
- package/src/rules/README.md +8 -7
- package/src/skills/agent-harness-construction/SKILL.md +227 -0
- package/src/skills/api-design/SKILL.md +5 -0
- package/src/skills/backend-patterns/SKILL.md +105 -0
- package/src/skills/clean-architecture/SKILL.md +85 -0
- package/src/skills/cqrs/SKILL.md +230 -0
- package/src/skills/ddd-architecture/SKILL.md +104 -0
- package/src/skills/django-patterns/SKILL.md +304 -0
- package/src/skills/django-tdd/SKILL.md +297 -0
- package/src/skills/event-driven-architecture/SKILL.md +152 -0
- package/src/skills/frontend-pattern/SKILL.md +159 -0
- package/src/skills/hexagonal-architecture/SKILL.md +80 -0
- package/src/skills/layered-architecture/SKILL.md +64 -0
- package/src/skills/postgres-patterns/SKILL.md +74 -0
- package/src/skills/python-patterns/SKILL.md +5 -0
- package/src/skills/saga-architecture/SKILL.md +113 -0
- package/dist/tools/run-parallel.d.ts +0 -4
- package/dist/tools/run-parallel.d.ts.map +0 -1
- package/docs/command-migration.md +0 -175
- package/docs/commands/fd-analyze-change.md +0 -107
- package/docs/commands/fd-dashboard.md +0 -11
- package/docs/commands/fd-evaluate-risk.md +0 -134
- package/docs/commands/fd-guarded-edit.md +0 -105
- package/docs/commands/fd-progress.md +0 -11
- package/docs/commands/fd-review-code.md +0 -29
- package/docs/commands/fd-roadmap.md +0 -10
- package/docs/commands/fd-settings.md +0 -10
- package/docs/parallel-execution.md +0 -255
- package/src/commands/fd-analyze-change.md +0 -57
- package/src/commands/fd-approve.md +0 -64
- package/src/commands/fd-blast-radius.md +0 -49
- package/src/commands/fd-dashboard.md +0 -57
- package/src/commands/fd-evaluate-risk.md +0 -62
- package/src/commands/fd-guarded-edit.md +0 -69
- package/src/commands/fd-impact-radar.md +0 -51
- package/src/commands/fd-learn.md +0 -36
- package/src/commands/fd-progress.md +0 -50
- package/src/commands/fd-regression-predict.md +0 -57
- package/src/commands/fd-review-code.md +0 -96
- package/src/commands/fd-review-route.md +0 -54
- package/src/commands/fd-roadmap.md +0 -46
- package/src/commands/fd-settings.md +0 -57
- package/src/commands/fd-test-gap.md +0 -54
- package/src/commands/fd-volatility-map.md +0 -64
- package/src/commands/fd-workspace-status.md +0 -34
- package/src/skills/parallel-execute/SKILL.md +0 -92
package/docs/commands.md
CHANGED
|
@@ -6,29 +6,23 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
6
6
|
|
|
7
7
|
| Command | Arguments | Description |
|
|
8
8
|
|---------|-----------|-------------|
|
|
9
|
-
| `/fd-new-project` | `[project-name]` | Initialize
|
|
10
|
-
| `/fd-discuss` | `[
|
|
11
|
-
| `/fd-plan` | `[phase
|
|
9
|
+
| `/fd-new-project` | `[project-name]` | Initialize project with planning structure and default config |
|
|
10
|
+
| `/fd-discuss` | `[topic]` | Structured Q&A to capture decisions for a phase |
|
|
11
|
+
| `/fd-plan` | `[--phase=N]` | Generate detailed implementation plan from decisions |
|
|
12
12
|
| `/fd-new-feature` | `[feature-description]` | Full feature implementation with parallel agents |
|
|
13
|
-
| `/fd-fix-bug` | `[bug-description
|
|
14
|
-
| `/fd-
|
|
15
|
-
| `/fd-
|
|
16
|
-
| `/fd-
|
|
17
|
-
| `/fd-map-codebase` | `[--full] [--update]` | Map codebase into structured `.codebase/` files |
|
|
18
|
-
| `/fd-progress` | — | Display current STATE.md and active plan (no agents) |
|
|
13
|
+
| `/fd-fix-bug` | `[bug-description]` | Debug, fix, and verify bug with regression test |
|
|
14
|
+
| `/fd-deploy-check` | `[--check=deploy,review,analysis]` | Pre-deploy checks, code review, or pre-change analysis |
|
|
15
|
+
| `/fd-status` | `[--roadmap | --workspace | --phase=N]` | Combined status, roadmap, and workspace view |
|
|
16
|
+
| `/fd-resume` | `[--yes]` | Reload STATE.md and PLAN.md to continue interrupted session |
|
|
19
17
|
| `/fd-checkpoint` | — | Persist current state to STATE.md |
|
|
20
|
-
| `/fd-
|
|
21
|
-
| `/fd-
|
|
22
|
-
| `/fd-
|
|
23
|
-
| `/fd-
|
|
24
|
-
| `/fd-
|
|
25
|
-
| `/fd-
|
|
26
|
-
| `/fd-
|
|
27
|
-
| `/fd-
|
|
28
|
-
| `/fd-volatility-map` | `[--threshold] [--limit]` | Show unstable code zones by churn and hotfix frequency |
|
|
29
|
-
| `/fd-regression-predict` | `[--change] [--categories]` | Estimate likely regression categories for a change |
|
|
30
|
-
| `/fd-test-gap` | `[--change] [--scope]` | Identify weakly-tested areas in a proposed change |
|
|
31
|
-
| `/fd-review-route` | `[--files] [--change]` | Route risky patches to the right reviewer type |
|
|
18
|
+
| `/fd-reflect` | `[--mode=reflect,learn]` | Post-session reflection or capture skill from session |
|
|
19
|
+
| `/fd-map-codebase` | `[--incremental]` | Map codebase into structured `.codebase/` files |
|
|
20
|
+
| `/fd-write-docs` | `[--scope=path]` | Explore APIs and generate documentation |
|
|
21
|
+
| `/fd-multi-repo` | `[list | add <path> [name] | remove <name> | status]` | Multi-repo orchestration |
|
|
22
|
+
| `/fd-translate-intent` | `[vague intent]` | Convert vague request into ranked implementation options |
|
|
23
|
+
| `/fd-ask` | `[question]` | Route question to specialist agent (architect, security, etc.) |
|
|
24
|
+
| `/fd-quick` | `[task description]` | Quick focused task with automatic agent selection |
|
|
25
|
+
| `/fd-doctor` | — | Check FlowDeck installation and environment health |
|
|
32
26
|
|
|
33
27
|
---
|
|
34
28
|
|
|
@@ -36,18 +30,16 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
36
30
|
|
|
37
31
|
## /fd-new-project
|
|
38
32
|
|
|
39
|
-
**Description:** Bootstraps a new FlowDeck-managed project. Creates the `.planning/` directory and all required state files
|
|
33
|
+
**Description:** Bootstraps a new FlowDeck-managed project. Creates the `.planning/` directory and all required state files including default config.
|
|
40
34
|
|
|
41
35
|
**Arguments:**
|
|
42
36
|
- `[project-name]` — name of the project (optional; defaults to current directory name)
|
|
43
37
|
|
|
44
38
|
**What it does:**
|
|
45
|
-
1. Creates `.planning/` directory
|
|
46
|
-
2. Generates `.planning/PROJECT.md
|
|
47
|
-
3.
|
|
48
|
-
4.
|
|
49
|
-
5. Generates `.planning/config.json` with default model assignments, guard settings, and an empty `sub_repos` array
|
|
50
|
-
6. Prompts you to fill in the project description and tech stack
|
|
39
|
+
1. Creates `.planning/` directory
|
|
40
|
+
2. Generates `.planning/PROJECT.md`, `.planning/ROADMAP.md`, `.planning/STATE.md`
|
|
41
|
+
3. Creates `.planning/config.json` with default settings (model_profile, tdd_enforced, etc.)
|
|
42
|
+
4. Creates `.planning/phases/phase-1/` directory
|
|
51
43
|
|
|
52
44
|
**Example:**
|
|
53
45
|
```
|
|
@@ -55,422 +47,368 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
55
47
|
```
|
|
56
48
|
|
|
57
49
|
**What Next?**
|
|
58
|
-
1. Run `/fd-discuss
|
|
59
|
-
2. Run `/fd-map-codebase` if this is an existing codebase
|
|
60
|
-
3.
|
|
50
|
+
1. Run `/fd-discuss` to begin structured discovery
|
|
51
|
+
2. Run `/fd-map-codebase` if this is an existing codebase
|
|
52
|
+
3. Edit `.planning/config.json` directly to change settings
|
|
61
53
|
|
|
62
54
|
---
|
|
63
55
|
|
|
64
56
|
## /fd-discuss
|
|
65
57
|
|
|
66
|
-
**Description:** Opens a structured Q&A session for a
|
|
58
|
+
**Description:** Opens a structured Q&A session to capture decisions for a phase. Saves decisions to `.planning/phases/phase-N/DISCUSS.md` with D-XX numbering.
|
|
67
59
|
|
|
68
60
|
**Arguments:**
|
|
69
|
-
- `[
|
|
61
|
+
- `[topic]` — optional topic to focus the discussion
|
|
70
62
|
|
|
71
63
|
**What it does:**
|
|
72
64
|
1. Loads `.planning/PROJECT.md` and `.planning/STATE.md` for project context
|
|
73
|
-
2. Invokes `@discusser
|
|
74
|
-
3.
|
|
75
|
-
4. Saves
|
|
76
|
-
5. Updates `STATE.md` to record that discussion for this phase is complete
|
|
65
|
+
2. Invokes `@discusser` agent which asks targeted questions one at a time
|
|
66
|
+
3. Records decisions with D-XX numbering (D-01, D-02, …)
|
|
67
|
+
4. Saves to `.planning/phases/phase-N/DISCUSS.md`
|
|
77
68
|
|
|
78
69
|
**Example:**
|
|
79
70
|
```
|
|
80
|
-
/fd-discuss
|
|
71
|
+
/fd-discuss user authentication
|
|
81
72
|
```
|
|
82
73
|
|
|
83
74
|
**What Next?**
|
|
84
|
-
1. Run `/fd-plan
|
|
85
|
-
2. Run `/fd-discuss
|
|
86
|
-
3. Run `/fd-progress` to review the current project state
|
|
75
|
+
1. Run `/fd-plan` to generate implementation plan from decisions
|
|
76
|
+
2. Run `/fd-discuss` again to add more decisions if needed
|
|
87
77
|
|
|
88
78
|
---
|
|
89
79
|
|
|
90
80
|
## /fd-plan
|
|
91
81
|
|
|
92
|
-
**Description:** Reads
|
|
82
|
+
**Description:** Reads decisions from DISCUSS.md and produces a detailed implementation plan. Requires explicit CONFIRM before saving.
|
|
93
83
|
|
|
94
84
|
**Arguments:**
|
|
95
|
-
- `[phase
|
|
85
|
+
- `[--phase=N]` — target specific phase
|
|
86
|
+
- `[--yes]` — skip confirmation
|
|
96
87
|
|
|
97
88
|
**What it does:**
|
|
98
|
-
1. Reads `.planning/phases/phase-N/DISCUSS.md` for decisions
|
|
99
|
-
2.
|
|
100
|
-
3.
|
|
101
|
-
4.
|
|
102
|
-
5. Prompts: **type `CONFIRMED` to accept the plan and write it to disk**
|
|
103
|
-
6. On confirmation, saves `.planning/phases/phase-N/PLAN.md` and updates `STATE.md`
|
|
89
|
+
1. Reads `.planning/phases/phase-N/DISCUSS.md` for decisions
|
|
90
|
+
2. Creates detailed `PLAN.md` with tasks tracing D-XX decisions
|
|
91
|
+
3. Validates plan completeness
|
|
92
|
+
4. **PAUSES** for user CONFIRM before saving
|
|
104
93
|
|
|
105
94
|
**Example:**
|
|
106
95
|
```
|
|
107
|
-
/fd-plan 1
|
|
96
|
+
/fd-plan --phase=1
|
|
108
97
|
```
|
|
109
98
|
|
|
110
99
|
**What Next?**
|
|
111
|
-
1. Run `/fd-new-feature
|
|
112
|
-
2. Run `/fd-
|
|
113
|
-
3. Run `/fd-plan 1` again to regenerate the plan if requirements changed
|
|
100
|
+
1. Run `/fd-new-feature` to implement
|
|
101
|
+
2. Run `/fd-plan --phase=2` for next phase
|
|
114
102
|
|
|
115
103
|
---
|
|
116
104
|
|
|
117
105
|
## /fd-new-feature
|
|
118
106
|
|
|
119
|
-
**Description:** Implements a new feature end-to-end using
|
|
107
|
+
**Description:** Implements a new feature end-to-end using TDD discipline with parallel agents. Reads active PLAN.md for context.
|
|
120
108
|
|
|
121
109
|
**Arguments:**
|
|
122
|
-
- `[feature-description]` — plain-language description of the feature
|
|
110
|
+
- `[feature-description]` — plain-language description of the feature
|
|
123
111
|
|
|
124
112
|
**What it does:**
|
|
125
|
-
1.
|
|
126
|
-
2. `@
|
|
127
|
-
3.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
- **Wave 3 (parallel):** `@coder` implements against Wave 2 interfaces; `@tester` writes tests against those same interfaces
|
|
131
|
-
- **Wave 4 (parallel):** `@reviewer` checks logic and quality; `@security-auditor` runs OWASP checklist
|
|
132
|
-
4. Aggregates results into a feature summary
|
|
133
|
-
5. Updates `STATE.md` with the completed feature
|
|
113
|
+
1. Enforces TDD cycle: BEHAVIOR → RED → GREEN → REFACTOR
|
|
114
|
+
2. `@tester` writes failing tests first
|
|
115
|
+
3. `@coder` implements minimum to pass
|
|
116
|
+
4. `@reviewer` confirms quality
|
|
117
|
+
5. Updates `STATE.md` with completed steps
|
|
134
118
|
|
|
135
119
|
**Example:**
|
|
136
120
|
```
|
|
137
|
-
/fd-new-feature "user authentication with JWT
|
|
121
|
+
/fd-new-feature "user authentication with JWT"
|
|
138
122
|
```
|
|
139
123
|
|
|
140
|
-
**What Next?**
|
|
141
|
-
1. Run `/fd-review-code src/auth/` to do an additional focused review
|
|
142
|
-
2. Run `/fd-fix-bug` if any issues were surfaced during implementation
|
|
143
|
-
3. Run `/fd-checkpoint` to save state before moving on
|
|
144
|
-
4. Run `/fd-new-feature` again for the next planned feature
|
|
145
|
-
|
|
146
124
|
---
|
|
147
125
|
|
|
148
126
|
## /fd-fix-bug
|
|
149
127
|
|
|
150
|
-
**Description:** Diagnoses and fixes a bug
|
|
128
|
+
**Description:** Diagnoses and fixes a bug using TDD discipline with regression test.
|
|
151
129
|
|
|
152
130
|
**Arguments:**
|
|
153
|
-
- `[bug-description
|
|
131
|
+
- `[bug-description]` — description of the bug
|
|
154
132
|
|
|
155
133
|
**What it does:**
|
|
156
|
-
1. `@
|
|
157
|
-
2.
|
|
158
|
-
3. `@coder`
|
|
159
|
-
4. `@
|
|
160
|
-
5.
|
|
161
|
-
6. Updates `STATE.md` with the resolved bug reference
|
|
134
|
+
1. `@researcher` investigates and isolates root cause
|
|
135
|
+
2. `@tester` writes regression test that fails (RED)
|
|
136
|
+
3. `@coder` implements minimum fix (GREEN)
|
|
137
|
+
4. `@reviewer` confirms fix (REFACTOR)
|
|
138
|
+
5. Records in `.codebase/FAILURES.json`
|
|
162
139
|
|
|
163
140
|
**Example:**
|
|
164
141
|
```
|
|
165
|
-
/fd-fix-bug "user sessions expire immediately
|
|
166
|
-
/fd-fix-bug 412
|
|
142
|
+
/fd-fix-bug "user sessions expire immediately"
|
|
167
143
|
```
|
|
168
144
|
|
|
169
|
-
**What Next?**
|
|
170
|
-
1. Run `/fd-review-code` on the changed files for a full quality pass
|
|
171
|
-
2. Run `/fd-deploy-check` if this is a hotfix going to production
|
|
172
|
-
3. Run `/fd-checkpoint` to save state
|
|
173
|
-
4. Run `/fd-progress` to see remaining open issues
|
|
174
|
-
|
|
175
145
|
---
|
|
176
146
|
|
|
177
|
-
## /fd-
|
|
147
|
+
## /fd-deploy-check
|
|
178
148
|
|
|
179
|
-
**Description:**
|
|
149
|
+
**Description:** All-in-one quality gate combining pre-deployment checks, code review, and pre-change analysis.
|
|
180
150
|
|
|
181
151
|
**Arguments:**
|
|
182
|
-
- `[
|
|
152
|
+
- `[--check=deploy,review,analysis]` — type of check (default: deploy)
|
|
153
|
+
- `[--env=staging|production]` — target environment (default: staging)
|
|
154
|
+
- `[--scope=path]` — file scope for review/analysis
|
|
183
155
|
|
|
184
|
-
**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
156
|
+
**Check Types:**
|
|
157
|
+
|
|
158
|
+
### Deploy (`--check=deploy` or default)
|
|
159
|
+
Runs parallel checks: test suite, security scan, CVE audit, build verification, code review.
|
|
160
|
+
|
|
161
|
+
### Review (`--check=review`)
|
|
162
|
+
Parallel reviewer + researcher + tester on changed files. Aggregates findings by severity (CRITICAL/HIGH/MEDIUM/LOW).
|
|
163
|
+
|
|
164
|
+
### Analysis (`--check=analysis`)
|
|
165
|
+
Comprehensive pre-change analysis: impact radar, blast radius, regression prediction, test gaps, volatility, review routing.
|
|
193
166
|
|
|
194
167
|
**Example:**
|
|
195
168
|
```
|
|
196
|
-
/fd-
|
|
197
|
-
/fd-
|
|
198
|
-
/fd-
|
|
169
|
+
/fd-deploy-check --check=deploy
|
|
170
|
+
/fd-deploy-check --check=review --scope=src/auth/
|
|
171
|
+
/fd-deploy-check --check=analysis "add refresh token support"
|
|
199
172
|
```
|
|
200
173
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## /fd-status
|
|
177
|
+
|
|
178
|
+
**Description:** View project status combining progress, roadmap, and workspace overview.
|
|
179
|
+
|
|
180
|
+
**Arguments:**
|
|
181
|
+
- (no flags) — show current phase status summary
|
|
182
|
+
- `[--roadmap]` — display project roadmap with phase statuses
|
|
183
|
+
- `[--workspace]` — show all registered repositories overview
|
|
184
|
+
- `[--phase=N]` — show detailed progress for specific phase
|
|
185
|
+
|
|
186
|
+
**Example:**
|
|
187
|
+
```
|
|
188
|
+
/fd-status
|
|
189
|
+
/fd-status --roadmap
|
|
190
|
+
/fd-status --workspace
|
|
191
|
+
/fd-status --phase=2
|
|
192
|
+
```
|
|
206
193
|
|
|
207
194
|
---
|
|
208
195
|
|
|
209
|
-
## /fd-
|
|
196
|
+
## /fd-resume
|
|
210
197
|
|
|
211
|
-
**Description:**
|
|
198
|
+
**Description:** Reload STATE.md and PLAN.md to continue an interrupted session.
|
|
212
199
|
|
|
213
|
-
**Arguments:**
|
|
200
|
+
**Arguments:**
|
|
201
|
+
- `[--yes]` — skip confirmation pause
|
|
214
202
|
|
|
215
203
|
**What it does:**
|
|
216
|
-
1.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
2. `@orchestrator` collects results from all three
|
|
221
|
-
3. If all pass: issues **GO** decision and prints a deploy summary
|
|
222
|
-
4. If any fail: issues **NO-GO** decision with specific failure details and a remediation list
|
|
223
|
-
5. Saves the decision report to `.planning/fd-deploy-checks/DEPLOY-<timestamp>.md`
|
|
204
|
+
1. Reads current phase and status from STATE.md
|
|
205
|
+
2. Shows plan preview from active PLAN.md
|
|
206
|
+
3. **PAUSES** for user CONFIRM (unless `--yes`)
|
|
207
|
+
4. Continues execution from where stopped
|
|
224
208
|
|
|
225
209
|
**Example:**
|
|
226
210
|
```
|
|
227
|
-
/fd-
|
|
211
|
+
/fd-resume
|
|
212
|
+
/fd-resume --yes
|
|
228
213
|
```
|
|
229
214
|
|
|
230
|
-
**What Next?**
|
|
231
|
-
1. If **GO**: proceed with your deployment pipeline
|
|
232
|
-
2. If **NO-GO**: address each listed failure, then re-run `/fd-deploy-check`
|
|
233
|
-
3. Run `/fd-fix-bug` for any test failures surfaced
|
|
234
|
-
4. Run `/fd-checkpoint` after a successful deploy check
|
|
235
|
-
|
|
236
215
|
---
|
|
237
216
|
|
|
238
|
-
## /fd-
|
|
217
|
+
## /fd-checkpoint
|
|
239
218
|
|
|
240
|
-
**Description:**
|
|
219
|
+
**Description:** Persist current session state to STATE.md. Safe to close session after.
|
|
241
220
|
|
|
242
221
|
**Arguments:** None
|
|
243
222
|
|
|
244
223
|
**What it does:**
|
|
245
|
-
1.
|
|
246
|
-
2.
|
|
247
|
-
3. `@reviewer` verifies every documented item against the actual source code, flagging inaccuracies
|
|
248
|
-
4. Final docs are written to the project's `docs/` directory (or the path set in `.planning/config.json`)
|
|
249
|
-
5. Updates `STATE.md` to record documentation generation
|
|
224
|
+
1. Updates `.planning/STATE.md` with current phase, completed steps, last action
|
|
225
|
+
2. Writes checkpoint summary to `.planning/phases/phase-N/CHECKPOINT.md`
|
|
250
226
|
|
|
251
227
|
**Example:**
|
|
252
228
|
```
|
|
253
|
-
/fd-
|
|
229
|
+
/fd-checkpoint
|
|
254
230
|
```
|
|
255
231
|
|
|
256
|
-
**What Next?**
|
|
257
|
-
1. Review the generated docs and edit sections that need domain context
|
|
258
|
-
2. Run `/fd-write-docs` again after adding new public APIs
|
|
259
|
-
3. Run `/fd-review-code docs/` if you want a quality pass on the written docs
|
|
260
|
-
4. Run `/fd-checkpoint` to save state
|
|
261
|
-
|
|
262
232
|
---
|
|
263
233
|
|
|
264
|
-
## /fd-
|
|
234
|
+
## /fd-reflect
|
|
265
235
|
|
|
266
|
-
**Description:**
|
|
236
|
+
**Description:** Post-session reflection to analyse artifacts and propose improvements. Can also capture session learnings as reusable skills.
|
|
267
237
|
|
|
268
238
|
**Arguments:**
|
|
269
|
-
- `[--
|
|
270
|
-
- `[--
|
|
239
|
+
- `[--mode=reflect]` — default reflection mode
|
|
240
|
+
- `[--mode=learn]` — capture pattern as reusable skill
|
|
271
241
|
|
|
272
|
-
**
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
242
|
+
**Reflect Mode:**
|
|
243
|
+
- Analyzes session artifacts for patterns
|
|
244
|
+
- Proposes new skills, policies, or workflow changes
|
|
245
|
+
- Provides 3-5 bullet summary of learnings
|
|
246
|
+
|
|
247
|
+
**Learn Mode:**
|
|
248
|
+
- Identifies worth-capturing patterns from session
|
|
249
|
+
- Creates reusable skill in `src/skills/`
|
|
250
|
+
- Reports what was captured and activation reminder
|
|
281
251
|
|
|
282
252
|
**Example:**
|
|
283
253
|
```
|
|
284
|
-
/fd-
|
|
285
|
-
/fd-
|
|
286
|
-
/fd-map-codebase --update
|
|
254
|
+
/fd-reflect
|
|
255
|
+
/fd-reflect --mode=learn auth-pattern
|
|
287
256
|
```
|
|
288
257
|
|
|
289
|
-
**What Next?**
|
|
290
|
-
1. Run `/fd-discuss 1` now that the AI has full codebase context
|
|
291
|
-
2. Review `.codebase/CONVENTIONS.md` and add any corrections before proceeding
|
|
292
|
-
3. Run `/fd-map-codebase --update` after significant refactors to keep the map current
|
|
293
|
-
|
|
294
258
|
---
|
|
295
259
|
|
|
296
|
-
## /fd-
|
|
260
|
+
## /fd-map-codebase
|
|
297
261
|
|
|
298
|
-
**Description:**
|
|
262
|
+
**Description:** Analyze codebase and generate structured documentation in `.codebase/`.
|
|
299
263
|
|
|
300
|
-
**Arguments:**
|
|
264
|
+
**Arguments:**
|
|
265
|
+
- `[--incremental]` — only update changed files
|
|
301
266
|
|
|
302
267
|
**What it does:**
|
|
303
|
-
1.
|
|
304
|
-
2.
|
|
305
|
-
3. Shows recent command results from the session log
|
|
306
|
-
4. Reports any blockers or pending decisions recorded in STATE.md
|
|
268
|
+
1. Runs 6 mapper agents in parallel (each in isolated worktree)
|
|
269
|
+
2. Generates: STACK.md, ARCHITECTURE.md, STRUCTURE.md, CONVENTIONS.md, TESTING.md, CONCERNS.md
|
|
307
270
|
|
|
308
271
|
**Example:**
|
|
309
272
|
```
|
|
310
|
-
/fd-
|
|
273
|
+
/fd-map-codebase
|
|
274
|
+
/fd-map-codebase --incremental
|
|
311
275
|
```
|
|
312
276
|
|
|
313
|
-
**What Next?**
|
|
314
|
-
1. Run the next command indicated by the active plan
|
|
315
|
-
2. Run `/fd-dashboard` for a more visual phase-by-phase view
|
|
316
|
-
3. Run `/fd-roadmap` to see the full project timeline
|
|
317
|
-
|
|
318
277
|
---
|
|
319
278
|
|
|
320
|
-
## /fd-
|
|
279
|
+
## /fd-write-docs
|
|
321
280
|
|
|
322
|
-
**Description:**
|
|
281
|
+
**Description:** Explore public APIs and generate accurate documentation.
|
|
323
282
|
|
|
324
|
-
**Arguments:**
|
|
283
|
+
**Arguments:**
|
|
284
|
+
- `[--scope=path]` — limit to specific path
|
|
285
|
+
- `[--format=api,guide,readme]` — output format
|
|
325
286
|
|
|
326
287
|
**What it does:**
|
|
327
|
-
1.
|
|
328
|
-
2.
|
|
329
|
-
3.
|
|
288
|
+
1. Finds all exported functions, classes, types
|
|
289
|
+
2. `@writer` drafts documentation
|
|
290
|
+
3. `@reviewer` verifies accuracy against actual code
|
|
291
|
+
4. Writes to docs/ directory
|
|
330
292
|
|
|
331
293
|
**Example:**
|
|
332
294
|
```
|
|
333
|
-
/fd-
|
|
295
|
+
/fd-write-docs --scope=src/auth --format=api
|
|
334
296
|
```
|
|
335
297
|
|
|
336
|
-
**What Next?**
|
|
337
|
-
1. Close and reopen your OpenCode session
|
|
338
|
-
2. Run `/fd-resume` in the new session to reload context
|
|
339
|
-
3. Run `/fd-progress` to verify state was saved correctly
|
|
340
|
-
|
|
341
298
|
---
|
|
342
299
|
|
|
343
|
-
## /fd-
|
|
300
|
+
## /fd-multi-repo
|
|
344
301
|
|
|
345
|
-
**Description:**
|
|
302
|
+
**Description:** Orchestrate changes spanning multiple repositories.
|
|
346
303
|
|
|
347
|
-
**Arguments:**
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
3. Summarizes: what was last done, what is next, any pending decisions
|
|
353
|
-
4. Does not invoke any agents — purely a context-loading operation
|
|
304
|
+
**Arguments:**
|
|
305
|
+
- `list` — show registered repos
|
|
306
|
+
- `add <path> [name]` — register a repository
|
|
307
|
+
- `remove <name>` — unregister a repository
|
|
308
|
+
- `status` — show status across all repos
|
|
354
309
|
|
|
355
310
|
**Example:**
|
|
356
311
|
```
|
|
357
|
-
/fd-
|
|
312
|
+
/fd-multi-repo list
|
|
313
|
+
/fd-multi-repo add ../user-service user-service
|
|
314
|
+
/fd-multi-repo status
|
|
358
315
|
```
|
|
359
316
|
|
|
360
|
-
**What Next?**
|
|
361
|
-
1. Run the next task from the active plan
|
|
362
|
-
2. Run `/fd-progress` for a full status view
|
|
363
|
-
3. Run `/fd-discuss` or `/fd-plan` if context indicates a phase is not yet planned
|
|
364
|
-
|
|
365
317
|
---
|
|
366
318
|
|
|
367
|
-
## /fd-
|
|
319
|
+
## /fd-translate-intent
|
|
368
320
|
|
|
369
|
-
**Description:**
|
|
321
|
+
**Description:** Convert vague or high-level requests into concrete ranked implementation options with tradeoffs.
|
|
370
322
|
|
|
371
|
-
**Arguments:**
|
|
323
|
+
**Arguments:**
|
|
324
|
+
- `[vague intent]` — e.g., "make checkout faster"
|
|
372
325
|
|
|
373
326
|
**What it does:**
|
|
374
|
-
1.
|
|
375
|
-
2.
|
|
376
|
-
|
|
377
|
-
- Milestone statuses (pending / in-progress / done / blocked)
|
|
378
|
-
- Active blockers with descriptions
|
|
379
|
-
- Recent activity log
|
|
380
|
-
3. Does not invoke any agents — read-only view
|
|
327
|
+
1. `@architect` decomposes into 3-5 concrete options
|
|
328
|
+
2. `@researcher` provides codebase context for each
|
|
329
|
+
3. Report shows options ranked with effort/risk/tradeoffs
|
|
381
330
|
|
|
382
331
|
**Example:**
|
|
383
332
|
```
|
|
384
|
-
/fd-
|
|
333
|
+
/fd-translate-intent make checkout faster
|
|
385
334
|
```
|
|
386
335
|
|
|
387
|
-
**What Next?**
|
|
388
|
-
1. Run `/fd-roadmap` to update phase statuses or add milestones
|
|
389
|
-
2. Run `/fd-progress` for a task-level view
|
|
390
|
-
3. Run `/fd-discuss` or `/fd-plan` for phases shown as blocked
|
|
391
|
-
|
|
392
336
|
---
|
|
393
337
|
|
|
394
|
-
## /fd-
|
|
338
|
+
## /fd-ask
|
|
395
339
|
|
|
396
|
-
**Description:**
|
|
340
|
+
**Description:** Route a focused question to the most appropriate specialist agent.
|
|
397
341
|
|
|
398
|
-
**Arguments:**
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
342
|
+
**Arguments:**
|
|
343
|
+
- `[question]` — your question
|
|
344
|
+
|
|
345
|
+
**Routing:**
|
|
346
|
+
| Keywords | Agent |
|
|
347
|
+
|----------|-------|
|
|
348
|
+
| design, architecture, structure | @architect |
|
|
349
|
+
| security, auth, vulnerability | @security-auditor |
|
|
350
|
+
| performance, optimize, latency | @performance-optimizer |
|
|
351
|
+
| impact, downstream, dependency | @researcher |
|
|
352
|
+
| test, coverage, regression | @tester |
|
|
353
|
+
| bug, error, debug | @debug-specialist |
|
|
405
354
|
|
|
406
355
|
**Example:**
|
|
407
356
|
```
|
|
408
|
-
/fd-
|
|
357
|
+
/fd-ask what is the architecture of the auth system?
|
|
358
|
+
/fd-ask how would I add rate limiting?
|
|
409
359
|
```
|
|
410
360
|
|
|
411
|
-
**What Next?**
|
|
412
|
-
1. Run `/fd-discuss N` to begin work on the next planned phase
|
|
413
|
-
2. Run `/fd-dashboard` to see the updated roadmap in context
|
|
414
|
-
3. Run `/fd-checkpoint` to save state after roadmap updates
|
|
415
|
-
|
|
416
361
|
---
|
|
417
362
|
|
|
418
|
-
## /fd-
|
|
363
|
+
## /fd-quick
|
|
419
364
|
|
|
420
|
-
**Description:**
|
|
365
|
+
**Description:** Execute a focused task without the full workflow. Selects best specialist agent automatically.
|
|
421
366
|
|
|
422
|
-
**Arguments:**
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
367
|
+
**Arguments:**
|
|
368
|
+
- `[task description]` — what you need done
|
|
369
|
+
|
|
370
|
+
**Agent Selection Matrix:**
|
|
371
|
+
|
|
372
|
+
| Task Type | Agent |
|
|
373
|
+
|-----------|-------|
|
|
374
|
+
| Write/edit code | @coder |
|
|
375
|
+
| Explore/understand | @code-explorer |
|
|
376
|
+
| Review code | @reviewer |
|
|
377
|
+
| Security review | @security-auditor |
|
|
378
|
+
| Design/architecture | @architect |
|
|
379
|
+
| Write tests | @tester |
|
|
380
|
+
| Documentation | @doc-updater |
|
|
381
|
+
| Research | @researcher |
|
|
382
|
+
| Debug | @debug-specialist |
|
|
383
|
+
| Performance | @performance-optimizer |
|
|
384
|
+
| Build error | @build-error-resolver |
|
|
431
385
|
|
|
432
386
|
**Example:**
|
|
433
387
|
```
|
|
434
|
-
/fd-
|
|
388
|
+
/fd-quick find where the session token is validated
|
|
389
|
+
/fd-quick add rate limiting to the API
|
|
435
390
|
```
|
|
436
391
|
|
|
437
|
-
**What Next?**
|
|
438
|
-
1. Run `/fd-multi-repo --list` to see registered repos if workspace mode is `multi`
|
|
439
|
-
2. Run `/fd-progress` to confirm settings are in effect
|
|
440
|
-
3. Run `/fd-new-feature` to use updated model assignments
|
|
441
|
-
|
|
442
392
|
---
|
|
443
393
|
|
|
444
|
-
## /fd-
|
|
394
|
+
## /fd-doctor
|
|
445
395
|
|
|
446
|
-
**Description:**
|
|
396
|
+
**Description:** Check FlowDeck installation and environment health.
|
|
447
397
|
|
|
448
|
-
**Arguments:**
|
|
449
|
-
- `--add <path> <role>` — register a repository at the given path with the specified role
|
|
450
|
-
- `--list` — show all registered repositories and their roles
|
|
451
|
-
- `--status` — check git status across all registered repositories
|
|
452
|
-
- `--remove <name>` — remove a registered repository by name
|
|
398
|
+
**Arguments:** None
|
|
453
399
|
|
|
454
|
-
**What it
|
|
455
|
-
-
|
|
456
|
-
-
|
|
457
|
-
-
|
|
458
|
-
-
|
|
400
|
+
**What it checks:**
|
|
401
|
+
- OpenCode CLI version
|
|
402
|
+
- FlowDeck plugin registration
|
|
403
|
+
- Workspace state (STATE.md)
|
|
404
|
+
- Codebase map (ARCHITECTURE.md)
|
|
405
|
+
- Planning phases directory
|
|
459
406
|
|
|
460
407
|
**Example:**
|
|
461
408
|
```
|
|
462
|
-
/fd-
|
|
463
|
-
/fd-multi-repo --add ../order-service consumer
|
|
464
|
-
/fd-multi-repo --list
|
|
465
|
-
/fd-multi-repo --status
|
|
466
|
-
/fd-multi-repo --remove notification-service
|
|
409
|
+
/fd-doctor
|
|
467
410
|
```
|
|
468
411
|
|
|
469
|
-
**What Next?**
|
|
470
|
-
1. Run `@multi-repo-coordinator` with a cross-cutting change description to begin coordinated work
|
|
471
|
-
2. Run `/fd-multi-repo --status` before starting any cross-repo feature to check for diverged branches
|
|
472
|
-
3. Run `/fd-settings` to confirm workspace mode is set to `multi`
|
|
473
|
-
|
|
474
412
|
---
|
|
475
413
|
|
|
476
|
-
← [Back to Index](index.md)
|
|
414
|
+
← [Back to Index](index.md)
|