@dv.nghiem/flowdeck 0.3.9 → 0.4.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.
Files changed (124) hide show
  1. package/README.md +13 -21
  2. package/dist/agents/code-explorer.d.ts.map +1 -1
  3. package/dist/agents/mapper.d.ts.map +1 -1
  4. package/dist/agents/orchestrator.d.ts.map +1 -1
  5. package/dist/agents/planner.d.ts.map +1 -1
  6. package/dist/agents/specialist.d.ts.map +1 -1
  7. package/dist/dashboard/server.mjs +12 -2
  8. package/dist/hooks/compaction-hook.d.ts +1 -2
  9. package/dist/hooks/compaction-hook.d.ts.map +1 -1
  10. package/dist/hooks/file-tracker.d.ts +6 -0
  11. package/dist/hooks/file-tracker.d.ts.map +1 -1
  12. package/dist/hooks/notifications.d.ts.map +1 -1
  13. package/dist/hooks/session-start.d.ts.map +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +742 -794
  16. package/dist/lib/completion-validator.d.ts +51 -0
  17. package/dist/lib/completion-validator.d.ts.map +1 -0
  18. package/dist/lib/recommended-question.d.ts +24 -0
  19. package/dist/lib/recommended-question.d.ts.map +1 -0
  20. package/dist/lib/research-gate.d.ts +97 -0
  21. package/dist/lib/research-gate.d.ts.map +1 -0
  22. package/dist/lib/research-gate.test.d.ts +2 -0
  23. package/dist/lib/research-gate.test.d.ts.map +1 -0
  24. package/dist/mcp/index.d.ts +12 -2
  25. package/dist/mcp/index.d.ts.map +1 -1
  26. package/dist/services/codegraph.d.ts +36 -0
  27. package/dist/services/codegraph.d.ts.map +1 -0
  28. package/dist/services/codegraph.test.d.ts +2 -0
  29. package/dist/services/codegraph.test.d.ts.map +1 -0
  30. package/dist/services/question-guard.d.ts +4 -0
  31. package/dist/services/question-guard.d.ts.map +1 -1
  32. package/dist/services/recommended-question.test.d.ts +2 -0
  33. package/dist/services/recommended-question.test.d.ts.map +1 -0
  34. package/dist/services/supervisor-binding.d.ts +3 -1
  35. package/dist/services/supervisor-binding.d.ts.map +1 -1
  36. package/dist/tools/codebase-index.d.ts +30 -0
  37. package/dist/tools/codebase-index.d.ts.map +1 -0
  38. package/dist/tools/codebase-index.test.d.ts +2 -0
  39. package/dist/tools/codebase-index.test.d.ts.map +1 -0
  40. package/dist/tools/codegraph-tool.d.ts +3 -0
  41. package/dist/tools/codegraph-tool.d.ts.map +1 -0
  42. package/dist/tools/planning-state-lib.d.ts +23 -0
  43. package/dist/tools/planning-state-lib.d.ts.map +1 -1
  44. package/docs/agents/index.md +154 -0
  45. package/docs/commands/fd-ask.md +71 -39
  46. package/docs/commands/fd-checkpoint.md +63 -8
  47. package/docs/commands/fd-deploy-check.md +166 -9
  48. package/docs/commands/fd-design.md +101 -0
  49. package/docs/commands/fd-discuss.md +87 -20
  50. package/docs/commands/fd-doctor.md +100 -13
  51. package/docs/commands/fd-done.md +215 -0
  52. package/docs/commands/fd-execute.md +104 -0
  53. package/docs/commands/fd-fix-bug.md +144 -24
  54. package/docs/commands/fd-map-codebase.md +85 -21
  55. package/docs/commands/fd-multi-repo.md +155 -40
  56. package/docs/commands/fd-new-feature.md +63 -19
  57. package/docs/commands/fd-plan.md +80 -27
  58. package/docs/commands/fd-quick.md +143 -29
  59. package/docs/commands/fd-reflect.md +81 -13
  60. package/docs/commands/fd-resume.md +65 -8
  61. package/docs/commands/fd-status.md +80 -12
  62. package/docs/commands/fd-suggest.md +114 -0
  63. package/docs/commands/fd-translate-intent.md +69 -9
  64. package/docs/commands/fd-verify.md +71 -14
  65. package/docs/commands/fd-write-docs.md +121 -8
  66. package/docs/concepts/architecture.md +163 -0
  67. package/docs/concepts/governance.md +242 -0
  68. package/docs/concepts/intelligence.md +145 -0
  69. package/docs/concepts/multi-repo.md +227 -0
  70. package/docs/concepts/workflows.md +205 -0
  71. package/docs/configuration/index.md +208 -0
  72. package/docs/configuration/opencode-settings.md +98 -0
  73. package/docs/getting-started/first-project.md +126 -0
  74. package/docs/getting-started/installation.md +73 -0
  75. package/docs/getting-started/quick-start.md +74 -0
  76. package/docs/index.md +36 -72
  77. package/docs/reference/hooks.md +176 -0
  78. package/docs/reference/rules.md +109 -0
  79. package/docs/skills/code-review.md +47 -0
  80. package/docs/skills/index.md +148 -0
  81. package/docs/skills/planning.md +39 -0
  82. package/package.json +1 -1
  83. package/src/commands/fd-discuss.md +74 -10
  84. package/src/commands/fd-done.md +196 -0
  85. package/src/commands/fd-execute.md +43 -6
  86. package/src/commands/fd-fix-bug.md +43 -6
  87. package/src/commands/fd-map-codebase.md +99 -19
  88. package/src/commands/fd-new-feature.md +14 -5
  89. package/src/commands/fd-plan.md +38 -1
  90. package/src/commands/fd-quick.md +1 -1
  91. package/src/commands/fd-resume.md +1 -1
  92. package/src/commands/fd-status.md +1 -1
  93. package/src/commands/fd-verify.md +16 -2
  94. package/src/commands/fd-write-docs.md +30 -5
  95. package/src/skills/context-load/SKILL.md +1 -1
  96. package/dist/hooks/memory-hook.d.ts +0 -28
  97. package/dist/hooks/memory-hook.d.ts.map +0 -1
  98. package/dist/services/memory-store.d.ts +0 -73
  99. package/dist/services/memory-store.d.ts.map +0 -1
  100. package/dist/services/memory-store.test.d.ts +0 -2
  101. package/dist/services/memory-store.test.d.ts.map +0 -1
  102. package/dist/tools/memory-search.d.ts +0 -3
  103. package/dist/tools/memory-search.d.ts.map +0 -1
  104. package/dist/tools/memory-status.d.ts +0 -3
  105. package/dist/tools/memory-status.d.ts.map +0 -1
  106. package/docs/USER_GUIDE.md +0 -20
  107. package/docs/agents.md +0 -544
  108. package/docs/best-practices.md +0 -47
  109. package/docs/commands/fd-new-project.md +0 -24
  110. package/docs/commands.md +0 -557
  111. package/docs/configuration.md +0 -325
  112. package/docs/design-first-workflow.md +0 -94
  113. package/docs/feature-integration-architecture.md +0 -227
  114. package/docs/installation.md +0 -123
  115. package/docs/intelligence.md +0 -370
  116. package/docs/memory.md +0 -69
  117. package/docs/multi-repo.md +0 -201
  118. package/docs/notifications.md +0 -170
  119. package/docs/optimization-baseline.md +0 -21
  120. package/docs/quick-start.md +0 -197
  121. package/docs/rules.md +0 -432
  122. package/docs/skills.md +0 -417
  123. package/docs/workflows.md +0 -134
  124. package/src/commands/fd-new-project.md +0 -114
