@brunosps00/dev-workflow 0.15.0 → 1.0.1

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 (136) hide show
  1. package/README.md +99 -119
  2. package/lib/constants.js +16 -36
  3. package/lib/migrate-skills.js +11 -4
  4. package/lib/removed-commands.js +30 -0
  5. package/package.json +1 -1
  6. package/scaffold/en/agent-instructions.md +31 -16
  7. package/scaffold/en/commands/dw-adr.md +2 -2
  8. package/scaffold/en/commands/dw-analyze-project.md +7 -7
  9. package/scaffold/en/commands/dw-autopilot.md +20 -20
  10. package/scaffold/en/commands/dw-brainstorm.md +315 -21
  11. package/scaffold/en/commands/dw-bugfix.md +5 -5
  12. package/scaffold/en/commands/dw-commit.md +1 -1
  13. package/scaffold/en/commands/dw-dockerize.md +9 -9
  14. package/scaffold/en/commands/dw-find-skills.md +4 -4
  15. package/scaffold/en/commands/dw-functional-doc.md +1 -1
  16. package/scaffold/en/commands/dw-generate-pr.md +4 -4
  17. package/scaffold/en/commands/dw-help.md +95 -351
  18. package/scaffold/en/commands/dw-intel.md +76 -12
  19. package/scaffold/en/commands/dw-new-project.md +9 -9
  20. package/scaffold/en/commands/dw-plan.md +175 -0
  21. package/scaffold/en/commands/dw-qa.md +166 -0
  22. package/scaffold/en/commands/dw-redesign-ui.md +6 -6
  23. package/scaffold/en/commands/dw-review.md +198 -0
  24. package/scaffold/en/commands/dw-run.md +176 -0
  25. package/scaffold/en/commands/dw-secure-audit.md +222 -0
  26. package/scaffold/en/commands/dw-update.md +1 -1
  27. package/scaffold/en/references/playwright-patterns.md +1 -1
  28. package/scaffold/en/references/refactoring-catalog.md +1 -1
  29. package/scaffold/en/templates/brainstorm-matrix.md +1 -1
  30. package/scaffold/en/templates/idea-onepager.md +3 -3
  31. package/scaffold/en/templates/project-onepager.md +5 -5
  32. package/scaffold/pt-br/agent-instructions.md +31 -16
  33. package/scaffold/pt-br/commands/dw-adr.md +2 -2
  34. package/scaffold/pt-br/commands/dw-analyze-project.md +7 -7
  35. package/scaffold/pt-br/commands/dw-autopilot.md +20 -20
  36. package/scaffold/pt-br/commands/dw-brainstorm.md +315 -21
  37. package/scaffold/pt-br/commands/dw-bugfix.md +8 -8
  38. package/scaffold/pt-br/commands/dw-commit.md +1 -1
  39. package/scaffold/pt-br/commands/dw-dockerize.md +9 -9
  40. package/scaffold/pt-br/commands/dw-find-skills.md +4 -4
  41. package/scaffold/pt-br/commands/dw-functional-doc.md +1 -1
  42. package/scaffold/pt-br/commands/dw-generate-pr.md +4 -4
  43. package/scaffold/pt-br/commands/dw-help.md +97 -300
  44. package/scaffold/pt-br/commands/dw-intel.md +77 -13
  45. package/scaffold/pt-br/commands/dw-new-project.md +9 -9
  46. package/scaffold/pt-br/commands/dw-plan.md +175 -0
  47. package/scaffold/pt-br/commands/dw-qa.md +166 -0
  48. package/scaffold/pt-br/commands/dw-redesign-ui.md +6 -6
  49. package/scaffold/pt-br/commands/dw-review.md +198 -0
  50. package/scaffold/pt-br/commands/dw-run.md +176 -0
  51. package/scaffold/pt-br/commands/dw-secure-audit.md +222 -0
  52. package/scaffold/pt-br/commands/dw-update.md +1 -1
  53. package/scaffold/pt-br/references/playwright-patterns.md +1 -1
  54. package/scaffold/pt-br/references/refactoring-catalog.md +1 -1
  55. package/scaffold/pt-br/templates/brainstorm-matrix.md +1 -1
  56. package/scaffold/pt-br/templates/idea-onepager.md +3 -3
  57. package/scaffold/pt-br/templates/project-onepager.md +5 -5
  58. package/scaffold/pt-br/templates/tasks-template.md +1 -1
  59. package/scaffold/skills/api-testing-recipes/SKILL.md +6 -6
  60. package/scaffold/skills/api-testing-recipes/references/auth-patterns.md +1 -1
  61. package/scaffold/skills/api-testing-recipes/references/matrix-conventions.md +1 -1
  62. package/scaffold/skills/api-testing-recipes/references/openapi-driven.md +3 -3
  63. package/scaffold/skills/docker-compose-recipes/SKILL.md +1 -1
  64. package/scaffold/skills/dw-codebase-intel/SKILL.md +9 -9
  65. package/scaffold/skills/dw-codebase-intel/agents/intel-updater.md +4 -4
  66. package/scaffold/skills/dw-codebase-intel/references/api-design-discipline.md +1 -1
  67. package/scaffold/skills/dw-codebase-intel/references/incremental-update.md +5 -5
  68. package/scaffold/skills/dw-codebase-intel/references/intel-format.md +1 -1
  69. package/scaffold/skills/dw-codebase-intel/references/query-patterns.md +3 -3
  70. package/scaffold/skills/dw-council/SKILL.md +2 -2
  71. package/scaffold/skills/dw-debug-protocol/SKILL.md +5 -3
  72. package/scaffold/skills/dw-execute-phase/SKILL.md +16 -16
  73. package/scaffold/skills/dw-execute-phase/agents/executor.md +5 -5
  74. package/scaffold/skills/dw-execute-phase/agents/plan-checker.md +4 -4
  75. package/scaffold/skills/dw-execute-phase/references/atomic-commits.md +1 -1
  76. package/scaffold/skills/dw-execute-phase/references/plan-verification.md +2 -2
  77. package/scaffold/skills/dw-execute-phase/references/wave-coordination.md +1 -1
  78. package/scaffold/skills/dw-git-discipline/SKILL.md +5 -2
  79. package/scaffold/skills/dw-incident-response/SKILL.md +5 -1
  80. package/scaffold/skills/dw-llm-eval/SKILL.md +10 -8
  81. package/scaffold/skills/dw-memory/SKILL.md +2 -2
  82. package/scaffold/skills/dw-review-rigor/SKILL.md +5 -5
  83. package/scaffold/skills/dw-simplification/SKILL.md +12 -7
  84. package/scaffold/skills/dw-simplification/references/deep-modules.md +105 -0
  85. package/scaffold/skills/dw-source-grounding/SKILL.md +1 -1
  86. package/scaffold/skills/dw-testing-discipline/SKILL.md +8 -6
  87. package/scaffold/skills/dw-testing-discipline/references/agent-guardrails.md +3 -3
  88. package/scaffold/skills/dw-testing-discipline/references/anti-patterns.md +2 -2
  89. package/scaffold/skills/dw-testing-discipline/references/core-rules.md +1 -1
  90. package/scaffold/skills/dw-testing-discipline/references/flaky-discipline.md +3 -3
  91. package/scaffold/skills/dw-testing-discipline/references/patterns.md +1 -1
  92. package/scaffold/skills/dw-testing-discipline/references/playwright-recipes.md +1 -1
  93. package/scaffold/skills/dw-ui-discipline/SKILL.md +8 -6
  94. package/scaffold/skills/dw-ui-discipline/references/accessibility-floor.md +2 -2
  95. package/scaffold/skills/dw-ui-discipline/references/hard-gate.md +1 -1
  96. package/scaffold/skills/dw-ui-discipline/references/state-matrix.md +1 -1
  97. package/scaffold/skills/dw-ui-discipline/references/visual-slop.md +2 -2
  98. package/scaffold/skills/dw-verify/SKILL.md +4 -4
  99. package/scaffold/skills/humanizer/SKILL.md +1 -7
  100. package/scaffold/skills/remotion-best-practices/SKILL.md +3 -1
  101. package/scaffold/skills/security-review/SKILL.md +1 -1
  102. package/scaffold/skills/security-review/languages/csharp.md +1 -1
  103. package/scaffold/skills/security-review/languages/rust.md +1 -1
  104. package/scaffold/skills/security-review/languages/typescript.md +1 -1
  105. package/scaffold/skills/vercel-react-best-practices/SKILL.md +3 -1
  106. package/scaffold/templates-overrides-readme.md +3 -3
  107. package/scaffold/en/commands/dw-code-review.md +0 -386
  108. package/scaffold/en/commands/dw-create-prd.md +0 -148
  109. package/scaffold/en/commands/dw-create-tasks.md +0 -201
  110. package/scaffold/en/commands/dw-create-techspec.md +0 -210
  111. package/scaffold/en/commands/dw-deep-research.md +0 -418
  112. package/scaffold/en/commands/dw-deps-audit.md +0 -327
  113. package/scaffold/en/commands/dw-fix-qa.md +0 -152
  114. package/scaffold/en/commands/dw-map-codebase.md +0 -125
  115. package/scaffold/en/commands/dw-refactoring-analysis.md +0 -340
  116. package/scaffold/en/commands/dw-revert-task.md +0 -114
  117. package/scaffold/en/commands/dw-review-implementation.md +0 -349
  118. package/scaffold/en/commands/dw-run-plan.md +0 -300
  119. package/scaffold/en/commands/dw-run-qa.md +0 -497
  120. package/scaffold/en/commands/dw-run-task.md +0 -209
  121. package/scaffold/en/commands/dw-security-check.md +0 -271
  122. package/scaffold/pt-br/commands/dw-code-review.md +0 -366
  123. package/scaffold/pt-br/commands/dw-create-prd.md +0 -148
  124. package/scaffold/pt-br/commands/dw-create-tasks.md +0 -201
  125. package/scaffold/pt-br/commands/dw-create-techspec.md +0 -208
  126. package/scaffold/pt-br/commands/dw-deep-research.md +0 -172
  127. package/scaffold/pt-br/commands/dw-deps-audit.md +0 -327
  128. package/scaffold/pt-br/commands/dw-fix-qa.md +0 -152
  129. package/scaffold/pt-br/commands/dw-map-codebase.md +0 -125
  130. package/scaffold/pt-br/commands/dw-refactoring-analysis.md +0 -340
  131. package/scaffold/pt-br/commands/dw-revert-task.md +0 -114
  132. package/scaffold/pt-br/commands/dw-review-implementation.md +0 -337
  133. package/scaffold/pt-br/commands/dw-run-plan.md +0 -296
  134. package/scaffold/pt-br/commands/dw-run-qa.md +0 -495
  135. package/scaffold/pt-br/commands/dw-run-task.md +0 -208
  136. package/scaffold/pt-br/commands/dw-security-check.md +0 -271
