@brunosps00/dev-workflow 0.15.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +97 -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 +27 -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 +160 -9
  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 +27 -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 +160 -9
  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 +4 -4
  84. package/scaffold/skills/dw-source-grounding/SKILL.md +1 -1
  85. package/scaffold/skills/dw-testing-discipline/SKILL.md +8 -6
  86. package/scaffold/skills/dw-testing-discipline/references/agent-guardrails.md +3 -3
  87. package/scaffold/skills/dw-testing-discipline/references/anti-patterns.md +2 -2
  88. package/scaffold/skills/dw-testing-discipline/references/core-rules.md +1 -1
  89. package/scaffold/skills/dw-testing-discipline/references/flaky-discipline.md +3 -3
  90. package/scaffold/skills/dw-testing-discipline/references/patterns.md +1 -1
  91. package/scaffold/skills/dw-testing-discipline/references/playwright-recipes.md +1 -1
  92. package/scaffold/skills/dw-ui-discipline/SKILL.md +8 -6
  93. package/scaffold/skills/dw-ui-discipline/references/accessibility-floor.md +2 -2
  94. package/scaffold/skills/dw-ui-discipline/references/hard-gate.md +1 -1
  95. package/scaffold/skills/dw-ui-discipline/references/state-matrix.md +1 -1
  96. package/scaffold/skills/dw-ui-discipline/references/visual-slop.md +2 -2
  97. package/scaffold/skills/dw-verify/SKILL.md +4 -4
  98. package/scaffold/skills/humanizer/SKILL.md +1 -7
  99. package/scaffold/skills/remotion-best-practices/SKILL.md +3 -1
  100. package/scaffold/skills/security-review/SKILL.md +1 -1
  101. package/scaffold/skills/security-review/languages/csharp.md +1 -1
  102. package/scaffold/skills/security-review/languages/rust.md +1 -1
  103. package/scaffold/skills/security-review/languages/typescript.md +1 -1
  104. package/scaffold/skills/vercel-react-best-practices/SKILL.md +3 -1
  105. package/scaffold/templates-overrides-readme.md +3 -3
  106. package/scaffold/en/commands/dw-code-review.md +0 -386
  107. package/scaffold/en/commands/dw-create-prd.md +0 -148
  108. package/scaffold/en/commands/dw-create-tasks.md +0 -201
  109. package/scaffold/en/commands/dw-create-techspec.md +0 -210
  110. package/scaffold/en/commands/dw-deep-research.md +0 -418
  111. package/scaffold/en/commands/dw-deps-audit.md +0 -327
  112. package/scaffold/en/commands/dw-fix-qa.md +0 -152
  113. package/scaffold/en/commands/dw-map-codebase.md +0 -125
  114. package/scaffold/en/commands/dw-refactoring-analysis.md +0 -340
  115. package/scaffold/en/commands/dw-revert-task.md +0 -114
  116. package/scaffold/en/commands/dw-review-implementation.md +0 -349
  117. package/scaffold/en/commands/dw-run-plan.md +0 -300
  118. package/scaffold/en/commands/dw-run-qa.md +0 -497
  119. package/scaffold/en/commands/dw-run-task.md +0 -209
  120. package/scaffold/en/commands/dw-security-check.md +0 -271
  121. package/scaffold/pt-br/commands/dw-code-review.md +0 -366
  122. package/scaffold/pt-br/commands/dw-create-prd.md +0 -148
  123. package/scaffold/pt-br/commands/dw-create-tasks.md +0 -201
  124. package/scaffold/pt-br/commands/dw-create-techspec.md +0 -208
  125. package/scaffold/pt-br/commands/dw-deep-research.md +0 -172
  126. package/scaffold/pt-br/commands/dw-deps-audit.md +0 -327
  127. package/scaffold/pt-br/commands/dw-fix-qa.md +0 -152
  128. package/scaffold/pt-br/commands/dw-map-codebase.md +0 -125
  129. package/scaffold/pt-br/commands/dw-refactoring-analysis.md +0 -340
  130. package/scaffold/pt-br/commands/dw-revert-task.md +0 -114
  131. package/scaffold/pt-br/commands/dw-review-implementation.md +0 -337
  132. package/scaffold/pt-br/commands/dw-run-plan.md +0 -296
  133. package/scaffold/pt-br/commands/dw-run-qa.md +0 -495
  134. package/scaffold/pt-br/commands/dw-run-task.md +0 -208
  135. package/scaffold/pt-br/commands/dw-security-check.md +0 -271