package/docs/commands.md DELETED
@@ -1,557 +0,0 @@
1
- # FlowDeck Commands
2
-
3
- Commands are slash commands registered in OpenCode. Run them by typing `/command-name [arguments]` in any OpenCode session.
4
-
5
- ## Quick Reference
6
-
7
- | Command | Arguments | Description |
8
- |---------|-----------|-------------|
9
- | `/fd-new-project` | `[project-name]` | Initialize project with planning structure and default config |
10
- | `/fd-new-feature` | `[feature-description]` | Define a new feature and initialize feature context |
11
- | `/fd-discuss` | `[topic]` | Structured Q&A to capture decisions for a phase |
12
- | `/fd-plan` | `[--phase=N]` | Generate detailed implementation plan from decisions |
13
- | `/fd-design` | `[--mode=draft\|review\|system] [task-description]` | Run design-first stages, UI review, or design-system guidance for UI-heavy tasks |
14
- | `/fd-execute` | `[--phase=N] [--override]` | Implement feature with TDD pipeline and parallel agents |
15
- | `/fd-verify` | `[--phase=N] [--env=staging\|production]` | Verify feature completion: tests, review, security, deploy check |
16
- | `/fd-fix-bug` | `[bug-description]` | Debug, fix, and verify bug with regression test |
17
- | `/fd-deploy-check` | `[--check=deploy,review,analysis]` | Pre-deploy checks, code review, or pre-change analysis |
18
- | `/fd-status` | `[--roadmap \| --workspace \| --phase=N]` | Combined status, roadmap, and workspace view |
19
- | `/fd-resume` | `[--yes]` | Reload STATE.md and PLAN.md to continue interrupted session |
20
- | `/fd-checkpoint` | — | Persist current state to STATE.md |
21
- | `/fd-reflect` | `[--mode=reflect,learn]` | Post-session reflection or capture skill from session |
22
- | `/fd-map-codebase` | `[--incremental]` | Map codebase into structured `.codebase/` files |
23
- | `/fd-write-docs` | `[--scope=path]` | Explore APIs and generate documentation |
24
- | `/fd-multi-repo` | `[list \| add <path> [name] \| remove <name> \| status]` | Multi-repo orchestration |
25
- | `/fd-translate-intent` | `[vague intent]` | Convert vague request into ranked implementation options |
26
- | `/fd-ask` | `[question]` | Route question to specialist agent (architect, security, etc.) |
27
- | `/fd-quick` | `[task description]` | Autonomous workflow launcher — classifies task, selects correct workflow, runs all stages end-to-end |
28
- | `/fd-doctor` | — | Check FlowDeck installation and environment health |
29
-
30
- ---
31
-
32
- ## Detailed Command Reference
33
-
34
- ## /fd-new-project
35
-
36
- **Description:** Bootstraps a new FlowDeck-managed project. Creates the `.planning/` directory and all required state files including default config.
37
-
38
- **Arguments:**
39
- - `[project-name]` — name of the project (optional; defaults to current directory name)
40
-
41
- **What it does:**
42
- 1. Creates `.planning/` directory
43
- 2. Generates `.planning/PROJECT.md`, `.planning/ROADMAP.md`, `.planning/STATE.md`
44
- 3. Creates `.planning/config.json` with default settings (model_profile, tdd_enforced, etc.)
45
- 4. Creates `.planning/phases/phase-1/` directory
46
-
47
- **Example:**
48
- ```
49
- /fd-new-project my-api-service
50
- ```
51
-
52
- **What Next?**
53
- 1. Run `/fd-new-feature` to define your first feature
54
- 2. Run `/fd-map-codebase` if this is an existing codebase
55
- 3. Edit `.planning/config.json` directly to change settings
56
-
57
- ---
58
-
59
- ## /fd-new-feature
60
-
61
- **Description:** Define a new feature and initialize feature context. This is the first step of the feature workflow after project setup.
62
-
63
- **Arguments:**
64
- - `[feature-description]` — name or short description of the feature
65
-
66
- **What it does:**
67
- 1. Reads `.planning/STATE.md` to determine current phase
68
- 2. Creates `.planning/phases/phase-N/FEATURE.md` with feature context
69
- 3. Updates STATE.md with feature definition
70
- 4. Displays the workflow steps ahead: discuss → plan → execute → verify
71
-
72
- **Example:**
73
- ```
74
- /fd-new-feature user authentication
75
- ```
76
-
77
- **What Next?**
78
- 1. Run `/fd-discuss` to capture requirements
79
- 2. Run `/fd-plan` to create implementation plan
80
- 3. Run `/fd-execute` to implement with TDD
81
- 4. Run `/fd-verify` to confirm all checks pass
82
-
83
- ---
84
-
85
- ## /fd-discuss
86
-
87
- **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.
88
-
89
- **Arguments:**
90
- - `[topic]` — optional topic to focus the discussion
91
-
92
- **What it does:**
93
- 1. Loads `.planning/FEATURE.md` and `.planning/STATE.md` for context
94
- 2. Invokes `@discusser` agent which asks targeted questions one at a time
95
- 3. Records decisions with D-XX numbering (D-01, D-02, …)
96
- 4. Saves to `.planning/phases/phase-N/DISCUSS.md`
97
-
98
- **Example:**
99
- ```
100
- /fd-discuss
101
- ```
102
-
103
- **What Next?**
104
- 1. Run `/fd-plan` to generate implementation plan from decisions
105
- 2. Run `/fd-discuss` again to add more decisions if needed
106
-
107
- ---
108
-
109
- ## /fd-plan
110
-
111
- **Description:** Reads decisions from DISCUSS.md and produces a detailed implementation plan. Requires explicit CONFIRM before saving.
112
-
113
- **Arguments:**
114
- - `[--phase=N]` — target specific phase
115
- - `[--yes]` — skip confirmation
116
-
117
- **What it does:**
118
- 1. Reads `.planning/phases/phase-N/DISCUSS.md` for decisions
119
- 2. Creates detailed `PLAN.md` with tasks tracing D-XX decisions
120
- 3. Validates plan completeness
121
- 4. **PAUSES** for user CONFIRM before saving
122
-
123
- **Example:**
124
- ```
125
- /fd-plan
126
- /fd-plan --phase=1
127
- ```
128
-
129
- **What Next?**
130
- 1. If UI-heavy, run `/fd-design --mode=draft` first
131
- 2. Run `/fd-execute` to implement the plan
132
- 3. Run `/fd-plan --phase=2` for next phase
133
-
134
- ---
135
-
136
- ## /fd-design
137
-
138
- **Description:** Design-first workflow for UI-heavy tasks. Supports planning (`draft`), fidelity review (`review`), and design system updates (`system`).
139
-
140
- **Arguments:**
141
- - `[--mode=draft|review|system]` — default is `draft`
142
- - `[task-description]` — UI task or review scope
143
- - `[--override]` — explicit override path when skipping design gate
144
-
145
- **What it does:**
146
- 1. Detects UI-heavy task types (landing page, dashboard, admin panel, app screen, etc.)
147
- 2. Runs structured design stages: discovery → UX planning → wireframe/layout → visual system → approval → handoff
148
- 3. Persists structured design artifact in planning state for downstream implementation
149
- 4. In `review` mode, reports design fidelity gaps against approved artifacts
150
- 5. In `system` mode, generates or updates token and component guidance
151
-
152
- **Example:**
153
- ```
154
- /fd-design --mode=draft redesign dashboard onboarding
155
- /fd-design --mode=review phase-2 dashboard implementation
156
- /fd-design --mode=system app shell tokens
157
- ```
158
-
159
- ---
160
-
161
- ## /fd-execute
162
-
163
- **Description:** Implement the current phase's plan using TDD discipline with parallel agents. This is the execution step after planning is confirmed.
164
-
165
- **Arguments:**
166
- - `[--phase=N]` — target specific phase
167
- - `[--override]` — bypass guards and proceed anyway
168
-
169
- **What it does:**
170
- 1. Reads `.planning/phases/phase-N/PLAN.md` for implementation steps
171
- 2. If UI-heavy and design-first is enabled, requires approved design handoff before coding
172
- 3. For each step, enforces TDD cycle: BEHAVIOR → RED → GREEN → REFACTOR
173
- 3. `@tester` writes failing tests first
174
- 4. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum to pass
175
- 5. `@reviewer` confirms quality
176
- 6. Updates `STATE.md` with completed steps
177
- 7. Waves execute in order, with parallel tasks within each wave
178
-
179
- **Example:**
180
- ```
181
- /fd-execute
182
- /fd-execute --phase=1
183
- ```
184
-
185
- **What Next?**
186
- 1. Run `/fd-verify` to confirm all checks pass
187
- 2. Commit changes and create pull request
188
- 3. Run `/fd-checkpoint` to save session state
189
-
190
- ---
191
-
192
- ## /fd-verify
193
-
194
- **Description:** Verify feature completion with full test suite, code review, security scan, and deploy check.
195
-
196
- **Arguments:**
197
- - `[--phase=N]` — target specific phase
198
- - `[--env=staging|production]` — environment for deploy check (default: staging)
199
-
200
- **What it does:**
201
- 1. Runs test suite — all tests must pass
202
- 2. Runs code review — `@reviewer` checks quality, security, conventions
203
- 3. Runs security scan — `@security-auditor` checks for vulnerabilities
204
- 4. Runs deploy check — build verification, CVE audit, readiness
205
- 5. Aggregates all findings into a verification report
206
- 6. Updates STATE.md if all checks pass
207
-
208
- **Example:**
209
- ```
210
- /fd-verify
211
- /fd-verify --phase=1 --env=production
212
- ```
213
-
214
- **Verdict:**
215
- - ✅ **VERIFIED** — all checks pass, feature is ready
216
- - ❌ **NOT VERIFIED** — one or more checks failed; review report and fix issues
217
-
218
- **What Next?**
219
- 1. If VERIFIED: merge changes, deploy, or move to next phase
220
- 2. If NOT VERIFIED: fix issues and run `/fd-verify` again
221
-
222
- ---
223
-
224
- ## /fd-new-feature (old — now use /fd-execute)
225
-
226
- **Description:** Implements a new feature end-to-end using TDD discipline with parallel agents. Reads active PLAN.md for context.
227
-
228
- **DEPRECATED:** Use `/fd-execute` instead. The `/fd-new-feature` command is now the entry point for defining features (step 1 of 6).
229
-
230
- **Arguments:**
231
- - `[feature-description]` — plain-language description of the feature
232
-
233
- **What it does:**
234
- 1. Enforces TDD cycle: BEHAVIOR → RED → GREEN → REFACTOR
235
- 2. `@tester` writes failing tests first
236
- 3. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum to pass
237
- 4. `@reviewer` confirms quality
238
- 5. Updates `STATE.md` with completed steps
239
-
240
- **Example:**
241
- ```
242
- /fd-execute "user authentication with JWT"
243
- ```
244
-
245
- ---
246
-
247
- ## /fd-fix-bug
248
-
249
- **Description:** Diagnoses and fixes a bug using TDD discipline with regression test.
250
-
251
- **Arguments:**
252
- - `[bug-description]` — description of the bug
253
-
254
- **What it does:**
255
- 1. `@researcher` investigates and isolates root cause
256
- 2. `@tester` writes regression test that fails (RED)
257
- 3. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum fix (GREEN)
258
- 4. `@reviewer` confirms fix (REFACTOR)
259
- 5. Records in `.codebase/FAILURES.json`
260
-
261
- **Example:**
262
- ```
263
- /fd-fix-bug "user sessions expire immediately"
264
- ```
265
-
266
- ---
267
-
268
- ## /fd-deploy-check
269
-
270
- **Description:** All-in-one quality gate combining pre-deployment checks, code review, and pre-change analysis.
271
-
272
- **Arguments:**
273
- - `[--check=deploy,review,analysis]` — type of check (default: deploy)
274
- - `[--env=staging|production]` — target environment (default: staging)
275
- - `[--scope=path]` — file scope for review/analysis
276
-
277
- **Check Types:**
278
-
279
- ### Deploy (`--check=deploy` or default)
280
- Runs parallel checks: test suite, security scan, CVE audit, build verification, code review.
281
-
282
- ### Review (`--check=review`)
283
- Parallel reviewer + researcher + tester on changed files. Aggregates findings by severity (CRITICAL/HIGH/MEDIUM/LOW).
284
-
285
- ### Analysis (`--check=analysis`)
286
- Comprehensive pre-change analysis: impact radar, blast radius, regression prediction, test gaps, volatility, review routing.
287
-
288
- **Example:**
289
- ```
290
- /fd-deploy-check --check=deploy
291
- /fd-deploy-check --check=review --scope=src/auth/
292
- /fd-deploy-check --check=analysis "add refresh token support"
293
- ```
294
-
295
- ---
296
-
297
- ## /fd-status
298
-
299
- **Description:** View project status combining progress, roadmap, and workspace overview.
300
-
301
- **Arguments:**
302
- - (no flags) — show current phase status summary
303
- - `[--roadmap]` — display project roadmap with phase statuses
304
- - `[--workspace]` — show all registered repositories overview
305
- - `[--phase=N]` — show detailed progress for specific phase
306
-
307
- **Example:**
308
- ```
309
- /fd-status
310
- /fd-status --roadmap
311
- /fd-status --workspace
312
- /fd-status --phase=2
313
- ```
314
-
315
- ---
316
-
317
- ## /fd-resume
318
-
319
- **Description:** Reload STATE.md and PLAN.md to continue an interrupted session.
320
-
321
- **Arguments:**
322
- - `[--yes]` — skip confirmation pause
323
-
324
- **What it does:**
325
- 1. Reads current phase and status from STATE.md
326
- 2. Shows plan preview from active PLAN.md
327
- 3. **PAUSES** for user CONFIRM (unless `--yes`)
328
- 4. Continues execution from where stopped
329
-
330
- **Example:**
331
- ```
332
- /fd-resume
333
- /fd-resume --yes
334
- ```
335
-
336
- ---
337
-
338
- ## /fd-checkpoint
339
-
340
- **Description:** Persist current session state to STATE.md. Safe to close session after.
341
-
342
- **Arguments:** None
343
-
344
- **What it does:**
345
- 1. Updates `.planning/STATE.md` with current phase, completed steps, last action
346
- 2. Writes checkpoint summary to `.planning/phases/phase-N/CHECKPOINT.md`
347
-
348
- **Example:**
349
- ```
350
- /fd-checkpoint
351
- ```
352
-
353
- ---
354
-
355
- ## /fd-reflect
356
-
357
- **Description:** Post-session reflection to analyse artifacts and propose improvements. Can also capture session learnings as reusable skills.
358
-
359
- **Arguments:**
360
- - `[--mode=reflect]` — default reflection mode
361
- - `[--mode=learn]` — capture pattern as reusable skill
362
-
363
- **Reflect Mode:**
364
- - Analyzes session artifacts for patterns
365
- - Proposes new skills, policies, or workflow changes
366
- - Provides 3-5 bullet summary of learnings
367
-
368
- **Learn Mode:**
369
- - Identifies worth-capturing patterns from session
370
- - Creates reusable skill in `src/skills/`
371
- - Reports what was captured and activation reminder
372
-
373
- **Example:**
374
- ```
375
- /fd-reflect
376
- /fd-reflect --mode=learn auth-pattern
377
- ```
378
-
379
- ---
380
-
381
- ## /fd-map-codebase
382
-
383
- **Description:** Analyze codebase and generate structured documentation in `.codebase/`.
384
-
385
- **Arguments:**
386
- - `[--incremental]` — only update changed files
387
-
388
- **What it does:**
389
- 1. Runs 6 mapper agents in parallel (each in isolated worktree)
390
- 2. Generates: STACK.md, ARCHITECTURE.md, STRUCTURE.md, CONVENTIONS.md, TESTING.md, CONCERNS.md
391
-
392
- **Example:**
393
- ```
394
- /fd-map-codebase
395
- /fd-map-codebase --incremental
396
- ```
397
-
398
- ---
399
-
400
- ## /fd-write-docs
401
-
402
- **Description:** Explore public APIs and generate accurate documentation.
403
-
404
- **Arguments:**
405
- - `[--scope=path]` — limit to specific path
406
- - `[--format=api,guide,readme]` — output format
407
-
408
- **What it does:**
409
- 1. Finds all exported functions, classes, types
410
- 2. `@writer` drafts documentation
411
- 3. `@reviewer` verifies accuracy against actual code
412
- 4. Writes to docs/ directory
413
-
414
- **Example:**
415
- ```
416
- /fd-write-docs --scope=src/auth --format=api
417
- ```
418
-
419
- ---
420
-
421
- ## /fd-multi-repo
422
-
423
- **Description:** Orchestrate changes spanning multiple repositories.
424
-
425
- **Arguments:**
426
- - `list` — show registered repos
427
- - `add <path> [name]` — register a repository
428
- - `remove <name>` — unregister a repository
429
- - `status` — show status across all repos
430
-
431
- **Example:**
432
- ```
433
- /fd-multi-repo list
434
- /fd-multi-repo add ../user-service user-service
435
- /fd-multi-repo status
436
- ```
437
-
438
- ---
439
-
440
- ## /fd-translate-intent
441
-
442
- **Description:** Convert vague or high-level requests into concrete ranked implementation options with tradeoffs.
443
-
444
- **Arguments:**
445
- - `[vague intent]` — e.g., "make checkout faster"
446
-
447
- **What it does:**
448
- 1. `@architect` decomposes into 3-5 concrete options
449
- 2. `@researcher` provides codebase context for each
450
- 3. Report shows options ranked with effort/risk/tradeoffs
451
-
452
- **Example:**
453
- ```
454
- /fd-translate-intent make checkout faster
455
- ```
456
-
457
- ---
458
-
459
- ## /fd-ask
460
-
461
- **Description:** Route a focused question to the most appropriate specialist agent.
462
-
463
- **Arguments:**
464
- - `[question]` — your question
465
-
466
- **Routing:**
467
- | Keywords | Agent |
468
- |----------|-------|
469
- | design, architecture, structure | @architect |
470
- | security, auth, vulnerability | @security-auditor |
471
- | performance, optimize, latency | @performance-optimizer |
472
- | impact, downstream, dependency | @researcher |
473
- | test, coverage, regression | @tester |
474
- | bug, error, debug | @debug-specialist |
475
-
476
- **Example:**
477
- ```
478
- /fd-ask what is the architecture of the auth system?
479
- /fd-ask how would I add rate limiting?
480
- ```
481
-
482
- ---
483
-
484
- ## /fd-quick
485
-
486
- **Description:** Autonomous workflow launcher. Classifies the task, selects the correct existing FlowDeck workflow, and runs all stages end-to-end with minimal user input. Routes all clarifying questions through `@supervisor`.
487
-
488
- **Arguments:**
489
- - `[task description]` — what you need done (any phrasing — the command classifies it)
490
-
491
- **Task Classification:**
492
-
493
- | Classification | Trigger Signals | Stage Sequence |
494
- |----------------|-----------------|----------------|
495
- | `feature` | Substantive description, no specific signals | `discuss → plan → execute → verify` |
496
- | `ui-feature` | landing page, dashboard, admin panel, app screen, ux flow | `discuss → design → plan → execute → verify` |
497
- | `bugfix` | fix, bug, error, crash, regression, broken, exception | `discuss → fix-bug → verify` |
498
- | `docs` | docs, documentation, readme, api docs, write docs | `discuss → write-docs → verify` |
499
- | `simple` | rename, typo, minor, move file | `execute → verify` |
500
- | `ambiguous` | vague or too short | *supervisor asks one clarifying question* |
501
-
502
- **What it does:**
503
- 1. Classifies the task from `$ARGUMENTS` using signal patterns
504
- 2. Routes ambiguous tasks through `@supervisor` for a single focused clarifying question
505
- 3. Presents the selected stage sequence to the user
506
- 4. Executes each stage in order using the existing registered commands (`/fd-discuss`, `/fd-plan`, etc.)
507
- 5. Gates each stage through `@supervisor` preflight review (approve / revise / block / escalate)
508
- 6. Respects all workflow discipline: TDD gates, design-first gate for UI tasks, plan CONFIRM gate
509
- 7. Pauses only when a supervisor gate requires user approval, or when blocked
510
- 8. Records all routing decisions, stage transitions, and supervisor decisions in STATE.md
511
- 9. On block: explains exactly what stopped execution and what is needed to resume
512
-
513
- **What it preserves:**
514
- - All existing commands (`/fd-discuss`, `/fd-plan`, `/fd-execute`, etc.) remain independently usable
515
- - TDD enforcement is never bypassed
516
- - Design-first gate for UI-heavy tasks is enforced
517
- - Plan CONFIRM gate is always presented to the user
518
- - Verify pipeline always runs at end
519
-
520
- **Example:**
521
- ```
522
- /fd-quick add two-factor authentication to the login system
523
- /fd-quick fix the checkout crash when cart is empty
524
- /fd-quick build a new analytics dashboard for admin users
525
- /fd-quick write API documentation for the user service
526
- /fd-quick rename MAX_RETRIES constant to RETRY_LIMIT
527
- ```
528
-
529
- **Resume after a block:**
530
- ```
531
- /fd-quick <original task description>
532
- ```
533
- `/fd-quick` resumes from the last completed stage automatically.
534
-
535
- ---
536
-
537
- ## /fd-doctor
538
-
539
- **Description:** Check FlowDeck installation and environment health.
540
-
541
- **Arguments:** None
542
-
543
- **What it checks:**
544
- - OpenCode CLI version
545
- - FlowDeck plugin registration
546
- - Workspace state (STATE.md)
547
- - Codebase map (ARCHITECTURE.md)
548
- - Planning phases directory
549
-
550
- **Example:**
551
- ```
552
- /fd-doctor
553
- ```
554
-
555
- ---
556
-
557
- ← [Back to Index](index.md)