@@ -16,12 +16,12 @@ This command is **complementary** to `/dw-new-project`:
16
16
  - You want a `--prod` Dockerfile distinct from your `--dev` setup, with proper multi-stage builds and non-root users
17
17
  - Onboarding a teammate to a project where local-dev "just works" via `docker compose up`
18
18
  - NOT for scaffolding a new project — use `/dw-new-project`
19
- - NOT for vulnerability scanning Dockerfiles — `/dw-security-check` covers Trivy IaC scanning of Dockerfile/compose
19
+ - NOT for vulnerability scanning Dockerfiles — `/dw-secure-audit` covers Trivy IaC scanning of Dockerfile/compose
20
20
  - NOT for orchestration (k8s manifests, helm charts) — out of scope; the report can include notes pointing to those tools
21
21
 
22
22
  ## Pipeline Position
23
23
 
24
- **Predecessor:** any project with a manifest (`package.json`, `pyproject.toml`, `*.csproj`, `Cargo.toml`) | **Successor:** `/dw-security-check` (run Trivy on the new Dockerfile + compose), `/dw-deps-audit` (audit deps before baking them into a production image)
24
+ **Predecessor:** any project with a manifest (`package.json`, `pyproject.toml`, `*.csproj`, `Cargo.toml`) | **Successor:** `/dw-secure-audit` (run Trivy on the new Dockerfile + compose), `/dw-secure-audit --plan` (audit deps before baking them into a production image)
25
25
 
26
26
  ## Complementary Skills
27
27
 
@@ -58,7 +58,7 @@ Detect language(s), framework, package manager, runtime infra deps, and existing
58
58
 
59
59
  #### 0.1 Language matrix
60
60
 
61
- Same matrix as `/dw-security-check` and `/dw-deps-audit`:
61
+ Same matrix as `/dw-secure-audit` and `/dw-secure-audit --plan`:
62
62
 
63
63
  | Language | Indicators |
64
64
  |----------|------------|
@@ -273,9 +273,9 @@ Sections:
273
273
  7. **Audit Findings** (only `--audit` mode) — table of issues with severity, file:line, recommendation.
274
274
  8. **Next Steps:**
275
275
  - For `--dev`: `cp .env.example .env` (if missing), `docker compose -f docker-compose.dev.yml up -d`, then smoke test the app.
276
- - For `--prod`: build the image locally first (`docker build -t <name>:dev .`), run `/dw-security-check` on the Dockerfile and compose, then push to registry.
276
+ - For `--prod`: build the image locally first (`docker build -t <name>:dev .`), run `/dw-secure-audit` on the Dockerfile and compose, then push to registry.
277
277
  - For `--audit`: apply suggested fixes manually or run with `--mode=force-overwrite`.
278
- - Always: run `/dw-deps-audit` against the project before promoting the image to production.
278
+ - Always: run `/dw-secure-audit --plan` against the project before promoting the image to production.
279
279
 
