@brunosps00/dev-workflow 0.2.1 → 0.4.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.
- package/README.md +95 -32
- package/lib/constants.js +8 -0
- package/lib/install-deps.js +5 -0
- package/package.json +1 -1
- package/scaffold/en/commands/dw-analyze-project.md +14 -0
- package/scaffold/en/commands/dw-autopilot.md +216 -0
- package/scaffold/en/commands/dw-code-review.md +10 -0
- package/scaffold/en/commands/dw-create-prd.md +9 -0
- package/scaffold/en/commands/dw-create-techspec.md +9 -0
- package/scaffold/en/commands/dw-help.md +37 -0
- package/scaffold/en/commands/dw-intel.md +60 -0
- package/scaffold/en/commands/dw-quick.md +76 -0
- package/scaffold/en/commands/dw-redesign-ui.md +14 -0
- package/scaffold/en/commands/dw-refactoring-analysis.md +10 -0
- package/scaffold/en/commands/dw-resume.md +75 -0
- package/scaffold/en/commands/dw-run-plan.md +37 -0
- package/scaffold/en/commands/dw-run-task.md +12 -0
- package/scaffold/pt-br/commands/dw-analyze-project.md +14 -0
- package/scaffold/pt-br/commands/dw-autopilot.md +216 -0
- package/scaffold/pt-br/commands/dw-code-review.md +10 -0
- package/scaffold/pt-br/commands/dw-create-prd.md +9 -0
- package/scaffold/pt-br/commands/dw-create-techspec.md +9 -0
- package/scaffold/pt-br/commands/dw-help.md +37 -0
- package/scaffold/pt-br/commands/dw-intel.md +60 -0
- package/scaffold/pt-br/commands/dw-quick.md +76 -0
- package/scaffold/pt-br/commands/dw-redesign-ui.md +14 -0
- package/scaffold/pt-br/commands/dw-refactoring-analysis.md +10 -0
- package/scaffold/pt-br/commands/dw-resume.md +75 -0
- package/scaffold/pt-br/commands/dw-run-plan.md +37 -0
- package/scaffold/pt-br/commands/dw-run-task.md +12 -0
package/README.md
CHANGED
|
@@ -10,11 +10,17 @@ npx @brunosps00/dev-workflow init
|
|
|
10
10
|
|
|
11
11
|
This will:
|
|
12
12
|
1. Ask you to select a language (English or Portuguese)
|
|
13
|
-
2. Create `.dw/commands/` with
|
|
13
|
+
2. Create `.dw/commands/` with 23 workflow commands
|
|
14
14
|
3. Create `.dw/templates/` with document templates
|
|
15
15
|
4. Create `.dw/rules/` (populated by `/dw-analyze-project`)
|
|
16
|
-
5.
|
|
17
|
-
6.
|
|
16
|
+
5. Install bundled skills (ui-ux-pro-max, security-review, etc.) to `.agents/skills/`
|
|
17
|
+
6. Generate skill wrappers for Claude Code, Codex, Copilot, and OpenCode
|
|
18
|
+
7. Configure MCP servers (Context7 + Playwright)
|
|
19
|
+
|
|
20
|
+
Optional dependencies (Playwright browsers, react-doctor, GSD):
|
|
21
|
+
```bash
|
|
22
|
+
npx @brunosps00/dev-workflow install-deps
|
|
23
|
+
```
|
|
18
24
|
|
|
19
25
|
## Commands
|
|
20
26
|
|
|
@@ -23,6 +29,9 @@ This will:
|
|
|
23
29
|
#### `/dw-brainstorm`
|
|
24
30
|
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. No code is written or files modified.
|
|
25
31
|
|
|
32
|
+
#### `/dw-autopilot`
|
|
33
|
+
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.
|
|
34
|
+
|
|
26
35
|
#### `/dw-create-prd`
|
|
27
36
|
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`.
|
|
28
37
|
|
|
@@ -38,18 +47,24 @@ Breaks down the PRD and TechSpec into implementable tasks with a target of ~6 ta
|
|
|
38
47
|
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.
|
|
39
48
|
|
|
40
49
|
#### `/dw-run-plan`
|
|
41
|
-
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.
|
|
50
|
+
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.
|
|
42
51
|
|
|
43
52
|
#### `/dw-bugfix`
|
|
44
53
|
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.
|
|
45
54
|
|
|
55
|
+
#### `/dw-redesign-ui`
|
|
56
|
+
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.
|
|
57
|
+
|
|
58
|
+
#### `/dw-quick`
|
|
59
|
+
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.
|
|
60
|
+
|
|
46
61
|
### Quality
|
|
47
62
|
|
|
48
63
|
#### `/dw-run-qa`
|
|
49
64
|
Validates the implementation against PRD, TechSpec, and Tasks using Playwright MCP for E2E browser automation. Tests happy paths, edge cases, negative flows, and regressions while verifying WCAG 2.2 accessibility compliance. Generates a QA report, documents bugs with screenshot evidence, and detects stub/placeholder pages.
|
|
50
65
|
|
|
51
66
|
#### `/dw-fix-qa`
|
|
52
|
-
Fixes bugs found during QA testing with evidence-driven retesting via Playwright MCP. Runs iterative cycles of identify
|
|
67
|
+
Fixes bugs found during QA testing with evidence-driven retesting via Playwright MCP. Runs iterative cycles of identify, fix, retest, updating `QA/bugs.md` and `QA/qa-report.md` with status and retest evidence including screenshots and logs.
|
|
53
68
|
|
|
54
69
|
#### `/dw-review-implementation`
|
|
55
70
|
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 fixes — waits for user instruction.
|
|
@@ -68,41 +83,59 @@ Analyzes pending changes, groups them by feature or logical context, and creates
|
|
|
68
83
|
#### `/dw-generate-pr`
|
|
69
84
|
Pushes the branch to remote and creates a Pull Request on GitHub with a structured description. Collects information from the PRD and modified files, runs tests, then generates a PR body with summary, changes grouped by module, test plan, and deploy notes.
|
|
70
85
|
|
|
71
|
-
###
|
|
86
|
+
### Intelligence
|
|
87
|
+
|
|
88
|
+
#### `/dw-resume`
|
|
89
|
+
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`.
|
|
90
|
+
|
|
91
|
+
#### `/dw-intel`
|
|
92
|
+
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.
|
|
72
93
|
|
|
73
94
|
#### `/dw-analyze-project`
|
|
74
|
-
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,
|
|
95
|
+
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/`.
|
|
75
96
|
|
|
76
97
|
#### `/dw-deep-research`
|
|
77
98
|
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.
|
|
78
99
|
|
|
100
|
+
#### `/dw-functional-doc`
|
|
101
|
+
Generates a functional documentation dossier with screen mapping, E2E flows, and Playwright validation. Maps routes, components, and user journeys into structured documentation with evidence.
|
|
102
|
+
|
|
79
103
|
#### `/dw-help`
|
|
80
|
-
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
|
|
104
|
+
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.
|
|
81
105
|
|
|
82
106
|
## Workflow
|
|
83
107
|
|
|
84
108
|
```
|
|
85
|
-
/dw-
|
|
86
|
-
|
|
87
|
-
/dw-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/dw-create-
|
|
92
|
-
|
|
93
|
-
/dw-
|
|
94
|
-
|
|
95
|
-
/dw-
|
|
96
|
-
|
|
97
|
-
/dw-
|
|
98
|
-
|
|
99
|
-
/dw-
|
|
100
|
-
|
|
101
|
-
/dw-
|
|
102
|
-
|
|
103
|
-
/dw-
|
|
104
|
-
|
|
105
|
-
/dw-
|
|
109
|
+
/dw-resume (pick up where you left off)
|
|
110
|
+
|
|
|
111
|
+
/dw-autopilot "wish" ------> Runs entire pipeline automatically
|
|
112
|
+
(gates: PRD approval, Tasks approval, PR confirmation)
|
|
113
|
+
--- OR ---
|
|
114
|
+
|
|
115
|
+
/dw-brainstorm ------> /dw-create-prd --> .dw/spec/prd-{name}/prd.md
|
|
116
|
+
|
|
|
117
|
+
/dw-create-techspec --> .dw/spec/prd-{name}/techspec.md
|
|
118
|
+
|
|
|
119
|
+
/dw-create-tasks --> .dw/spec/prd-{name}/tasks.md + {N}_task.md
|
|
120
|
+
|
|
|
121
|
+
/dw-run-task (one at a time)
|
|
122
|
+
| or
|
|
123
|
+
/dw-run-plan (all tasks — parallel with GSD)
|
|
124
|
+
|
|
|
125
|
+
/dw-run-qa --> .dw/spec/prd-{name}/QA/
|
|
126
|
+
|
|
|
127
|
+
/dw-fix-qa (if bugs found)
|
|
128
|
+
|
|
|
129
|
+
/dw-review-implementation --> PRD compliance check
|
|
130
|
+
|
|
|
131
|
+
/dw-code-review --> .dw/spec/prd-{name}/QA/dw-code-review.md
|
|
132
|
+
|
|
|
133
|
+
/dw-commit + /dw-generate-pr
|
|
134
|
+
|
|
135
|
+
Shortcuts:
|
|
136
|
+
/dw-quick "description" One-off change with workflow guarantees
|
|
137
|
+
/dw-intel "question" Query codebase intelligence
|
|
138
|
+
/dw-redesign-ui "target" Visual redesign of a page or component
|
|
106
139
|
```
|
|
107
140
|
|
|
108
141
|
## Platform Support
|
|
@@ -112,7 +145,7 @@ Displays the complete guide of available commands, integration flows, and when t
|
|
|
112
145
|
| Claude Code | `.claude/skills/` | Full support |
|
|
113
146
|
| Codex CLI | `.agents/skills/` | Full support |
|
|
114
147
|
| Copilot | `.agents/skills/` | Full support |
|
|
115
|
-
| OpenCode | `.
|
|
148
|
+
| OpenCode | `.opencode/commands/` | Full support |
|
|
116
149
|
|
|
117
150
|
All wrappers point to `.dw/commands/` as the single source of truth.
|
|
118
151
|
|
|
@@ -121,16 +154,44 @@ All wrappers point to `.dw/commands/` as the single source of truth.
|
|
|
121
154
|
```
|
|
122
155
|
your-project/
|
|
123
156
|
├── .dw/
|
|
124
|
-
│ ├── commands/ #
|
|
157
|
+
│ ├── commands/ # 23 workflow command files
|
|
125
158
|
│ ├── templates/ # Document templates (PRD, TechSpec, etc.)
|
|
126
159
|
│ ├── rules/ # Project-specific rules (run /dw-analyze-project)
|
|
160
|
+
│ ├── references/ # Reference documentation
|
|
161
|
+
│ ├── scripts/ # Utility scripts
|
|
127
162
|
│ └── spec/ # PRD directories created by commands
|
|
128
163
|
├── .claude/
|
|
129
164
|
│ ├── skills/ # Claude Code wrappers
|
|
130
165
|
│ └── settings.json # MCP servers (Context7, Playwright)
|
|
131
|
-
|
|
166
|
+
├── .agents/skills/ # Codex/Copilot wrappers + bundled skills
|
|
167
|
+
├── .opencode/commands/ # OpenCode wrappers
|
|
168
|
+
└── .planning/ # GSD state (if installed via install-deps)
|
|
132
169
|
```
|
|
133
170
|
|
|
171
|
+
## Bundled Skills
|
|
172
|
+
|
|
173
|
+
Skills installed to `.agents/skills/` for use by all commands:
|
|
174
|
+
|
|
175
|
+
| Skill | Description | Source | License |
|
|
176
|
+
|-------|-------------|--------|---------|
|
|
177
|
+
| **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 |
|
|
178
|
+
| **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 |
|
|
179
|
+
| **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 |
|
|
180
|
+
| **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) | -- |
|
|
181
|
+
| **remotion-best-practices** | 25+ rules for video creation in React with Remotion | [Remotion](https://www.remotion.dev/) | -- |
|
|
182
|
+
| **webapp-testing** | Playwright-based browser testing toolkit for E2E validation and screenshots | [Playwright](https://playwright.dev/) | -- |
|
|
183
|
+
|
|
184
|
+
## Dependencies
|
|
185
|
+
|
|
186
|
+
Installed via `npx @brunosps00/dev-workflow install-deps`:
|
|
187
|
+
|
|
188
|
+
| Dependency | Purpose | Link |
|
|
189
|
+
|------------|---------|------|
|
|
190
|
+
| **Playwright** | Browser automation for QA, E2E tests, and visual validation | [playwright.dev](https://playwright.dev/) |
|
|
191
|
+
| **Context7 MCP** | Contextual documentation lookup for AI assistants | [upstash/context7-mcp](https://github.com/upstash/context7-mcp) |
|
|
192
|
+
| **react-doctor** | Health score and diagnostics for React projects | [react.doctor](https://www.react.doctor/) |
|
|
193
|
+
| **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) |
|
|
194
|
+
|
|
134
195
|
## Options
|
|
135
196
|
|
|
136
197
|
```bash
|
|
@@ -139,6 +200,7 @@ npx @brunosps00/dev-workflow init --lang=en # English, skip prompt
|
|
|
139
200
|
npx @brunosps00/dev-workflow init --lang=pt-br # Portuguese, skip prompt
|
|
140
201
|
npx @brunosps00/dev-workflow init --force # Overwrite existing files
|
|
141
202
|
npx @brunosps00/dev-workflow update # Update commands/templates only
|
|
203
|
+
npx @brunosps00/dev-workflow install-deps # Install Playwright, react-doctor, GSD
|
|
142
204
|
npx @brunosps00/dev-workflow help # Show help
|
|
143
205
|
```
|
|
144
206
|
|
|
@@ -149,6 +211,7 @@ After running `npx @brunosps00/dev-workflow init`:
|
|
|
149
211
|
1. **Run `/dw-analyze-project`** in your AI assistant to generate project rules
|
|
150
212
|
2. **Run `/dw-brainstorm`** to start planning a new feature
|
|
151
213
|
3. **Run `/dw-help`** to see all available commands and workflows
|
|
214
|
+
4. **(Optional) Run `npx @brunosps00/dev-workflow install-deps`** for Playwright, react-doctor, and GSD
|
|
152
215
|
|
|
153
216
|
## License
|
|
154
217
|
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const COMMANDS = {
|
|
2
2
|
en: [
|
|
3
3
|
{ name: 'dw-analyze-project', description: 'Analyze repository stack, patterns, and conventions to generate project rules' },
|
|
4
|
+
{ name: 'dw-autopilot', description: 'Full pipeline orchestrator: from a wish to a PR with minimal intervention (research, PRD, tasks, execution, QA, review, commit)' },
|
|
4
5
|
{ name: 'dw-brainstorm', description: 'Explore ideas and directions before starting implementation' },
|
|
5
6
|
{ name: 'dw-bugfix', description: 'Analyze and fix bugs with automatic triage (bug vs feature vs scope)' },
|
|
6
7
|
{ name: 'dw-code-review', description: 'Formal code review (Level 3) with persisted report' },
|
|
@@ -13,8 +14,11 @@ const COMMANDS = {
|
|
|
13
14
|
{ name: 'dw-functional-doc', description: 'Generate functional documentation dossier with screen mapping, E2E flows, and Playwright validation' },
|
|
14
15
|
{ name: 'dw-generate-pr', description: 'Generate a Pull Request with structured description' },
|
|
15
16
|
{ name: 'dw-help', description: 'Show complete guide of available commands and workflows' },
|
|
17
|
+
{ name: 'dw-intel', description: 'Query codebase intelligence to understand patterns, conventions, and architecture' },
|
|
18
|
+
{ name: 'dw-quick', description: 'Execute a one-off task with workflow guarantees without requiring a full PRD' },
|
|
16
19
|
{ name: 'dw-redesign-ui', description: 'Analyze, propose, and implement frontend page/component redesigns with design system integration' },
|
|
17
20
|
{ name: 'dw-refactoring-analysis', description: 'Audit codebase for code smells and refactoring opportunities with prioritized report' },
|
|
21
|
+
{ name: 'dw-resume', description: 'Restore session context and suggest the next workflow step' },
|
|
18
22
|
{ name: 'dw-review-implementation', description: 'Review if all PRD requirements were correctly implemented' },
|
|
19
23
|
{ name: 'dw-run-plan', description: 'Execute ALL tasks sequentially until the plan is complete' },
|
|
20
24
|
{ name: 'dw-run-qa', description: 'Run visual QA with browser automation, E2E tests, and accessibility' },
|
|
@@ -22,6 +26,7 @@ const COMMANDS = {
|
|
|
22
26
|
],
|
|
23
27
|
'pt-br': [
|
|
24
28
|
{ name: 'dw-analyze-project', description: 'Analisa stack, patterns e convencoes do repositorio para gerar regras do projeto' },
|
|
29
|
+
{ name: 'dw-autopilot', description: 'Orquestrador completo: de um desejo ate o PR com minima intervencao (pesquisa, PRD, tasks, execucao, QA, review, commit)' },
|
|
25
30
|
{ name: 'dw-brainstorm', description: 'Explorar ideias e direcoes antes de comecar a implementacao' },
|
|
26
31
|
{ name: 'dw-bugfix', description: 'Analisar e corrigir bugs com triagem automatica (bug vs feature vs escopo)' },
|
|
27
32
|
{ name: 'dw-code-review', description: 'Code review formal (Nivel 3) com relatorio persistido' },
|
|
@@ -34,8 +39,11 @@ const COMMANDS = {
|
|
|
34
39
|
{ name: 'dw-functional-doc', description: 'Gerar dossie funcional com mapeamento de telas, fluxos E2E e validacao com Playwright' },
|
|
35
40
|
{ name: 'dw-generate-pr', description: 'Gerar um Pull Request com descricao estruturada' },
|
|
36
41
|
{ name: 'dw-help', description: 'Mostrar guia completo dos comandos e fluxos disponiveis' },
|
|
42
|
+
{ name: 'dw-intel', description: 'Consultar inteligencia do codebase para entender padroes, convencoes e arquitetura' },
|
|
43
|
+
{ name: 'dw-quick', description: 'Executar uma task pontual com garantias do workflow sem precisar de PRD completo' },
|
|
37
44
|
{ name: 'dw-redesign-ui', description: 'Analisar, propor e implementar redesign de paginas/componentes frontend com integracao de design system' },
|
|
38
45
|
{ name: 'dw-refactoring-analysis', description: 'Auditar codebase para code smells e oportunidades de refatoracao com relatorio priorizado' },
|
|
46
|
+
{ name: 'dw-resume', description: 'Restaurar contexto da sessao e sugerir o proximo passo do workflow' },
|
|
39
47
|
{ name: 'dw-review-implementation', description: 'Revisar se todos os requisitos do PRD foram implementados corretamente' },
|
|
40
48
|
{ name: 'dw-run-plan', description: 'Executar TODAS as tasks sequencialmente ate completar o plano' },
|
|
41
49
|
{ name: 'dw-run-qa', description: 'Executar QA visual com automacao de browser, testes E2E e acessibilidade' },
|
package/lib/install-deps.js
CHANGED
|
@@ -20,6 +20,11 @@ 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
|
+
},
|
|
23
28
|
];
|
|
24
29
|
|
|
25
30
|
let installed = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosps00/dev-workflow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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,6 +230,20 @@ 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>
|
|
234
|
+
|
|
235
|
+
#### Codebase Intelligence (GSD)
|
|
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`"
|
|
246
|
+
|
|
233
247
|
### Step 4: Detect Code Patterns and Conventions
|
|
234
248
|
|
|
235
249
|
Read **10-20 representative source files** per module to identify actual patterns in use. For large projects, increase coverage proportionally.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
You are a full pipeline orchestrator. This command receives a user's wish and automatically executes the entire development flow, from research to commit, stopping only at critical gates.
|
|
3
|
+
|
|
4
|
+
<critical>This command MUST execute ALL applicable pipeline steps. Do NOT skip any step. If a step is conditional, evaluate the condition and execute if applicable.</critical>
|
|
5
|
+
<critical>The ONLY pause moments are the 3 gates defined below. Between gates, execute everything automatically without asking for confirmation.</critical>
|
|
6
|
+
<critical>Each step MUST follow the complete instructions from the corresponding command in `.dw/commands/`. Read and execute the full command, not a summarized version.</critical>
|
|
7
|
+
|
|
8
|
+
## When to Use
|
|
9
|
+
- Use when you want to go from an idea to a PR with minimal manual intervention
|
|
10
|
+
- Use for complete features that go through the entire pipeline (research, planning, execution, quality)
|
|
11
|
+
- Do NOT use for one-off changes (use `/dw-quick`)
|
|
12
|
+
- Do NOT use to fix bugs (use `/dw-bugfix`)
|
|
13
|
+
- Do NOT use when you want manual control between each phase (use individual commands)
|
|
14
|
+
|
|
15
|
+
## Pipeline Position
|
|
16
|
+
**Predecessor:** (user's wish) | **Successor:** (PR merge)
|
|
17
|
+
|
|
18
|
+
## Input Variables
|
|
19
|
+
|
|
20
|
+
| Variable | Description | Example |
|
|
21
|
+
|----------|-------------|---------|
|
|
22
|
+
| `{{WISH}}` | Description of what the user wants to build | "push notification system with per-channel preferences" |
|
|
23
|
+
|
|
24
|
+
## Approval Gates
|
|
25
|
+
|
|
26
|
+
The autopilot stops ONLY at these 3 moments:
|
|
27
|
+
|
|
28
|
+
1. **GATE 1 — PRD**: Presents the generated PRD and awaits user approval before generating techspec/tasks
|
|
29
|
+
2. **GATE 2 — Tasks**: Presents the task list and awaits approval before starting execution
|
|
30
|
+
3. **GATE 3 — PR**: After automatic commit, asks if the user wants to generate the Pull Request
|
|
31
|
+
|
|
32
|
+
## Session Resumption
|
|
33
|
+
|
|
34
|
+
If this command is invoked to resume an interrupted autopilot (via `/dw-resume`):
|
|
35
|
+
|
|
36
|
+
<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>
|
|
37
|
+
|
|
38
|
+
1. Read `.dw/spec/prd-[name]/autopilot-state.json`
|
|
39
|
+
2. Report: "Resuming autopilot from step [N] ([name]). Steps 1-[N-1] already completed."
|
|
40
|
+
3. Continue execution normally from the indicated step
|
|
41
|
+
|
|
42
|
+
## Full Pipeline
|
|
43
|
+
|
|
44
|
+
### Step 1: Codebase Intelligence
|
|
45
|
+
|
|
46
|
+
<critical>If `.planning/intel/` exists, querying it is MANDATORY before starting.</critical>
|
|
47
|
+
|
|
48
|
+
- Query `.planning/intel/` via `/gsd-intel` (if available) or `.dw/rules/` to understand project context
|
|
49
|
+
- Identify: tech stack, existing patterns, related features
|
|
50
|
+
|
|
51
|
+
### Step 2: Research (Conditional)
|
|
52
|
+
|
|
53
|
+
Evaluate whether the topic requires deep research:
|
|
54
|
+
- **YES** (run `/dw-deep-research`): new technology for the project, unknown domain, external API integrations, critical architectural decisions
|
|
55
|
+
- **NO** (skip to step 3): simple feature in an already mapped domain, refactoring existing code, basic CRUD
|
|
56
|
+
|
|
57
|
+
If executed, use `standard` mode by default. Incorporate findings into subsequent steps.
|
|
58
|
+
|
|
59
|
+
### Step 3: Brainstorm
|
|
60
|
+
|
|
61
|
+
Run `/dw-brainstorm` with accumulated context (intel + research).
|
|
62
|
+
- Generate 3 directions
|
|
63
|
+
- Automatically converge on the most pragmatic option for the project context
|
|
64
|
+
- Do NOT wait for user approval (brainstorm is automatic in autopilot)
|
|
65
|
+
|
|
66
|
+
### Step 4: PRD
|
|
67
|
+
|
|
68
|
+
Run `/dw-create-prd` using brainstorm findings.
|
|
69
|
+
- Follow all command instructions (clarification questions answered based on accumulated context)
|
|
70
|
+
- Generate the complete PRD in `.dw/spec/prd-[name]/prd.md`
|
|
71
|
+
|
|
72
|
+
### === GATE 1: PRD Approval ===
|
|
73
|
+
|
|
74
|
+
Present to the user:
|
|
75
|
+
- Summary of functional requirements
|
|
76
|
+
- Decisions made automatically
|
|
77
|
+
- Open questions (if any)
|
|
78
|
+
|
|
79
|
+
**Wait for explicit approval.** If the user requests changes, adjust and re-present.
|
|
80
|
+
|
|
81
|
+
### Step 5: TechSpec
|
|
82
|
+
|
|
83
|
+
Run `/dw-create-techspec` from the approved PRD.
|
|
84
|
+
- Follow all command instructions
|
|
85
|
+
- Generate in `.dw/spec/prd-[name]/techspec.md`
|
|
86
|
+
|
|
87
|
+
### Step 6: Tasks
|
|
88
|
+
|
|
89
|
+
Run `/dw-create-tasks` from PRD + TechSpec.
|
|
90
|
+
- Follow all command instructions
|
|
91
|
+
- Generate individual tasks in `.dw/spec/prd-[name]/`
|
|
92
|
+
|
|
93
|
+
### === GATE 2: Tasks Approval ===
|
|
94
|
+
|
|
95
|
+
Present to the user:
|
|
96
|
+
- Task list with brief descriptions
|
|
97
|
+
- Dependencies between tasks
|
|
98
|
+
- Total effort estimate
|
|
99
|
+
|
|
100
|
+
**Wait for explicit approval.** If the user requests changes, adjust and re-present.
|
|
101
|
+
|
|
102
|
+
### Step 7: Design Contract (Conditional)
|
|
103
|
+
|
|
104
|
+
Evaluate whether tasks involve frontend:
|
|
105
|
+
- **YES** (run `/dw-redesign-ui`): if there are tasks with visual components AND the `ui-ux-pro-max` skill is available
|
|
106
|
+
- Generate the design contract in `.dw/spec/prd-[name]/design-contract.md`
|
|
107
|
+
- Do NOT wait for approval (contract is automatic in autopilot, based on PRD requirements)
|
|
108
|
+
- **NO** (skip to step 8): purely backend/infra tasks
|
|
109
|
+
|
|
110
|
+
### Step 8: Execution
|
|
111
|
+
|
|
112
|
+
Run `/dw-run-plan` with the PRD path.
|
|
113
|
+
- Follow ALL command instructions, including GSD integration (plan verification, parallel execution)
|
|
114
|
+
- Each task follows `/dw-run-task` with Level 1 validation
|
|
115
|
+
|
|
116
|
+
### Step 9: Implementation Review (Loop)
|
|
117
|
+
|
|
118
|
+
Run `/dw-review-implementation` to verify PRD compliance (Level 2).
|
|
119
|
+
- If gaps found: fix automatically and re-run the review
|
|
120
|
+
- Maximum 3 correction cycles
|
|
121
|
+
- Do NOT advance to QA until the review passes
|
|
122
|
+
|
|
123
|
+
### Step 10: Visual QA
|
|
124
|
+
|
|
125
|
+
Run `/dw-run-qa` with Playwright MCP.
|
|
126
|
+
- Test happy paths, edge cases, negative flows, accessibility
|
|
127
|
+
- Document bugs with screenshots
|
|
128
|
+
|
|
129
|
+
### Step 11: Fix QA (Conditional)
|
|
130
|
+
|
|
131
|
+
If QA found bugs:
|
|
132
|
+
- Run `/dw-fix-qa` to fix and retest
|
|
133
|
+
- Loop until stable
|
|
134
|
+
|
|
135
|
+
### Step 12: Implementation Review (Post-QA)
|
|
136
|
+
|
|
137
|
+
Run `/dw-review-implementation` again to confirm QA fixes did not break PRD compliance.
|
|
138
|
+
- If gaps found: fix and re-run
|
|
139
|
+
- Maximum 3 cycles
|
|
140
|
+
|
|
141
|
+
### Step 13: Code Review
|
|
142
|
+
|
|
143
|
+
Run `/dw-code-review` (Level 3) for formal review.
|
|
144
|
+
- Generate persisted report
|
|
145
|
+
|
|
146
|
+
### Step 14: Commit
|
|
147
|
+
|
|
148
|
+
Run `/dw-commit` automatically.
|
|
149
|
+
- Semantic commits following Conventional Commits
|
|
150
|
+
- Do NOT wait for approval
|
|
151
|
+
|
|
152
|
+
### === GATE 3: Pull Request ===
|
|
153
|
+
|
|
154
|
+
Ask the user: **"Commits completed. Do you want to generate the Pull Request?"**
|
|
155
|
+
|
|
156
|
+
- **YES**: run `/dw-generate-pr` with the target branch
|
|
157
|
+
- **NO**: inform that commits are ready and the user can generate the PR manually later
|
|
158
|
+
|
|
159
|
+
## GSD Integration
|
|
160
|
+
|
|
161
|
+
<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>
|
|
162
|
+
|
|
163
|
+
If GSD (get-shit-done-cc) is installed:
|
|
164
|
+
- Step 1: use `/gsd-intel` for querying
|
|
165
|
+
- Step 8: use plan verification + parallel execution
|
|
166
|
+
- All commands: follow their individual GSD sections
|
|
167
|
+
|
|
168
|
+
If GSD is NOT installed:
|
|
169
|
+
- All commands work normally without GSD
|
|
170
|
+
|
|
171
|
+
## State Persistence
|
|
172
|
+
|
|
173
|
+
<critical>The autopilot MUST save its state after each completed step to allow resumption via `/dw-resume` in case of interruption.</critical>
|
|
174
|
+
|
|
175
|
+
Save the file `.dw/spec/prd-[name]/autopilot-state.json` with the following format:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"mode": "autopilot",
|
|
180
|
+
"wish": "original user description",
|
|
181
|
+
"prd_path": ".dw/spec/prd-[name]",
|
|
182
|
+
"current_step": 8,
|
|
183
|
+
"completed_steps": [1, 2, 3, 4, 5, 6, 7],
|
|
184
|
+
"skipped_steps": [2],
|
|
185
|
+
"gates_passed": ["prd", "tasks"],
|
|
186
|
+
"started_at": "2026-04-10T14:30:00Z",
|
|
187
|
+
"last_updated": "2026-04-10T15:45:00Z"
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- Update `current_step` and `completed_steps` BEFORE starting each step
|
|
192
|
+
- If the session drops, `/dw-resume` will read this file and continue from the correct step
|
|
193
|
+
- When the pipeline finishes (after commit or PR), remove the file or mark `"status": "completed"`
|
|
194
|
+
|
|
195
|
+
## Progress Format
|
|
196
|
+
|
|
197
|
+
During execution, report progress in this format:
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
=== AUTOPILOT =====================================
|
|
201
|
+
OK [1/14] Codebase Intelligence
|
|
202
|
+
OK [2/14] Research (skipped — known domain)
|
|
203
|
+
OK [3/14] Brainstorm
|
|
204
|
+
OK [4/14] PRD
|
|
205
|
+
PAUSE [GATE 1] Awaiting PRD approval...
|
|
206
|
+
===================================================
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Closing
|
|
210
|
+
|
|
211
|
+
At the end, present:
|
|
212
|
+
- PR link (if generated)
|
|
213
|
+
- Summary: steps executed, steps skipped, estimated time saved
|
|
214
|
+
- Suggested next steps (merge, deploy, etc.)
|
|
215
|
+
|
|
216
|
+
</system_instructions>
|
|
@@ -24,6 +24,16 @@ When available in the project under `./.agents/skills/`, use these skills as ana
|
|
|
24
24
|
- `security-review`: use when auth, authorization, external input, upload, SQL, external integration, secrets, SSRF, XSS, or sensitive surfaces are present
|
|
25
25
|
- `vercel-react-best-practices`: use when the diff touches React/Next.js to review rendering, fetching, bundle, hydration, and performance patterns
|
|
26
26
|
|
|
27
|
+
## Codebase Intelligence
|
|
28
|
+
|
|
29
|
+
<critical>If `.planning/intel/` exists, querying it is MANDATORY before writing requirements. Do NOT skip this step.</critical>
|
|
30
|
+
- Internally run: `/gsd-intel "documented conventions, anti-patterns, and decision spaces"`
|
|
31
|
+
- Prioritize findings that violate documented conventions
|
|
32
|
+
- Check if questionable architectural decisions are intentional (documented as decision spaces)
|
|
33
|
+
|
|
34
|
+
If `.planning/intel/` does NOT exist:
|
|
35
|
+
- Use `.dw/rules/` as context (current behavior)
|
|
36
|
+
|
|
27
37
|
## Input Variables
|
|
28
38
|
|
|
29
39
|
| Variable | Description | Example |
|
|
@@ -32,6 +32,15 @@
|
|
|
32
32
|
- Final directory: `.dw/spec/prd-[feature-name]/` (relative to workspace root, name in kebab-case)
|
|
33
33
|
- **IMPORTANT**: PRDs must be saved in `.dw/spec/` at the workspace root, NEVER inside subprojects
|
|
34
34
|
|
|
35
|
+
## Codebase Intelligence
|
|
36
|
+
|
|
37
|
+
<critical>If `.planning/intel/` exists, querying it is MANDATORY before writing requirements. Do NOT skip this step.</critical>
|
|
38
|
+
- Internally run: `/gsd-intel "existing features in the [PRD topic] domain"`
|
|
39
|
+
- Use findings to avoid duplicating existing functionality and reference established patterns
|
|
40
|
+
|
|
41
|
+
If `.planning/intel/` does NOT exist:
|
|
42
|
+
- Use `.dw/rules/` as context (current behavior)
|
|
43
|
+
|
|
35
44
|
## Multi-Project Features
|
|
36
45
|
|
|
37
46
|
Many features may involve more than one project in the workspace (e.g., a feature may impact both frontend and backend, or multiple services).
|
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
- `ui-ux-pro-max`: use when defining design system decisions, color palettes, typography, and UI style for the TechSpec
|
|
22
22
|
- `security-review`: use when the feature touches auth, authorization, or sensitive data handling
|
|
23
23
|
|
|
24
|
+
## Codebase Intelligence
|
|
25
|
+
|
|
26
|
+
<critical>If `.planning/intel/` exists, querying it is MANDATORY before writing requirements. Do NOT skip this step.</critical>
|
|
27
|
+
- Internally run: `/gsd-intel "architectural patterns and technical decisions in the project"`
|
|
28
|
+
- Align proposals with existing patterns; flag deviations explicitly
|
|
29
|
+
|
|
30
|
+
If `.planning/intel/` does NOT exist:
|
|
31
|
+
- Use `.dw/rules/` as context (current behavior)
|
|
32
|
+
|
|
24
33
|
## Multi-Project Decision Flowchart
|
|
25
34
|
|
|
26
35
|
```dot
|
|
@@ -102,6 +102,10 @@ This workspace uses an AI command system that automates the full development cyc
|
|
|
102
102
|
| `/dw-bugfix` | Analyzes and fixes bugs (bug vs feature triage) | Target + description | Fix + commit OR PRD (if feature) |
|
|
103
103
|
| `/dw-fix-qa` | Fixes documented QA bugs and retests with evidence | PRD path | Code + `QA/bugs.md` + `QA/qa-report.md` updated |
|
|
104
104
|
| `/dw-redesign-ui` | Audits, proposes, and implements visual redesign of pages/components | Target page/component | Redesign brief + code |
|
|
105
|
+
| `/dw-quick` | Execute a one-off task with workflow guarantees without PRD | Change description | Code + commit |
|
|
106
|
+
| `/dw-resume` | Restore session context and suggest next step | (none) | Summary + suggestion |
|
|
107
|
+
| `/dw-intel` | Query codebase intelligence about patterns and architecture | Question | Answer with sources |
|
|
108
|
+
| `/dw-autopilot` | Full pipeline orchestrator: from a wish to a PR with minimal intervention | Wish description | PRD + code + commits + PR |
|
|
105
109
|
|
|
106
110
|
### Research
|
|
107
111
|
|
|
@@ -234,6 +238,26 @@ LEVEL 3 - Formal Code Review (/dw-code-review)
|
|
|
234
238
|
/dw-generate-pr main # 5. PR
|
|
235
239
|
```
|
|
236
240
|
|
|
241
|
+
### Autopilot (Full Pipeline)
|
|
242
|
+
```bash
|
|
243
|
+
/dw-autopilot "description of what you want to build" # Research → PRD → Tasks → Code → QA → PR
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Quick Task
|
|
247
|
+
```bash
|
|
248
|
+
/dw-quick "change description" # Implement + validate + commit
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Resume Session
|
|
252
|
+
```bash
|
|
253
|
+
/dw-resume # Restore context + suggest next step
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Query Codebase
|
|
257
|
+
```bash
|
|
258
|
+
/dw-intel "how does X work in this project?" # Answer with sources
|
|
259
|
+
```
|
|
260
|
+
|
|
237
261
|
### Deep Research
|
|
238
262
|
```bash
|
|
239
263
|
/dw-deep-research "topic or question" # Multi-source research with citations
|
|
@@ -257,8 +281,12 @@ your-project/
|
|
|
257
281
|
│ │ ├── dw-refactoring-analysis.md
|
|
258
282
|
│ │ ├── dw-review-implementation.md
|
|
259
283
|
│ │ ├── dw-analyze-project.md
|
|
284
|
+
│ │ ├── dw-autopilot.md
|
|
260
285
|
│ │ ├── dw-deep-research.md
|
|
286
|
+
│ │ ├── dw-intel.md
|
|
287
|
+
│ │ ├── dw-quick.md
|
|
261
288
|
│ │ ├── dw-redesign-ui.md
|
|
289
|
+
│ │ ├── dw-resume.md
|
|
262
290
|
│ │ ├── dw-bugfix.md
|
|
263
291
|
│ │ ├── dw-commit.md
|
|
264
292
|
│ │ ├── dw-functional-doc.md
|
|
@@ -321,4 +349,13 @@ Commands work across multiple AI tools, all pointing to the same source `.dw/com
|
|
|
321
349
|
**Q: Does `/dw-redesign-ui` work with Angular?**
|
|
322
350
|
- Yes. The command is framework-agnostic. For React it uses react-doctor and `vercel-react-best-practices`; for Angular it uses `ng lint` and Angular DevTools. Visual design (`ui-ux-pro-max`) works with any framework.
|
|
323
351
|
|
|
352
|
+
**Q: What is GSD and do I need to install it?**
|
|
353
|
+
- GSD (get-shit-done-cc) is an optional engine that enables advanced features: parallel execution, plan verification, codebase intelligence, and cross-session persistence. Install with `npx dev-workflow install-deps`. Without GSD, all commands work normally.
|
|
354
|
+
|
|
355
|
+
**Q: Does `/dw-quick` replace `/dw-run-task`?**
|
|
356
|
+
- No. `/dw-quick` is for one-off changes without a PRD. `/dw-run-task` executes tasks from a structured plan with PRD and TechSpec.
|
|
357
|
+
|
|
358
|
+
**Q: Does `/dw-autopilot` replace all other commands?**
|
|
359
|
+
- No. It orchestrates existing commands in sequence. You can still use each command individually for manual control. Autopilot is for when you want to go from a wish to a PR with minimal intervention.
|
|
360
|
+
|
|
324
361
|
</system_instructions>
|