@@ -15,18 +15,18 @@ A step that invokes a `/dw-xxx` command is ONLY considered complete when the art
15
15
  | Thought | Reality |
16
16
  |---------|---------|
17
17
  | "I already ran the tests manually" | The command produces structured artifacts. Run the command. |
18
- | "I validated via ad-hoc Playwright" | `/dw-run-qa` requires RF matrix, bugs.md, screenshots, scripts, logs, checklist. Run the command. |
19
- | "The implementation is obviously correct" | `/dw-review-implementation` requires a compliance matrix per RF/endpoint/task. Run the command. |
18
+ | "I validated via ad-hoc Playwright" | `/dw-qa` requires RF matrix, bugs.md, screenshots, scripts, logs, checklist. Run the command. |
19
+ | "The implementation is obviously correct" | `/dw-review --coverage-only` requires a compliance matrix per RF/endpoint/task. Run the command. |
20
20
  | "A strong manual validation is enough" | NO. Technical equivalence DOES NOT replace formal execution. |
21
21
  | "I already checked build and lint, that's enough" | Build/lint DO NOT replace review nor QA. Run the commands. |
22
- | "I wrote a summarized qa-report.md by hand" | A loose file IS NOT execution of `/dw-run-qa`. The full `QA/` tree is mandatory. |
22
+ | "I wrote a summarized qa-report.md by hand" | A loose file IS NOT execution of `/dw-qa`. The full `QA/` tree is mandatory. |
23
23
  | "The autopilot already advanced, I don't need to go back" | If the artifact doesn't exist, the step didn't run. Go back and execute. |
24
- | "I fixed bugs along the way, so QA is already ok" | Fixing bugs does not replace running formal QA. Run `/dw-run-qa`. |</critical>
24
+ | "I fixed bugs along the way, so QA is already ok" | Fixing bugs does not replace running formal QA. Run `/dw-qa`. |</critical>
25
25
 
26
26
  ## When to Use
27
27
  - Use when you want to go from an idea to a PR with minimal manual intervention
28
28
  - Use for complete features that go through the entire pipeline (research, planning, execution, quality)
29
- - Do NOT use for small, well-scoped one-off tasks — use `/dw-run-task` directly with a quick PRD instead
29
+ - Do NOT use for small, well-scoped one-off tasks — use `/dw-run` directly with a quick PRD instead
30
30
  - Do NOT use to fix bugs (use `/dw-bugfix`)
31
31
  - Do NOT use when you want manual control between each phase (use individual commands)
32
32
 
@@ -72,12 +72,12 @@ If this command is re-invoked on the same PRD after interruption:
72
72
 
73
73
  - Query `.dw/intel/` via `/dw-intel` to understand project context
74
74
  - Identify: tech stack, existing patterns, related features
75
- - If `.dw/intel/` is absent, suggest running `/dw-map-codebase` first for richer downstream context
75
+ - If `.dw/intel/` is absent, suggest running `/dw-intel --build` first for richer downstream context
76
76
 
77
77
  ### Step 2: Research (Conditional)
78
78
 
79
79
  Evaluate whether the topic requires deep research:
80
- - **YES** (run `/dw-deep-research`): new technology for the project, unknown domain, external API integrations, critical architectural decisions
80
+ - **YES** (run `/dw-brainstorm --research`): new technology for the project, unknown domain, external API integrations, critical architectural decisions
81
81
  - **NO** (skip to step 3): simple feature in an already mapped domain, refactoring existing code, basic CRUD
82
82
  - If skipping, DOCUMENT the reason in the progress block. E.g.: "Research skipped — domain already mapped in .dw/rules/[file].md". The user must see the justification.
83
83
 
@@ -94,7 +94,7 @@ Run `/dw-brainstorm` with accumulated context (intel + research).
94
94
 
95
95
  <critical>The PRD MUST include an interactive interview with the user. Ask AT LEAST 7 clarification questions BEFORE writing the PRD. Do NOT answer questions automatically based on context — the user MUST respond.</critical>
96
96
 
97
- Run `/dw-create-prd` using brainstorm findings.
97
+ Run `/dw-plan prd` using brainstorm findings.
98
98
  - Follow ALL command instructions, especially the clarification questions section