280
280
  ## Flags
281
281
 
@@ -309,13 +309,13 @@ Sections:
309
309
 
310
310
  ## Integration With Other dw-* Commands
311
311
 
312
- - **`/dw-security-check`** — run AFTER `--prod` generation to scan the new Dockerfile + compose with Trivy IaC.
313
- - **`/dw-deps-audit`** — run BEFORE `--prod` generation to ensure no vulnerable deps go into the image.
312
+ - **`/dw-secure-audit`** — run AFTER `--prod` generation to scan the new Dockerfile + compose with Trivy IaC.
313
+ - **`/dw-secure-audit --plan`** — run BEFORE `--prod` generation to ensure no vulnerable deps go into the image.
314
314
  - **`/dw-new-project`** — sister command. `/dw-new-project` bakes Docker in from day one; `/dw-dockerize` retrofits it. They share the `docker-compose-recipes` skill.
315
- - **`/dw-fix-qa`** — if a generated `Dockerfile.dev` causes hot-reload to break, `/dw-fix-qa` can iterate fixes with the user.
315
+ - **`/dw-qa --fix`** — if a generated `Dockerfile.dev` causes hot-reload to break, `/dw-qa --fix` can iterate fixes with the user.
316
316
 
317
317
  ## Inspired by
318
318
 
319
- `dw-dockerize` is dev-workflow-native. The detection layer reuses the language matrix from `/dw-security-check` and `/dw-deps-audit`. The brainstorm layer borrows the three-option (Conservative/Balanced/Bold) discipline from `/dw-brainstorm` and applies it to base-image choice. The audit layer reuses `security-review/infrastructure/docker.md` for OWASP-aligned checks. The compose composition is delegated to the `docker-compose-recipes` bundled skill (shared with `/dw-new-project`).
319
+ `dw-dockerize` is dev-workflow-native. The detection layer reuses the language matrix from `/dw-secure-audit` and `/dw-secure-audit --plan`. The brainstorm layer borrows the three-option (Conservative/Balanced/Bold) discipline from `/dw-brainstorm` and applies it to base-image choice. The audit layer reuses `security-review/infrastructure/docker.md` for OWASP-aligned checks. The compose composition is delegated to the `docker-compose-recipes` bundled skill (shared with `/dw-new-project`).
320
320
 
321
321
  </system_instructions>
@@ -15,7 +15,7 @@ You are an agent skills discovery helper for this workspace. Your job is to help
15
15
 
16
16
  ## Pipeline Position
17
17
 
18
- **Predecessor:** any exploratory question | **Successor:** none (independent flow). If no skill is found, fall back to `/dw-brainstorm` (idea exploration) or `/dw-run-task` (small one-off task) when applicable.
18
+ **Predecessor:** any exploratory question | **Successor:** none (independent flow). If no skill is found, fall back to `/dw-brainstorm` (idea exploration) or `/dw-run` (small one-off task) when applicable.
19
19
 
20
20
  ## Complementary Skills
21
21
 
@@ -81,7 +81,7 @@ Browse skills at: https://skills.sh/
81
81
  - Acknowledge no match was found, no fabrication
82
82
  - Offer to help directly with general capabilities
83
83
  - Suggest `/dw-brainstorm` if the user wants to explore options before building it themselves
84
- - Suggest `/dw-run-task` if the request fits a small one-off change (≤ 3 files, no PRD)
84
+ - Suggest `/dw-run` if the request fits a small one-off change (≤ 3 files, no PRD)
85
85
  - Mention `npx skills init <name>` as a path to author the missing skill
86
86
 
87
87
  ## Common Skill Categories
@@ -128,7 +128,7 @@ I searched for skills related to "<query>" and didn't find a strong match
128
128
 
129
129
  I can still help directly with general capabilities. Or:
130
130
  /dw-brainstorm "<your idea>" — if you want to explore approaches first
131
- /dw-run-task "<small change>" — if it's a tiny change that fits one task (write quick PRD first)
131
+ /dw-run "<small change>" — if it's a tiny change that fits one task (write quick PRD first)
132
132
  npx skills init <name> — if this would be valuable as a reusable skill
