@brunosps00/dev-workflow 0.8.1 → 0.10.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 (96) hide show
  1. package/README.md +30 -27
  2. package/bin/dev-workflow.js +1 -1
  3. package/lib/constants.js +6 -8
  4. package/lib/init.js +6 -0
  5. package/lib/install-deps.js +0 -5
  6. package/lib/migrate-gsd.js +164 -0
  7. package/lib/uninstall.js +2 -2
  8. package/package.json +1 -1
  9. package/scaffold/en/commands/dw-analyze-project.md +6 -11
  10. package/scaffold/en/commands/dw-autopilot.md +10 -17
  11. package/scaffold/en/commands/dw-brainstorm.md +2 -2
  12. package/scaffold/en/commands/dw-bugfix.md +1 -0
  13. package/scaffold/en/commands/dw-code-review.md +7 -5
  14. package/scaffold/en/commands/dw-commit.md +6 -0
  15. package/scaffold/en/commands/dw-create-prd.md +5 -4
  16. package/scaffold/en/commands/dw-create-techspec.md +7 -4
  17. package/scaffold/en/commands/dw-deep-research.md +6 -0
  18. package/scaffold/en/commands/dw-deps-audit.md +1 -0
  19. package/scaffold/en/commands/dw-find-skills.md +4 -4
  20. package/scaffold/en/commands/dw-fix-qa.md +1 -0
  21. package/scaffold/en/commands/dw-generate-pr.md +1 -0
  22. package/scaffold/en/commands/dw-help.md +10 -27
  23. package/scaffold/en/commands/dw-intel.md +99 -30
  24. package/scaffold/en/commands/dw-map-codebase.md +125 -0
  25. package/scaffold/en/commands/dw-new-project.md +1 -1
  26. package/scaffold/en/commands/dw-redesign-ui.md +5 -9
  27. package/scaffold/en/commands/dw-refactoring-analysis.md +8 -6
  28. package/scaffold/en/commands/dw-review-implementation.md +28 -2
  29. package/scaffold/en/commands/dw-run-plan.md +14 -20
  30. package/scaffold/en/commands/dw-run-task.md +5 -4
  31. package/scaffold/en/commands/dw-update.md +3 -1
  32. package/scaffold/en/templates/idea-onepager.md +2 -2
  33. package/scaffold/pt-br/commands/dw-analyze-project.md +6 -11
  34. package/scaffold/pt-br/commands/dw-autopilot.md +10 -17
  35. package/scaffold/pt-br/commands/dw-brainstorm.md +2 -2
  36. package/scaffold/pt-br/commands/dw-bugfix.md +1 -0
  37. package/scaffold/pt-br/commands/dw-code-review.md +7 -5
  38. package/scaffold/pt-br/commands/dw-commit.md +6 -0
  39. package/scaffold/pt-br/commands/dw-create-prd.md +5 -4
  40. package/scaffold/pt-br/commands/dw-create-techspec.md +7 -4
  41. package/scaffold/pt-br/commands/dw-deep-research.md +6 -0
  42. package/scaffold/pt-br/commands/dw-deps-audit.md +1 -0
  43. package/scaffold/pt-br/commands/dw-find-skills.md +4 -4
  44. package/scaffold/pt-br/commands/dw-fix-qa.md +1 -0
  45. package/scaffold/pt-br/commands/dw-generate-pr.md +1 -0
  46. package/scaffold/pt-br/commands/dw-help.md +10 -27
  47. package/scaffold/pt-br/commands/dw-intel.md +99 -30
  48. package/scaffold/pt-br/commands/dw-map-codebase.md +125 -0
  49. package/scaffold/pt-br/commands/dw-new-project.md +1 -1
  50. package/scaffold/pt-br/commands/dw-redesign-ui.md +5 -9
  51. package/scaffold/pt-br/commands/dw-refactoring-analysis.md +8 -6
  52. package/scaffold/pt-br/commands/dw-review-implementation.md +21 -2
  53. package/scaffold/pt-br/commands/dw-run-plan.md +16 -22
  54. package/scaffold/pt-br/commands/dw-run-task.md +5 -4
  55. package/scaffold/pt-br/commands/dw-update.md +3 -1
  56. package/scaffold/pt-br/templates/idea-onepager.md +2 -2
  57. package/scaffold/skills/dw-codebase-intel/SKILL.md +102 -0
  58. package/scaffold/skills/dw-codebase-intel/agents/intel-updater.md +318 -0
  59. package/scaffold/skills/dw-codebase-intel/references/api-design-discipline.md +138 -0
  60. package/scaffold/skills/dw-codebase-intel/references/incremental-update.md +79 -0
  61. package/scaffold/skills/dw-codebase-intel/references/intel-format.md +208 -0
  62. package/scaffold/skills/dw-codebase-intel/references/query-patterns.md +148 -0
  63. package/scaffold/skills/dw-debug-protocol/SKILL.md +106 -0
  64. package/scaffold/skills/dw-debug-protocol/references/error-categorization.md +127 -0
  65. package/scaffold/skills/dw-debug-protocol/references/non-reproducible-strategy.md +108 -0
  66. package/scaffold/skills/dw-debug-protocol/references/six-step-triage.md +139 -0
  67. package/scaffold/skills/dw-debug-protocol/references/stop-the-line.md +52 -0
  68. package/scaffold/skills/dw-execute-phase/SKILL.md +133 -0
  69. package/scaffold/skills/dw-execute-phase/agents/executor.md +264 -0
  70. package/scaffold/skills/dw-execute-phase/agents/plan-checker.md +215 -0
  71. package/scaffold/skills/dw-execute-phase/references/atomic-commits.md +143 -0
  72. package/scaffold/skills/dw-execute-phase/references/plan-verification.md +156 -0
  73. package/scaffold/skills/dw-execute-phase/references/wave-coordination.md +102 -0
  74. package/scaffold/skills/dw-git-discipline/SKILL.md +120 -0
  75. package/scaffold/skills/dw-git-discipline/references/atomic-commits-discipline.md +158 -0
  76. package/scaffold/skills/dw-git-discipline/references/branch-hygiene.md +150 -0
  77. package/scaffold/skills/dw-git-discipline/references/trunk-based-pattern.md +82 -0
  78. package/scaffold/skills/dw-memory/SKILL.md +1 -2
  79. package/scaffold/skills/dw-simplification/SKILL.md +142 -0
  80. package/scaffold/skills/dw-simplification/references/behavior-preserving.md +148 -0
  81. package/scaffold/skills/dw-simplification/references/chestertons-fence.md +152 -0
  82. package/scaffold/skills/dw-simplification/references/complexity-metrics.md +147 -0
  83. package/scaffold/skills/dw-source-grounding/SKILL.md +128 -0
  84. package/scaffold/skills/dw-source-grounding/references/citation-protocol.md +108 -0
  85. package/scaffold/skills/dw-source-grounding/references/freshness-check.md +108 -0
  86. package/scaffold/skills/dw-source-grounding/references/source-priority.md +146 -0
  87. package/scaffold/skills/dw-verify/SKILL.md +0 -1
  88. package/scaffold/skills/vercel-react-best-practices/SKILL.md +4 -0
  89. package/scaffold/skills/vercel-react-best-practices/references/perf-discipline.md +122 -0
  90. package/scaffold/skills/webapp-testing/SKILL.md +5 -0
  91. package/scaffold/skills/webapp-testing/references/security-boundary.md +115 -0
  92. package/scaffold/skills/webapp-testing/references/three-workflow-patterns.md +144 -0
  93. package/scaffold/en/commands/dw-quick.md +0 -85
  94. package/scaffold/en/commands/dw-resume.md +0 -82
  95. package/scaffold/pt-br/commands/dw-quick.md +0 -85
  96. package/scaffold/pt-br/commands/dw-resume.md +0 -82