99
99
  - Ask at least 7 questions about: problem, target users, critical features, scope, constraints, design, integration
100
100
  - In each question, present a recommendation grounded in brainstorm and deep-research findings (if executed). E.g.: "Based on the research, I recommend X because [evidence]. Do you agree or prefer a different direction?"
@@ -115,7 +115,7 @@ Present to the user:
115
115
 
116
116
  <critical>The TechSpec MUST include an interactive interview with the user. Ask AT LEAST 7 technical clarification questions BEFORE writing the TechSpec. Do NOT answer questions automatically — the user MUST respond.</critical>
117
117
 
118
- Run `/dw-create-techspec` from the approved PRD.
118
+ Run `/dw-plan techspec` from the approved PRD.
119
119
  - Follow ALL command instructions, especially the clarification questions section
120
120
  - Ask at least 7 questions about: preferred architecture, existing vs new libs, testing strategy, integration with existing systems, infrastructure constraints, performance, security
121
121
  - In each question, present a technical recommendation grounded in brainstorm, deep-research, and approved PRD findings. E.g.: "Research indicated lib X has better performance for this case [source]. Want to use X or have another preference?"
@@ -125,7 +125,7 @@ Run `/dw-create-techspec` from the approved PRD.
125
125
 
126
126
  ### Step 6: Tasks
127
127
 
128
- Run `/dw-create-tasks` from PRD + TechSpec.
128
+ Run `/dw-plan tasks` from PRD + TechSpec.
129
129
  - Follow all command instructions
130
130
  - Generate individual tasks in `.dw/spec/prd-[name]/`
131
131
 
@@ -148,9 +148,9 @@ Evaluate whether tasks involve frontend:
148
148
 
149
149
  ### Step 8: Execution
150
150
 
151
- Run `/dw-run-plan` with the PRD path.
151
+ Run `/dw-run` with the PRD path.
152
152
  - Follow ALL command instructions, including the native plan-checker gate (PASS required) and wave-based parallel execution via the bundled `dw-execute-phase` skill agents
153
- - Each task follows `/dw-run-task` with Level 1 validation
153
+ - Each task follows `/dw-run` with Level 1 validation
154
154
 
155
155
  ### Step 9: Implementation Review (Loop)
156
156
 
@@ -164,7 +164,7 @@ Run the project's build and lint:
164
164
  5. Repeat until both build AND lint pass without errors
165
165
  6. Only then proceed to the review
166
166
 
167
- Run `/dw-review-implementation` to verify PRD compliance (Level 2).
167
+ Run `/dw-review --coverage-only` to verify PRD compliance (Level 2).
168
168
  - If gaps found: fix automatically and re-run the review
169
169
  - Maximum 3 correction cycles
170
170
  - Do NOT advance to QA until the review passes
@@ -177,7 +177,7 @@ A short text review, a "looks good", or a conclusion "implementation is correct"
177
177
 
178
178
  ### Step 10: Visual QA
179
179
 
180
- Run `/dw-run-qa` with Playwright MCP.
180
+ Run `/dw-qa` with Playwright MCP.
181
181
  - Test happy paths, edge cases, negative flows, accessibility
182
182
  - Document bugs with screenshots
183
183
 
@@ -188,12 +188,12 @@ Run `/dw-run-qa` with Playwright MCP.
188
188
  - `{{PRD_PATH}}/QA/screenshots/` — directory exists and contains at least 1 PNG per RF tested (format `RF-XX-[slug]-PASS.png` or `-FAIL.png`)
189
189
  - `{{PRD_PATH}}/QA/scripts/` — directory exists and contains Playwright `.spec.ts`/`.spec.js` scripts per RF
190
190
  - `{{PRD_PATH}}/QA/logs/` — directory exists with captured console/network logs
191
- Running Playwright ad-hoc, taking a few loose screenshots, or writing a short qa-report.md by hand DOES NOT replace this structure. If any artifact is missing or incomplete, the command did NOT run — invoke `/dw-run-qa` formally and follow its flow to completion.</critical>
191
+ Running Playwright ad-hoc, taking a few loose screenshots, or writing a short qa-report.md by hand DOES NOT replace this structure. If any artifact is missing or incomplete, the command did NOT run — invoke `/dw-qa` formally and follow its flow to completion.</critical>
192
192
 