133
133
  ```
134
134
 
@@ -150,7 +150,7 @@ I can still help directly with general capabilities. Or:
150
150
  `dw-find-skills` ports the `find-skills` skill (from the Claude superpowers bundle, `~/.agents/skills/find-skills/SKILL.md`) into a `dw-*` workflow command so every supported platform (Claude Code, Codex, Copilot, OpenCode) gets the same discovery on-ramp. Adaptations for dev-workflow:
151
151
 
152
152
  - Pipeline integration: `/dw-help <keyword>` routes here when the keyword matches `skill`/`find skill`/`install skill`/`extend agent`.
153
- - Fallback to `/dw-brainstorm` or `/dw-run-task` when no skill matches — keeps the user inside the workflow instead of dumping them empty-handed.
153
+ - Fallback to `/dw-brainstorm` or `/dw-run` when no skill matches — keeps the user inside the workflow instead of dumping them empty-handed.
154
154
  - Explicit scope question (`-g` vs local) before installing, instead of always installing globally.
155
155
 
156
156
  Credit: the `find-skills` skill from the Claude superpowers ecosystem and the `npx skills` / [skills.sh](https://skills.sh/) project.
@@ -3,7 +3,7 @@ You are an assistant specialized in mapping real functionalities of screens, flo
3
3
 
4
4
  ## When to Use
5
5
  - Use when mapping screens, flows, or modules into a comprehensive functional dossier with E2E test coverage and optional video tours
6
- - Do NOT use when only running QA tests against existing requirements (use `/dw-run-qa`)
6
+ - Do NOT use when only running QA tests against existing requirements (use `/dw-qa`)
7
7
  - Do NOT use when the project has not been set up yet
8
8
 
9
9
  ## Pipeline Position
@@ -4,10 +4,10 @@ You are an assistant specialized in creating well-documented Pull Requests. Your
4
4
  ## When to Use
5
5
  - Use when creating a Pull Request from a feature or bugfix branch to main/develop
6
6
  - Do NOT use when changes are not yet committed (use `/dw-commit` first)
7
- - Do NOT use when code review has not been done (use `/dw-code-review` first)
7
+ - Do NOT use when code review has not been done (use `/dw-review --code-only` first)
8
8
 
9
9
  ## Pipeline Position
10
- **Predecessor:** `/dw-code-review` or `/dw-commit` | **Successor:** (merge)
10
+ **Predecessor:** `/dw-review --code-only` or `/dw-commit` | **Successor:** (merge)
11
11
 
12
12
  ## Complementary Skills
13
13
 
@@ -15,11 +15,11 @@ You are an assistant specialized in creating well-documented Pull Requests. Your
15
15
  |-------|---------|
16
16
  | `dw-verify` | **ALWAYS** — invoked before `git push`. Without a VERIFICATION REPORT PASS in the current session AFTER the last code edit, the PR **CANNOT** be created. |
17
17
  | `dw-git-discipline` | **ALWAYS** — validates branch naming (`<type>/<scope>` kebab-case), atomic-commit history (each commit single-intent, conventional message), branch lifetime (flag if >7 days old), and PR scope (suggest split if diff > ~400 lines). PR description follows summary + test plan structure, not a `git log` dump. |
18
- | `/dw-security-check` | **ALWAYS for TS/Python/C#/Rust projects** — `security-check.md` with status ≠ REJECTED is required for supported-language projects. |
18
+ | `/dw-secure-audit` | **ALWAYS for TS/Python/C#/Rust projects** — `security-check.md` with status ≠ REJECTED is required for supported-language projects. |
19
19
 
20
20
  <critical>Hard gate 1 (verify): if the current session has no VERIFICATION REPORT PASS from `dw-verify` produced AFTER the last edit/commit, STOP and invoke `dw-verify` before proceeding. A PR is a permanent artifact — it demands the highest verification standard.</critical>
21
21
 
22
- <critical>Hard gate 2 (security): for TS/Python/C#/Rust projects, if `{{PRD_PATH}}/security-check.md` is missing OR has REJECTED status, STOP and invoke `/dw-security-check` before proceeding. HIGH/CRITICAL vulnerabilities CANNOT reach the PR. For other languages (Go, Java, etc.), this gate is skipped with a note.</critical>
22
+ <critical>Hard gate 2 (security): for TS/Python/C#/Rust projects, if `{{PRD_PATH}}/security-check.md` is missing OR has REJECTED status, STOP and invoke `/dw-secure-audit` before proceeding. HIGH/CRITICAL vulnerabilities CANNOT reach the PR. For other languages (Go, Java, etc.), this gate is skipped with a note.</critical>
23
23
 
24
24
  ## Usage
25
25
 
@@ -1,391 +1,135 @@
1
1
  <system_instructions>
2
- You are a workspace help assistant. When invoked, present the user with a complete guide of available commands, their integration flows, and when to use each one.
2
+ You are the dev-workflow guide. Display the primary command surface, the typical flow, and contextual shortcuts. Default mode shows 15 visible commands; `--advanced` reveals 5 internal/hidden commands.
3
3
 
4
4
  ## When to Use
5
- - Use when you need an overview of available commands, their integration flows, or guidance on which command to use next
6
- - Do NOT use when you already know which specific command to run
5
+ - User types `/dw-help` to discover commands.
6
+ - User types `/dw-help <keyword>` to find a contextual shortcut.
7
+ - User types `/dw-help --advanced` to see internal/hidden commands.
7
8
 
8
- ## Pipeline Position
9
- **Predecessor:** (any command or user question) | **Successor:** (any command)
9
+ ## Default mode — primary surface
10
10
 
11
- ## Behavior
11
+ Display the following (or its pt-br equivalent when invoked from pt-br):
12
12
 
13
- - If invoked without arguments (`/dw-help`): show the complete guide below
14
- - If invoked with an argument matching a command (`/dw-help dw-create-prd`): show only that command's detailed section
15
- - If invoked with a **keyword that is not a command name** (`/dw-help bug`, `/dw-help review`, `/dw-help design`): perform contextual lookup — identify the most relevant command(s) for the keyword and present each with 1-2 lines of justification ("for bugs, use `/dw-bugfix` because..."). Use the mapping table below.
13
+ ```markdown
14
+ # dev-workflow Primary Commands
16
15
 
17
- ### Contextual mapping (keyword suggested command)
16
+ Use `/dw-autopilot "wish"` as the gateway for most feature work. The granular commands below give you control when you want it.
18
17
 
19
- | Keyword(s) | Suggested command | Why |
20
- |------------|-------------------|-----|
21
- | bug, error, failure, issue | `/dw-bugfix` | Auto-triage bug vs feature + fix |
22
- | review, quality | `/dw-code-review` | Formal Level-3 review with report |
23
- | qa, visual test, playwright | `/dw-run-qa` | E2E QA with browser automation |
24
- | refactor, smell, fowler | `/dw-refactoring-analysis` | Prioritized code-smell audit |
25
- | design, ui, redesign | `/dw-redesign-ui` | Audit + propose + implement visual |
26
- | debate, council, stress-test, opinions | `/dw-brainstorm --council` or `/dw-create-techspec --council` | Invokes `dw-council` for a multi-advisor debate |
27
- | security, vulnerability, owasp, trivy, cve | `/dw-security-check` | Rigid multi-layer check (OWASP static + Trivy SCA/IaC + native audit) for TS/Python/C#/Rust |
28
- | supply chain, outdated, compromised, malicious package, deps update, package upgrade, npm audit, pip-audit | `/dw-deps-audit` | Detect + classify + per-package update plan with scoped QA. Goes beyond `/dw-security-check` by adding remediation. |
29
- | skill, find skill, install skill, ecosystem, capability, extend agent | `/dw-find-skills` | Discover skills from skills.sh / `npx skills` and install them globally or locally |
30
- | new project, scaffold, bootstrap, start, kickoff, init project, fullstack, monorepo | `/dw-new-project` | Stack interview + create-* tools + docker-compose for dev. Runs after `npx dev-workflow init`. |
31
- | dockerize, docker, dockerfile, compose, container, prod image, multi-stage | `/dw-dockerize` | Reads existing project, brainstorms base image, generates Dockerfile + docker-compose for dev/prod/both, or audits existing artifacts. |
32
- | refine, refinement, idea, one-pager | `/dw-brainstorm --onepager` | Idea refinement with Product Inventory + classification (IMPROVES/CONSOLIDATES/NEW) + durable one-pager |
33
- | revert, rollback task | `/dw-revert-task` | Safe revert with dependency checks |
34
- | research | `/dw-deep-research` | Multi-source research with citations |
35
- | idea, brainstorm | `/dw-brainstorm` | Structured ideation with trade-offs |
36
- | update dev-workflow | `/dw-update` | Update to latest npm version |
18
+ ## Tier 1 Gateway (3)
37
19
 
38
- ---
20
+ | Command | When |
21
+ |---------|------|
22
+ | `/dw-autopilot "wish"` | Default entry point. PRD → TechSpec → Tasks → Run → QA → Review → Commit → PR. Three approval gates. |
23
+ | `/dw-bugfix "description"` | A bug or error report. Surgical fix or PRD route. |
24
+ | `/dw-help [keyword]` | This screen. Pass a keyword for shortcuts. `--advanced` reveals internal commands. |
39
25
 
40
- # Command Guide - AI Dev Workflow
26
+ ## Tier 2 Pipeline granular (7)
41
27
 
