@dv.nghiem/flowdeck 0.3.3 → 0.3.5
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 +160 -8
- package/dist/agents/coder.d.ts +3 -1
- package/dist/agents/coder.d.ts.map +1 -1
- package/dist/agents/design.d.ts +3 -0
- package/dist/agents/design.d.ts.map +1 -0
- package/dist/agents/index.d.ts +4 -3
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/orchestrator.d.ts.map +1 -1
- package/dist/agents/reviewer.d.ts.map +1 -1
- package/dist/agents/specialist.d.ts +0 -1
- package/dist/agents/specialist.d.ts.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/loader.d.ts +8 -0
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/schema.d.ts +55 -2
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/dashboard/server.mjs +24 -1
- package/dist/dashboard/types.d.ts +72 -0
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/hooks/guard-rails.d.ts.map +1 -1
- package/dist/hooks/orchestrator-guard-hook.d.ts +4 -1
- package/dist/hooks/orchestrator-guard-hook.d.ts.map +1 -1
- package/dist/hooks/session-idle-hook.d.ts.map +1 -1
- package/dist/hooks/telemetry-hook.d.ts +14 -1
- package/dist/hooks/telemetry-hook.d.ts.map +1 -1
- package/dist/hooks/telemetry-hook.test.d.ts +2 -0
- package/dist/hooks/telemetry-hook.test.d.ts.map +1 -0
- package/dist/hooks/tool-guard.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +810 -474
- package/dist/services/agent-contract-registry.d.ts +32 -0
- package/dist/services/agent-contract-registry.d.ts.map +1 -0
- package/dist/services/agent-performance.d.ts +1 -1
- package/dist/services/agent-performance.d.ts.map +1 -1
- package/dist/services/agent-trace-graph.d.ts +94 -0
- package/dist/services/agent-trace-graph.d.ts.map +1 -0
- package/dist/services/agent-validator.d.ts +56 -0
- package/dist/services/agent-validator.d.ts.map +1 -0
- package/dist/services/deadlock-detector.d.ts +34 -0
- package/dist/services/deadlock-detector.d.ts.map +1 -0
- package/dist/services/delegation-budget.d.ts +54 -0
- package/dist/services/delegation-budget.d.ts.map +1 -0
- package/dist/services/governance.test.d.ts +11 -0
- package/dist/services/governance.test.d.ts.map +1 -0
- package/dist/services/index.d.ts +6 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/telemetry.d.ts +1 -1
- package/dist/services/telemetry.d.ts.map +1 -1
- package/dist/services/workflow-scorecard.d.ts +76 -0
- package/dist/services/workflow-scorecard.d.ts.map +1 -0
- package/dist/tools/council.d.ts.map +1 -1
- package/dist/tools/delegate.d.ts.map +1 -1
- package/dist/tools/dispatch-routing.d.ts +9 -0
- package/dist/tools/dispatch-routing.d.ts.map +1 -0
- package/dist/tools/dispatch-routing.test.d.ts +2 -0
- package/dist/tools/dispatch-routing.test.d.ts.map +1 -0
- package/dist/tools/planning-state-lib.d.ts +8 -0
- package/dist/tools/planning-state-lib.d.ts.map +1 -1
- package/dist/tools/planning-state.d.ts.map +1 -1
- package/dist/tools/run-pipeline.d.ts.map +1 -1
- package/docs/agents.md +104 -74
- package/docs/best-practices.md +1 -1
- package/docs/commands/fd-ask.md +2 -2
- package/docs/commands/fd-fix-bug.md +2 -2
- package/docs/commands/fd-new-feature.md +2 -2
- package/docs/commands/fd-quick.md +3 -1
- package/docs/commands.md +37 -7
- package/docs/configuration.md +76 -46
- package/docs/design-first-workflow.md +94 -0
- package/docs/feature-integration-architecture.md +3 -31
- package/docs/index.md +5 -2
- package/docs/installation.md +6 -17
- package/docs/intelligence.md +110 -34
- package/docs/multi-repo.md +1 -1
- package/docs/optimization-baseline.md +21 -0
- package/docs/rules.md +10 -37
- package/docs/skills.md +24 -15
- package/docs/workflows.md +18 -14
- package/package.json +4 -2
- package/src/commands/fd-ask.md +1 -0
- package/src/commands/fd-design.md +64 -0
- package/src/commands/fd-discuss.md +2 -0
- package/src/commands/fd-execute.md +7 -3
- package/src/commands/fd-fix-bug.md +2 -2
- package/src/commands/fd-multi-repo.md +3 -3
- package/src/commands/fd-plan.md +2 -0
- package/src/commands/fd-quick.md +4 -1
- package/src/commands/fd-verify.md +6 -0
- package/src/rules/README.md +10 -0
- package/src/rules/common/agent-orchestration.md +6 -6
- package/src/rules/common/coding-style.md +2 -2
- package/src/rules/typescript/patterns.md +1 -1
- package/src/skills/app-shell-design/SKILL.md +31 -0
- package/src/skills/backend-patterns/SKILL.md +6 -0
- package/src/skills/clean-architecture/SKILL.md +6 -0
- package/src/skills/cqrs/SKILL.md +6 -0
- package/src/skills/dashboard-design/SKILL.md +32 -0
- package/src/skills/ddd-architecture/SKILL.md +6 -0
- package/src/skills/decision-trace/SKILL.md +1 -1
- package/src/skills/design-audit/SKILL.md +37 -0
- package/src/skills/design-system-definition/SKILL.md +33 -0
- package/src/skills/event-driven-architecture/SKILL.md +6 -0
- package/src/skills/frontend-handoff/SKILL.md +31 -0
- package/src/skills/hexagonal-architecture/SKILL.md +6 -0
- package/src/skills/landing-page-design/SKILL.md +32 -0
- package/src/skills/layered-architecture/SKILL.md +6 -0
- package/src/skills/multi-repo/SKILL.md +3 -3
- package/src/skills/plan-task/SKILL.md +2 -2
- package/src/skills/postgres-patterns/SKILL.md +6 -0
- package/src/skills/responsive-review/SKILL.md +31 -0
- package/src/skills/saga-architecture/SKILL.md +6 -0
- package/src/skills/ui-ux-planning/SKILL.md +32 -0
- package/src/skills/wireframe-planning/SKILL.md +30 -0
- package/dist/services/model-router.d.ts +0 -35
- package/dist/services/model-router.d.ts.map +0 -1
package/docs/agents.md
CHANGED
|
@@ -6,7 +6,7 @@ Agents are specialized AI personas installed into OpenCode. Each agent has a foc
|
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
@architect Design the database schema for a multi-tenant SaaS app
|
|
9
|
-
@coder Implement the UserRepository class following the interface in src/interfaces/
|
|
9
|
+
@backend-coder Implement the UserRepository class following the interface in src/interfaces/
|
|
10
10
|
@reviewer Review src/auth/jwt.ts for security issues
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -21,8 +21,11 @@ Agents are installed to `~/.config/opencode/agent/`. OpenCode loads them automat
|
|
|
21
21
|
| [@architect](#architect) | Designs system architecture, creates ADRs, defines interface contracts | New modules, API design, schema changes, cross-cutting concerns |
|
|
22
22
|
| [@build-error-resolver](#build-error-resolver) | Diagnoses and fixes build failures, type errors, and dependency issues | Broken builds, type mismatches, missing modules |
|
|
23
23
|
| [@code-explorer](#code-explorer) | Reads and maps unfamiliar codebases systematically | Understanding unknown code before modifying it |
|
|
24
|
-
| [@coder](#coder) | Implements features and fixes following confirmed plans |
|
|
24
|
+
| [@backend-coder](#backend-coder) | Implements backend features and fixes following confirmed plans | API, service, data-layer implementation |
|
|
25
|
+
| [@frontend-coder](#frontend-coder) | Implements frontend features and fixes following confirmed plans | UI components, client state, interaction behavior |
|
|
26
|
+
| [@devops](#devops) | Implements infrastructure and delivery changes following confirmed plans | CI/CD, deployment, infra and operations |
|
|
25
27
|
| [@debug-specialist](#debug-specialist) | Root cause analysis via hypothesis-driven investigation | Deep bugs that require systematic tracing |
|
|
28
|
+
| [@design](#design) | Runs design-first UI workflow with structured handoff artifacts | Landing pages, dashboards, admin panels, app screens, UX-heavy features |
|
|
26
29
|
| [@discusser](#discusser) | Structured requirements Q&A, one question at a time | Starting new projects, defining feature scope |
|
|
27
30
|
| [@doc-updater](#doc-updater) | Keeps documentation in sync with code changes | Post-implementation doc maintenance |
|
|
28
31
|
| [@plan-checker](#plan-checker) | Validates plans before execution for completeness and feasibility | Quality gate before running a plan |
|
|
@@ -30,7 +33,6 @@ Agents are installed to `~/.config/opencode/agent/`. OpenCode loads them automat
|
|
|
30
33
|
| [@mapper](#mapper) | Maps codebase to `.codebase/` structured documentation | Producing STACK.md, ARCHITECTURE.md, CONVENTIONS.md, and more |
|
|
31
34
|
| [@multi-repo-coordinator](#multi-repo-coordinator) | Cross-repo dependency graphs, change propagation, ordered CHANGE PLANs | Features spanning multiple microservices |
|
|
32
35
|
| [@orchestrator](#orchestrator) | Coordinates multi-agent workflows, phase gating, go/no-go decisions | End-to-end feature delivery |
|
|
33
|
-
| [@parallel-coordinator](#parallel-coordinator) | Wave-based parallel execution with WAVE TABLE format and merge protocol | Maximizing throughput on complex tasks |
|
|
34
36
|
| [@performance-optimizer](#performance-optimizer) | Profiling-first bottleneck identification and targeted fixes | Slow endpoints, N+1 queries, bundle bloat |
|
|
35
37
|
| [@planner](#planner) | Implementation planning with explicit user confirmation before execution | Planning any multi-file feature |
|
|
36
38
|
| [@refactor-guide](#refactor-guide) | Safe refactoring with test-first guarantees, preserves external behavior | Cleanup, extraction, debt reduction |
|
|
@@ -43,13 +45,33 @@ Agents are installed to `~/.config/opencode/agent/`. OpenCode loads them automat
|
|
|
43
45
|
|
|
44
46
|
---
|
|
45
47
|
|
|
48
|
+
### @design
|
|
49
|
+
|
|
50
|
+
The design agent is a dedicated UI/UX specialist that runs before implementation on UI-heavy tasks. It outputs structured design artifacts covering discovery, UX flow, wireframe layout, visual system direction, and frontend handoff checklist. For existing implementations, it performs design fidelity review and reports hierarchy, spacing, responsiveness, accessibility, and state-coverage gaps.
|
|
51
|
+
|
|
52
|
+
**Best for:**
|
|
53
|
+
- Classifying user-facing task types (landing page, dashboard, admin panel, app screen)
|
|
54
|
+
- Producing implementation-ready UI handoff before coding starts
|
|
55
|
+
- Reviewing UI output against approved design artifacts during verification
|
|
56
|
+
- Defining reusable token/component guidance for consistency
|
|
57
|
+
|
|
58
|
+
**Example usage:**
|
|
59
|
+
```
|
|
60
|
+
@design Run design-first workflow for: redesign onboarding dashboard.
|
|
61
|
+
Output structured handoff artifact with approval checklist.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Works with:** `@backend-coder` (consumes handoff artifact), `@reviewer` (code-quality + design-fidelity checks), `@orchestrator` (enforces design gate before implementation)
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
46
68
|
## Detailed Agent Profiles
|
|
47
69
|
|
|
48
70
|
### @architect
|
|
49
71
|
|
|
50
72
|
The architect designs systems before anyone writes code. It reads existing architecture documents and conventions first, then proposes decisions in writing — as ADRs and TypeScript interface contracts — before any implementation begins. It applies principles like "no speculative abstraction" (only abstract when there are 3+ concrete use cases) and surfaces conflicts with existing decisions rather than resolving them silently.
|
|
51
73
|
|
|
52
|
-
**Model:** `
|
|
74
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
53
75
|
|
|
54
76
|
**Best for:**
|
|
55
77
|
- Designing database schemas, API boundaries, and service interfaces for new features
|
|
@@ -63,7 +85,7 @@ The architect designs systems before anyone writes code. It reads existing archi
|
|
|
63
85
|
Read .codebase/ARCHITECTURE.md first. Save the ADR to .planning/adr/.
|
|
64
86
|
```
|
|
65
87
|
|
|
66
|
-
**Works with:** `@coder` (consumes interface contracts), `@planner` (uses ADRs as planning input), `@multi-repo-coordinator` (defines contract-first change specs)
|
|
88
|
+
**Works with:** `@backend-coder` (consumes interface contracts), `@planner` (uses ADRs as planning input), `@multi-repo-coordinator` (defines contract-first change specs)
|
|
67
89
|
|
|
68
90
|
---
|
|
69
91
|
|
|
@@ -71,7 +93,7 @@ The architect designs systems before anyone writes code. It reads existing archi
|
|
|
71
93
|
|
|
72
94
|
The build error resolver collects all build errors before touching a single file. It runs the full diagnostic suite (`tsc --noEmit`, build, lint, tests) and reads the complete output — never skims — because the first error is almost always the root cause and later errors are cascades. It applies the minimum fix to resolve the root cause, then re-runs to confirm no cascades remain.
|
|
73
95
|
|
|
74
|
-
**Model:** `
|
|
96
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
75
97
|
|
|
76
98
|
**Best for:**
|
|
77
99
|
- Diagnosing TypeScript type errors, missing modules, and circular imports
|
|
@@ -85,7 +107,7 @@ The build error resolver collects all build errors before touching a single file
|
|
|
85
107
|
and fix the root cause with minimal changes.
|
|
86
108
|
```
|
|
87
109
|
|
|
88
|
-
**Works with:** `@coder` (applies fixes identified by the resolver), `@orchestrator` (escalates build failures during plan execution), `@reviewer` (verifies fix quality)
|
|
110
|
+
**Works with:** `@backend-coder` (applies fixes identified by the resolver), `@orchestrator` (escalates build failures during plan execution), `@reviewer` (verifies fix quality)
|
|
89
111
|
|
|
90
112
|
---
|
|
91
113
|
|
|
@@ -93,13 +115,13 @@ The build error resolver collects all build errors before touching a single file
|
|
|
93
115
|
|
|
94
116
|
The code explorer maps unfamiliar code before anyone modifies it. It is read-only by design — it reports what it finds, not what it expects. Starting from the top-level directory, it traces entry points and call paths, identifies key abstractions and data models, and documents conventions in use. Its output gives other agents the context they need to make surgical changes.
|
|
95
117
|
|
|
96
|
-
**Model:** `
|
|
118
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
97
119
|
|
|
98
120
|
**Best for:**
|
|
99
121
|
- Understanding a new module or service before making changes to it
|
|
100
122
|
- Tracing a specific flow end-to-end (e.g., HTTP request to database to response)
|
|
101
123
|
- Identifying where in the codebase a task-relevant piece of logic lives
|
|
102
|
-
- Feeding structural context to `@architect` or `@coder` before implementation
|
|
124
|
+
- Feeding structural context to `@architect` or `@backend-coder` before implementation
|
|
103
125
|
|
|
104
126
|
**Example usage:**
|
|
105
127
|
```
|
|
@@ -107,28 +129,57 @@ The code explorer maps unfamiliar code before anyone modifies it. It is read-onl
|
|
|
107
129
|
route handler to the database query. Identify the session management approach.
|
|
108
130
|
```
|
|
109
131
|
|
|
110
|
-
**Works with:** `@architect` (provides structural context for design decisions), `@coder` (surfaces conventions to match), `@mapper` (complements deeper .codebase/ documentation)
|
|
132
|
+
**Works with:** `@architect` (provides structural context for design decisions), `@backend-coder` (surfaces conventions to match), `@mapper` (complements deeper .codebase/ documentation)
|
|
111
133
|
|
|
112
134
|
---
|
|
113
135
|
|
|
114
|
-
### @coder
|
|
136
|
+
### @backend-coder
|
|
115
137
|
|
|
116
|
-
The coder implements features and fixes following a confirmed plan. It reads conventions and architecture docs before touching any source file, matches existing patterns precisely, and makes only the changes the task requires — no drive-by refactors. Functions stay under 50 lines. Every external input is validated at the boundary. If the plan is unclear or technically infeasible, it stops and asks rather than guessing.
|
|
138
|
+
The backend-coder implements features and fixes following a confirmed plan. It reads conventions and architecture docs before touching any source file, matches existing patterns precisely, and makes only the changes the task requires — no drive-by refactors. Functions stay under 50 lines. Every external input is validated at the boundary. If the plan is unclear or technically infeasible, it stops and asks rather than guessing.
|
|
117
139
|
|
|
118
|
-
**Model:** `
|
|
140
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
119
141
|
|
|
120
142
|
**Best for:**
|
|
121
|
-
- Implementing
|
|
122
|
-
- Applying fixes identified by `@debug-specialist`
|
|
123
|
-
-
|
|
124
|
-
- Making surgical changes to existing code with minimal diff surface area
|
|
143
|
+
- Implementing API handlers, services, repositories, and data-model changes
|
|
144
|
+
- Applying backend fixes identified by `@debug-specialist` and `@build-error-resolver`
|
|
145
|
+
- Delivering plan-scoped server-side functionality with minimal diffs
|
|
125
146
|
|
|
126
147
|
**Example usage:**
|
|
127
148
|
```
|
|
128
|
-
@coder Implement the UserRepository class defined in contracts/user-repository.ts.
|
|
149
|
+
@backend-coder Implement the UserRepository class defined in contracts/user-repository.ts.
|
|
129
150
|
Follow patterns in src/repositories/order-repository.ts. No new dependencies.
|
|
130
151
|
```
|
|
131
152
|
|
|
153
|
+
**Works with:** `@tester` (verifies implementation), `@reviewer` (reviews the diff), `@architect` (provides interface contracts)
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### @frontend-coder
|
|
158
|
+
|
|
159
|
+
The frontend-coder implements frontend features and fixes following a confirmed plan. It focuses on user-facing behavior, component architecture, state transitions, accessibility, and visual consistency with existing patterns.
|
|
160
|
+
|
|
161
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### @devops
|
|
166
|
+
|
|
167
|
+
The devops agent implements infrastructure and operational changes from confirmed plans. It focuses on CI/CD workflows, build and deploy automation, runtime configuration, and safe rollout practices.
|
|
168
|
+
|
|
169
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
170
|
+
|
|
171
|
+
**Best for:**
|
|
172
|
+
- Implementing CI/CD workflow changes, deployment config updates, and environment setup
|
|
173
|
+
- Applying infra and runtime remediations identified by `@debug-specialist` or `@build-error-resolver`
|
|
174
|
+
- Automating release pipelines and operational scripts with minimal blast radius
|
|
175
|
+
- Managing build/deploy reliability improvements and rollback-safe changes
|
|
176
|
+
|
|
177
|
+
**Example usage:**
|
|
178
|
+
```
|
|
179
|
+
@devops Update the deployment workflow to add smoke tests before production release.
|
|
180
|
+
Keep rollback steps explicit and preserve existing release gates.
|
|
181
|
+
```
|
|
182
|
+
|
|
132
183
|
**Works with:** `@tester` (verifies implementation), `@reviewer` (reviews the diff), `@architect` (consumes interface contracts)
|
|
133
184
|
|
|
134
185
|
---
|
|
@@ -137,7 +188,7 @@ The coder implements features and fixes following a confirmed plan. It reads con
|
|
|
137
188
|
|
|
138
189
|
The debug specialist finds root causes through systematic investigation — never by guessing. It reads the full stack trace from top to bottom, traces execution backward from the point of failure, and identifies the earliest point in the call chain where invariants are violated. For regressions, it uses `git bisect` to identify the culprit commit. It produces a structured debug report before any fix is proposed.
|
|
139
190
|
|
|
140
|
-
**Model:** `
|
|
191
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
141
192
|
|
|
142
193
|
**Best for:**
|
|
143
194
|
- Diagnosing intermittent failures, race conditions, and memory leaks
|
|
@@ -151,7 +202,7 @@ The debug specialist finds root causes through systematic investigation — neve
|
|
|
151
202
|
alongside a loyalty credit. Trace the calculation path and identify the root cause.
|
|
152
203
|
```
|
|
153
204
|
|
|
154
|
-
**Works with:** `@tester` (writes the regression test once root cause is confirmed), `@coder` (applies the minimal fix), `@build-error-resolver` (handles compile-time failures the debug specialist doesn't cover)
|
|
205
|
+
**Works with:** `@tester` (writes the regression test once root cause is confirmed), `@backend-coder` (applies the minimal fix), `@build-error-resolver` (handles compile-time failures the debug specialist doesn't cover)
|
|
155
206
|
|
|
156
207
|
---
|
|
157
208
|
|
|
@@ -159,7 +210,7 @@ The debug specialist finds root causes through systematic investigation — neve
|
|
|
159
210
|
|
|
160
211
|
The discusser extracts clear requirements through focused, one-at-a-time questioning. It never asks two questions in a single turn. Every decision is numbered (D-01, D-02, ...) and recorded with its rationale. If a new answer conflicts with a previous decision, it flags the conflict immediately and presents options. All decisions are saved to `.planning/phases/phase-N/DISCUSS.md` in a format that `@planner` can trace back to individual tasks.
|
|
161
212
|
|
|
162
|
-
**Model:** `
|
|
213
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
163
214
|
|
|
164
215
|
**Best for:**
|
|
165
216
|
- Defining the scope of a new project or feature phase before planning begins
|
|
@@ -181,7 +232,7 @@ The discusser extracts clear requirements through focused, one-at-a-time questio
|
|
|
181
232
|
|
|
182
233
|
The doc updater synchronizes documentation with the current implementation after code changes. It targets README installation instructions, API reference function signatures, inline comments on complex algorithms, and changelog entries under `## Unreleased`. It verifies that every example it writes actually compiles and runs. Dead links and dead examples are removed, not left behind.
|
|
183
234
|
|
|
184
|
-
**Model:** `
|
|
235
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
185
236
|
|
|
186
237
|
**Best for:**
|
|
187
238
|
- Updating API reference docs after function signatures change
|
|
@@ -203,7 +254,7 @@ The doc updater synchronizes documentation with the current implementation after
|
|
|
203
254
|
|
|
204
255
|
The plan checker reviews a PLAN.md before execution and returns a scored PASS or FAIL verdict. It checks three dimensions: completeness (all requirements from DISCUSS.md are covered, every task has a defined scope and success criteria), feasibility (no task exceeds 3 hours, no circular dependencies, no assumed capabilities that don't exist), and testability (each success criterion is observable, edge cases are addressed, verification commands are specified). A score of 8–10 earns PASS, 6–7 earns PASS_WITH_NOTES, and 0–5 earns FAIL.
|
|
205
256
|
|
|
206
|
-
**Model:** `
|
|
257
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
207
258
|
|
|
208
259
|
**Best for:**
|
|
209
260
|
- Catching vague success criteria before they cause ambiguous execution
|
|
@@ -223,13 +274,13 @@ The plan checker reviews a PLAN.md before execution and returns a scored PASS or
|
|
|
223
274
|
|
|
224
275
|
The mapper produces factual codebase documentation for the `.codebase/` directory. In a parallel run of 6 instances, each mapper is assigned one output file: `STACK.md`, `ARCHITECTURE.md`, `STRUCTURE.md`, `CONVENTIONS.md`, `TESTING.md`, or `CONCERNS.md`. It reads source files directly and reports only what it can verify — any gap is marked `UNKNOWN — needs verification` rather than filled with assumptions. Every claim is traceable to a specific file path.
|
|
225
276
|
|
|
226
|
-
**Model:** `
|
|
277
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
227
278
|
|
|
228
279
|
**Best for:**
|
|
229
280
|
- Generating `.codebase/CONVENTIONS.md` with real naming patterns backed by file:line examples
|
|
230
281
|
- Producing `STACK.md` with exact pinned versions from manifest files
|
|
231
282
|
- Populating `CONCERNS.md` by grepping for `TODO`, `FIXME`, and `HACK` markers
|
|
232
|
-
- Running in parallel with 5 other mapper instances via `@
|
|
283
|
+
- Running in parallel with 5 other mapper instances via `@orchestrator`
|
|
233
284
|
|
|
234
285
|
**Example usage:**
|
|
235
286
|
```
|
|
@@ -245,7 +296,7 @@ The mapper produces factual codebase documentation for the `.codebase/` director
|
|
|
245
296
|
|
|
246
297
|
The multi-repo coordinator manages change propagation across a microservice architecture. It reads the sub-repo registry from `.planning/config.json`, builds a dependency graph (upstream-api → downstream-consumer → gateway order), detects conflicts between concurrent service changes, and produces a per-repo CHANGE PLAN ordered by that graph. API contracts are defined first; implementation follows in dependency order so upstream services always deploy before their consumers.
|
|
247
298
|
|
|
248
|
-
**Model:** `
|
|
299
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
249
300
|
|
|
250
301
|
**Best for:**
|
|
251
302
|
- Coordinating a feature that requires changes across two or more services
|
|
@@ -260,7 +311,7 @@ The multi-repo coordinator manages change propagation across a microservice arch
|
|
|
260
311
|
an ordered CHANGE PLAN.
|
|
261
312
|
```
|
|
262
313
|
|
|
263
|
-
**Works with:** `@architect` (defines contract-first change specs), `@coder` (implements changes per repo), `@tester` (verifies cross-repo integration)
|
|
314
|
+
**Works with:** `@architect` (defines contract-first change specs), `@backend-coder` (implements changes per repo), `@tester` (verifies cross-repo integration)
|
|
264
315
|
|
|
265
316
|
---
|
|
266
317
|
|
|
@@ -268,7 +319,7 @@ The multi-repo coordinator manages change propagation across a microservice arch
|
|
|
268
319
|
|
|
269
320
|
The orchestrator coordinates multi-agent execution for feature delivery. At startup it reads STATE.md and the active PLAN.md, identifies the first incomplete step, delegates it to the appropriate specialist, waits for completion, marks progress, and advances to the next step. It enforces phase gating — execution only proceeds when DISCUSS.md and PLAN.md are confirmed. If a delegated agent fails after one retry, it escalates to the user with specific options rather than continuing silently.
|
|
270
321
|
|
|
271
|
-
**Model:** `
|
|
322
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
272
323
|
|
|
273
324
|
**Best for:**
|
|
274
325
|
- Running `/fd-new-feature` to drive an end-to-end feature delivery cycle
|
|
@@ -282,37 +333,16 @@ The orchestrator coordinates multi-agent execution for feature delivery. At star
|
|
|
282
333
|
phase. Delegate incomplete steps in order and mark each complete.
|
|
283
334
|
```
|
|
284
335
|
|
|
285
|
-
**Works with:** `@
|
|
336
|
+
**Works with:** `@plan-checker` (validates plans before execution), `@task-splitter` (decomposes work into safe parallel waves), `@backend-coder`/`@frontend-coder`/`@devops` (executes routed implementation tasks)
|
|
286
337
|
|
|
287
338
|
---
|
|
288
339
|
|
|
289
|
-
### @parallel-coordinator
|
|
290
|
-
|
|
291
|
-
The parallel coordinator maximizes throughput by running independent work simultaneously in waves. At the start of every job it emits a WAVE TABLE — a formatted table showing every agent slot and its wave dependencies. It delegates agents by wave, waits for each wave to complete before advancing, and runs a merge protocol when parallel tracks touch overlapping areas. The standard wave structure is: Wave 1 (research + exploration), Wave 2 (architecture, serial), Wave 3 (implementation + tests), Wave 4 (review + security).
|
|
292
|
-
|
|
293
|
-
**Model:** `anthropic/claude-sonnet-4-5`
|
|
294
|
-
|
|
295
|
-
**Best for:**
|
|
296
|
-
- Executing a plan where multiple tasks are provably independent of each other
|
|
297
|
-
- Running `@researcher` and `@code-explorer` simultaneously before `@architect` begins
|
|
298
|
-
- Running `@coder` and `@tester` in parallel from `@architect`'s contracts
|
|
299
|
-
- Resolving merge conflicts when two implementation tracks touched the same file
|
|
300
|
-
|
|
301
|
-
**Example usage:**
|
|
302
|
-
```
|
|
303
|
-
@parallel-coordinator Execute the PLAN.md using wave-based parallel execution.
|
|
304
|
-
Emit the WAVE TABLE first, then delegate agents wave by wave.
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
**Works with:** `@orchestrator` (delegates parallel waves to this agent), `@task-splitter` (produces the wave breakdown this agent executes), `@coder` + `@tester` (run in parallel in Wave 3)
|
|
308
|
-
|
|
309
|
-
---
|
|
310
340
|
|
|
311
341
|
### @performance-optimizer
|
|
312
342
|
|
|
313
343
|
The performance optimizer identifies and fixes performance bottlenecks using data, never intuition. It always measures before optimizing: Node.js profiler, `webpack-bundle-analyzer`, `EXPLAIN ANALYZE`, or Lighthouse depending on the target. It reports findings as before/after numbers. It never proposes a speculative optimization — only improvements justified by profiling output. It targets Core Web Vitals thresholds (LCP < 2.5s, FID < 100ms) and common patterns like N+1 queries and O(n²) algorithms.
|
|
314
344
|
|
|
315
|
-
**Model:** `
|
|
345
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
316
346
|
|
|
317
347
|
**Best for:**
|
|
318
348
|
- Diagnosing slow API endpoints using `EXPLAIN ANALYZE` on the database queries
|
|
@@ -326,7 +356,7 @@ The performance optimizer identifies and fixes performance bottlenecks using dat
|
|
|
326
356
|
queries and identify the bottleneck. Show before/after numbers.
|
|
327
357
|
```
|
|
328
358
|
|
|
329
|
-
**Works with:** `@coder` (implements optimizations once bottleneck is confirmed), `@tester` (writes benchmarks to verify improvement), `@reviewer` (checks that optimizations don't introduce bugs)
|
|
359
|
+
**Works with:** `@backend-coder` (implements optimizations once bottleneck is confirmed), `@tester` (writes benchmarks to verify improvement), `@reviewer` (checks that optimizations don't introduce bugs)
|
|
330
360
|
|
|
331
361
|
---
|
|
332
362
|
|
|
@@ -334,13 +364,13 @@ The performance optimizer identifies and fixes performance bottlenecks using dat
|
|
|
334
364
|
|
|
335
365
|
The planner creates detailed, file-level implementation plans with an explicit user confirmation gate before any code is written. It reads ARCHITECTURE.md and existing conventions first, extracts both explicit and implicit requirements, orders steps by dependency (data models → schema → repository → service → API → tests → UI → docs), and flags risks. After presenting the plan it pauses and waits for the user to confirm before execution begins.
|
|
336
366
|
|
|
337
|
-
**Model:** `
|
|
367
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
338
368
|
|
|
339
369
|
**Best for:**
|
|
340
370
|
- Planning any feature that spans more than two files before writing code
|
|
341
371
|
- Identifying architecture conflicts and unknowns that would block implementation
|
|
342
372
|
- Ordering implementation steps so foundation code is in place before dependent code
|
|
343
|
-
- Generating a plan that feeds directly into `@coder`'s execution
|
|
373
|
+
- Generating a plan that feeds directly into `@backend-coder`'s execution
|
|
344
374
|
|
|
345
375
|
**Example usage:**
|
|
346
376
|
```
|
|
@@ -349,7 +379,7 @@ The planner creates detailed, file-level implementation plans with an explicit u
|
|
|
349
379
|
Pause for my confirmation before we proceed.
|
|
350
380
|
```
|
|
351
381
|
|
|
352
|
-
**Works with:** `@architect` (provides interface contracts and ADRs that feed the plan), `@coder` (executes the confirmed plan), `@planner` (alternative for structured FlowDeck plan format)
|
|
382
|
+
**Works with:** `@architect` (provides interface contracts and ADRs that feed the plan), `@backend-coder` (executes the confirmed plan), `@planner` (alternative for structured FlowDeck plan format)
|
|
353
383
|
|
|
354
384
|
---
|
|
355
385
|
|
|
@@ -357,7 +387,7 @@ The planner creates detailed, file-level implementation plans with an explicit u
|
|
|
357
387
|
|
|
358
388
|
The refactor guide changes code structure without changing observable behavior. It requires a green test suite before starting and verifies the suite stays green after every single transformation. Each transformation is committed independently with a `refactor:` prefix — never batched. It stops immediately if a test breaks and looks for a smaller step. It covers extract-function, rename, move-module, inline-variable, and similar low-risk catalog transforms, ordered from lowest to highest risk.
|
|
359
389
|
|
|
360
|
-
**Model:** `
|
|
390
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
361
391
|
|
|
362
392
|
**Best for:**
|
|
363
393
|
- Extracting functions from files over 50 lines or 800 lines
|
|
@@ -372,7 +402,7 @@ The refactor guide changes code structure without changing observable behavior.
|
|
|
372
402
|
One commit per transformation.
|
|
373
403
|
```
|
|
374
404
|
|
|
375
|
-
**Works with:** `@tester` (confirms suite is green before and after each step), `@coder` (applies transformations), `@mapper` (identifies refactoring candidates across the codebase)
|
|
405
|
+
**Works with:** `@tester` (confirms suite is green before and after each step), `@backend-coder` (applies transformations), `@mapper` (identifies refactoring candidates across the codebase)
|
|
376
406
|
|
|
377
407
|
---
|
|
378
408
|
|
|
@@ -380,10 +410,10 @@ The refactor guide changes code structure without changing observable behavior.
|
|
|
380
410
|
|
|
381
411
|
The researcher finds accurate, cited information before anyone writes code. It searches Context7 first for up-to-date library documentation, then vendor docs, then package registries. Every fact is paired with its source URL. It never cites StackOverflow as a primary source and never fabricates API documentation — if it cannot find an authoritative source, it says so explicitly. Output follows a structured format covering "what it is", "how to use it", and "gotchas".
|
|
382
412
|
|
|
383
|
-
**Model:** `
|
|
413
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
384
414
|
|
|
385
415
|
**Best for:**
|
|
386
|
-
- Documenting an unfamiliar library's API before `@coder` uses it
|
|
416
|
+
- Documenting an unfamiliar library's API before `@backend-coder` uses it
|
|
387
417
|
- Comparing two libraries (e.g., `zod` vs `joi`) with concrete tradeoffs cited from official sources
|
|
388
418
|
- Finding the correct pagination API, error response format, or auth flow for an external service
|
|
389
419
|
- Identifying breaking changes between library versions that affect the implementation plan
|
|
@@ -394,7 +424,7 @@ The researcher finds accurate, cited information before anyone writes code. It s
|
|
|
394
424
|
webhook event types, and how to handle failed payments. Cite official Stripe docs.
|
|
395
425
|
```
|
|
396
426
|
|
|
397
|
-
**Works with:** `@coder` (receives research output before implementation), `@architect` (uses library capability research to inform interface design), `@
|
|
427
|
+
**Works with:** `@backend-coder` (receives research output before implementation), `@architect` (uses library capability research to inform interface design), `@orchestrator` (runs in parallel with `@code-explorer` in Wave 1)
|
|
398
428
|
|
|
399
429
|
---
|
|
400
430
|
|
|
@@ -402,7 +432,7 @@ The researcher finds accurate, cited information before anyone writes code. It s
|
|
|
402
432
|
|
|
403
433
|
The reviewer checks code for correctness, security, and adherence to project conventions. It reads full files — not just the diff — to understand call context. It applies an 80% confidence threshold before flagging an issue: speculation is not a finding. Findings are classified as CRITICAL, HIGH, MEDIUM, or PASS. It checks for hardcoded credentials, SQL injection, XSS, missing auth middleware, improper error handling, and convention violations.
|
|
404
434
|
|
|
405
|
-
**Model:** `
|
|
435
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
406
436
|
|
|
407
437
|
**Best for:**
|
|
408
438
|
- Reviewing a pull request before it is merged
|
|
@@ -416,15 +446,15 @@ The reviewer checks code for correctness, security, and adherence to project con
|
|
|
416
446
|
missing auth middleware, and convention adherence. Report by severity.
|
|
417
447
|
```
|
|
418
448
|
|
|
419
|
-
**Works with:** `@security-auditor` (runs in parallel for deeper security coverage), `@orchestrator` (receives review verdict and decides whether to advance phase), `@coder` (receives actionable findings and applies fixes)
|
|
449
|
+
**Works with:** `@security-auditor` (runs in parallel for deeper security coverage), `@orchestrator` (receives review verdict and decides whether to advance phase), `@backend-coder` (receives actionable findings and applies fixes)
|
|
420
450
|
|
|
421
451
|
---
|
|
422
452
|
|
|
423
453
|
### @security-auditor
|
|
424
454
|
|
|
425
|
-
The security auditor performs deep security audits against the OWASP Top 10. It checks for injection vulnerabilities (SQL, NoSQL, command, LDAP, template), broken access control (missing ownership checks, role bypasses), cryptographic failures (MD5/SHA1 for passwords, plaintext secrets), and dependency risks (known CVEs). It produces a PASS/FAIL report with severity classification and specific remediation steps. It does not apply fixes — that is `@coder`'s responsibility.
|
|
455
|
+
The security auditor performs deep security audits against the OWASP Top 10. It checks for injection vulnerabilities (SQL, NoSQL, command, LDAP, template), broken access control (missing ownership checks, role bypasses), cryptographic failures (MD5/SHA1 for passwords, plaintext secrets), and dependency risks (known CVEs). It produces a PASS/FAIL report with severity classification and specific remediation steps. It does not apply fixes — that is `@backend-coder`'s responsibility.
|
|
426
456
|
|
|
427
|
-
**Model:** `
|
|
457
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
428
458
|
|
|
429
459
|
**Best for:**
|
|
430
460
|
- Auditing authentication and authorization code before merging security-sensitive PRs
|
|
@@ -438,18 +468,18 @@ The security auditor performs deep security audits against the OWASP Top 10. It
|
|
|
438
468
|
and A02 (cryptographic failures). Return PASS or FAIL with severity classification.
|
|
439
469
|
```
|
|
440
470
|
|
|
441
|
-
**Works with:** `@reviewer` (parallel review partner), `@coder` (applies remediations after audit findings), `@orchestrator` (aggregates audit result into go/no-go decision)
|
|
471
|
+
**Works with:** `@reviewer` (parallel review partner), `@backend-coder` (applies remediations after audit findings), `@orchestrator` (aggregates audit result into go/no-go decision)
|
|
442
472
|
|
|
443
473
|
---
|
|
444
474
|
|
|
445
475
|
### @task-splitter
|
|
446
476
|
|
|
447
|
-
The task splitter decomposes complex tasks into independent parallel workstreams. It reads a feature description or PLAN.md, builds a dependency graph, groups tasks into waves where each wave's work is provably independent, and emits a structured parallel execution plan that `@
|
|
477
|
+
The task splitter decomposes complex tasks into independent parallel workstreams. It reads a feature description or PLAN.md, builds a dependency graph, groups tasks into waves where each wave's work is provably independent, and emits a structured parallel execution plan that `@orchestrator` can execute directly. Each track includes: assigned agent, target files, specific task, and a verifiable completion criterion.
|
|
448
478
|
|
|
449
|
-
**Model:** `
|
|
479
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
450
480
|
|
|
451
481
|
**Best for:**
|
|
452
|
-
- Breaking a large feature into parallel workstreams before handing off to `@
|
|
482
|
+
- Breaking a large feature into parallel workstreams before handing off to `@orchestrator`
|
|
453
483
|
- Identifying which tasks must be serial (dependency gates) versus truly independent
|
|
454
484
|
- Sizing and scoping tasks so each fits within a single agent session
|
|
455
485
|
- Producing a wave plan when `@planner` is unavailable or overkill
|
|
@@ -461,7 +491,7 @@ The task splitter decomposes complex tasks into independent parallel workstreams
|
|
|
461
491
|
Produce a WAVE TABLE with agent assignments.
|
|
462
492
|
```
|
|
463
493
|
|
|
464
|
-
**Works with:** `@
|
|
494
|
+
**Works with:** `@orchestrator` (executes the wave plan produced by this agent), `@orchestrator` (uses task breakdown to coordinate execution), `@planner` (complementary — planner creates PLAN.md format, splitter focuses on parallelization)
|
|
465
495
|
|
|
466
496
|
---
|
|
467
497
|
|
|
@@ -469,11 +499,11 @@ The task splitter decomposes complex tasks into independent parallel workstreams
|
|
|
469
499
|
|
|
470
500
|
The tester writes tests that drive implementation using strict Red-Green-Refactor TDD. Tests are written before the code that makes them pass. Every test follows the Arrange-Act-Assert (AAA) pattern. It covers unit tests for isolated logic, integration tests for database and service interactions, and end-to-end tests for user-facing flows. For bug fixes, it writes a failing regression test before any fix is applied so the bug cannot silently recur.
|
|
471
501
|
|
|
472
|
-
**Model:** `
|
|
502
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
473
503
|
|
|
474
504
|
**Best for:**
|
|
475
|
-
- Writing a failing regression test to capture a reported bug before `@coder` fixes it
|
|
476
|
-
- Implementing the test suite for a new feature in parallel with `@coder` from interface contracts
|
|
505
|
+
- Writing a failing regression test to capture a reported bug before `@backend-coder` fixes it
|
|
506
|
+
- Implementing the test suite for a new feature in parallel with `@backend-coder` from interface contracts
|
|
477
507
|
- Running the full test suite as a verification step after `@refactor-guide` transforms
|
|
478
508
|
- Identifying coverage gaps and writing tests for uncovered paths
|
|
479
509
|
|
|
@@ -484,7 +514,7 @@ The tester writes tests that drive implementation using strict Red-Green-Refacto
|
|
|
484
514
|
Use the AAA pattern with vitest.
|
|
485
515
|
```
|
|
486
516
|
|
|
487
|
-
**Works with:** `@coder` (implements code to make tests pass), `@debug-specialist` (writes regression test after root cause is identified), `@refactor-guide` (verifies green suite before and after each transformation)
|
|
517
|
+
**Works with:** `@backend-coder` (implements code to make tests pass), `@debug-specialist` (writes regression test after root cause is identified), `@refactor-guide` (verifies green suite before and after each transformation)
|
|
488
518
|
|
|
489
519
|
---
|
|
490
520
|
|
|
@@ -492,7 +522,7 @@ The tester writes tests that drive implementation using strict Red-Green-Refacto
|
|
|
492
522
|
|
|
493
523
|
The writer drafts technical documentation that developers will actually read. It reads every source file it documents — never documents from memory. It favors accuracy over comprehensiveness, examples over prose, and active voice throughout. Documentation types covered: README.md (with standard section order), API reference (per-function with parameters, return types, and usage examples), changelogs (Keep a Changelog format), and ADRs. It marks anything it cannot verify as `UNKNOWN` rather than guessing.
|
|
494
524
|
|
|
495
|
-
**Model:** `
|
|
525
|
+
**Model:** *(uses your active OpenCode model — override in `flowdeck.json`)*
|
|
496
526
|
|
|
497
527
|
**Best for:**
|
|
498
528
|
- Writing a README.md from scratch for a new project or module
|
package/docs/best-practices.md
CHANGED
|
@@ -15,7 +15,7 @@ Maximize the efficiency and safety of your AI-driven development by following th
|
|
|
15
15
|
|
|
16
16
|
When faced with ambiguity, don't rely on a single agent.
|
|
17
17
|
- Use `/fd-council` for high-level design choices.
|
|
18
|
-
- The synthesis provided by the council often catches security or performance risks that a
|
|
18
|
+
- The synthesis provided by the council often catches security or performance risks that a role-based implementation agents might miss.
|
|
19
19
|
|
|
20
20
|
## 3. Grounding with Hierarchical Context
|
|
21
21
|
|
package/docs/commands/fd-ask.md
CHANGED
|
@@ -21,10 +21,10 @@ Route a free-form task to the best specialized agent automatically.
|
|
|
21
21
|
| performance, bottleneck, slow | `@performance-optimizer` |
|
|
22
22
|
| debug, error, crash, exception | `@debug-specialist` |
|
|
23
23
|
| test, coverage, spec, TDD | `@tester` |
|
|
24
|
-
| refactor, cleanup, simplify | `@coder` |
|
|
24
|
+
| refactor, cleanup, simplify | `@backend-coder` / `@frontend-coder` / `@devops` |
|
|
25
25
|
| document, docs, README | `@writer` |
|
|
26
26
|
| explain, query, find, explore | `@code-explorer` |
|
|
27
|
-
| deploy, release, migration | `@
|
|
27
|
+
| deploy, release, migration | `@devops` |
|
|
28
28
|
| plan, roadmap, breakdown | `@planner` |
|
|
29
29
|
| (anything else) | `@orchestrator` |
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Debug and fix a bug — scope analysis, mini-plan,
|
|
2
|
+
description: Debug and fix a bug — scope analysis, mini-plan, implementation-agent fix, regression test, reviewer confirmation
|
|
3
3
|
argument-hint: "[bug description or issue number]"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ Systematically debug and fix a bug using FlowDeck's structured approach.
|
|
|
9
9
|
1. Reads `.codebase/` for architecture context
|
|
10
10
|
2. Delegates to `@debug-specialist` to locate the root cause
|
|
11
11
|
3. Creates a mini-plan (fix + regression test)
|
|
12
|
-
4. Delegates fix to `@coder`
|
|
12
|
+
4. Delegates fix to `@backend-coder`, `@frontend-coder`, or `@devops` based on scope
|
|
13
13
|
5. Delegates regression test writing to `@tester`
|
|
14
14
|
6. Verifies the fix via `@reviewer`
|
|
15
15
|
7. Writes a brief post-mortem to `.planning/bugs/`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Execute feature implementation workflow — orchestrator +
|
|
2
|
+
description: Execute feature implementation workflow — orchestrator + role-routed implementation/researcher + reviewer + tester
|
|
3
3
|
argument-hint: "[feature-description]"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Execute a new feature using FlowDeck's multi-agent workflow.
|
|
7
7
|
|
|
8
8
|
**What this does:**
|
|
9
|
-
1. If a confirmed PLAN.md exists: delegates
|
|
9
|
+
1. If a confirmed PLAN.md exists: delegates each step to `@backend-coder`, `@frontend-coder`, or `@devops` based on scope
|
|
10
10
|
2. If no plan: first runs discuss → plan → confirm, then executes
|
|
11
11
|
3. Runs `@researcher` in parallel for any external APIs or docs needed
|
|
12
12
|
4. Runs `@reviewer` after each significant step to catch issues early
|
|
@@ -11,7 +11,9 @@ Execute a focused task without the full workflow. Analyzes the request, selects
|
|
|
11
11
|
|
|
12
12
|
| Task Type | Agent |
|
|
13
13
|
|-----------|-------|
|
|
14
|
-
|
|
|
14
|
+
| Backend code | @backend-coder |
|
|
15
|
+
| Frontend code | @frontend-coder |
|
|
16
|
+
| DevOps/infra code | @devops |
|
|
15
17
|
| Explore/understand | @code-explorer |
|
|
16
18
|
| Review code | @reviewer |
|
|
17
19
|
| Security review | @security-auditor |
|
package/docs/commands.md
CHANGED
|
@@ -10,6 +10,7 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
10
10
|
| `/fd-new-feature` | `[feature-description]` | Define a new feature and initialize feature context |
|
|
11
11
|
| `/fd-discuss` | `[topic]` | Structured Q&A to capture decisions for a phase |
|
|
12
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 |
|
|
13
14
|
| `/fd-execute` | `[--phase=N] [--override]` | Implement feature with TDD pipeline and parallel agents |
|
|
14
15
|
| `/fd-verify` | `[--phase=N] [--env=staging\|production]` | Verify feature completion: tests, review, security, deploy check |
|
|
15
16
|
| `/fd-fix-bug` | `[bug-description]` | Debug, fix, and verify bug with regression test |
|
|
@@ -126,8 +127,34 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
126
127
|
```
|
|
127
128
|
|
|
128
129
|
**What Next?**
|
|
129
|
-
1.
|
|
130
|
-
2. Run `/fd-
|
|
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
|
+
```
|
|
131
158
|
|
|
132
159
|
---
|
|
133
160
|
|
|
@@ -141,9 +168,10 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
141
168
|
|
|
142
169
|
**What it does:**
|
|
143
170
|
1. Reads `.planning/phases/phase-N/PLAN.md` for implementation steps
|
|
144
|
-
2.
|
|
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
|
|
145
173
|
3. `@tester` writes failing tests first
|
|
146
|
-
4. `@coder` implements minimum to pass
|
|
174
|
+
4. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum to pass
|
|
147
175
|
5. `@reviewer` confirms quality
|
|
148
176
|
6. Updates `STATE.md` with completed steps
|
|
149
177
|
7. Waves execute in order, with parallel tasks within each wave
|
|
@@ -205,7 +233,7 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
205
233
|
**What it does:**
|
|
206
234
|
1. Enforces TDD cycle: BEHAVIOR → RED → GREEN → REFACTOR
|
|
207
235
|
2. `@tester` writes failing tests first
|
|
208
|
-
3. `@coder` implements minimum to pass
|
|
236
|
+
3. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum to pass
|
|
209
237
|
4. `@reviewer` confirms quality
|
|
210
238
|
5. Updates `STATE.md` with completed steps
|
|
211
239
|
|
|
@@ -226,7 +254,7 @@ Commands are slash commands registered in OpenCode. Run them by typing `/command
|
|
|
226
254
|
**What it does:**
|
|
227
255
|
1. `@researcher` investigates and isolates root cause
|
|
228
256
|
2. `@tester` writes regression test that fails (RED)
|
|
229
|
-
3. `@coder` implements minimum fix (GREEN)
|
|
257
|
+
3. Implementation agent (`@backend-coder` / `@frontend-coder` / `@devops`) implements minimum fix (GREEN)
|
|
230
258
|
4. `@reviewer` confirms fix (REFACTOR)
|
|
231
259
|
5. Records in `.codebase/FAILURES.json`
|
|
232
260
|
|
|
@@ -464,7 +492,9 @@ Comprehensive pre-change analysis: impact radar, blast radius, regression predic
|
|
|
464
492
|
|
|
465
493
|
| Task Type | Agent |
|
|
466
494
|
|-----------|-------|
|
|
467
|
-
|
|
|
495
|
+
| Backend code | @backend-coder |
|
|
496
|
+
| Frontend code | @frontend-coder |
|
|
497
|
+
| DevOps/infra code | @devops |
|
|
468
498
|
| Explore/understand | @code-explorer |
|
|
469
499
|
| Review code | @reviewer |
|
|
470
500
|
| Security review | @security-auditor |
|