193
193
  ### Step 11: Fix QA (Conditional)
194
194
 
195
195
  If QA found bugs:
196
- - Run `/dw-fix-qa` to fix and retest
196
+ - Run `/dw-qa --fix` to fix and retest
197
197
  - Loop until stable (maximum 5 cycles). After 5 cycles, STOP and ask the user how to proceed.
198
198
 
199
199
  ### Step 12: Implementation Review (Post-QA)
@@ -205,7 +205,7 @@ Run the project's build and lint (same sequence as Step 9):
205
205
  2. Build
206
206
  3. If any fail: fix and re-run until they pass
207
207
 
208
- Run `/dw-review-implementation` again to confirm QA fixes did not break PRD compliance.
208
+ Run `/dw-review --coverage-only` again to confirm QA fixes did not break PRD compliance.
209
209
  - If gaps found: fix and re-run
210
210
  - Maximum 3 cycles
211
211
 
@@ -213,7 +213,7 @@ Run `/dw-review-implementation` again to confirm QA fixes did not break PRD comp
213
213
 
214
214
  ### Step 13: Code Review
215
215
 
216
- Run `/dw-code-review` (Level 3) for formal review.
216
+ Run `/dw-review --code-only` (Level 3) for formal review.
217
217
  - Generate persisted report
218
218
 
219
219
  ### Step 14: Commit
@@ -227,7 +227,7 @@ Run `ls` on each path below and confirm existence. If ANY is missing, DO NOT com
227
227
  - `{{PRD_PATH}}/QA/screenshots/` (non-empty)
228
228
  - `{{PRD_PATH}}/QA/scripts/` (non-empty with `.spec.*` files)
229
229
  - `{{PRD_PATH}}/QA/logs/`
230
- - Evidence of the last `/dw-review-implementation` run with RF-by-RF matrix (session output or reference in `autopilot-state.json`)
230
+ - Evidence of the last `/dw-review --coverage-only` run with RF-by-RF matrix (session output or reference in `autopilot-state.json`)
231
231
 
232
232
  Also verify `autopilot-state.json`:
233
233
  - Every step 1 through 13 that is NOT in `skipped_steps` must be in `completed_steps`
@@ -250,7 +250,7 @@ Ask the user: **"Commits completed. Do you want to generate the Pull Request?"**
250
250
 
251
251
  ## Native Engine
252
252
 
253
- The autopilot relies on dev-workflow-native infrastructure for codebase intelligence (`/dw-map-codebase` + `/dw-intel`) and bundled phase execution agents (plan-checker + executor in `.agents/skills/dw-execute-phase/agents/`). All bundled and require no external dependencies. See the `dw-codebase-intel` and `dw-execute-phase` bundled skills under `.agents/skills/` for details.
253
+ The autopilot relies on dev-workflow-native infrastructure for codebase intelligence (`/dw-intel --build` + `/dw-intel`) and bundled phase execution agents (plan-checker + executor in `.agents/skills/dw-execute-phase/agents/`). All bundled and require no external dependencies. See the `dw-codebase-intel` and `dw-execute-phase` bundled skills under `.agents/skills/` for details.
254
254
 
255
255
  ## State Persistence
256
256
 
@@ -9,14 +9,16 @@ You are a brainstorming facilitator for the current workspace. This command exis
9
9
  - Do NOT use when you already have clear requirements ready for a PRD, or when you need to implement code
10
10
 
11
11
  ## Pipeline Position
12
- **Predecessor:** (user idea) | **Successor:** `/dw-create-prd`
12
+ **Predecessor:** (user idea) | **Successor:** `/dw-plan prd`
13
13
 
14
14
  ## Flags
15
15
 
16
16
  - **(default)**: normal brainstorm with 3-7 options (conservative, balanced, bold) and trade-offs. If the product has PRDs or rules, a **Product Inventory** is produced automatically and each option carries a classification tag.