42
- ## Overview
28
+ | Command | What |
29
+ |---------|------|
30
+ | `/dw-brainstorm "idea"` | Refine an idea before PRD. Flags: `--onepager`, `--council`, `--research`, `--refactor`. |
31
+ | `/dw-plan "feature"` | PRD → TechSpec → Tasks sequentially with checkpoints. Stages: `prd`, `techspec`, `tasks`. |
32
+ | `/dw-run [task-id]` | Execute all pending tasks or a single one. Flag `--resume`. |
33
+ | `/dw-review` | Level 2 (PRD coverage) + Level 3 (code quality). Flags: `--coverage-only`, `--code-only`. |
34
+ | `/dw-qa` | Mode-aware QA (UI / API auto-detect). Flags: `--fix`, `--api`, `--ai`. |
35
+ | `/dw-commit` | Atomic Conventional Commits for pending work. |
36
+ | `/dw-generate-pr [target]` | Push branch, draft PR body, open browser. |
43
37
 
44
- This workspace uses an AI command system that automates the full development cycle: from planning (PRD) to merge (PR). Commands are in `.dw/commands/` and are accessible in supported AI CLIs (e.g., Codex, Claude Code, OpenCode, GitHub Copilot), using the CLI prefix (`/command` or `$command`).
38
+ ## Tier 3 Specialty (5)
45
39
 
46
- ## Main Development Flow
40
+ | Command | What |
41
+ |---------|------|
42
+ | `/dw-analyze-project` | Scan the repo, write `.dw/rules/` + offer to generate `.dw/constitution.md`. |
43
+ | `/dw-redesign-ui "target"` | Audit, propose 2-3 design directions, ship. Enforces UI grounding + WCAG. |
44
+ | `/dw-functional-doc` | Map screens + flows into a functional doc validated with Playwright. |
45
+ | `/dw-new-project` | Interview-driven bootstrap (stack + infra + docker-compose + CI). |
46
+ | `/dw-dockerize` | Detect stack, propose Dockerfile + docker-compose for dev/prod. |
47
47
 
