@dv.nghiem/flowdeck 0.2.3 → 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.
Files changed (100) hide show
  1. package/README.md +24 -41
  2. package/dist/hooks/memory-hook.d.ts +21 -0
  3. package/dist/hooks/memory-hook.d.ts.map +1 -0
  4. package/dist/hooks/orchestrator-guard-hook.d.ts +2 -1
  5. package/dist/hooks/orchestrator-guard-hook.d.ts.map +1 -1
  6. package/dist/hooks/todo-hook.d.ts +1 -7
  7. package/dist/hooks/todo-hook.d.ts.map +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +649 -310
  10. package/dist/services/memory-store.d.ts +40 -0
  11. package/dist/services/memory-store.d.ts.map +1 -0
  12. package/dist/services/telemetry.d.ts +1 -1
  13. package/dist/services/telemetry.d.ts.map +1 -1
  14. package/dist/tools/memory-search.d.ts +3 -0
  15. package/dist/tools/memory-search.d.ts.map +1 -0
  16. package/docs/commands/fd-doctor.md +21 -0
  17. package/docs/commands/fd-quick.md +33 -0
  18. package/docs/commands/fd-reflect.md +23 -0
  19. package/docs/commands/fd-status.md +31 -0
  20. package/docs/commands/fd-translate-intent.md +17 -0
  21. package/docs/commands.md +209 -271
  22. package/docs/configuration.md +2 -1
  23. package/docs/index.md +22 -28
  24. package/docs/memory.md +69 -0
  25. package/docs/quick-start.md +1 -1
  26. package/docs/workflows.md +72 -320
  27. package/package.json +1 -2
  28. package/src/commands/fd-deploy-check.md +189 -34
  29. package/src/commands/fd-discuss.md +44 -6
  30. package/src/commands/fd-fix-bug.md +47 -20
  31. package/src/commands/fd-map-codebase.md +66 -18
  32. package/src/commands/fd-multi-repo.md +130 -6
  33. package/src/commands/fd-new-feature.md +164 -21
  34. package/src/commands/fd-new-project.md +14 -1
  35. package/src/commands/fd-plan.md +66 -44
  36. package/src/commands/fd-quick.md +60 -0
  37. package/src/commands/fd-reflect.md +41 -2
  38. package/src/commands/fd-status.md +84 -0
  39. package/src/commands/fd-write-docs.md +55 -23
  40. package/src/rules/README.md +8 -7
  41. package/src/skills/agent-harness-construction/SKILL.md +227 -0
  42. package/src/skills/api-design/SKILL.md +5 -0
  43. package/src/skills/backend-patterns/SKILL.md +105 -0
  44. package/src/skills/clean-architecture/SKILL.md +85 -0
  45. package/src/skills/cqrs/SKILL.md +230 -0
  46. package/src/skills/ddd-architecture/SKILL.md +104 -0
  47. package/src/skills/django-patterns/SKILL.md +304 -0
  48. package/src/skills/django-tdd/SKILL.md +297 -0
  49. package/src/skills/event-driven-architecture/SKILL.md +152 -0
  50. package/src/skills/frontend-pattern/SKILL.md +159 -0
  51. package/src/skills/hexagonal-architecture/SKILL.md +80 -0
  52. package/src/skills/layered-architecture/SKILL.md +64 -0
  53. package/src/skills/postgres-patterns/SKILL.md +74 -0
  54. package/src/skills/python-patterns/SKILL.md +5 -0
  55. package/src/skills/saga-architecture/SKILL.md +113 -0
  56. package/dist/tools/run-parallel.d.ts +0 -4
  57. package/dist/tools/run-parallel.d.ts.map +0 -1
  58. package/docs/command-migration.md +0 -175
  59. package/docs/commands/fd-analyze-change.md +0 -107
  60. package/docs/commands/fd-dashboard.md +0 -11
  61. package/docs/commands/fd-evaluate-risk.md +0 -134
  62. package/docs/commands/fd-guarded-edit.md +0 -105
  63. package/docs/commands/fd-progress.md +0 -11
  64. package/docs/commands/fd-review-code.md +0 -29
  65. package/docs/commands/fd-roadmap.md +0 -10
  66. package/docs/commands/fd-settings.md +0 -10
  67. package/docs/parallel-execution.md +0 -227
  68. package/src/commands/fd-analyze-change.md +0 -57
  69. package/src/commands/fd-approve.md +0 -64
  70. package/src/commands/fd-blast-radius.md +0 -49
  71. package/src/commands/fd-dashboard.md +0 -57
  72. package/src/commands/fd-evaluate-risk.md +0 -62
  73. package/src/commands/fd-guarded-edit.md +0 -69
  74. package/src/commands/fd-impact-radar.md +0 -51
  75. package/src/commands/fd-learn.md +0 -36
  76. package/src/commands/fd-progress.md +0 -50
  77. package/src/commands/fd-regression-predict.md +0 -57
  78. package/src/commands/fd-review-code.md +0 -62
  79. package/src/commands/fd-review-route.md +0 -54
  80. package/src/commands/fd-roadmap.md +0 -46
  81. package/src/commands/fd-settings.md +0 -57
  82. package/src/commands/fd-test-gap.md +0 -54
  83. package/src/commands/fd-volatility-map.md +0 -64
  84. package/src/commands/fd-workspace-status.md +0 -34
  85. package/src/skills/parallel-execute/SKILL.md +0 -92
  86. package/src/workflows/debug-flow.md +0 -119
  87. package/src/workflows/deploy-check-flow.md +0 -98
  88. package/src/workflows/discuss-flow.md +0 -97
  89. package/src/workflows/execute-flow.md +0 -233
  90. package/src/workflows/execute-phase.md +0 -145
  91. package/src/workflows/fix-bug-flow.md +0 -210
  92. package/src/workflows/map-codebase-flow.md +0 -92
  93. package/src/workflows/multi-repo-flow.md +0 -226
  94. package/src/workflows/parallel-execution-flow.md +0 -236
  95. package/src/workflows/plan-flow.md +0 -126
  96. package/src/workflows/plan-phase.md +0 -101
  97. package/src/workflows/refactor-flow.md +0 -122
  98. package/src/workflows/review-code-flow.md +0 -105
  99. package/src/workflows/spec-driven-flow.md +0 -43
  100. package/src/workflows/write-docs-flow.md +0 -95
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 `.planning/` directory and project state files |
10
- | `/fd-discuss` | `[phase-number]` | Structured Q&A session to capture decisions for a phase |
11
- | `/fd-plan` | `[phase-number]` | Generate a detailed implementation plan from discussion output |
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\|issue-number]` | Debug, fix, and verify a bug with regression test |
14
- | `/fd-review-code` | `[scope]` | Parallel code review and security audit |
15
- | `/fd-deploy-check` | | Pre-deploy gate: tests, review, CVE scan |
16
- | `/fd-write-docs` | | Explore public APIs and generate documentation |
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-resume` | | Reload STATE.md and PLAN.md context in a new session |
21
- | `/fd-dashboard` | | Project dashboard: phases, milestones, blockers |
22
- | `/fd-roadmap` | | View or update ROADMAP.md with phase statuses |
23
- | `/fd-settings` | | View or update FlowDeck model and workspace settings |
24
- | `/fd-multi-repo` | `[--add\|--list\|--status\|--remove]` | Manage multi-repo configuration |
25
- | `/fd-impact-radar` | `[--change] [--scope]` | Predict affected files, APIs, tests before editing |
26
- | `/fd-blast-radius` | `[--change] [--depth]` | Show downstream consequences and hidden dependencies |
27
- | `/fd-translate-intent` | `[--intent]` | Convert vague request into ranked concrete implementation options |
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 so subsequent commands have a place to read and write context.
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 in the current working directory
46
- 2. Generates `.planning/PROJECT.md` with project name, description placeholders, and tech stack fields
47
- 3. Generates `.planning/ROADMAP.md` with a blank phase structure
48
- 4. Generates `.planning/STATE.md` with initial status set to `setup`
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 1` to begin structured discovery for Phase 1
59
- 2. Run `/fd-map-codebase` if this is an existing codebase you want indexed
60
- 3. Run `/fd-settings` to configure model assignments before proceeding
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 given phase. The `@discusser` agent asks targeted questions to surface requirements, constraints, and decisions, then saves everything to a phase file.
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
- - `[phase-number]` — the phase number to discuss (required; e.g. `1`, `2`)
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`, which asks a sequence of structured questions about goals, constraints, edge cases, and acceptance criteria
74
- 3. You answer each question in the session
75
- 4. Saves all decisions to `.planning/phases/phase-N/DISCUSS.md` using `D-XX` numbering (D-01, D-02, …)
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 1
71
+ /fd-discuss user authentication
81
72
  ```
82
73
 
83
74
  **What Next?**
84
- 1. Run `/fd-plan 1` to generate a detailed implementation plan from this discussion
85
- 2. Run `/fd-discuss 1` again to add more decisions if you missed something
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 the discussion output for a phase and produces a detailed, step-by-step implementation plan. Requires explicit confirmation before finalizing.
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-number]` — the phase to plan (required; must have a completed DISCUSS.md)
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 and requirements
99
- 2. Invokes `@planner`, which produces a detailed `PLAN.md` with tasks, dependencies, file paths, and acceptance criteria
100
- 3. Invokes `@plan-checker` to validate the plan for completeness, contradiction, and missing edge cases
101
- 4. Displays the plan and any checker feedback
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 "feature description"` to implement the first item in the plan
112
- 2. Run `/fd-progress` to see the full plan summary
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 an orchestrated pipeline of parallel agents. Reads the active PLAN.md for context before starting.
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 (required)
110
+ - `[feature-description]` — plain-language description of the feature
123
111
 
124
112
  **What it does:**
125
- 1. Reads the active `.planning/phases/*/PLAN.md` for context
126
- 2. `@orchestrator` assesses scope and invokes `@parallel-coordinator` if work exceeds ~30 minutes
127
- 3. Executes the standard 4-wave pattern:
128
- - **Wave 1 (parallel):** `@researcher` gathers relevant docs/best practices; `@code-explorer` maps existing patterns
129
- - **Wave 2 (serial):** `@architect` produces interface contracts and data models
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 and refresh tokens"
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 through a focused pipeline: scope analysis, mini-plan, code fix, regression test, and reviewer sign-off.
128
+ **Description:** Diagnoses and fixes a bug using TDD discipline with regression test.
151
129
 
152
130
  **Arguments:**
153
- - `[bug-description or issue-number]` — plain-language description of the bug, or a GitHub/tracker issue number (required)
131
+ - `[bug-description]` — description of the bug
154
132
 
155
133
  **What it does:**
156
- 1. `@debug-specialist` analyzes scope: identifies the failing code path, reproduces the issue, and determines root cause
157
- 2. Produces a mini-plan (2–5 steps) for the fix
158
- 3. `@coder` applies the fix
159
- 4. `@tester` writes a regression test that would have caught the bug
160
- 5. `@reviewer` confirms the fix is complete and the regression test passes
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 after login"
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-review-code
147
+ ## /fd-deploy-check
178
148
 
179
- **Description:** Runs a parallel code review and security audit on the specified scope, then aggregates findings into a tiered report.
149
+ **Description:** All-in-one quality gate combining pre-deployment checks, code review, and pre-change analysis.
180
150
 
181
151
  **Arguments:**
182
- - `[scope]` — file path, directory path, or `staged` (reviews only git-staged changes); required
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
- **What it does:**
185
- 1. `@reviewer` and `@security-auditor` run in parallel over the specified scope
186
- 2. `@reviewer` checks: logic correctness, error handling, naming, test coverage, anti-patterns
187
- 3. `@security-auditor` checks: OWASP Top 10, authentication/authorization, injection risks, secrets in code, dependency vulnerabilities
188
- 4. Results are aggregated into a structured report with three tiers:
189
- - **Critical** — must fix before merge
190
- - **Major** should fix; requires justification to skip
191
- - **Minor** — suggestions and style notes
192
- 5. Saves report to `.planning/reviews/REVIEW-<timestamp>.md`
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-review-code src/payments/
197
- /fd-review-code staged
198
- /fd-review-code src/api/handlers/user.ts
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
- **What Next?**
202
- 1. Address **Critical** findings first, then re-run `/fd-review-code` on the changed files
203
- 2. Run `/fd-fix-bug` for any defects surfaced in the review
204
- 3. Run `/fd-deploy-check` once all criticals are resolved
205
- 4. Run `/fd-checkpoint` to save progress
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-deploy-check
196
+ ## /fd-resume
210
197
 
211
- **Description:** Runs a full pre-deployment gate. All checks must pass before the orchestrator issues a go/no-go decision. Blocks deploy if any check fails.
198
+ **Description:** Reload STATE.md and PLAN.md to continue an interrupted session.
212
199
 
213
- **Arguments:** None
200
+ **Arguments:**
201
+ - `[--yes]` — skip confirmation pause
214
202
 
215
203
  **What it does:**
216
- 1. Runs three checks in parallel:
217
- - `@tester` executes the full test suite and checks coverage thresholds
218
- - `@reviewer` does a final quality pass on changes since the last deploy
219
- - CVE scanner checks all dependencies against known vulnerability databases
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-deploy-check
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-write-docs
217
+ ## /fd-checkpoint
239
218
 
240
- **Description:** Explores all public APIs in the codebase and generates documentation. A `@reviewer` then checks the draft for accuracy against the actual code.
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. `@code-explorer` scans the codebase for public-facing interfaces, exported functions, REST endpoints, and configuration options
246
- 2. `@writer` drafts documentation: function signatures with descriptions, parameter tables, return values, usage examples, and any error conditions
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-write-docs
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-map-codebase
234
+ ## /fd-reflect
265
235
 
266
- **Description:** Builds a structured map of the codebase into `.codebase/` files. Essential before starting work on an unfamiliar or large project.
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
- - `[--full]` — perform a deep scan including all dependencies and test files (optional)
270
- - `[--update]` — update an existing map rather than regenerating from scratch (optional)
239
+ - `[--mode=reflect]` — default reflection mode
240
+ - `[--mode=learn]` — capture pattern as reusable skill
271
241
 
272
- **What it does:**
273
- 1. `@code-explorer` scans the entire project (respecting `.gitignore`)
274
- 2. Writes or updates five files in `.codebase/`:
275
- - `STACK.md` languages, frameworks, major libraries, and versions
276
- - `ARCHITECTURE.md` — high-level architecture: layers, services, data flow
277
- - `STRUCTURE.md` — directory tree with purpose annotations per directory
278
- - `CONVENTIONS.md` naming patterns, file organization rules, detected style
279
- - `TESTING.md` test framework, test locations, coverage tooling, CI integration
280
- 3. Updates `.planning/STATE.md` to note that codebase map is current
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-map-codebase
285
- /fd-map-codebase --full
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-progress
260
+ ## /fd-map-codebase
297
261
 
298
- **Description:** Displays a snapshot of the current project state. Reads directly from state files — no agents are invoked.
262
+ **Description:** Analyze codebase and generate structured documentation in `.codebase/`.
299
263
 
300
- **Arguments:** None
264
+ **Arguments:**
265
+ - `[--incremental]` — only update changed files
301
266
 
302
267
  **What it does:**
303
- 1. Reads and displays `.planning/STATE.md` current phase, status, last action
304
- 2. Reads and displays the active `.planning/phases/*/PLAN.md` — remaining tasks
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-progress
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-checkpoint
279
+ ## /fd-write-docs
321
280
 
322
- **Description:** Persists the current session state to `.planning/STATE.md`. Run this before closing an OpenCode session so nothing is lost.
281
+ **Description:** Explore public APIs and generate accurate documentation.
323
282
 
324
- **Arguments:** None
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. Writes current phase, completed tasks, pending tasks, and any in-progress context to `.planning/STATE.md`
328
- 2. Records a timestamp and session summary
329
- 3. Confirms: "State saved. Safe to close this session."
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-checkpoint
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-resume
300
+ ## /fd-multi-repo
344
301
 
345
- **Description:** Reloads project context at the start of a new OpenCode session. Reads STATE.md and the active PLAN.md so you can continue where you left off.
302
+ **Description:** Orchestrate changes spanning multiple repositories.
346
303
 
347
- **Arguments:** None
348
-
349
- **What it does:**
350
- 1. Reads `.planning/STATE.md` and reports current phase and status
351
- 2. Reads the active `.planning/phases/*/PLAN.md` and loads its task list into context
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-resume
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-dashboard
319
+ ## /fd-translate-intent
368
320
 
369
- **Description:** Renders a project dashboard showing phase-by-phase progress, milestone status, and any active blockers.
321
+ **Description:** Convert vague or high-level requests into concrete ranked implementation options with tradeoffs.
370
322
 
371
- **Arguments:** None
323
+ **Arguments:**
324
+ - `[vague intent]` — e.g., "make checkout faster"
372
325
 
373
326
  **What it does:**
374
- 1. Reads `.planning/ROADMAP.md`, `.planning/STATE.md`, and all phase directories
375
- 2. Renders a structured dashboard:
376
- - Phase completion percentages
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-dashboard
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-roadmap
338
+ ## /fd-ask
395
339
 
396
- **Description:** View or update the project roadmap. Shows all phases with their current statuses and lets you mark phases as complete or add new ones.
340
+ **Description:** Route a focused question to the most appropriate specialist agent.
397
341
 
398
- **Arguments:** None (interactive prompts guide updates)
399
-
400
- **What it does:**
401
- 1. Reads and displays `.planning/ROADMAP.md` with phase names, statuses, and target dates
402
- 2. Prompts you to update any phase status or add new phases
403
- 3. Saves changes back to `.planning/ROADMAP.md`
404
- 4. Reflects changes in subsequent `/fd-dashboard` calls
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-roadmap
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-settings
363
+ ## /fd-quick
419
364
 
420
- **Description:** View or update FlowDeck configuration: model assignments per agent, guard enforcement, and workspace mode.
365
+ **Description:** Execute a focused task without the full workflow. Selects best specialist agent automatically.
421
366
 
422
- **Arguments:** None (interactive prompts guide configuration)
423
-
424
- **What it does:**
425
- 1. Reads `.planning/config.json` and displays current settings
426
- 2. Presents configuration options:
427
- - **Model assignments** which AI model handles each agent role (e.g. `@architect → claude-3-5-sonnet`)
428
- - **Guard enforcement** — whether security and review guards are mandatory or advisory
429
- - **Workspace mode** `single` (one repo) or `multi` (multi-repo coordination enabled)
430
- 3. Saves changes to `.planning/config.json`
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-settings
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-multi-repo
394
+ ## /fd-doctor
445
395
 
446
- **Description:** Manages multi-repo configuration in `.planning/config.json`. Register, list, check status of, or remove service repositories for cross-repo coordination.
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 does:**
455
- - `--add`: Resolves the path, detects tech stack, and appends an entry to `sub_repos` in `.planning/config.json`
456
- - `--list`: Reads `sub_repos` and prints a formatted table of name, path, role, tech stack, and owner team
457
- - `--status`: Runs `git status` in each registered repo and summarizes uncommitted changes and branch positions
458
- - `--remove`: Removes the named entry from `sub_repos` in `.planning/config.json`
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-multi-repo --add ../user-service upstream-api
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)