package/README.md CHANGED
@@ -19,7 +19,7 @@ This will:
19
19
 
20
20
  > **Compozy-inspired disciplines.** Since 0.5.0, dev-workflow bundles three primitives — `dw-verify`, `dw-memory`, `dw-review-rigor` — adapted from the [Compozy](https://github.com/compozy/compozy) project and invoked internally by existing commands. See [docs/compozy-integration.md](docs/compozy-integration.md) for what was ported and what was not.
21
21
 
22
- Optional dependencies (Playwright browsers, react-doctor, GSD):
22
+ Optional dependencies (Playwright browsers, react-doctor, Trivy, Docker):
23
23
  ```bash
24
24
  npx @brunosps00/dev-workflow install-deps
25
25
  ```
@@ -32,7 +32,7 @@ npx @brunosps00/dev-workflow install-deps
32
32
  Facilitates structured ideation before opening a PRD or implementation. Explores multiple directions — conservative, balanced, and bold — with trade-offs for each, then converges on concrete next steps. **Product-aware**: when PRDs or rules exist, automatically reads them to produce a Feature Inventory and tags each option as `[IMPROVES: <feature>]`, `[CONSOLIDATES: <A>+<B>]`, or `[NEW]`. With optional `--onepager` flag, generates a durable one-pager at `.dw/spec/ideas/<slug>.md` that `/dw-create-prd` can consume to reduce clarification questions. Inspired by [`addyosmani/agent-skills@idea-refine`](https://skills.sh/addyosmani/agent-skills/idea-refine), adapted to product-level (features) rather than code-level grounding. No code is written or project files modified by the brainstorm itself.
33
33
 
34
34
  #### `/dw-autopilot`
35
- Full pipeline orchestrator that takes a wish and automatically runs the entire development flow: codebase intelligence, research (conditional), brainstorm, PRD, techspec, tasks, execution, QA, review, and commit. Stops at 3 gates: PRD approval, tasks approval, and PR confirmation. With GSD installed, leverages plan verification and parallel execution.
35
+ Full pipeline orchestrator that takes a wish and automatically runs the entire development flow: codebase intelligence (`/dw-map-codebase` + `/dw-intel`), research (conditional), brainstorm, PRD, techspec, tasks, execution (gated by goal-backward plan verification, then wave-based parallel dispatch from the `dw-execute-phase` bundled skill), QA, review, and commit. Stops at 3 gates: PRD approval, tasks approval, and PR confirmation.
36
36
 
37
37
  #### `/dw-create-prd`
38
38
  Creates a Product Requirements Document by first asking at least 7 clarification questions to fully understand the feature. Generates a structured PRD with numbered functional requirements focused on what and why, saved to `.dw/spec/prd-[feature-name]/prd.md`.
@@ -49,7 +49,7 @@ Breaks down the PRD and TechSpec into implementable tasks with a target of ~6 ta
49
49
  Executes a single task from the task list, implementing code that follows project patterns and includes mandatory unit tests. Performs Level 1 validation (acceptance criteria + tests + standards check) and creates a commit upon completion.
50
50
 
51
51
  #### `/dw-run-plan`
52
- Executes all pending tasks sequentially and automatically, with Level 1 validation after each task. After all tasks are complete, performs a final Level 2 review (PRD compliance) with an interactive corrections cycle until no gaps remain or the user accepts pending items. With GSD installed, supports plan verification gates and wave-based parallel execution for independent tasks.
52
+ Executes all pending tasks via the `dw-execute-phase` bundled skill gated by 6-dimension goal-backward verification (`plan-checker` agent) before any code is touched. Wave-based parallel dispatch (`executor` agent) for independent tasks; atomic commit per task; deviation handling. After all tasks complete, performs a final Level 2 review (PRD compliance) with an interactive corrections cycle until no gaps remain or the user accepts pending items.
53
53
 
54
54
  #### `/dw-bugfix`
55
55
  Analyzes and fixes bugs with automatic triage that distinguishes between bugs, feature requests, and excessive scope. Asks exactly 3 clarification questions before proposing a solution. Supports Direct mode (executes fix immediately) and Analysis mode (`--analysis`) that generates a document for the techspec/tasks pipeline.
@@ -57,9 +57,6 @@ Analyzes and fixes bugs with automatic triage that distinguishes between bugs, f
57
57
  #### `/dw-redesign-ui`
58
58
  Audits existing frontend pages or components, proposes 2-3 design directions using `ui-ux-pro-max` (colors, typography, layout), waits for user approval, then implements the redesign following the project's CSS methodology. Framework-agnostic (React, Angular, Vue). Generates a design contract persisted for consistency across tasks.
59
59
 
60
- #### `/dw-quick`
61
- Executes a one-off change with workflow guarantees (validation, atomic commit) without requiring a full PRD. For hotfixes, config adjustments, dependency updates, and small refactors. Warns and redirects to `/dw-create-prd` if the change is too large.
62
-
63
60
  ### Quality
64
61
 
65
62
  #### `/dw-run-qa`
@@ -69,7 +66,7 @@ Validates the implementation against PRD, TechSpec, and Tasks. **Mode-aware**: i
69
66
  Fixes bugs found during QA testing with evidence-driven retesting. **Mode-aware**: in UI mode replays the failing flow via Playwright MCP and saves a retest screenshot; in API mode replays the failing `.http`/recipe and appends a `verdict: PASS|FAIL` JSONL line to `QA/logs/api/BUG-NN-retest.log`. Runs iterative cycles of identify, fix, retest, updating `QA/bugs.md` and `QA/qa-report.md` with status and mode-correct evidence.
70
67
 
71
68
  #### `/dw-review-implementation`
72
- Compares documented requirements (PRD + TechSpec + Tasks) against actual code as a Level 2 review. Maps each requirement to endpoints and tasks with evidence, identifies gaps, partial implementations, and extra undocumented code. Does not execute fixeswaits for user instruction.
69
+ Compares documented requirements (PRD + TechSpec + Tasks) against actual code as a Level 2 review. Maps each requirement to endpoints and tasks with evidence, identifies gaps, partial implementations, and extra undocumented code. After the coverage map is complete, automatically chains `/dw-code-review` (Level 3 quality layer) so a single invocation produces a consolidated coverage + quality report pass `--no-code-review` if you want only Level 2.
73
70
 
74
71
  #### `/dw-code-review`
75
72
  Performs a formal Level 3 code review before PR creation, verifying PRD compliance, code quality (SOLID, DRY, complexity, security), and conformance with project rules in `.dw/rules/`. Runs tests, verifies coverage targets, and generates a persistent report with APPROVED, APPROVED WITH CAVEATS, or REJECTED status.
@@ -111,14 +108,11 @@ Records an Architecture Decision Record (ADR) for a non-trivial decision during
111
108
 
112
109
  ### Intelligence
113
110
 
114
- #### `/dw-resume`
115
- Restores context from the last session by reading pending tasks, recent git history, and active branches. Suggests the next command to execute. With GSD installed, also restores cross-session state from `.planning/STATE.md`.
116
-
117
111
  #### `/dw-intel`
118
- Queries codebase intelligence to answer questions about patterns, conventions, and architecture. Uses `.planning/intel/` (if GSD) or `.dw/rules/` as knowledge sources, complemented with direct codebase search. Always cites sources with file paths and line numbers.
112
+ Queries codebase intelligence to answer questions about patterns, conventions, and architecture. Reads `.dw/intel/` (built by `/dw-map-codebase`) as primary source, falls back to `.dw/rules/` and direct grep when absent. Surfaces stale-index warnings (>7 days). Always cites sources with file paths and line numbers.
119
113
 
120
114
  #### `/dw-analyze-project`
121
- Scans the repository to identify tech stack, architectural patterns, naming conventions, and anti-patterns. Generates structured documentation in `.dw/rules/` with a project overview (`index.md`) and per-module rule files containing real code examples. With GSD installed, also creates a queryable index in `.planning/intel/`.
115
+ Scans the repository to identify tech stack, architectural patterns, naming conventions, and anti-patterns. Generates structured documentation in `.dw/rules/` with a project overview (`index.md`) and per-module rule files containing real code examples. Also invokes `/dw-map-codebase` to build the queryable index in `.dw/intel/` (the two are complementary — rules are human-readable, intel is machine-queryable).
122
116
 
123
117
  #### `/dw-deep-research`
124
118
  Conducts multi-source research with citation tracking and verification across quick, standard, deep, and ultradeep modes. Executes parallel information gathering, triangulation, and cross-reference verification through 8+ phases, producing a professional report with complete bibliography.
@@ -130,13 +124,11 @@ Generates a functional documentation dossier with screen mapping, E2E flows, and
130
124
  Displays the complete guide of available commands, integration flows, and when to use each one. Can be invoked without arguments for the full guide or with a specific command name for a detailed section.
131
125
 
132
126
  #### `/dw-find-skills`
133
- Discovers skills from the open agent skills ecosystem (`npx skills` / [skills.sh](https://skills.sh/)) when no `dw-*` already covers the request. Checks the leaderboard first, then runs `npx skills find <query>` if needed, vets each candidate (install count, source reputation, GitHub stars), and presents 1–3 options with the install commands. Asks whether to install globally (`-g`, lands in `~/.agents/skills/`) or locally (this repo) before running `npx skills add`. Falls back to `/dw-brainstorm` or `/dw-quick` when no skill matches. Ports the `find-skills` Claude superpowers skill into a `dw-*` command so every supported platform gets the same discovery on-ramp.
127
+ Discovers skills from the open agent skills ecosystem (`npx skills` / [skills.sh](https://skills.sh/)) when no `dw-*` already covers the request. Checks the leaderboard first, then runs `npx skills find <query>` if needed, vets each candidate (install count, source reputation, GitHub stars), and presents 1–3 options with the install commands. Asks whether to install globally (`-g`, lands in `~/.agents/skills/`) or locally (this repo) before running `npx skills add`. Falls back to `/dw-brainstorm` or `/dw-run-task` when no skill matches. Ports the `find-skills` Claude superpowers skill into a `dw-*` command so every supported platform gets the same discovery on-ramp.
134
128
 
135
129
  ## Workflow
136
130
 
137
131
  ```
138
- /dw-resume (pick up where you left off)
139
- |
140
132
  /dw-autopilot "wish" ------> Runs entire pipeline automatically
141
133
  (gates: PRD approval, Tasks approval, PR confirmation)
142
134
  --- OR ---
@@ -149,7 +141,7 @@ Discovers skills from the open agent skills ecosystem (`npx skills` / [skills.sh
149
141
  |
150
142
  /dw-run-task (one at a time)
151
143
  | or
152
- /dw-run-plan (all tasks — parallel with GSD)
144
+ /dw-run-plan (all tasks — wave-based parallel native)
153
145
  |
154
146
  /dw-run-qa --> .dw/spec/prd-{name}/QA/
155
147
  |
@@ -162,7 +154,6 @@ Discovers skills from the open agent skills ecosystem (`npx skills` / [skills.sh
162
154
  /dw-commit + /dw-generate-pr
163
155
 
164
156
  Shortcuts:
165
- /dw-quick "description" One-off change with workflow guarantees
166
157
  /dw-intel "question" Query codebase intelligence
167
158
  /dw-redesign-ui "target" Visual redesign of a page or component
168
159
  ```
@@ -183,7 +174,7 @@ All wrappers point to `.dw/commands/` as the single source of truth.
183
174
  ```
184
175
  your-project/
185
176
  ├── .dw/
186
- │ ├── commands/ # 31 workflow command files
177
+ │ ├── commands/ # 30 workflow command files
187
178
  │ ├── templates/ # Document templates (PRD, TechSpec, etc.)
188
179
  │ ├── rules/ # Project-specific rules (run /dw-analyze-project)
189
180
  │ ├── references/ # Reference documentation
@@ -193,8 +184,7 @@ your-project/
193
184
  │ ├── skills/ # Claude Code wrappers
194
185
  │ └── settings.json # MCP servers (Context7, Playwright)
195
186
  ├── .agents/skills/ # Codex/Copilot wrappers + bundled skills
196
- ├── .opencode/commands/ # OpenCode wrappers
197
- └── .planning/ # GSD state (if installed via install-deps)
187
+ └── .opencode/commands/ # OpenCode wrappers
198
188
  ```
199
189
 
200
190
  ## Bundled Skills
@@ -207,21 +197,27 @@ These are not slash commands — they are primitives other commands call to enfo
207
197
 
208
198
  | Skill | Description | Invoked by | Inspired by |
209
199
  |-------|-------------|------------|-------------|
210
- | **dw-verify** | Enforces fresh verification evidence before any completion, commit, or PR claim — with Iron Law, gate function, and Verification Report template | `dw-run-task`, `dw-run-plan`, `dw-fix-qa`, `dw-bugfix`, `dw-code-review`, `dw-generate-pr`, `dw-quick` | [Compozy](https://github.com/compozy/compozy) `cy-final-verify` |
211
- | **dw-memory** | Two-tier workflow memory (shared `MEMORY.md` + per-task `<N>_memory.md`) with promotion test and compaction rules, so cross-task context persists cleanly | `dw-run-task`, `dw-run-plan`, `dw-autopilot`, `dw-resume` | [Compozy](https://github.com/compozy/compozy) `cy-workflow-memory` |
200
+ | **dw-verify** | Enforces fresh verification evidence before any completion, commit, or PR claim — with Iron Law, gate function, and Verification Report template | `dw-run-task`, `dw-run-plan`, `dw-fix-qa`, `dw-bugfix`, `dw-code-review`, `dw-generate-pr` | [Compozy](https://github.com/compozy/compozy) `cy-final-verify` |
201
+ | **dw-memory** | Two-tier workflow memory (shared `MEMORY.md` + per-task `<N>_memory.md`) with promotion test and compaction rules, so cross-task context persists cleanly | `dw-run-task`, `dw-run-plan`, `dw-autopilot` | [Compozy](https://github.com/compozy/compozy) `cy-workflow-memory` |
212
202
  | **dw-review-rigor** | Review discipline: de-duplication, severity ordering, verify-intent-before-flagging, skip-linter-issues, signal-over-volume | `dw-code-review`, `dw-review-implementation`, `dw-refactoring-analysis` | [Compozy](https://github.com/compozy/compozy) `cy-review-round` |
213
203
  | **dw-council** | Multi-advisor debate (3-5 archetypes) with steel-manning, concession tracking, and dissent-preserving synthesis. Opt-in only. | `dw-brainstorm --council`, `dw-create-techspec --council` | [Compozy](https://github.com/compozy/compozy) `cy-idea-factory` |
204
+ | **dw-codebase-intel** | Codebase intelligence (`stack.json`, `files.json`, `apis.json`, `deps.json`, `arch.md`) with incremental updates and query patterns. Cross-cutting reference: `api-design-discipline` (Hyrum's Law, contract-first, error semantics) used when techspecs design API endpoints. | `/dw-intel`, `/dw-map-codebase`, `dw-create-techspec` | [`get-shit-done-cc`](https://github.com/gsd-build/get-shit-done) (MIT) + [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) (MIT) |
205
+ | **dw-execute-phase** | Goal-backward 6-dimension plan verification (`plan-checker`) and wave-based parallel task execution (`executor`) with atomic commit, deviation handling, and checkpoint recovery | `dw-run-plan`, `dw-autopilot` | [`get-shit-done-cc`](https://github.com/gsd-build/get-shit-done) (MIT) |
206
+ | **dw-source-grounding** | Detect → Fetch → Implement → Cite protocol with `[source: <url>, version: X.Y, retrieved: YYYY-MM-DD]` citations. Strict source-priority hierarchy (Tier 1 official docs > Tier 2 maintainer blogs > Tier 3 Stack Overflow as discovery only). | `dw-create-techspec`, `dw-deps-audit`, `dw-deep-research` | [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) (MIT) |
207
+ | **dw-simplification** | Chesterton's Fence (understand WHY before changing), behavior-preserving refactor protocol (test gate before/after), complexity metrics (cyclomatic, cognitive, depth, fan-out), Rule of 500 for large refactors | `dw-code-review`, `dw-refactoring-analysis` | [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) (MIT) |
208
+ | **dw-debug-protocol** | Stop-the-line discipline plus six-step triage (Reproduce → Localize → Reduce → Fix Root Cause → Guard → Verify End-to-End). Error categorization matrix; instrument-first non-reproducible-bug strategy. | `dw-bugfix`, `dw-fix-qa` | [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) (MIT) |
209
+ | **dw-git-discipline** | Trunk-based pattern (1-3 day branches, daily rebase, feature flags), atomic commit discipline (one intent per commit; refactor separate from feature), Conventional Commits, branch hygiene | `dw-commit`, `dw-generate-pr` | [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) (MIT) |
214
210
 
215
211
  ### Domain expertise
216
212
 
217
213
  | Skill | Description | Source | License |
218
214
  |-------|-------------|--------|---------|
219
215
  | **ui-ux-pro-max** | Design intelligence: 50+ styles, 161 color palettes, 57 font pairings, 99 UX guidelines across 10 stacks | [Next Level Builder](https://github.com/skills-sh) | MIT |
220
- | **vercel-react-best-practices** | 67 React/Next.js performance optimization rules across 8 priority categories | [Vercel Labs](https://github.com/vercel-labs/agent-skills) | MIT |
216
+ | **vercel-react-best-practices** | 67 React/Next.js performance optimization rules across 8 priority categories. Wraps the rules with `references/perf-discipline.md` (measure → identify → fix → verify → guard) so perf work is data-driven, not vibes-based | [Vercel Labs](https://github.com/vercel-labs/agent-skills) + [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) | MIT |
221
217
  | **security-review** | Systematic vulnerability review based on OWASP with confidence-based reporting | [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) | CC BY-SA 4.0 |
222
218
  | **humanizer** | Detects and removes 24 AI writing patterns based on Wikipedia's "Signs of AI Writing" guide | [Wikipedia AI Writing Guide](https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing) | -- |
223
219
  | **remotion-best-practices** | 25+ rules for video creation in React with Remotion | [Remotion](https://www.remotion.dev/) | -- |
224
- | **webapp-testing** | Playwright-based browser testing toolkit for E2E validation and screenshots | [Playwright](https://playwright.dev/) | -- |
220
+ | **webapp-testing** | Playwright-based browser testing toolkit for E2E validation and screenshots. Cross-cutting references: `security-boundary` (every byte from a browser is potentially attacker-controlled) and `three-workflow-patterns` (UI bugs vs network issues vs perf — distinct workflows, don't conflate) | [Playwright](https://playwright.dev/) + [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) | -- |
225
221
 
226
222
  ## Dependencies
227
223
 
@@ -232,8 +228,8 @@ Installed via `npx @brunosps00/dev-workflow install-deps`:
232
228
  | **Playwright** | Browser automation for QA, E2E tests, and visual validation | [playwright.dev](https://playwright.dev/) |
233
229
  | **Context7 MCP** | Contextual documentation lookup for AI assistants | [upstash/context7-mcp](https://github.com/upstash/context7-mcp) |
234
230
  | **react-doctor** | Health score and diagnostics for React projects | [react.doctor](https://www.react.doctor/) |
235
- | **GSD (get-shit-done-cc)** | Optional engine: parallel execution, plan verification, codebase intelligence, cross-session persistence | [gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done) |
236
231
  | **Trivy** | Native binary scanner used by `/dw-security-check` for CVE, secret, and IaC scanning. `install-deps` detects presence and prints OS-specific install instructions (brew / curl script / choco / Docker) — does not install automatically. | [aquasecurity.github.io/trivy](https://aquasecurity.github.io/trivy/) |
232
+ | **Docker + Docker Compose** | Required by `/dw-new-project` and `/dw-dockerize` for dev dependency seeding and image generation. `install-deps` detects presence and prints OS-specific install instructions — does not install automatically. | [docs.docker.com](https://docs.docker.com/engine/install/) |
237
233
 
238
234
  ## Options
239
235
 
@@ -243,7 +239,7 @@ npx @brunosps00/dev-workflow init --lang=en # English, skip prompt
243
239
  npx @brunosps00/dev-workflow init --lang=pt-br # Portuguese, skip prompt
244
240
  npx @brunosps00/dev-workflow init --force # Overwrite existing files
245
241
  npx @brunosps00/dev-workflow update # Update commands/templates only
246
- npx @brunosps00/dev-workflow install-deps # Install Playwright, react-doctor, GSD
242
+ npx @brunosps00/dev-workflow install-deps # Install Playwright, react-doctor; check Trivy, Docker
247
243
  npx @brunosps00/dev-workflow help # Show help
248
244
  ```
249
245
 
@@ -254,7 +250,14 @@ After running `npx @brunosps00/dev-workflow init`:
254
250
  1. **Run `/dw-analyze-project`** in your AI assistant to generate project rules
255
251
  2. **Run `/dw-brainstorm`** to start planning a new feature
256
252
  3. **Run `/dw-help`** to see all available commands and workflows
257
- 4. **(Optional) Run `npx @brunosps00/dev-workflow install-deps`** for Playwright, react-doctor, and GSD
253
+ 4. **(Optional) Run `npx @brunosps00/dev-workflow install-deps`** to install Playwright + react-doctor and check Trivy + Docker
254
+ 5. **Run `/dw-map-codebase`** once your project has source files to build the queryable index in `.dw/intel/`
255
+
256
+ ## Acknowledgements
257
+
258
+ Codebase intelligence (`/dw-intel`, `/dw-map-codebase`, the `dw-codebase-intel` bundled skill) and phase execution patterns (the `dw-execute-phase` bundled skill, with its `plan-checker` and `executor` agents) were adapted from [`get-shit-done-cc`](https://github.com/gsd-build/get-shit-done) by gsd-build (MIT). Schemas (`stack.json`, `files.json`, `apis.json`, `deps.json`, `arch.md`), the goal-backward verification protocol, and the wave-based parallel execution pattern come from there. dev-workflow specifics: `.dw/` namespace instead of `.planning/`, agent-driven runtime instead of `gsd-sdk` CLI, integration with the rest of the `dw-*` command surface.
259
+
260
+ Source-driven development, code simplification, debugging discipline, and git workflow patterns adapted from [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills) by Addy Osmani (MIT) into the bundled `dw-source-grounding`, `dw-simplification`, `dw-debug-protocol`, and `dw-git-discipline` skills. Performance-optimization workflow (`vercel-react-best-practices/references/perf-discipline.md`), API-design discipline (`dw-codebase-intel/references/api-design-discipline.md`), and browser-DevTools patterns (`webapp-testing/references/{security-boundary, three-workflow-patterns}`) also incorporated as enhancements to existing bundled skills.
258
261
 
259
262
  ## License
260
263
 
@@ -30,7 +30,7 @@ const HELP_TEXT = `
30
30
  Preserves: .dw/rules/, .dw/spec/, user data
31
31
  install-deps Install system dependencies (Playwright browsers, MCP servers)
32
32
  uninstall Remove all managed files (commands, templates, wrappers, skills, MCPs)
33
- Preserves: .dw/rules/, .dw/spec/, .planning/ (user data)
33
+ Preserves: .dw/rules/, .dw/spec/, .dw/intel/ (user data)
34
34
  help Show this help message
35
35
 
36
36
  Options:
package/lib/constants.js CHANGED
@@ -18,13 +18,12 @@ const COMMANDS = {
18
18
  { name: 'dw-functional-doc', description: 'Maps screens and user flows into a functional doc, validated end-to-end with Playwright.' },
19
19
  { name: 'dw-generate-pr', description: 'Pushes the branch and opens a PR with a body that explains what changed and how to test it.' },
20
20
  { name: 'dw-help', description: 'Lists every command and the flows that connect them. Pass a keyword for a contextual shortcut.' },
21
- { name: 'dw-intel', description: 'Answers questions about the codebase using its own rules and intel as the source of truth.' },
21
+ { name: 'dw-intel', description: 'Answers questions about the codebase by querying .dw/intel/ (built by /dw-map-codebase) with .dw/rules/ and grep as fallbacks.' },
22
+ { name: 'dw-map-codebase', description: 'Builds a queryable index in .dw/intel/ (stack, files, apis, deps, arch) so other commands stop re-exploring the codebase.' },
22
23
  { name: 'dw-new-project', description: 'Interviews you about stack and infra, then scaffolds a working monorepo with docker-compose for dev, .env, scripts, CI, and seeded rules.' },
23
- { name: 'dw-quick', description: 'Runs a small, well-defined change with workflow guarantees, no PRD needed.' },
24
24
  { name: 'dw-redesign-ui', description: 'Audits a frontend page, proposes design directions you choose from, then ships the redesign.' },
25
25
  { name: 'dw-refactoring-analysis', description: 'Catalogs code smells in Fowler\'s vocabulary and ranks them by impact, P0 to P3.' },
26
- { name: 'dw-resume', description: 'Picks up where you left off reads the active PRD, the last task, and tells you what\'s next.' },
27
- { name: 'dw-review-implementation', description: 'Maps every PRD requirement to the code that delivers it, and lists what is still missing.' },
26
+ { name: 'dw-review-implementation', description: 'Maps every PRD requirement to the code that delivers it, then runs /dw-code-review for the Level 3 quality layer.' },
28
27
  { name: 'dw-revert-task', description: 'Reverts the commits of one task, but only after checking nothing downstream depends on it.' },
29
28
  { name: 'dw-run-plan', description: 'Runs every pending task in order, with PRD-compliance review at the end.' },
30
29
  { name: 'dw-run-qa', description: 'Drives the browser to test happy paths, edge cases, and accessibility, with screenshot proof.' },
@@ -51,13 +50,12 @@ const COMMANDS = {
51
50
  { name: 'dw-functional-doc', description: 'Mapeia telas e fluxos em um dossie funcional, validado E2E com Playwright.' },
52
51
  { name: 'dw-generate-pr', description: 'Faz push da branch e abre um PR com corpo explicando o que mudou e como testar.' },
53
52
  { name: 'dw-help', description: 'Lista todos os commands e os fluxos que os conectam. Passe uma keyword para atalho contextual.' },
54
- { name: 'dw-intel', description: 'Responde perguntas sobre o codebase usando suas proprias rules e intel como fonte.' },
53
+ { name: 'dw-intel', description: 'Responde perguntas sobre o codebase consultando .dw/intel/ (do /dw-map-codebase) com .dw/rules/ e grep como fallback.' },
54
+ { name: 'dw-map-codebase', description: 'Constroi um indice queryable em .dw/intel/ (stack, files, apis, deps, arch) para outros comandos pararem de re-explorar o codebase.' },
55
55
  { name: 'dw-new-project', description: 'Entrevista voce sobre stack e infra, depois faz scaffold de um monorepo com docker-compose para dev, .env, scripts, CI e rules seed.' },
56
- { name: 'dw-quick', description: 'Roda uma mudanca pequena e bem definida com garantias do workflow, sem precisar de PRD.' },
57
56
  { name: 'dw-redesign-ui', description: 'Audita uma pagina frontend, propoe direcoes de design que voce escolhe, e entrega o redesign.' },
58
57
  { name: 'dw-refactoring-analysis', description: 'Cataloga code smells no vocabulario de Fowler e ranqueia por impacto, P0 a P3.' },
59
- { name: 'dw-resume', description: 'Retoma de onde voce parou le o PRD ativo, a ultima task, e diz qual o proximo passo.' },
60
- { name: 'dw-review-implementation', description: 'Mapeia cada requisito do PRD ao codigo que o entrega, e lista o que ainda falta.' },
58
+ { name: 'dw-review-implementation', description: 'Mapeia cada requisito do PRD ao codigo que o entrega, e roda /dw-code-review para a camada de qualidade Nivel 3.' },
61
59
  { name: 'dw-revert-task', description: 'Reverte os commits de uma task, mas so depois de checar que nada a frente depende dela.' },
62
60
  { name: 'dw-run-plan', description: 'Roda todas as tasks pendentes em ordem, com review de PRD compliance no final.' },
63
61
  { name: 'dw-run-qa', description: 'Pilota o browser para testar fluxo feliz, edge cases e acessibilidade, com screenshot.' },
package/lib/init.js CHANGED
@@ -4,6 +4,7 @@ const { ensureDir, copyDir, writeFile, log } = require('./utils');
4
4
  const { selectLanguage } = require('./prompts');
5
5
  const { generateWrappers } = require('./wrappers');
6
6
  const { installMCPs } = require('./mcp');
7
+ const { migrate: migrateGsd } = require('./migrate-gsd');
7
8
 
8
9
  const SCAFFOLD_DIR = path.join(__dirname, '..', 'scaffold');
9
10
 
@@ -18,6 +19,11 @@ async function run({ force = false, lang = null, mode = 'init' }) {
18
19
  console.log(`\n dev-workflow ${isUpdate ? 'update' : 'init'}`);
19
20
  console.log(` ${'='.repeat(40)}\n`);
20
21
 
22
+ // 0. GSD migration (idempotent; only runs if legacy GSD artifacts are detected)
23
+ if (isUpdate) {
24
+ migrateGsd(projectRoot);
25
+ }
26
+
21
27
  // 1. Select language
22
28
  const selectedLang = await selectLanguage(lang);
23
29
  console.log(`\n Language: ${selectedLang}\n`);
@@ -20,11 +20,6 @@ function run() {
20
20
  check: null,
21
21
  install: 'npx react-doctor@latest --help',
22
22
  },
23
- {
24
- name: 'GSD (Get Shit Done)',
25
- check: null,
26
- install: 'npx get-shit-done-cc@latest --claude --codex --copilot --opencode --local -y',
27
- },
28
23
  {
29
24
  name: 'Trivy (security scanner)',
30
25
  check: 'trivy --version',
@@ -0,0 +1,164 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ /**
5
+ * One-shot GSD migration. Detects legacy GSD artifacts in a project,
6
+ * migrates the parts dev-workflow now provides natively, and removes
7
+ * the rest.
8
+ *
9
+ * Idempotent: returns silently when nothing to do.
10
+ *
11
+ * Run automatically from lib/init.js when mode === 'update'.
12
+ */
13
+ function migrate(projectRoot) {
14
+ const planning = path.join(projectRoot, '.planning');
15
+ const dotClaude = path.join(projectRoot, '.claude');
16
+ const claudeCmdsGsd = path.join(dotClaude, 'commands', 'gsd');
17
+ const claudeManifest = path.join(dotClaude, 'gsd-file-manifest.json');
18
+
19
+ const hasPlanning = fs.existsSync(planning);
20
+ const hasGsdCmds = fs.existsSync(claudeCmdsGsd);
21
+ const hasGsdManifest = fs.existsSync(claudeManifest);
22
+
23
+ // Detect any gsd-* file in .claude/agents/ or .claude/hooks/
24
+ const gsdAgents = listMatching(path.join(dotClaude, 'agents'), /^gsd-.*\.md$/);
25
+ const gsdHooks = listMatching(path.join(dotClaude, 'hooks'), /^gsd-.*\.(js|cjs|mjs)$/);
26
+
27
+ const detected =
28
+ hasPlanning || hasGsdCmds || hasGsdManifest || gsdAgents.length > 0 || gsdHooks.length > 0;
29
+
30
+ if (!detected) return null; // nothing to migrate
31
+
32
+ console.log('\n GSD legacy artifacts detected — migrating to dev-workflow native namespace.');
33
+
34
+ const stats = {
35
+ intel_files: 0,
36
+ state_migrated: false,
37
+ quick_files: 0,
38
+ threads_files: 0,
39
+ planning_archived: false,
40
+ cmds_removed: false,
41
+ agents_removed: 0,
42
+ hooks_removed: 0,
43
+ manifest_removed: false,
44
+ };
45
+
46
+ // 1. Migrate .planning/intel/* → .dw/intel/*
47
+ if (hasPlanning) {
48
+ const planningIntel = path.join(planning, 'intel');
49
+ if (fs.existsSync(planningIntel)) {
50
+ const dwIntel = path.join(projectRoot, '.dw', 'intel');
51
+ stats.intel_files = copyDirRecursive(planningIntel, dwIntel);
52
+ }
53
+
54
+ // 2. Migrate .planning/STATE.md → .dw/spec/active-session.md
55
+ const stateFile = path.join(planning, 'STATE.md');
56
+ if (fs.existsSync(stateFile)) {
57
+ const target = path.join(projectRoot, '.dw', 'spec', 'active-session.md');
58
+ ensureDir(path.dirname(target));
59
+ fs.copyFileSync(stateFile, target);
60
+ stats.state_migrated = true;
61
+ }
62
+
63
+ // 3. Migrate .planning/quick/* → .dw/spec/quick/*
64
+ const planningQuick = path.join(planning, 'quick');
65
+ if (fs.existsSync(planningQuick)) {
66
+ const dwQuick = path.join(projectRoot, '.dw', 'spec', 'quick');
67
+ stats.quick_files = copyDirRecursive(planningQuick, dwQuick);
68
+ }
69
+
70
+ // 4. Migrate .planning/threads/* → .dw/threads/*
71
+ const planningThreads = path.join(planning, 'threads');
72
+ if (fs.existsSync(planningThreads)) {
73
+ const dwThreads = path.join(projectRoot, '.dw', 'threads');
74
+ stats.threads_files = copyDirRecursive(planningThreads, dwThreads);
75
+ }
76
+
77
+ // 5. Rename .planning/ → .planning.gsd-archive-<DATE>/ (preserve for inspection)
78
+ const date = new Date().toISOString().split('T')[0];
79
+ const archive = path.join(projectRoot, `.planning.gsd-archive-${date}`);
80
+ if (!fs.existsSync(archive)) {
81
+ try {
82
+ fs.renameSync(planning, archive);
83
+ stats.planning_archived = true;
84
+ } catch (err) {
85
+ console.log(` \x1b[33m! Could not rename .planning → ${path.basename(archive)}: ${err.message}\x1b[0m`);
86
+ }
87
+ } else {
88
+ console.log(` \x1b[33m! Archive ${path.basename(archive)} already exists; leaving .planning/ in place\x1b[0m`);
89
+ }
90
+ }
91
+
92
+ // 6. Remove .claude/commands/gsd/
93
+ if (hasGsdCmds) {
94
+ rmRecursive(claudeCmdsGsd);
95
+ stats.cmds_removed = true;
96
+ }
97
+
98
+ // 7. Remove .claude/agents/gsd-*.md
99
+ for (const file of gsdAgents) {
100
+ fs.unlinkSync(path.join(dotClaude, 'agents', file));
101
+ stats.agents_removed++;
102
+ }
103
+
104
+ // 8. Remove .claude/hooks/gsd-*.js
105
+ for (const file of gsdHooks) {
106
+ fs.unlinkSync(path.join(dotClaude, 'hooks', file));
107
+ stats.hooks_removed++;
108
+ }
109
+
110
+ // 9. Remove .claude/gsd-file-manifest.json
111
+ if (hasGsdManifest) {
112
+ fs.unlinkSync(claudeManifest);
113
+ stats.manifest_removed = true;
114
+ }
115
+
116
+ // 10. Print summary
117
+ console.log(' Migration summary:');
118
+ if (stats.intel_files) console.log(` + .dw/intel/ (${stats.intel_files} files migrated from .planning/intel/)`);
119
+ if (stats.state_migrated) console.log(' + .dw/spec/active-session.md (migrated from .planning/STATE.md)');
120
+ if (stats.quick_files) console.log(` + .dw/spec/quick/ (${stats.quick_files} files migrated from .planning/quick/)`);
121
+ if (stats.threads_files) console.log(` + .dw/threads/ (${stats.threads_files} files migrated from .planning/threads/)`);
122
+ if (stats.planning_archived) console.log(` ~ .planning/ (renamed to .planning.gsd-archive-${new Date().toISOString().split('T')[0]}/ — review and delete when ready)`);
123
+ if (stats.cmds_removed) console.log(' - .claude/commands/gsd/ (removed; native /dw-* commands cover the use cases)');
124
+ if (stats.agents_removed) console.log(` - .claude/agents/gsd-*.md (${stats.agents_removed} files removed; native dw-* agents bundled in skills)`);
125
+ if (stats.hooks_removed) console.log(` - .claude/hooks/gsd-*.js (${stats.hooks_removed} files removed; not used by dev-workflow)`);
126
+ if (stats.manifest_removed) console.log(' - .claude/gsd-file-manifest.json (removed)');
127
+ console.log(' Done. Native /dw-intel, /dw-map-codebase, /dw-run-plan (with bundled phase-execution agents) now provide what GSD provided.');
128
+ console.log();
129
+
130
+ return stats;
131
+ }
132
+
133
+ function listMatching(dir, regex) {
134
+ if (!fs.existsSync(dir)) return [];
135
+ return fs.readdirSync(dir).filter((name) => regex.test(name));
136
+ }
137
+
138
+ function ensureDir(dir) {
139
+ fs.mkdirSync(dir, { recursive: true });
140
+ }
141
+
142
+ function copyDirRecursive(src, dst) {
143
+ if (!fs.existsSync(src)) return 0;
144
+ ensureDir(dst);
145
+ let count = 0;
146
+ for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
147
+ const srcPath = path.join(src, entry.name);
148
+ const dstPath = path.join(dst, entry.name);
149
+ if (entry.isDirectory()) {
150
+ count += copyDirRecursive(srcPath, dstPath);
151
+ } else if (entry.isFile()) {
152
+ fs.copyFileSync(srcPath, dstPath);
153
+ count++;
154
+ }
155
+ }
156
+ return count;
157
+ }
158
+
159
+ function rmRecursive(target) {
160
+ if (!fs.existsSync(target)) return;
161
+ fs.rmSync(target, { recursive: true, force: true });
162
+ }
163
+
164
+ module.exports = { migrate };
package/lib/uninstall.js CHANGED
@@ -97,14 +97,14 @@ function run() {
97
97
  // 6. Remove legacy .codex/skills/
98
98
  removeDir(path.join(projectRoot, '.codex', 'skills'));
99
99
 
100
- // Note: .dw/rules/, .dw/spec/, .planning/ are USER DATA — never removed
100
+ // Note: .dw/rules/, .dw/spec/, .dw/intel/ are USER DATA — never removed
101
101
  console.log(`\n ${'='.repeat(40)}`);
102
102
  console.log(` Done! ${removed} removed, ${skipped} already absent`);
103
103
  console.log();
104
104
  console.log(' Preserved (user data):');
105
105
  console.log(' .dw/rules/ (project rules)');
106
106
  console.log(' .dw/spec/ (PRDs and specs)');
107
- console.log(' .planning/ (GSD state)');
107
+ console.log(' .dw/intel/ (codebase index from /dw-map-codebase)');
108
108
  console.log();
109
109
  }
110
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosps00/dev-workflow",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "description": "AI-driven development workflow commands for any project. Scaffolds a complete PRD-to-PR pipeline with multi-platform AI assistant support.",
5
5
  "bin": {
6
6
  "dev-workflow": "./bin/dev-workflow.js"
@@ -230,19 +230,14 @@ For each module/project detected, identify:
230
230
  When React is detected, run `npx react-doctor@latest --verbose` and include the health score in the generated rules as a baseline metric.
231
231
  For Angular projects, run `ng lint` and document any warnings as baseline.
232
232
 
233
- <critical>If GSD is installed, running /gsd-map-codebase is MANDATORY. The command CANNOT be considered complete without executing ALL applicable steps, including generating the index in .planning/intel/.</critical>
233
+ <critical>Running /dw-map-codebase to generate the queryable index in .dw/intel/ is MANDATORY. The command CANNOT be considered complete without it.</critical>
234
234
 
235
- #### Codebase Intelligence (GSD)
235
+ #### Codebase Intelligence (native)
236
236
 
237
- If GSD (get-shit-done-cc) is installed in the project:
238
- - After generating rules in `.dw/rules/`, delegate to `/gsd-map-codebase` to create a rich index in `.planning/intel/`
239
- - The index includes: architectural assumptions, decision spaces, behavioral references, UI patterns
240
- - The index is incremental re-running adds to the existing index, does not replace
241
- - Other dw-* commands can query the index via `/gsd-intel` internally
242
-
243
- If GSD is NOT installed:
244
- - Generate only `.dw/rules/` (current behavior)
245
- - Suggest: "For queryable codebase intelligence, install GSD via `npx dev-workflow install-deps`"
237
+ After generating rules in `.dw/rules/`, delegate to `/dw-map-codebase` to create the queryable index in `.dw/intel/`:
238
+ - The index includes: stack (`stack.json`), file graph (`files.json`), API surface (`apis.json`), dependencies (`deps.json`), architecture overview (`arch.md`)
239
+ - The index is incremental `/dw-map-codebase --files <list>` updates only the touched entries; full scan only when needed
240
+ - Other dw-* commands query the index via `/dw-intel` (see the `dw-codebase-intel` bundled skill for schemas)
246
241
 
247
242
  ### Step 4: Detect Code Patterns and Conventions
248
243
 
@@ -26,7 +26,7 @@ A step that invokes a `/dw-xxx` command is ONLY considered complete when the art
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 one-off changes (use `/dw-quick`)
29
+ - Do NOT use for small, well-scoped one-off tasks use `/dw-run-task` 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
 
@@ -56,7 +56,7 @@ The autopilot stops ONLY at these 3 moments:
56
56
 
57
57
  ## Session Resumption
58
58
 
59
- If this command is invoked to resume an interrupted autopilot (via `/dw-resume`):
59
+ If this command is re-invoked on the same PRD after interruption:
60
60
 
61
61
  <critical>Read the `autopilot-state.json` file in the PRD directory. Skip ALL steps listed in `completed_steps`. Resume execution from `current_step`. Gates already passed (listed in `gates_passed`) MUST NOT be re-presented.</critical>
62
62
 
@@ -68,10 +68,11 @@ If this command is invoked to resume an interrupted autopilot (via `/dw-resume`)
68
68
 
69
69
  ### Step 1: Codebase Intelligence
70
70
 
71
- <critical>If `.planning/intel/` exists, querying it is MANDATORY before starting.</critical>
71
+ <critical>If `.dw/intel/` exists, querying it via `/dw-intel` is MANDATORY before starting. Falls back to `.dw/rules/` and direct grep if absent.</critical>
72
72
 
73
- - Query `.planning/intel/` via `/gsd-intel` (if available) or `.dw/rules/` to understand project context
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
76
 
76
77
  ### Step 2: Research (Conditional)
77
78
 
@@ -148,7 +149,7 @@ Evaluate whether tasks involve frontend:
148
149
  ### Step 8: Execution
149
150
 
150
151
  Run `/dw-run-plan` with the PRD path.
151
- - Follow ALL command instructions, including GSD integration (plan verification, parallel execution)
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
152
153
  - Each task follows `/dw-run-task` with Level 1 validation
153
154
 
154
155
  ### Step 9: Implementation Review (Loop)
@@ -247,21 +248,13 @@ Ask the user: **"Commits completed. Do you want to generate the Pull Request?"**
247
248
  - **YES**: run `/dw-generate-pr` with the target branch
248
249
  - **NO**: inform that commits are ready and the user can generate the PR manually later
249
250
 
250
- ## GSD Integration
251
+ ## Native Engine
251
252
 
252
- <critical>When GSD is installed, ALL GSD integrations from each individual command MUST be executed. The autopilot is not an excuse to skip GSD steps.</critical>
253
-
254
- If GSD (get-shit-done-cc) is installed:
255
- - Step 1: use `/gsd-intel` for querying
256
- - Step 8: use plan verification + parallel execution
257
- - All commands: follow their individual GSD sections
258
-
259
- If GSD is NOT installed:
260
- - All commands work normally without GSD
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.
261
254
 
262
255
  ## State Persistence
263
256
 
264
- <critical>The autopilot MUST save its state after each completed step to allow resumption via `/dw-resume` in case of interruption.</critical>
257
+ <critical>The autopilot MUST save its state after each completed step to allow re-invocation on the same PRD after interruption.</critical>
265
258
 
266
259
  Save the file `.dw/spec/prd-[name]/autopilot-state.json` with the following format:
267
260
 
@@ -293,7 +286,7 @@ Save the file `.dw/spec/prd-[name]/autopilot-state.json` with the following form
293
286
 
294
287
  - Update `current_step`, `completed_steps`, and `step_artifacts` BEFORE moving to the next step
295
288
  - A step ONLY moves to `completed_steps` after verifying its artifacts exist on disk
296
- - If the session drops, `/dw-resume` will read this file and continue from the correct step and revalidate artifacts before trusting `completed_steps`
289
+ - If the session drops, re-invoke `/dw-autopilot` on the same PRD; the command reads `autopilot-state.json` and continues from the correct step, revalidating artifacts before trusting `completed_steps`
297
290
  - When the pipeline finishes (after commit or PR), remove the file or mark `"status": "completed"`
298
291
 
299
292
  <critical>After EACH completed step, display the updated progress block to the user. This is MANDATORY — the user MUST see what was done and what comes next. If a step was skipped, the reason MUST appear in the progress block.</critical>
@@ -65,7 +65,7 @@ Use this command when the user wants to:
65
65
  2. **Reframe as "How Might We"**: turn the raw idea into `How might we [verb] for [user] so that [outcome]?`. This pulls the team out of premature "solution mode".
66
66
  3. **Product Inventory (required if the product exists)**:
67
67
  - If `.dw/spec/prd-*/` has PRDs OR `.dw/rules/index.md` exists, read these artifacts to map the **current product's feature inventory** (product level, not code level).
68
- - Sources to consult: `.dw/spec/prd-*/prd.md` (Overview / Main Features / User Stories sections), `.dw/rules/index.md` and `.dw/rules/<module>.md`, `.planning/intel/` if present.
68
+ - Sources to consult: `.dw/spec/prd-*/prd.md` (Overview / Main Features / User Stories sections), `.dw/rules/index.md` and `.dw/rules/<module>.md`, `.dw/intel/` if present (queryable via `/dw-intel`).
69
69
  - Produce a **short Feature Inventory (5-12 bullets)** before diverging: "the product today does X, Y, Z".
70
70
  - If the project is greenfield (no PRDs or rules), record: "Feature Inventory: greenfield — no product artifacts yet".
71
71
  4. If essential context is missing for the user (problem, persona, expected value), ask short and objective questions before expanding.
@@ -109,7 +109,7 @@ Use this command when the user wants to:
109
109
  - Short and actionable list
110
110
  - If appropriate, suggest which command to use next:
111
111
  - `/dw-create-prd` (main successor; accepts the one-pager as input, reducing clarification questions)
112
- - `/dw-quick` (if it's a small IMPROVES that fits in a single task, ≤3 files)
112
+ - `/dw-run-task` (if it's a small IMPROVES that fits in a single task with a quick PRD)
113
113
  - `/dw-create-techspec`
114
114
  - `/dw-create-tasks`
115
115
  - `/dw-bugfix`
@@ -15,6 +15,7 @@
15
15
 
16
16
  When available in the project at `./.agents/skills/`, use these skills as contextual support without replacing this command:
17
17
 
18
+ - `dw-debug-protocol`: **ALWAYS** — runs the bug through the six-step triage (Reproduce → Localize → Reduce → Fix Root Cause → Guard → Verify End-to-End). Stop-the-line discipline; root-cause over symptom; regression test committed in the same atomic commit. Non-reproducible bugs follow the instrument-first sub-protocol — no guess fixes without explicit acknowledgement.
18
19
  - `dw-verify`: **ALWAYS** — in Direct mode, invoked before committing the fix. The VERIFICATION REPORT must show the original bug symptom no longer reproduces (not just that tests pass).
19
20
  - `vercel-react-best-practices`: use when the bug affects React/Next.js and there is suspicion of render, hydration, fetching, waterfall, bundle, or re-render issues
20
21
  - `webapp-testing`: use when the fix requires a reproducible E2E/retest flow in a web app