17
- - **`--onepager`**: at the end of the brainstorm, generate a durable one-pager at `.dw/spec/ideas/<slug>.md` (using `.dw/templates/idea-onepager.md`) with Feature Inventory + Classification & Rationale + MVP Scope + Not Doing + Assumptions. Use when you want a persisted product artifact before moving to `/dw-create-prd`.
17
+ - **`--onepager`**: at the end of the brainstorm, generate a durable one-pager at `.dw/spec/ideas/<slug>.md` (using `.dw/templates/idea-onepager.md`) with Feature Inventory + Classification & Rationale + MVP Scope + Not Doing + Assumptions. Use when you want a persisted product artifact before moving to `/dw-plan prd`.
18
18
  - **`--council`**: after the normal brainstorm, invoke the `dw-council` skill to stress-test the top 2-3 options via 3-5 archetypes (pragmatic-engineer, architect-advisor, security-advocate, product-mind, devils-advocate). Useful when the choice is high-impact and there is genuine dissent between paths.
19
- - Flags are composable: `--onepager --council` produces the one-pager after the council debate.
19
+ - **`--research`**: heavyweight multi-source research mode. Pipeline: scope plan retrieve (parallel sources) → triangulate → outline-refine synthesize → critique → refine → report. Output: cited research document. Use for state-of-the-art reviews, technology comparisons, regulatory landscape mapping. Sub-modes: `quick` (3 phases, 2-5min), `standard` (default, 6 phases, 5-10min), `deep` (8 phases, 10-20min), `ultradeep` (8+ phases, 20-45min).
20
+ - **`--refactor`**: code-smell catalog mode. Audits a target directory or PRD scope for code smells using Martin Fowler's taxonomy (bloaters, change preventers, dispensables, couplers, conditional complexity, DRY violations). Maps each smell to a concrete refactoring technique with before/after sketches. Severity-ordered P0-P3 plan. Output: refactoring opportunities document.
21
+ - Flags are composable where it makes sense: `--onepager --council` produces the one-pager after the council debate. `--research --onepager` saves the research output as a durable one-pager. `--refactor --onepager` saves the refactor plan as a durable one-pager. `--research --refactor` is NOT supported (pick one or the other — different ideation surfaces).
20
22
 
21
23
  ## Decision Flowchart: Brainstorm vs Direct PRD
22
24
 