48
- ```
49
- ┌──────────────┐ ┌─────────────────┐ ┌───────────────┐
50
- │ /dw-create-prd │────>│/dw-create-techspec │────>│ /dw-create-tasks │
51
- │ (WHAT) │ │ (HOW) │ │ (WHEN) │
52
- └──────────────┘ └─────────────────┘ └───────┬───────┘
53
-
54
- ┌─────────────┴─────────────┐
55
- ▼ ▼
56
- ┌────────────────┐ ┌─────────────────┐
57
- │ /dw-run-task │ │ /dw-run-plan │
58
- │ (one at a time)│ │ (all auto) │
59
- └───────┬────────┘ └────────┬────────┘
60
- │ │
61
- ┌───────┴───────┐ │
62
- ▼ │ │
63
- ┌──────────────────┐ │ │
64
- │/dw-functional-doc│ │ │
65
- │ (map screens & │ │ │
66
- │ flows) │ │ │
67
- └───────┬──────────┘ │ │
68
- └───────┬─────────┘ │
69
- │ │
70
- └─────────┬─────────────────┘
71
-
72
-
73
- ┌─────────────────┐
74
- │ Validation Lv 1 │ (automatic, embedded)
75
- │ criteria+tests │
76
- └────────┬────────┘
77
-
78
- ┌──────────────┼──────────────┐
79
- ▼ ▼ ▼
80
- ┌──────────────┐ ┌──────────────┐ ┌─────────────────────┐
81
- │ /dw-run-qa │ │/review-impl. │ │ /dw-code-review │
82
- │ (visual QA) │ │(PRD compliance│ │ (formal code review)│
83
- └──────────────┘ │ Level 2) │ │ (Level 3) │
84
- └──────────────┘ └─────────────────────┘
85
-
86
- ┌───────────────┴───────────────┐
87
- ▼ ▼
88
- ┌──────────────┐ ┌────────────────┐
89
- │ /dw-commit │ │ /dw-commit-all │
90
- │ (one project)│ │ (submodules) │
91
- └──────┬───────┘ └───────┬────────┘
92
- │ │
93
- └────────────┬────────────────────┘
94
-
95
- ┌──────────────────┐
96
- │ /dw-generate-pr │
97
- │ (push + PR + URL)│
98
- └──────────────────┘
99
-
100
-
101
- ┌──────────────────┐
102
- │ /dw-archive-prd │
103
- │ (post-merge) │
104
- └──────────────────┘
105
- ```
106
-
107
- ## Command Table
108
-
109
- ### Planning
110
-
111
- | Command | What it does | Input | Output |
112
- |---------|-------------|-------|--------|
113
- | `/dw-brainstorm` | Facilitates structured ideation before PRD or implementation | Problem, idea, or context | Options + trade-offs + recommendation |
114
- | `/dw-create-prd` | Creates PRD with min. 7 clarification questions | Feature description | `.dw/spec/prd-[name]/prd.md` |
115
- | `/dw-create-techspec` | Creates technical specification from the PRD | PRD path | `.dw/spec/prd-[name]/techspec.md` |
116
- | `/dw-create-tasks` | Breaks PRD+TechSpec into tasks (max 2 FRs/task) | PRD path | `.dw/spec/prd-[name]/tasks.md` + `*_task.md` |
117
-
118
- ### Execution
119
-
120
- | Command | What it does | Input | Output |
121
- |---------|-------------|-------|--------|
122
- | `/dw-run-task` | Implements ONE task + Level 1 validation + commit | PRD path | Code + commit |
123
- | `/dw-run-plan` | Executes ALL tasks + final Level 2 review | PRD path | Code + commits + report |
124
- | `/dw-bugfix` | Analyzes and fixes bugs (bug vs feature triage) | Target + description | Fix + commit OR PRD (if feature) |
125
- | `/dw-fix-qa` | Fixes documented QA bugs and retests with evidence | PRD path | Code + `QA/bugs.md` + `QA/qa-report.md` updated |
126
- | `/dw-redesign-ui` | Audits, proposes, and implements visual redesign of pages/components | Target page/component | Redesign brief + code |
127
- | `/dw-autopilot` | Full pipeline orchestrator: from a wish to a PR with minimal intervention | Wish description | PRD + code + commits + PR |
128
-
129
- ### Research
130
-
131
- | Command | What it does | Input | Output |
132
- |---------|-------------|-------|--------|
133
- | `/dw-analyze-project` | Analyzes project structure and generates documentation | Project path | Architecture overview |
134
- | `/dw-deep-research` | Multi-source research with citation tracking and verification | Topic or question | Research report with bibliography |
135
- | `/dw-functional-doc` | Maps screens, flows, and modules into a functional dossier with E2E coverage | Target URL/route + project | `.dw/flows/<project>/<slug>/` with docs, scripts, evidence |
136
-
137
- ### Quality (3 Levels)
138
-
139
- | Level | Command | When | Generates Report? |
140
- |-------|---------|------|-------------------|
141
- | **1** | *(embedded in /dw-run-task)* | After each task | No (terminal output) |
142
- | **2** | `/dw-review-implementation` | After all tasks / manual | Yes (formatted output) |
143
- | **3** | `/dw-code-review` | Before PR / manual | Yes (`code-review.md`) |
144
-
145
- | Command | What it does | Input | Output |
146
- |---------|-------------|-------|--------|
147
- | `/dw-run-qa` | Visual QA with Playwright MCP + accessibility | PRD path | `QA/qa-report.md` + `QA/screenshots/` + `QA/logs/` |
148
- | `/dw-review-implementation` | Compares PRD vs code (FRs, endpoints, tasks) | PRD path | Gap report |
149
- | `/dw-code-review` | Formal code review (quality, rules, tests) | PRD path | `code-review.md` |
150
- | `/dw-refactoring-analysis` | Audit code smells and refactoring opportunities (Fowler's catalog) | PRD path | `refactoring-analysis.md` |
151
- | `/dw-security-check` | Rigid security check (OWASP static + Trivy SCA/IaC + native audit) for TS/Python/C#/Rust | PRD path or code | `security-check.md` |
152
-
153
- ### Versioning
154
-
155
- | Command | What it does | Input | Output |
156
- |---------|-------------|-------|--------|
157
- | `/dw-commit` | Semantic commit (Conventional Commits) | - | Commit |
158
- | `/dw-commit-all` | Commit across all submodules (inside-out) | - | Commits |
159
- | `/dw-generate-pr` | Push + create PR + copy body + open URL | Target branch | PR on GitHub |
160
- | `/dw-revert-task` | Safely revert a specific task's commits (dependency checks + confirmation) | PRD path + task number | Reverted commits + updated `tasks.md` |
161
-
162
- ### Internal commands (used by other dw-* commands; rarely invoked directly)
163
-
164
- | Command | What it does | Typically invoked by |
165
- |---------|-------------|----------------------|
166
- | `/dw-adr` | Record an Architecture Decision Record during PRD execution | `/dw-create-techspec`, `/dw-run-task` when a non-trivial decision arises |
167
- | `/dw-intel` | Query the codebase index built in `.dw/intel/` | `/dw-create-prd`, `/dw-create-techspec`, `/dw-code-review`, etc. |
168
- | `/dw-map-codebase` | Build/refresh the queryable codebase index in `.dw/intel/` | `/dw-analyze-project` (auto-runs after rules generation) |
169
-
170
- These are exposed as slash commands for occasional manual use (e.g., quickly recording an ADR mid-session, ad-hoc codebase queries) but most users never invoke them directly — they're called by the higher-level commands above.
171
-
172
- ### Maintenance
173
-
174
- | Command | What it does | Input | Output |
175
- |---------|-------------|-------|--------|
176
- | `/dw-list-tasks` | Lists tasks and progress for a PRD | PRD path | Status table |
177
- | `/dw-task-summary` | Shows details of a task without executing | Number + path | Task summary |
178
- | `/dw-archive-prd` | Moves completed PRD to `.dw/archived/prd/` | PRD path | Archived PRD |
179
- | `/dw-help` | This command guide (supports keyword lookup: `/dw-help bug`) | (optional) command or keyword | This document or filtered section |
180
- | `/dw-update` | Updates dev-workflow to the latest version on npm without leaving the agent (supports `--rollback`) | (none) or `--rollback` | Updated or restored managed files |
48
+ ## Workflow at a glance
181
49
 
182
- ### Bundled Skills (invoked internally not commands)
183
-
184
- Skills in `.agents/skills/` that commands above invoke transparently. You don't call them directly.
185
-
186
- | Skill | Invoked by | Role |
187
- |-------|------------|------|
188
- | `dw-verify` | run-task, run-plan, fix-qa, bugfix, code-review, generate-pr, quick | core rule: no success claim without a PASS VERIFICATION REPORT |
189
- | `dw-memory` | run-task, run-plan, autopilot, resume, revert-task | Two-tier workflow memory (shared + task-local) with promotion test |
190
- | `dw-review-rigor` | code-review, review-implementation, refactoring-analysis | De-duplication, severity ordering, verify-intent-before-flag, signal-over-volume |
191
- | `dw-council` | brainstorm `--council`, create-techspec `--council` | Multi-advisor debate (3-5 archetypes) with steel-manning, concession tracking, and dissent-preserving synthesis. Opt-in. |
192
-
193
- Inspired by skills from the [Compozy](https://github.com/compozy/compozy) project (`cy-final-verify`, `cy-workflow-memory`, `cy-review-round`).
194
-
195
- ## Review Architecture (3 Levels)
50
+ `/dw-autopilot "wish"` runs the full pipeline (PRD ... PR) with 3 gates. Step-by-step:
196
51
 
197
52
  ```
198
- LEVEL 1 - Post-Task Validation (automatic, lightweight)
199
- ├── Embedded in /dw-run-task
200
- ├── Verifies task acceptance criteria
201
- ├── Runs tests (pnpm test / npm test)
202
- ├── Checks basic patterns (types, imports)
203
- ├── No report file
204
- └── If fails: PAUSES execution
205
-
206
- LEVEL 2 - PRD Compliance (/dw-review-implementation)
207
- ├── Compares ALL FRs from PRD vs actual code
208
- ├── Verifies ALL endpoints from TechSpec
209
- ├── Checks real status of each task (ignores checkboxes)
210
- ├── Identifies gaps, partial implementations, extra code
211
- ├── Called automatically at end of /dw-run-plan
212
- └── Available manually
213
-
214
- LEVEL 3 - Formal Code Review (/dw-code-review)
215
- ├── Everything from Level 2 +
216
- ├── Quality analysis (SOLID, DRY, complexity, security)
217
- ├── Conformance with project rules (.dw/rules/)
218
- ├── Tests with coverage
219
- ├── Generates code-review.md in PRD directory
220
- └── Status: APPROVED / WITH CAVEATS / REJECTED
53
+ /dw-brainstorm /dw-plan → /dw-run /dw-qa → /dw-review → /dw-commit → /dw-generate-pr
221
54
  ```
222
55
 
223
- ## Common Flows
224
-
225
- ### New Feature (Full)
226
- ```bash
227
- /dw-brainstorm "initial idea" # 0. Explore options and trade-offs
228
- /dw-create-prd # 1. Describe the feature
229
- /dw-create-techspec .dw/spec/prd-name # 2. Generate tech spec
230
- /dw-create-tasks .dw/spec/prd-name # 3. Break into tasks
231
- /dw-run-plan .dw/spec/prd-name # 4. Execute all (includes Level 1+2)
232
- /dw-refactoring-analysis .dw/spec/prd-name # 5. Audit code smells (optional)
233
- /dw-code-review .dw/spec/prd-name # 6. Formal code review (Level 3)
234
- /dw-generate-pr main # 7. Create PR
235
- /dw-archive-prd .dw/spec/prd-name # 8. After merge
236
- ```
56
+ ## Advanced / internal commands
237
57
 
238
- ### New Feature (Incremental)
239
- ```bash
240
- /dw-brainstorm "initial idea" # 0. Explore options and trade-offs
241
- /dw-create-prd # 1. PRD
242
- /dw-create-techspec .dw/spec/prd-name # 2. TechSpec
243
- /dw-create-tasks .dw/spec/prd-name # 3. Tasks
244
- /dw-run-task .dw/spec/prd-name # 4. Task 1 (with Level 1)
245
- /dw-run-task .dw/spec/prd-name # 5. Task 2 (with Level 1)
246
- # ... repeat for each task
247
- /dw-review-implementation .dw/spec/prd-name # 6. PRD review (Level 2)
248
- /dw-code-review .dw/spec/prd-name # 7. Code review (Level 3)
249
- /dw-generate-pr main # 8. PR
58
+ Pass `--advanced` to `/dw-help` to see internal commands (`dw-adr`, `dw-intel`, `dw-secure-audit`, `dw-find-skills`, `dw-update`) that are usually invoked by other commands.
250
59
  ```
251
60
 
252
- ### Simple Bug
253
- ```bash
254
- /dw-bugfix "bug description" # Analyze and fix
255
- /dw-commit # Commit the fix
256
- /dw-generate-pr main # PR
257
- ```
61
+ ## Advanced mode — `--advanced` flag
258
62
 
259
- ### Complex Bug
260
- ```bash
261
- /dw-bugfix "description" --analysis # Generate analysis document
262
- /dw-create-techspec .dw/spec/dw-bugfix-name # TechSpec for the fix
263
- /dw-create-tasks .dw/spec/dw-bugfix-name # Tasks for the fix
264
- /dw-run-plan .dw/spec/dw-bugfix-name # Execute all
265
- /dw-generate-pr main # PR
266
- ```
63
+ When invoked with `--advanced`, ALSO show:
267
64
 
268
- ### Visual QA (Frontend)
269
- ```bash
270
- /dw-run-qa .dw/spec/prd-name # QA with Playwright MCP
271
- # If bugs found:
272
- /dw-bugfix "description" # Fix each bug
273
- /dw-fix-qa .dw/spec/prd-name # Fix + retest full cycle
274
- ```
65
+ ```markdown
66
+ # dev-workflow — Advanced / Internal Commands
275
67
 
276
- ### Frontend Redesign
277
- ```bash
278
- /dw-analyze-project # 0. Understand project patterns
279
- /dw-redesign-ui "target page or component" # 1. Audit + propose + implement
280
- /dw-run-qa .dw/spec/prd-name # 2. Visual QA (optional)
281
- /dw-code-review .dw/spec/prd-name # 3. Code review
282
- /dw-commit # 4. Commit
283
- /dw-generate-pr main # 5. PR
284
- ```
68
+ These are auto-invoked by primary commands but available standalone.
285
69
 
286
- ### Autopilot (Full Pipeline)
287
- ```bash
288
- /dw-autopilot "description of what you want to build" # Research → PRD → Tasks → Code → QA → PR
289
- ```
70
+ ## Tier 4 — Hidden (5)
290
71
 
291
- ### Query Codebase
292
- ```bash
293
- /dw-intel "how does X work in this project?" # Answer with sources
72
+ | Command | What | Invoked by |
73
+ |---------|------|------------|
74
+ | `/dw-adr "decision"` | Record an Architecture Decision Record at `.dw/spec/<prd>/adrs/`. | `/dw-plan techspec --council`, deviations from constitution |
75
+ | `/dw-intel "question"` | Query codebase intelligence; `--build` (re)indexes `.dw/intel/`. | `/dw-plan`, `/dw-review`, `/dw-bugfix` |
76
+ | `/dw-secure-audit` | OWASP + Trivy + lockfile + supply-chain scan. Hard gate. Flags: `--scan-only`, `--plan`, `--execute`. | `/dw-review`, `/dw-generate-pr` |
77
+ | `/dw-find-skills "query"` | Search npx skills ecosystem, vet, install. | manual when extending the bundle |
78
+ | `/dw-update` | Update dev-workflow to latest npm release with rollback snapshot. | manual maintenance |
294
79
  ```
295
80
 
296
- ### Deep Research
297
- ```bash
298
- /dw-deep-research "topic or question" # Multi-source research with citations
299
- ```
300
-
301
- ## File Structure
302
-
303
- ```
304
- your-project/
305
- ├── .dw/
306
- │ ├── commands/ # Source of truth for commands
307
- │ │ ├── dw-help.md
308
- │ │ ├── dw-brainstorm.md
309
- │ │ ├── dw-create-prd.md
310
- │ │ ├── dw-create-techspec.md
311
- │ │ ├── dw-create-tasks.md
312
- │ │ ├── dw-run-task.md
313
- │ │ ├── dw-run-plan.md
314
- │ │ ├── dw-run-qa.md
315
- │ │ ├── dw-code-review.md
316
- │ │ ├── dw-refactoring-analysis.md
317
- │ │ ├── dw-review-implementation.md
318
- │ │ ├── dw-analyze-project.md
319
- │ │ ├── dw-autopilot.md
320
- │ │ ├── dw-deep-research.md
321
- │ │ ├── dw-intel.md
322
- │ │ ├── dw-redesign-ui.md
323
- │ │ ├── dw-bugfix.md
324
- │ │ ├── dw-commit.md
325
- │ │ ├── dw-functional-doc.md
326
- │ │ └── dw-generate-pr.md
327
- │ ├── templates/ # Document templates
328
- │ │ ├── prd-template.md
329
- │ │ ├── techspec-template.md
330
- │ │ ├── tasks-template.md
331
- │ │ ├── task-template.md
332
- │ │ ├── bugfix-template.md
333
- │ │ └── functional-doc/ # Functional dossier templates
334
- │ ├── scripts/ # Utility scripts
335
- │ │ └── functional-doc/ # Dossier generation & Playwright runner
336
- │ ├── references/ # Reference materials and external docs
337
- │ ├── rules/ # Project-specific rules
338
- │ │ └── *.md
339
- │ ├── tasks/ # Active PRDs and tasks
340
- │ │ └── prd-[name]/
341
- │ │ ├── prd.md
342
- │ │ ├── techspec.md
343
- │ │ ├── tasks.md
344
- │ │ └── *_task.md
345
- │ └── archived/prd/ # Completed PRDs
346
- ├── .claude/skills/ # Claude Code skills
347
- ├── .agents/skills/ # Codex/Copilot skills
348
- ├── .opencode/commands/ # OpenCode commands
349
- └── .github/copilot-instructions.md # Copilot instructions
350
- ```
351
-
352
- ## Tool Integration
353
-
354
- Commands work across multiple AI tools, all pointing to the same source `.dw/commands/`:
355
-
356
- | Tool | Location | Format |
357
- |------|----------|--------|
358
- | **Claude Code** | `.claude/skills/*/SKILL.md` | Skill referencing `.dw/commands/` |
359
- | **Codex CLI** | `.agents/skills/*/SKILL.md` | Skill referencing `.dw/commands/` |
360
- | **OpenCode** | `.opencode/commands/*.md` | Command referencing `.dw/commands/` |
361
- | **GitHub Copilot** | `.github/copilot-instructions.md` | Instructions listing the commands |
81
+ ## Keyword mode — `/dw-help <keyword>`
82
+
83
+ Match the keyword and suggest:
84
+
85
+ | Keyword | Suggest |
86
+ |---------|---------|
87
+ | `prd`, `spec`, `plan`, `architecture`, `techspec`, `tasks` | `/dw-plan` (with appropriate stage flag) |
88
+ | `bug`, `error`, `broken`, `fix` | `/dw-bugfix` |
89
+ | `run`, `execute`, `implement` | `/dw-run` |
90
+ | `review`, `quality`, `audit code` | `/dw-review` |
91
+ | `qa`, `test plan`, `e2e` | `/dw-qa` |
92
+ | `commit`, `git` | `/dw-commit` |
93
+ | `pr`, `pull request`, `merge` | `/dw-generate-pr` |
94
+ | `idea`, `brainstorm`, `explore` | `/dw-brainstorm` |
95
+ | `research`, `compare`, `state of the art` | `/dw-brainstorm --research` |
96
+ | `refactor`, `smell`, `code health` | `/dw-brainstorm --refactor` |
97
+ | `ui`, `design`, `redesign` | `/dw-redesign-ui` |
98
+ | `intel`, `where is`, `what uses` | `/dw-intel` (or `--build` to (re)create the index) |
99
+ | `analyze`, `rules`, `conventions` | `/dw-analyze-project` |
100
+ | `constitution`, `principles` | `/dw-analyze-project` (Step 8 generates the constitution) |
101
+ | `security`, `vulnerabilities`, `cve`, `deps`, `audit deps` | `/dw-secure-audit` |
102
+ | `adr`, `decision` | `/dw-adr` (also auto-invoked from `/dw-plan --council`) |
103
+ | `docker`, `compose`, `container` | `/dw-dockerize` |
104
+ | `new project`, `bootstrap`, `scaffold` | `/dw-new-project` |
105
+ | `functional doc`, `screen map`, `e2e doc` | `/dw-functional-doc` |
106
+ | `incident`, `outage`, `postmortem`, `sev-1`, `sev-2` | (Skill `dw-incident-response` auto-invoked from `/dw-bugfix` for prod-critical) |
107
+ | `eval`, `llm`, `ai feature`, `rag` | (Skill `dw-llm-eval` invoked from `/dw-plan tasks`, `/dw-review`, `/dw-qa --ai`) |
108
+
109
+ If no keyword matches, show the default surface and a note: "Keyword `<word>` not recognized — see commands above."
362
110
 
363
111
  ## FAQ
364
112
 
365
- **Q: What is the difference between `/dw-run-task` and `/dw-run-plan`?**
366
- - `/dw-run-task` executes ONE task with manual control between each one
367
- - `/dw-run-plan` executes ALL automatically with a final review
368
-
369
- **Q: Do I need to run `/dw-review-implementation` manually?**
370
- - Not if using `/dw-run-plan` (already included). Yes if using `/dw-run-task` incrementally.
113
+ **Q: I'm not sure where to start with a new feature.**
114
+ - Use `/dw-autopilot "what you want"`. It runs PRD TechSpec → Tasks → Run → Review → PR with three approval gates.
371
115
 
372
- **Q: When to use `/dw-code-review` vs `/dw-review-implementation`?**
373
- - `/dw-review-implementation` (Level 2): Checks if PRD FRs were implemented
374
- - `/dw-code-review` (Level 3): Additionally analyzes code quality and generates a formal report
116
+ **Q: Do I have to use `/dw-autopilot`?**
117
+ - No. The granular pipeline (`/dw-brainstorm` → `/dw-plan` → `/dw-run` → `/dw-qa` → `/dw-review` → `/dw-commit` `/dw-generate-pr`) gives you control at each step.
375
118
 
376
- **Q: Does `/dw-bugfix` always fix directly?**
377
- - No. It performs triage. If it is a feature (not a bug), it redirects to `/dw-create-prd`. If it is a complex bug, it can generate an analysis document with `--analysis`.
119
+ **Q: I just want to fix a bug.**
120
+ - `/dw-bugfix "<bug description>"`. It triages (bug vs feature vs scope), asks 3 questions, then fixes or routes to a PRD if scope is large.
378
121
 
379
- **Q: When should I use `/dw-deep-research`?**
380
- - For comprehensive multi-source analysis, technology comparisons, state-of-the-art reviews, or any topic requiring cited evidence. Not for simple lookups or debugging.
122
+ **Q: How do I check if my project follows good patterns?**
123
+ - `/dw-analyze-project` writes `.dw/rules/`. Then any command reads those rules for compliance.
381
124
 
382
- **Q: Does `/dw-redesign-ui` work with Angular?**
383
- - Yes. The command is framework-agnostic. For React it uses react-doctor and `vercel-react-best-practices`; for Angular it uses `ng lint` and Angular DevTools. UI discipline (`dw-ui-discipline`) works with any framework — enforces the hard-gate, anti-slop catalog, and WCAG floor regardless of stack.
125
+ **Q: How do I get more flow recommendations during ideation?**
126
+ - `/dw-brainstorm "idea" --council` adds a multi-advisor stress-test debate.
127
+ - `/dw-brainstorm "topic" --research` runs a deep multi-source citation pipeline.
384
128
 
385
- **Q: How do I get codebase intelligence and parallel execution?**
386
- - Both are native to dev-workflow. Run `/dw-map-codebase` to build the queryable index in `.dw/intel/`, then `/dw-intel "<question>"` to query it. For parallel execution, `/dw-run-plan` invokes the bundled phase-execution agents (executor + plan-checker) directly to dispatch tasks in waves with atomic commits per task. No external dependency needed.
129
+ **Q: Where do AI features get evaluated?**
130
+ - The `dw-llm-eval` skill is auto-invoked from `/dw-plan tasks` (eval-plan subtask), `/dw-review` (AI feature gate), and `/dw-qa --ai` (run reference dataset).
387
131
 
388
- **Q: Does `/dw-autopilot` replace all other commands?**
389
- - No. It orchestrates existing commands in sequence. You can still use each command individually for manual control. Autopilot is for when you want to go from a wish to a PR with minimal intervention.
132
+ **Q: What happened to all the other commands?**
133
+ - v1.0.0 consolidated from 30 to 20. Mergers: create-prd/techspec/tasks `/dw-plan`; run-task/run-plan `/dw-run`; code-review/review-implementation `/dw-review`; run-qa/fix-qa `/dw-qa`; security-check/deps-audit `/dw-secure-audit`; map-codebase `/dw-intel --build`; deep-research and refactoring-analysis `/dw-brainstorm --research/--refactor`. Removed: revert-task (use `git revert` directly).
390
134
 
391
135
  </system_instructions>