@dv.nghiem/flowdeck 0.3.7 → 0.3.8

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.
@@ -1,63 +1,248 @@
1
1
  ---
2
- description: Quick task executionanalyze, implement, review, or investigate a specific piece of work without the full discuss -> plan -> execute workflow
2
+ description: Autonomous workflow launcherclassifies the task, selects the correct existing workflow, and runs the full stage sequence (discuss plan execute → verify and variants) end-to-end with minimal user input
3
3
  argument-hint: [task description]
4
4
  ---
5
5
 
6
- # Quick Task
6
+ # Quick — Autonomous Workflow Launcher
7
7
 
8
- Execute a focused task without the full workflow. Analyzes the request, selects the best specialist agent, and returns the result directly.
8
+ Run the correct FlowDeck workflow automatically for any task. This command:
9
+ - Classifies the task type
10
+ - Selects the appropriate existing workflow and stage sequence
11
+ - Routes all clarifying questions through `@supervisor`
12
+ - Executes each stage in order using the existing registered commands
13
+ - Stops only when blocked, awaiting approval, or fully verified
9
14
 
10
15
  **Input:** $ARGUMENTS — what you need done
11
16
 
12
- ## Analysis
13
-
14
- Parse `$ARGUMENTS` to determine:
15
-
16
- 1. **Type of task**what kind of work is it?
17
- 2. **Scope** single file, directory, or whole codebase?
18
- 3. **Required capability** what must the agent be able to do?
19
-
20
- ## Agent Selection Matrix
21
-
22
- | Task Type | Signal Keywords | Agent |
23
- |-----------|-----------------|-------|
24
- | Backend code implementation | api, server, service, database, migration, endpoint, repository | `@backend-coder` |
25
- | Frontend code implementation | ui, frontend, component, page, css, style, react, screen | `@frontend-coder` |
26
- | DevOps and infra implementation | ci, cd, deploy, pipeline, workflow, docker, kubernetes, terraform | `@devops` |
27
- | Explore and understand | trace, map, find, explore, understand, what does | `@code-explorer` |
28
- | Review code quality | review, check, audit, analyze | `@reviewer` |
29
- | Security review | security, auth, vulnerability, injection, OWASP | `@security-auditor` |
30
- | UI design-first planning | landing page, dashboard, admin panel, onboarding UX, app screen, wireframe, design system | `@design` |
31
- | Design or architecture | design, architect, schema, API, structure | `@architect` |
32
- | Write tests | test, coverage, regression, TDD | `@tester` |
33
- | Documentation | docs, README, document, write | `@writer` |
34
- | Research | research, find, look up, how to use, compare | `@researcher` |
35
- | Debug | debug, trace, root cause, why is, fix error | `@debug-specialist` |
36
- | Performance | performance, slow, optimize, bottleneck | `@performance-optimizer` |
37
- | Build error | build error, compile, types, missing import | `@build-error-resolver` |
38
- | Refactoring | refactor, extract, rename, restructure | `@refactor-guide` |
39
- | Write/update docs | document, write docs, update README | `@doc-updater` |
40
-
41
- **Default:** If unclear or mixed, use `@orchestrator`.
42
-
43
- ## Execution
44
-
45
- 1. Select the best agent from the matrix above.
46
- 2. Construct a focused prompt with:
47
- - The task from `$ARGUMENTS`
48
- - Relevant context (file paths, architecture info, existing code)
49
- - Clear success criteria
50
- 3. Execute directly — no intermediate steps.
51
-
52
- ## Output
53
-
54
- Return the agent's output with:
55
- - Which agent was used
56
- - The result (be direct, no padding)
57
- - If the task is partial or incomplete, note what still needs doing
58
-
59
- ## Guardrails
60
-
61
- - **Small tasks only** — if the task would require more than ~15 minutes of work, suggest `/fd-new-feature` instead.
62
- - **Single scope** — do not attempt multi-file refactors or cross-repo changes via this command.
63
- - **No workflow overhead** — skip STATE.md updates, phase transitions, and plan markers.
17
+ ---
18
+
19
+ ## Step 1: Pre-flight State Check
20
+
21
+ 1. Check `.planning/STATE.md` existsif not, error: "Run /fd-new-project first."
22
+ 2. Read `.planning/STATE.md` to determine if a `quick_run` entry already exists for this session.
23
+ - If `quick_run.outcome` is `running` or `blocked`: **resume from the last completed stage** (skip to Step 5).
24
+ - Otherwise: proceed to Step 2.
25
+
26
+ ---
27
+
28
+ ## Step 2: Classify the Task
29
+
30
+ Parse `$ARGUMENTS` using the signal table below to determine task type and required stage sequence.
31
+
32
+ ### Signal Classification Table
33
+
34
+ | Task Type | Strong Signal Keywords | Stage Sequence |
35
+ |-----------|------------------------|----------------|
36
+ | **bugfix** | fix, bug, broken, not working, error, crash, regression, debug, exception, failing, root cause, why is, stack trace | `discuss → fix-bug → verify` |
37
+ | **ui-feature** | landing page, dashboard, admin panel, app screen, onboarding, wireframe, design system, ux flow, web app, website, responsive layout, navbar, modal, sidebar, frontend page | `discuss → design → plan → execute → verify` |
38
+ | **docs** | docs, documentation, readme, api docs, usage guide, write docs, document, changelog, tutorial, docstring | `discuss → write-docs → verify` |
39
+ | **simple** | rename, move file, minor, typo, update constant, update config, bump version, one-liner | `execute → verify` |
40
+ | **feature** | (substantive description, 8+ words, no above signals) | `discuss → plan → execute → verify` |
41
+ | **ambiguous** | (short, vague, or unclear input) | *(clarify first — see Step 3)* |
42
+
43
+ ### Classification Rules
44
+
45
+ 1. **Bug signals dominate**: if the description contains "fix", "bug", "error", "crash", "exception", "broken", or "regression", classify as `bugfix` even if it also mentions UI elements.
46
+ 2. **UI signals for design-first**: if 1+ UI-heavy signal is present and no dominant bug signal, classify as `ui-feature`.
47
+ 3. **Docs signals**: if "docs", "documentation", "readme", or "write docs" is present without implementation signals, classify as `docs`.
48
+ 4. **Simple**: if "rename", "typo", "minor", or "move file" is present and description is a single, scoped operation.
49
+ 5. **Feature**: substantive description (8+ words) with no specific signal type.
50
+ 6. **Ambiguous**: description is too short (<5 words) or matches a bare imperative with no object (e.g., "improve", "add", "make it better").
51
+
52
+ Record the classification result:
53
+ ```yaml
54
+ quick_run:
55
+ taskDescription: "$ARGUMENTS"
56
+ taskType: <feature|ui-feature|bugfix|docs|simple|ambiguous>
57
+ requiresDesign: <true|false>
58
+ requiresTDD: <true|false>
59
+ stageSequence: [<ordered stage names>]
60
+ completedStages: []
61
+ currentStage: <first stage name>
62
+ supervisorDecisions: {}
63
+ startedAt: <ISO timestamp>
64
+ outcome: running
65
+ ```
66
+
67
+ ---
68
+
69
+ ## Step 3: Supervisor-Gated Clarification (when needed)
70
+
71
+ **Only proceed to Step 4 when classification confidence is sufficient.**
72
+
73
+ If classification is `ambiguous` OR confidence is low (description < 5 words or no clear signal):
74
+
75
+ 1. Invoke `@supervisor` (preflight review of `fd-quick` command) with the partial task description.
76
+ 2. Present the supervisor's single clarifying question to the user. **Ask ONE question only.**
77
+ 3. Wait for the user's answer.
78
+ 4. Re-classify using the combined original description + the user's answer.
79
+ 5. If confidence is still low after one clarification round, route to `feature` with a note in STATE.md.
80
+
81
+ **All clarification goes through `@supervisor`. Do not have specialist agents ask questions directly.**
82
+
83
+ Example supervisor clarification questions (the supervisor selects the most relevant):
84
+ - "Is this a new feature, a bug fix, or a documentation task?"
85
+ - "Does this involve building or changing a user-facing UI (page, dashboard, component)?"
86
+ - "Can you describe the specific bug — what is the expected vs actual behavior?"
87
+ - "Is the scope a single file change, or does it span multiple modules?"
88
+
89
+ ---
90
+
91
+ ## Step 4: Confirm Stage Sequence
92
+
93
+ Present the classification and planned stage sequence to the user before proceeding:
94
+
95
+ ```
96
+ Task classified as: <task type>
97
+ Stage sequence: <stage-1> → <stage-2> → ... → <stage-N>
98
+ Requires design: <yes / no>
99
+ Requires TDD: <yes / no>
100
+
101
+ Running /fd-quick autonomously. I will proceed through each stage and pause only
102
+ if I need approval, encounter a blocker, or complete the full sequence.
103
+ ```
104
+
105
+ Proceed automatically — do not wait for additional input unless approval is explicitly required by a stage.
106
+
107
+ ---
108
+
109
+ ## Step 5: Execute Stage Sequence Autonomously
110
+
111
+ For **each stage** in the sequence (in order), execute the following loop:
112
+
113
+ ### 5a. Announce Stage Start
114
+
115
+ ```
116
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
117
+ Stage: <stage-name> Command: /<command>
118
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
119
+ ```
120
+
121
+ ### 5b. Supervisor Preflight Review
122
+
123
+ Before executing the stage, invoke `@supervisor` (preflight) on the stage's command:
124
+ - Pass: `taskDescription`, `currentPhase` (= current stage name), `prerequisitesMet`, `designApprovalPresent`, `regressionTestPresent` as known from STATE.md.
125
+
126
+ **Handle supervisor decision:**
127
+
128
+ | Decision | Action |
129
+ |----------|--------|
130
+ | `approve` | Proceed to 5c immediately |
131
+ | `revise` | Resolve the listed `requiredChanges` (e.g., confirm PLAN.md, run preceding step) then re-run the stage |
132
+ | `block` | Stop. Report why. Show what is blocked. Ask user for the specific missing input or approval. Update `quick_run.outcome = blocked` in STATE.md. |
133
+ | `escalate` | Pause. Present the escalation reason to the user. Request explicit approval. On approval: continue. On denial: stop and summarize. |
134
+
135
+ ### 5c. Execute the Stage
136
+
137
+ Execute the stage using its existing command with full context:
138
+
139
+ **Stage → Command Mapping:**
140
+
141
+ | Stage | Command | Key Behavior |
142
+ |-------|---------|--------------|
143
+ | `discuss` | `/fd-discuss` | Runs `@discusser` structured Q&A. Saves `DISCUSS.md`. One question at a time. |
144
+ | `design` | `/fd-design --mode=draft` | Runs design-first pipeline. Required for `ui-feature` tasks. Produces design artifact + approval. |
145
+ | `plan` | `/fd-plan` | Creates `PLAN.md` from `DISCUSS.md` decisions. **Pauses for user CONFIRM before saving.** |
146
+ | `execute` | `/fd-execute` | TDD pipeline: BEHAVIOR → RED → GREEN → REFACTOR per step. Delegates to appropriate coder agents. |
147
+ | `fix-bug` | `/fd-fix-bug` | TDD bugfix: explore → RED regression test → GREEN fix → REFACTOR → record in FAILURES.json. |
148
+ | `write-docs` | `/fd-write-docs` | Explore APIs → `@writer` drafts → `@reviewer` accuracy check → finalize. |
149
+ | `verify` | `/fd-verify` | Full verification: tests + code review + security scan + deploy check. Reports verdict. |
150
+
151
+ ### 5d. Stage Completion Check
152
+
153
+ After the stage command completes:
154
+ 1. Invoke `@supervisor` (post-stage) to confirm the stage output is valid.
155
+ 2. If supervisor returns `approve` or `revise` with fixable issues: mark the stage complete.
156
+ 3. If supervisor returns `block`: halt, report, update state.
157
+ 4. Update STATE.md:
158
+ ```yaml
159
+ quick_run:
160
+ completedStages: [<all completed stage names>]
161
+ currentStage: <next stage name or null>
162
+ supervisorDecisions:
163
+ <stage-name>:
164
+ decision: <decision>
165
+ reasons: [...]
166
+ timestamp: <ISO>
167
+ ```
168
+ 5. Proceed to next stage.
169
+
170
+ ### 5e. Approval Gate (plan stage only)
171
+
172
+ The `plan` stage requires explicit user CONFIRM per the `/fd-plan` command's D-06 rule.
173
+ `/fd-quick` does NOT bypass this gate. Present the plan to the user and wait for CONFIRM.
174
+
175
+ ---
176
+
177
+ ## Step 6: Completion
178
+
179
+ When all stages complete:
180
+
181
+ 1. Update STATE.md:
182
+ ```yaml
183
+ quick_run:
184
+ completedStages: [<all stages>]
185
+ currentStage: null
186
+ outcome: complete
187
+ ```
188
+
189
+ 2. Present final summary:
190
+ ```
191
+ ════════════════════════════════════════════════
192
+ /fd-quick Complete — <task type>
193
+ ════════════════════════════════════════════════
194
+ Task: $ARGUMENTS
195
+ Workflow: <stage-1> → ... → <stage-N>
196
+ Outcome: ✅ COMPLETE
197
+ ────────────────────────────────────────────────
198
+ Verify result: /fd-verify
199
+ Save state: /fd-checkpoint
200
+ ════════════════════════════════════════════════
201
+ ```
202
+
203
+ ---
204
+
205
+ ## Step 7: Block / Failure Handling
206
+
207
+ If execution cannot continue at any stage:
208
+
209
+ 1. Update STATE.md: `quick_run.outcome = blocked`
210
+ 2. Report:
211
+ ```
212
+ ════════════════════════════════════════════════
213
+ /fd-quick Blocked
214
+ ════════════════════════════════════════════════
215
+ Stage reached: <stage-name>
216
+ Why stopped: <clear reason>
217
+ Blocked at: <command name>
218
+ What is needed: <exact missing input or approval>
219
+ ────────────────────────────────────────────────
220
+ To resume: /fd-quick $ARGUMENTS
221
+ (will continue from <next-stage-name>)
222
+ To fix manually: /<blocked-command> [args]
223
+ ════════════════════════════════════════════════
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Workflow Discipline (Non-Negotiable)
229
+
230
+ These gates from the existing workflow system are **never bypassed by /fd-quick**:
231
+
232
+ - **Design-first**: `ui-feature` tasks MUST complete the `design` stage (with `@design` approval and handoff) before `execute` can begin. No `--override` unless user explicitly requests it.
233
+ - **TDD**: `execute` and `fix-bug` stages enforce RED → GREEN → REFACTOR. `/fd-quick` does not skip tests.
234
+ - **Plan CONFIRM**: The `plan` stage requires explicit user CONFIRM. `/fd-quick` presents the plan and waits.
235
+ - **Regression test**: `fix-bug` requires a failing regression test before implementation (per `/fd-fix-bug`).
236
+ - **Verify**: All workflows end with `/fd-verify` to confirm all checks pass before marking complete.
237
+
238
+ ---
239
+
240
+ ## Existing Commands Remain Independent
241
+
242
+ `/fd-quick` is a workflow launcher. The commands it invokes (`/fd-discuss`, `/fd-plan`, etc.) remain fully operational as standalone commands. Running `/fd-quick` does not lock out any other command.
243
+
244
+ ---
245
+
246
+ ## State Visibility
247
+
248
+ All routing and execution progress is recorded in `.planning/STATE.md` under the `quick_run` key. Use `/fd-status` to inspect current state. Use `/fd-resume` to reload context after a session break.
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Blast Radius Preview
8
8
 
9
- Before committing to a change, map every system that could break. Run `/blast-radius` with a change description.
9
+ Before committing to a change, map every system that could break. Activate this skill by providing a change description to the agent.
10
10
 
11
11
  ## When to Activate
12
12
 
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Change Impact Radar
8
8
 
9
- Predicts blast surface before the AI touches a single file. Run `/impact-radar` with a description of the intended change.
9
+ Predicts blast surface before the AI touches a single file. Activate this skill by providing the intended change description to the agent.
10
10
 
11
11
  ## When to Activate
12
12
 
@@ -58,6 +58,6 @@ Activate before:
58
58
 
59
59
  ## Guidance
60
60
 
61
- - If MEMORY.json does not exist, run `/map-codebase` first to build the graph.
61
+ - If MEMORY.json does not exist, run `/fd-map-codebase` first to build the graph.
62
62
  - If a file has no test coverage and is indirectly impacted, flag it as "coverage gap".
63
63
  - Never proceed with a HIGH impact change without human confirmation.
@@ -33,7 +33,7 @@ Before planning ANY task:
33
33
  2. Scan affected files for context
34
34
  3. Estimate confidence level
35
35
  4. Act based on level:
36
- - HIGH: proceed to `/plan`
36
+ - HIGH: proceed to `/fd-plan`
37
37
  - MEDIUM: write explicit assumptions at the top of PLAN.md, flag 3 highest risks
38
38
  - LOW: stop, ask clarifying questions, do not write PLAN.md until answered
39
39
 
@@ -60,4 +60,4 @@ After loading context, produce this briefing:
60
60
  **Key Conventions**: [2-3 most important patterns]
61
61
  ```
