@brunosps00/dev-workflow 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosps00/dev-workflow",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
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"
|
|
@@ -56,18 +56,23 @@ Evaluate whether the topic requires deep research:
|
|
|
56
56
|
|
|
57
57
|
If executed, use `standard` mode by default. Incorporate findings into subsequent steps.
|
|
58
58
|
|
|
59
|
-
### Step 3: Brainstorm
|
|
59
|
+
### Step 3: Brainstorm (Interactive)
|
|
60
60
|
|
|
61
61
|
Run `/dw-brainstorm` with accumulated context (intel + research).
|
|
62
62
|
- Generate 3 directions
|
|
63
63
|
- Automatically converge on the most pragmatic option for the project context
|
|
64
64
|
- Do NOT wait for user approval (brainstorm is automatic in autopilot)
|
|
65
65
|
|
|
66
|
-
### Step 4: PRD
|
|
66
|
+
### Step 4: PRD (Interactive — 7+ Questions)
|
|
67
|
+
|
|
68
|
+
<critical>The PRD MUST include an interactive interview with the user. Ask AT LEAST 7 clarification questions BEFORE writing the PRD. Do NOT answer questions automatically based on context — the user MUST respond.</critical>
|
|
67
69
|
|
|
68
70
|
Run `/dw-create-prd` using brainstorm findings.
|
|
69
|
-
- Follow
|
|
70
|
-
-
|
|
71
|
+
- Follow ALL command instructions, especially the clarification questions section
|
|
72
|
+
- Ask at least 7 questions about: problem, target users, critical features, scope, constraints, design, integration
|
|
73
|
+
- In each question, present a recommendation grounded in brainstorm and deep-research findings (if executed). E.g.: "Based on the research, I recommend X because [evidence]. Do you agree or prefer a different direction?"
|
|
74
|
+
- Wait for user responses to each question
|
|
75
|
+
- Only after receiving all responses, write the complete PRD in `.dw/spec/prd-[name]/prd.md`
|
|
71
76
|
|
|
72
77
|
### === GATE 1: PRD Approval ===
|
|
73
78
|
|
|
@@ -78,11 +83,16 @@ Present to the user:
|
|
|
78
83
|
|
|
79
84
|
**Wait for explicit approval.** If the user requests changes, adjust and re-present.
|
|
80
85
|
|
|
81
|
-
### Step 5: TechSpec
|
|
86
|
+
### Step 5: TechSpec (Interactive — 7+ Questions)
|
|
87
|
+
|
|
88
|
+
<critical>The TechSpec MUST include an interactive interview with the user. Ask AT LEAST 7 technical clarification questions BEFORE writing the TechSpec. Do NOT answer questions automatically — the user MUST respond.</critical>
|
|
82
89
|
|
|
83
90
|
Run `/dw-create-techspec` from the approved PRD.
|
|
84
|
-
- Follow
|
|
85
|
-
-
|
|
91
|
+
- Follow ALL command instructions, especially the clarification questions section
|
|
92
|
+
- Ask at least 7 questions about: preferred architecture, existing vs new libs, testing strategy, integration with existing systems, infrastructure constraints, performance, security
|
|
93
|
+
- In each question, present a technical recommendation grounded in brainstorm, deep-research, and approved PRD findings. E.g.: "Research indicated lib X has better performance for this case [source]. Want to use X or have another preference?"
|
|
94
|
+
- Wait for user responses to each question
|
|
95
|
+
- Only after receiving all responses, generate in `.dw/spec/prd-[name]/techspec.md`
|
|
86
96
|
|
|
87
97
|
### Step 6: Tasks
|
|
88
98
|
|
|
@@ -115,6 +125,16 @@ Run `/dw-run-plan` with the PRD path.
|
|
|
115
125
|
|
|
116
126
|
### Step 9: Implementation Review (Loop)
|
|
117
127
|
|
|
128
|
+
<critical>BEFORE the PRD compliance review, run the project's build and lint. If they fail, fix and re-run until they pass. The implementation review CANNOT start with broken build or lint.</critical>
|
|
129
|
+
|
|
130
|
+
Run the project's build and lint:
|
|
131
|
+
1. Identify build and lint commands in `package.json` (scripts `build`, `lint`, `lint:fix`, `type-check`, etc.)
|
|
132
|
+
2. Run lint with `--fix` enabled (e.g., `npm run lint -- --fix` or `npx eslint . --fix`) to auto-correct what's possible
|
|
133
|
+
3. Run build (e.g., `npm run build` or `npx tsc --noEmit`)
|
|
134
|
+
4. If any fail after `--fix`: analyze errors, fix manually, and re-run
|
|
135
|
+
5. Repeat until both build AND lint pass without errors
|
|
136
|
+
6. Only then proceed to the review
|
|
137
|
+
|
|
118
138
|
Run `/dw-review-implementation` to verify PRD compliance (Level 2).
|
|
119
139
|
- If gaps found: fix automatically and re-run the review
|
|
120
140
|
- Maximum 3 correction cycles
|
|
@@ -134,6 +154,13 @@ If QA found bugs:
|
|
|
134
154
|
|
|
135
155
|
### Step 12: Implementation Review (Post-QA)
|
|
136
156
|
|
|
157
|
+
<critical>BEFORE the post-QA review, run build and lint again with --fix. QA fixes may have introduced new issues.</critical>
|
|
158
|
+
|
|
159
|
+
Run the project's build and lint (same sequence as Step 9):
|
|
160
|
+
1. Lint with `--fix` enabled
|
|
161
|
+
2. Build
|
|
162
|
+
3. If any fail: fix and re-run until they pass
|
|
163
|
+
|
|
137
164
|
Run `/dw-review-implementation` again to confirm QA fixes did not break PRD compliance.
|
|
138
165
|
- If gaps found: fix and re-run
|
|
139
166
|
- Maximum 3 cycles
|
|
@@ -56,18 +56,23 @@ Avalie se o topico necessita de pesquisa profunda:
|
|
|
56
56
|
|
|
57
57
|
Se executar, use modo `standard` por padrao. Incorpore os findings nas etapas seguintes.
|
|
58
58
|
|
|
59
|
-
### Etapa 3: Brainstorm
|
|
59
|
+
### Etapa 3: Brainstorm (Interativo)
|
|
60
60
|
|
|
61
61
|
Execute `/dw-brainstorm` com o contexto acumulado (intel + pesquisa).
|
|
62
62
|
- Gere 3 direcoes
|
|
63
63
|
- Convirja automaticamente na opcao mais pragmatica para o contexto do projeto
|
|
64
64
|
- NAO aguarde aprovacao do usuario (brainstorm e automatico no autopilot)
|
|
65
65
|
|
|
66
|
-
### Etapa 4: PRD
|
|
66
|
+
### Etapa 4: PRD (Interativo — 7+ Perguntas)
|
|
67
|
+
|
|
68
|
+
<critical>O PRD DEVE incluir entrevista interativa com o usuario. Faca NO MINIMO 7 perguntas de esclarecimento ANTES de redigir o PRD. NAO responda as perguntas automaticamente com base no contexto — o usuario DEVE responder.</critical>
|
|
67
69
|
|
|
68
70
|
Execute `/dw-create-prd` usando os findings do brainstorm.
|
|
69
|
-
- Siga
|
|
70
|
-
-
|
|
71
|
+
- Siga TODAS as instrucoes do comando, especialmente a secao de perguntas de esclarecimento
|
|
72
|
+
- Faca pelo menos 7 perguntas ao usuario sobre: problema, usuarios-alvo, funcionalidades criticas, escopo, restricoes, design, integracao
|
|
73
|
+
- Em cada pergunta, apresente uma recomendacao embasada nos findings do brainstorm e do deep-research (se executado). Ex: "Com base na pesquisa, recomendo X porque [evidencia]. Concorda ou prefere outra direcao?"
|
|
74
|
+
- Aguarde as respostas do usuario para cada pergunta
|
|
75
|
+
- So apos receber todas as respostas, redija o PRD completo em `.dw/spec/prd-[nome]/prd.md`
|
|
71
76
|
|
|
72
77
|
### ═══ GATE 1: Aprovacao do PRD ═══
|
|
73
78
|
|
|
@@ -78,11 +83,16 @@ Apresente ao usuario:
|
|
|
78
83
|
|
|
79
84
|
**Aguarde aprovacao explicita.** Se o usuario pedir mudancas, ajuste e reapresente.
|
|
80
85
|
|
|
81
|
-
### Etapa 5: TechSpec
|
|
86
|
+
### Etapa 5: TechSpec (Interativo — 7+ Perguntas)
|
|
87
|
+
|
|
88
|
+
<critical>O TechSpec DEVE incluir entrevista interativa com o usuario. Faca NO MINIMO 7 perguntas de esclarecimento tecnico ANTES de redigir o TechSpec. NAO responda as perguntas automaticamente — o usuario DEVE responder.</critical>
|
|
82
89
|
|
|
83
90
|
Execute `/dw-create-techspec` a partir do PRD aprovado.
|
|
84
|
-
- Siga
|
|
85
|
-
-
|
|
91
|
+
- Siga TODAS as instrucoes do comando, especialmente a secao de perguntas de esclarecimento
|
|
92
|
+
- Faca pelo menos 7 perguntas ao usuario sobre: arquitetura preferida, libs existentes vs novas, estrategia de testes, integracao com sistemas existentes, restricoes de infraestrutura, performance, seguranca
|
|
93
|
+
- Em cada pergunta, apresente uma recomendacao tecnica embasada nos findings do brainstorm, deep-research e PRD aprovado. Ex: "A pesquisa indicou que a lib X tem melhor performance para este caso [fonte]. Quer usar X ou tem outra preferencia?"
|
|
94
|
+
- Aguarde as respostas do usuario para cada pergunta
|
|
95
|
+
- So apos receber todas as respostas, gere em `.dw/spec/prd-[nome]/techspec.md`
|
|
86
96
|
|
|
87
97
|
### Etapa 6: Tasks
|
|
88
98
|
|
|
@@ -115,6 +125,16 @@ Execute `/dw-run-plan` com o path do PRD.
|
|
|
115
125
|
|
|
116
126
|
### Etapa 9: Review de Implementacao (Loop)
|
|
117
127
|
|
|
128
|
+
<critical>ANTES do review de PRD compliance, execute build e lint do projeto. Se falharem, corrija e re-execute ate passar. O review de implementacao NAO pode comecar com build ou lint quebrados.</critical>
|
|
129
|
+
|
|
130
|
+
Execute build e lint do projeto:
|
|
131
|
+
1. Identifique os comandos de build e lint em `package.json` (scripts `build`, `lint`, `lint:fix`, `type-check`, etc.)
|
|
132
|
+
2. Execute lint com `--fix` habilitado (ex: `npm run lint -- --fix` ou `npx eslint . --fix`) para auto-corrigir o que for possivel
|
|
133
|
+
3. Execute build (ex: `npm run build` ou `npx tsc --noEmit`)
|
|
134
|
+
4. Se algum falhar apos o `--fix`: analise os erros, corrija manualmente, e re-execute
|
|
135
|
+
5. Repita ate que build E lint passem sem erros
|
|
136
|
+
6. So entao prossiga para o review
|
|
137
|
+
|
|
118
138
|
Execute `/dw-review-implementation` para verificar PRD compliance (Level 2).
|
|
119
139
|
- Se encontrar gaps: corrija automaticamente e re-execute o review
|
|
120
140
|
- Maximo 3 ciclos de correcao
|
|
@@ -134,6 +154,13 @@ Se o QA encontrou bugs:
|
|
|
134
154
|
|
|
135
155
|
### Etapa 12: Review de Implementacao (Pos-QA)
|
|
136
156
|
|
|
157
|
+
<critical>ANTES do review pos-QA, execute build e lint novamente com --fix. Correcoes do QA podem ter introduzido novos problemas.</critical>
|
|
158
|
+
|
|
159
|
+
Execute build e lint do projeto (mesma sequencia da Etapa 9):
|
|
160
|
+
1. Lint com `--fix` habilitado
|
|
161
|
+
2. Build
|
|
162
|
+
3. Se falhar: corrija e re-execute ate passar
|
|
163
|
+
|
|
137
164
|
Execute `/dw-review-implementation` novamente para confirmar que as correcoes do QA nao quebraram PRD compliance.
|
|
138
165
|
- Se encontrar gaps: corrija e re-execute
|
|
139
166
|
- Maximo 3 ciclos
|