@@ -27,7 +29,7 @@ digraph brainstorm_decision {
27
29
  Q1 [label="Are requirements\nclear and specific?"];
28
30
  Q2 [label="Are there multiple\nviable approaches?"];
29
31
  node [shape=box];
30
- PRD [label="Go directly to\n/dw-create-prd"];
32
+ PRD [label="Go directly to\n/dw-plan prd"];
31
33
  BS [label="Start with\n/dw-brainstorm"];
32
34
  Q1 -> PRD [label="Yes"];
33
35
  Q1 -> Q2 [label="No"];
@@ -108,10 +110,10 @@ Use this command when the user wants to:
108
110
  ### 7. Next Steps
109
111
  - Short and actionable list
110
112
  - If appropriate, suggest which command to use next:
111
- - `/dw-create-prd` (main successor; accepts the one-pager as input, reducing clarification questions)
112
- - `/dw-run-task` (if it's a small IMPROVES that fits in a single task with a quick PRD)
113
- - `/dw-create-techspec`
114
- - `/dw-create-tasks`
113
+ - `/dw-plan prd` (main successor; accepts the one-pager as input, reducing clarification questions)
114
+ - `/dw-run` (if it's a small IMPROVES that fits in a single task with a quick PRD)
115
+ - `/dw-plan techspec`
116
+ - `/dw-plan tasks`
115
117
  - `/dw-bugfix`
116
118
 
117
119
  ## Heuristics
@@ -140,6 +142,155 @@ At the end, always leave the user in one of these situations:
140
142
  - With better questions to decide
141
143
  - With a next workspace command to follow
142
144
  - With the one-pager at `.dw/spec/ideas/<slug>.md` (if `--onepager` was used)
145
+ - With the research report at `~/Documents/<Topic>_Research_<date>/` (if `--research`)
146
+ - With the refactor plan at `<target>/refactor-plan.md` (if `--refactor`)
147
+
148
+ ## Mode: `--research` (multi-source research)
149
+
150
+ Activated by the `--research` flag. Replaces the default brainstorm with a structured research pipeline that produces a cited document with verified claims.
151
+
152
+ <critical>Every factual claim MUST be cited immediately with [N] in the same sentence</critical>
153
+ <critical>NEVER fabricate citations — if no source is found, say so explicitly</critical>
154
+ <critical>The bibliography MUST contain EVERY citation used in the body, no abbreviations or ranges</critical>
155
+
156
+ ### When to use research mode
157
+ - Multi-source comparisons (e.g., "compare React Server Components vs Astro Islands").
158
+ - State-of-the-art reviews of a topic.
159
+ - Regulatory or industry context mapping.
160
+ - Decisions needing cited evidence (not just an opinion).
161
+ - Do NOT use research mode for simple lookups, debugging, or questions answerable in 1-2 web searches.
162
+
163
+ ### Sub-modes (research depth)
164
+
165
+ ```
166
+ Selection
167
+ ├── Initial exploration → quick (3 phases, 2-5 min)
168
+ ├── Standard research → standard (6 phases, 5-10 min) [DEFAULT for --research]
169
+ ├── Critical decision → deep (8 phases, 10-20 min)
170
+ └── Comprehensive review → ultradeep (8+ phases, 20-45 min)
171
+ ```
172
+
173
+ ### Required reading
174
+
175
+ Complementary skill **`dw-source-grounding`**: **ALWAYS** — apply Detect → Fetch → Implement → Cite protocol with strict source hierarchy (official versioned docs > changelogs > web standards > compat tables; Stack Overflow / blogs / training data are discovery only). Every finding ends with `[source: <url>, version: X.Y, retrieved: YYYY-MM-DD]`; bibliography built from these citations.
176
+
177
+ ### Pipeline phases
178
+
179
+ **Phase 1 — SCOPE** | Frame the question. Decompose into core components. Identify stakeholder perspectives. Define scope boundaries. List key assumptions to validate.
180
+
181
+ **Phase 2 — PLAN** | Identify primary + secondary sources. Map knowledge dependencies. Create search strategy with variants. Plan triangulation approach. Define quality gates.
182
+
183
+ **Phase 3 — RETRIEVE** | Parallel information gathering. Decompose into 5-10 independent search angles (semantic, keyword, date-filtered, academic, alternative perspectives, statistics, industry analysis, critical analysis). Execute ALL searches in parallel via multiple tool calls in a single message. First Finish Search pattern: proceed when first threshold reached (quick: 10+ sources avg credibility >60/100; standard: 15+ >60; deep: 25+ >70; ultradeep: 30+ >75).
184
+
185
+ **Phase 4 — TRIANGULATE** | Identify claims requiring verification. Cross-check facts across 3+ independent sources. Flag contradictions. Document verification status per claim.
186
+
187
+ **Phase 5 — OUTLINE REFINEMENT** | Compare initial scope to actual findings. Adapt structure based on evidence. Targeted searches to fill gaps.
188
+
189
+ **Phase 6 — SYNTHESIZE** | Identify cross-source patterns. Map concept relationships. Generate insights beyond source material. Build evidence hierarchies.
190
+
191
+ **Phase 7 — CRITIQUE** (deep/ultradeep only) | Review logical consistency. Verify citation completeness. Identify gaps or weaknesses. Simulate 2-3 critic personas.
192
+
193
+ **Phase 8 — REFINE** (deep/ultradeep) | Strengthen weak arguments. Add missing perspectives. Resolve contradictions.
194
+
195
+ **Phase 9 — PACKAGE** | Generate report progressively, section by section.
196
+
197
+ ### Output
198
+
199
+ Saved to `~/Documents/<Topic>_Research_<YYYYMMDD>/`. Mandatory sections:
200
+ 1. Executive Summary (200-400 words)
201
+ 2. Introduction (scope, methodology, assumptions)
202
+ 3. Main Analysis (4-8 findings, 600-2000 words each, all cited)
203
+ 4. Synthesis and Insights
204
+ 5. Limitations and Caveats
205
+ 6. Recommendations
206
+ 7. Bibliography (COMPLETE — every citation, no placeholders)
207
+ 8. Methodological Appendix
208
+
209
+ Target lengths: quick 2-4k words; standard 4-8k; deep 8-15k; ultradeep 15-20k+.
210
+
211
+ ### Quality standards
212
+ - Narrative: flowing prose, beginning/middle/end. Min 80% prose, max 20% bullets.
213
+ - Each factual statement cited immediately with [N].
214
+ - Distinguish fact from synthesis.
215
+ - No vague attributions ("studies show...", "experts believe..." without citation).
216
+ - Label speculation explicitly.
217
+ - Admit uncertainty: "No sources found for X."
218
+
219
+ ## Mode: `--refactor` (code-smell catalog)
220
+
221
+ Activated by the `--refactor` flag. Audits a target codebase area for refactoring opportunities using Martin Fowler's smell taxonomy.
222
+
223
+ <critical>ASK EXACTLY 3 CLARIFICATION QUESTIONS BEFORE STARTING THE ANALYSIS</critical>
224
+
225
+ ### When to use refactor mode
226
+ - Pre-implementation audit of tech debt in the area you're about to touch.
227
+ - Quarterly code-health review.
228
+ - Pre-migration scoping (e.g., before a framework upgrade).
229
+ - Do NOT use refactor mode if `/dw-review` already flagged the same area (avoid duplicate findings).
230
+
231
+ ### Required reading
232
+
233
+ Complementary skills:
234
+ - **`dw-review-rigor`**: **ALWAYS** — applies de-duplication (same smell in N files = 1 entry with affected list), severity ordering P0-P3, signal-over-volume (max ~20 findings; keep criticals, prune marginal ones). Smells with a justifying ADR drop to `low` at most.
235
+ - **`dw-simplification`**: **ALWAYS** — every flagged smell is filtered through Chesterton's Fence (what does the construct DO, why was it added, what breaks if removed). Smells with no clear "why-was-it-there" answer get downgraded to `info` with a research note instead of a refactor proposal. Complexity metrics (cognitive complexity ≥16 or nesting depth ≥4 = `high` candidate; <10 = `low` at most) anchor severity.
236
+ - **`security-review`**: defer security concerns to this skill — do not duplicate.
237
+ - **`vercel-react-best-practices`** + its `perf-discipline.md`: defer React/Next.js performance patterns to this skill.
238
+
239
+ ### Pipeline
240
+
241
+ 1. Three clarification questions (scope, priorities, constraints).
242
+ 2. Identify the target area (PRD-scoped directory, specific module, or whole codebase).
243
+ 3. Scan for smells using Fowler's taxonomy:
244
+ - **Bloaters** — Long Method, Large Class, Long Parameter List, Data Clumps, Primitive Obsession.
245
+ - **Object-Orientation Abusers** — Switch Statements, Refused Bequest, Alternative Classes with Different Interfaces, Temporary Field.
246
+ - **Change Preventers** — Divergent Change, Shotgun Surgery, Parallel Inheritance Hierarchies.
247
+ - **Dispensables** — Comments, Duplicate Code, Lazy Class, Data Class, Dead Code, Speculative Generality.
248
+ - **Couplers** — Feature Envy, Inappropriate Intimacy, Message Chains, Middle Man.
249
+ - **Conditional complexity** — high cyclomatic/cognitive, deep nesting.
250
+ 4. Apply `dw-review-rigor` de-duplication + `dw-simplification` Chesterton filter.
251
+ 5. For each surviving smell, map to a refactoring technique with before/after sketches.
252
+ 6. Severity-order P0-P3 (impact × likelihood × maintenance cost).
253
+ 7. Plus: coupling/cohesion metrics, SOLID analysis.
254
+
255
+ ### Output
256
+
257
+ Saved to `<target>/refactor-plan.md`:
258
+
259
+ ```markdown
260
+ # Refactoring Opportunities — <target>
261
+
262
+ ## Summary
263
+ - Smells found: N (after de-dup)
264
+ - P0 (do this sprint): N
265
+ - P1 (this quarter): N
266
+ - P2 (when convenient): N
267
+ - P3 (informational): N
268
+
269
+ ## Findings (severity-ordered)
270
+
271
+ ### P0 — <smell name>
272
+ **Files:** <list> (de-duplicated)
273
+ **Symptom:** <description>
274
+ **Why fix:** <impact analysis>
275
+ **Suggested refactor:** <Fowler technique>
276
+ **Before:** <code sketch>
277
+ **After:** <code sketch>
278
+ **Effort:** S / M / L
279
+ **Risk:** Low / Medium / High
280
+ **Tests required:** <list>
281
+
282
+ ...
283
+ ```
284
+
285
+ ### Analysis tools
286
+ - React projects: `npx react-doctor@latest --verbose` for health score.
287
+ - Angular projects: `ng lint` for static issues.
288
+
289
+ ### Anti-patterns
290
+ - Listing every cyclomatic complexity hit > threshold without context → noise.
291
+ - Suggesting "extract method" everywhere a function is over N lines → mechanical, not insight.
292
+ - Proposing refactors that aren't tested or testable → high risk, won't ship.
293
+ - Ignoring documented architectural decisions in `.dw/rules/` → flagging intentional design as smell.
143
294
 
144
295
  ## Inspired by
145
296
 
@@ -148,7 +299,7 @@ The codebase-grounded idea refinement pattern is inspired by [`addyosmani/agent-
148
299
  - **Product level, not code level**: while `idea-refine` uses Glob/Grep/Read over `src/*`, here we read **PRDs + rules + intel** to map the **feature inventory** of the product. The brainstorm stays product-focused.
149
300
  - **Explicit classification** (IMPROVES / CONSOLIDATES / NEW) as dev-workflow-native discipline — forces the team to decide whether the idea is new, consolidates existing features, or improves one, before opening a PRD.
150
301
  - Output at `.dw/spec/ideas/<slug>.md` (sibling of `prd-<slug>/`) instead of `docs/ideas/` — preserves dev-workflow path conventions.
151
- - Integration with the existing pipeline: `/dw-create-prd` accepts the one-pager as input, reducing clarification questions.
302
+ - Integration with the existing pipeline: `/dw-plan prd` accepts the one-pager as input, reducing clarification questions.
152
303
 
153
304
  Credit: Addy Osmani and the `idea-refine` pattern.
154
305
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  ## When to Use
7
7
  - Use when fixing a reported bug with automatic triage to distinguish bug vs feature vs excessive scope
8
- - Do NOT use when implementing a new feature (use `/dw-create-prd` instead)
9
- - Do NOT use when fixing bugs found during QA testing (use `/dw-fix-qa` instead)
8
+ - Do NOT use when implementing a new feature (use `/dw-plan prd` instead)
9
+ - Do NOT use when fixing bugs found during QA testing (use `/dw-qa --fix` instead)
10
10
 
11
11
  ## Pipeline Position
12
12
  **Predecessor:** (bug report) | **Successor:** `/dw-commit` then `/dw-generate-pr`
@@ -48,7 +48,7 @@
48
48
  In this mode:
49
49
  1. Follow the normal question and analysis flow
50
50
  2. Instead of executing, generate a document at `.dw/spec/dw-bugfix-[name]/prd.md`
51
- 3. The file is named `prd.md` to maintain compatibility with the create-techspec/dw-create-tasks pipeline
51
+ 3. The file is named `prd.md` to maintain compatibility with the create-techspec/dw-plan tasks pipeline
52
52
  4. Then the user can run `create-techspec .dw/spec/dw-bugfix-[name]`
53
53
  5. And then `create-tasks .dw/spec/dw-bugfix-[name]`
54
54
 
@@ -109,7 +109,7 @@
109
109
  ---
110
110
 
111
111
  **Do you want me to start the PRD creation flow?**
112
- - `yes` - I will follow `.dw/commands/dw-create-prd.md` for this feature
112
+ - `yes` - I will follow `.dw/commands/dw-plan prd.md` for this feature
113
113
  - `no, it's a bug` - Explain further why you consider it a bug
114
114
  - `no, cancel` - End
115
115
 
@@ -361,7 +361,7 @@
361
361
  q2 [label="Does it require\nnew functionality?", shape=diamond];
362
362
  q3 [label="Scope <= 5 files\nand no migration?", shape=diamond];
363
363
  bug [label="BUG\n(continue bugfix flow)"];
364
- feature [label="FEATURE\n(redirect to /dw-create-prd)"];
364
+ feature [label="FEATURE\n(redirect to /dw-plan prd)"];
365
365
  excessive [label="EXCESSIVE SCOPE\n(redirect to PRD or\nuse --analysis mode)"];
366
366
 
367
367
  start -> q1;
@@ -7,7 +7,7 @@
7
7
  - Do NOT use when creating a PR (use `/dw-generate-pr` instead)
8
8
 
9
9
  ## Pipeline Position
10
- **Predecessor:** `/dw-run-task` or `/dw-bugfix` | **Successor:** `/dw-generate-pr`
10
+ **Predecessor:** `/dw-run` or `/dw-bugfix` | **Successor:** `/dw-generate-pr`
11
11
 
12
12
  ## Complementary Skills
13
13
 
@@ -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