62
62
 
63
- If any file is missing, note it: "STATE.md not found — run `/new-project` to initialize."
63
+ If any file is missing, note it: "STATE.md not found — run `/fd-new-project` to initialize."
@@ -30,11 +30,11 @@ When a patch is flagged as `review-required` or `high-risk` by the Patch Trust S
30
30
 
31
31
  ## Workflow
32
32
 
33
- Run `/review-route` with `--files` and `--change` to get the routing decision.
33
+ Provide the files and change description to the agent to get the routing decision.
34
34
 
35
- Example:
35
+ Example input:
36
36
  ```
37
- /review-route {"files": "src/services/auth.ts,src/api/payment.ts", "change": "refactor JWT validation"}
37
+ Review route for: files=src/services/auth.ts,src/api/payment.ts change=refactor JWT validation
38
38
  ```
39
39
  Output:
40
40
  ```
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Intent-to-Change Translator
8
8
 
9
- Run `/translate-intent` with a plain-language description of what you want. Get back a ranked menu of concrete implementation options with tradeoffs — before writing a single line of code.
9
+ Run `/fd-translate-intent` with a plain-language description of what you want. Get back a ranked menu of concrete implementation options with tradeoffs — before writing a single line of code.
10
10
 
11
11
  ## When to Activate
12
12
 
@@ -49,7 +49,7 @@ Run `/translate-intent` with a plain-language description of what you want. Get
49
49
 
50
50
  ### Recommendation
51
51
  Proceed with **Option 1** because [reason].
52
- To start: run `/plan` after confirming your choice.
52
+ To start: run `/fd-plan` after confirming your choice.
53
53
  ```
54
54
 
55
55
  ## Confidence Rule
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Regression Prediction
8
8
 
9
- Before merging, predict what is most likely to break. Run `/regression-predict` with a description of the change and the files affected.
9
+ Before merging, predict what is most likely to break. Activate this skill by providing the change description and affected files to the agent.
10
10
 
11
11
  ## Regression Categories
12
12
 
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Test Gap Detector
8
8
 
9
- Run `/test-gap` before implementing a feature or fix. Get back a ranked list of coverage gaps and the minimum viable tests to close them.
9
+ Activate this skill before implementing a feature or fix. Get back a ranked list of coverage gaps and the minimum viable tests to close them.
10
10
 
11
11
  ## Gap Categories
12
12
 
@@ -6,7 +6,7 @@ origin: FlowDeck
6
6
 
7
7
  # Codebase Volatility Map
8
8
 
9
- Run `/volatility-map` to generate a heatmap of the most unstable parts of the codebase. Results are stored in `.codebase/VOLATILITY.json` for use by other FlowDeck features.
9
+ Activate this skill to generate a heatmap of the most unstable parts of the codebase. Results are stored in `.codebase/VOLATILITY.json` for use by other FlowDeck features.
10
10
 
11
11
  ## Stability Levels
12
12