@brunosps00/dev-workflow 0.2.0 → 0.3.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 +88 -32
- package/lib/constants.js +6 -0
- package/lib/init.js +8 -0
- package/lib/install-deps.js +5 -0
- package/package.json +1 -1
- package/scaffold/en/commands/dw-analyze-project.md +12 -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 +27 -0
- package/scaffold/en/commands/dw-intel.md +58 -0
- package/scaffold/en/commands/dw-quick.md +74 -0
- package/scaffold/en/commands/dw-redesign-ui.md +12 -0
- package/scaffold/en/commands/dw-refactoring-analysis.md +10 -0
- package/scaffold/en/commands/dw-resume.md +60 -0
- package/scaffold/en/commands/dw-run-plan.md +35 -0
- package/scaffold/en/commands/dw-run-task.md +12 -0
- package/scaffold/pt-br/commands/dw-analyze-project.md +12 -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 +27 -0
- package/scaffold/pt-br/commands/dw-intel.md +58 -0
- package/scaffold/pt-br/commands/dw-quick.md +74 -0
- package/scaffold/pt-br/commands/dw-redesign-ui.md +12 -0
- package/scaffold/pt-br/commands/dw-refactoring-analysis.md +10 -0
- package/scaffold/pt-br/commands/dw-resume.md +60 -0
- package/scaffold/pt-br/commands/dw-run-plan.md +35 -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 22 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
|
|
|
@@ -38,18 +44,24 @@ Breaks down the PRD and TechSpec into implementable tasks with a target of ~6 ta
|
|
|
38
44
|
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
45
|
|
|
40
46
|
#### `/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.
|
|
47
|
+
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
48
|
|
|
43
49
|
#### `/dw-bugfix`
|
|
44
50
|
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
51
|
|
|
52
|
+
#### `/dw-redesign-ui`
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
#### `/dw-quick`
|
|
56
|
+
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.
|
|
57
|
+
|
|
46
58
|
### Quality
|
|
47
59
|
|
|
48
60
|
#### `/dw-run-qa`
|
|
49
61
|
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
62
|
|
|
51
63
|
#### `/dw-fix-qa`
|
|
52
|
-
Fixes bugs found during QA testing with evidence-driven retesting via Playwright MCP. Runs iterative cycles of identify
|
|
64
|
+
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
65
|
|
|
54
66
|
#### `/dw-review-implementation`
|
|
55
67
|
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 +80,55 @@ Analyzes pending changes, groups them by feature or logical context, and creates
|
|
|
68
80
|
#### `/dw-generate-pr`
|
|
69
81
|
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
82
|
|
|
71
|
-
###
|
|
83
|
+
### Intelligence
|
|
84
|
+
|
|
85
|
+
#### `/dw-resume`
|
|
86
|
+
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`.
|
|
87
|
+
|
|
88
|
+
#### `/dw-intel`
|
|
89
|
+
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
90
|
|
|
73
91
|
#### `/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,
|
|
92
|
+
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
93
|
|
|
76
94
|
#### `/dw-deep-research`
|
|
77
95
|
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
96
|
|
|
97
|
+
#### `/dw-functional-doc`
|
|
98
|
+
Generates a functional documentation dossier with screen mapping, E2E flows, and Playwright validation. Maps routes, components, and user journeys into structured documentation with evidence.
|
|
99
|
+
|
|
79
100
|
#### `/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
|
|
101
|
+
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
102
|
|
|
82
103
|
## Workflow
|
|
83
104
|
|
|
84
105
|
```
|
|
85
|
-
/dw-
|
|
86
|
-
|
|
87
|
-
/dw-create-prd --> .dw/spec/prd-{name}/prd.md
|
|
88
|
-
|
|
89
|
-
/dw-create-techspec --> .dw/spec/prd-{name}/techspec.md
|
|
90
|
-
|
|
91
|
-
/dw-create-tasks --> .dw/spec/prd-{name}/tasks.md + {N}_task.md
|
|
92
|
-
|
|
93
|
-
/dw-run-task (
|
|
94
|
-
|
|
95
|
-
/dw-run-
|
|
96
|
-
|
|
97
|
-
/dw-
|
|
98
|
-
|
|
99
|
-
/dw-
|
|
100
|
-
|
|
101
|
-
/dw-
|
|
102
|
-
|
|
103
|
-
/dw-code-review --> .dw/spec/prd-{name}/QA/dw-code-review.md
|
|
104
|
-
|
|
105
|
-
/dw-commit + /dw-generate-pr
|
|
106
|
+
/dw-resume (pick up where you left off)
|
|
107
|
+
|
|
|
108
|
+
/dw-brainstorm ------> /dw-create-prd --> .dw/spec/prd-{name}/prd.md
|
|
109
|
+
|
|
|
110
|
+
/dw-create-techspec --> .dw/spec/prd-{name}/techspec.md
|
|
111
|
+
|
|
|
112
|
+
/dw-create-tasks --> .dw/spec/prd-{name}/tasks.md + {N}_task.md
|
|
113
|
+
|
|
|
114
|
+
/dw-run-task (one at a time)
|
|
115
|
+
| or
|
|
116
|
+
/dw-run-plan (all tasks — parallel with GSD)
|
|
117
|
+
|
|
|
118
|
+
/dw-run-qa --> .dw/spec/prd-{name}/QA/
|
|
119
|
+
|
|
|
120
|
+
/dw-fix-qa (if bugs found)
|
|
121
|
+
|
|
|
122
|
+
/dw-review-implementation --> PRD compliance check
|
|
123
|
+
|
|
|
124
|
+
/dw-code-review --> .dw/spec/prd-{name}/QA/dw-code-review.md
|
|
125
|
+
|
|
|
126
|
+
/dw-commit + /dw-generate-pr
|
|
127
|
+
|
|
128
|
+
Shortcuts:
|
|
129
|
+
/dw-quick "description" One-off change with workflow guarantees
|
|
130
|
+
/dw-intel "question" Query codebase intelligence
|
|
131
|
+
/dw-redesign-ui "target" Visual redesign of a page or component
|
|
106
132
|
```
|
|
107
133
|
|
|
108
134
|
## Platform Support
|
|
@@ -112,7 +138,7 @@ Displays the complete guide of available commands, integration flows, and when t
|
|
|
112
138
|
| Claude Code | `.claude/skills/` | Full support |
|
|
113
139
|
| Codex CLI | `.agents/skills/` | Full support |
|
|
114
140
|
| Copilot | `.agents/skills/` | Full support |
|
|
115
|
-
| OpenCode | `.
|
|
141
|
+
| OpenCode | `.opencode/commands/` | Full support |
|
|
116
142
|
|
|
117
143
|
All wrappers point to `.dw/commands/` as the single source of truth.
|
|
118
144
|
|
|
@@ -121,16 +147,44 @@ All wrappers point to `.dw/commands/` as the single source of truth.
|
|
|
121
147
|
```
|
|
122
148
|
your-project/
|
|
123
149
|
├── .dw/
|
|
124
|
-
│ ├── commands/ #
|
|
150
|
+
│ ├── commands/ # 22 workflow command files
|
|
125
151
|
│ ├── templates/ # Document templates (PRD, TechSpec, etc.)
|
|
126
152
|
│ ├── rules/ # Project-specific rules (run /dw-analyze-project)
|
|
153
|
+
│ ├── references/ # Reference documentation
|
|
154
|
+
│ ├── scripts/ # Utility scripts
|
|
127
155
|
│ └── spec/ # PRD directories created by commands
|
|
128
156
|
├── .claude/
|
|
129
157
|
│ ├── skills/ # Claude Code wrappers
|
|
130
158
|
│ └── settings.json # MCP servers (Context7, Playwright)
|
|
131
|
-
|
|
159
|
+
├── .agents/skills/ # Codex/Copilot wrappers + bundled skills
|
|
160
|
+
├── .opencode/commands/ # OpenCode wrappers
|
|
161
|
+
└── .planning/ # GSD state (if installed via install-deps)
|
|
132
162
|
```
|
|
133
163
|
|
|
164
|
+
## Bundled Skills
|
|
165
|
+
|
|
166
|
+
Skills installed to `.agents/skills/` for use by all commands:
|
|
167
|
+
|
|
168
|
+
| Skill | Description | Source | License |
|
|
169
|
+
|-------|-------------|--------|---------|
|
|
170
|
+
| **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 |
|
|
171
|
+
| **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 |
|
|
172
|
+
| **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 |
|
|
173
|
+
| **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) | -- |
|
|
174
|
+
| **remotion-best-practices** | 25+ rules for video creation in React with Remotion | [Remotion](https://www.remotion.dev/) | -- |
|
|
175
|
+
| **webapp-testing** | Playwright-based browser testing toolkit for E2E validation and screenshots | [Playwright](https://playwright.dev/) | -- |
|
|
176
|
+
|
|
177
|
+
## Dependencies
|
|
178
|
+
|
|
179
|
+
Installed via `npx @brunosps00/dev-workflow install-deps`:
|
|
180
|
+
|
|
181
|
+
| Dependency | Purpose | Link |
|
|
182
|
+
|------------|---------|------|
|
|
183
|
+
| **Playwright** | Browser automation for QA, E2E tests, and visual validation | [playwright.dev](https://playwright.dev/) |
|
|
184
|
+
| **Context7 MCP** | Contextual documentation lookup for AI assistants | [upstash/context7-mcp](https://github.com/upstash/context7-mcp) |
|
|
185
|
+
| **react-doctor** | Health score and diagnostics for React projects | [react.doctor](https://www.react.doctor/) |
|
|
186
|
+
| **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) |
|
|
187
|
+
|
|
134
188
|
## Options
|
|
135
189
|
|
|
136
190
|
```bash
|
|
@@ -139,6 +193,7 @@ npx @brunosps00/dev-workflow init --lang=en # English, skip prompt
|
|
|
139
193
|
npx @brunosps00/dev-workflow init --lang=pt-br # Portuguese, skip prompt
|
|
140
194
|
npx @brunosps00/dev-workflow init --force # Overwrite existing files
|
|
141
195
|
npx @brunosps00/dev-workflow update # Update commands/templates only
|
|
196
|
+
npx @brunosps00/dev-workflow install-deps # Install Playwright, react-doctor, GSD
|
|
142
197
|
npx @brunosps00/dev-workflow help # Show help
|
|
143
198
|
```
|
|
144
199
|
|
|
@@ -149,6 +204,7 @@ After running `npx @brunosps00/dev-workflow init`:
|
|
|
149
204
|
1. **Run `/dw-analyze-project`** in your AI assistant to generate project rules
|
|
150
205
|
2. **Run `/dw-brainstorm`** to start planning a new feature
|
|
151
206
|
3. **Run `/dw-help`** to see all available commands and workflows
|
|
207
|
+
4. **(Optional) Run `npx @brunosps00/dev-workflow install-deps`** for Playwright, react-doctor, and GSD
|
|
152
208
|
|
|
153
209
|
## License
|
|
154
210
|
|
package/lib/constants.js
CHANGED
|
@@ -13,8 +13,11 @@ const COMMANDS = {
|
|
|
13
13
|
{ name: 'dw-functional-doc', description: 'Generate functional documentation dossier with screen mapping, E2E flows, and Playwright validation' },
|
|
14
14
|
{ name: 'dw-generate-pr', description: 'Generate a Pull Request with structured description' },
|
|
15
15
|
{ name: 'dw-help', description: 'Show complete guide of available commands and workflows' },
|
|
16
|
+
{ name: 'dw-intel', description: 'Query codebase intelligence to understand patterns, conventions, and architecture' },
|
|
17
|
+
{ name: 'dw-quick', description: 'Execute a one-off task with workflow guarantees without requiring a full PRD' },
|
|
16
18
|
{ name: 'dw-redesign-ui', description: 'Analyze, propose, and implement frontend page/component redesigns with design system integration' },
|
|
17
19
|
{ name: 'dw-refactoring-analysis', description: 'Audit codebase for code smells and refactoring opportunities with prioritized report' },
|
|
20
|
+
{ name: 'dw-resume', description: 'Restore session context and suggest the next workflow step' },
|
|
18
21
|
{ name: 'dw-review-implementation', description: 'Review if all PRD requirements were correctly implemented' },
|
|
19
22
|
{ name: 'dw-run-plan', description: 'Execute ALL tasks sequentially until the plan is complete' },
|
|
20
23
|
{ name: 'dw-run-qa', description: 'Run visual QA with browser automation, E2E tests, and accessibility' },
|
|
@@ -34,8 +37,11 @@ const COMMANDS = {
|
|
|
34
37
|
{ name: 'dw-functional-doc', description: 'Gerar dossie funcional com mapeamento de telas, fluxos E2E e validacao com Playwright' },
|
|
35
38
|
{ name: 'dw-generate-pr', description: 'Gerar um Pull Request com descricao estruturada' },
|
|
36
39
|
{ name: 'dw-help', description: 'Mostrar guia completo dos comandos e fluxos disponiveis' },
|
|
40
|
+
{ name: 'dw-intel', description: 'Consultar inteligencia do codebase para entender padroes, convencoes e arquitetura' },
|
|
41
|
+
{ name: 'dw-quick', description: 'Executar uma task pontual com garantias do workflow sem precisar de PRD completo' },
|
|
37
42
|
{ name: 'dw-redesign-ui', description: 'Analisar, propor e implementar redesign de paginas/componentes frontend com integracao de design system' },
|
|
38
43
|
{ name: 'dw-refactoring-analysis', description: 'Auditar codebase para code smells e oportunidades de refatoracao com relatorio priorizado' },
|
|
44
|
+
{ name: 'dw-resume', description: 'Restaurar contexto da sessao e sugerir o proximo passo do workflow' },
|
|
39
45
|
{ name: 'dw-review-implementation', description: 'Revisar se todos os requisitos do PRD foram implementados corretamente' },
|
|
40
46
|
{ name: 'dw-run-plan', description: 'Executar TODAS as tasks sequencialmente ate completar o plano' },
|
|
41
47
|
{ name: 'dw-run-qa', description: 'Executar QA visual com automacao de browser, testes E2E e acessibilidade' },
|
package/lib/init.js
CHANGED
|
@@ -128,6 +128,14 @@ async function run({ force = false, lang = null, mode = 'init' }) {
|
|
|
128
128
|
if (opcStatus === 'created') totalCreated++;
|
|
129
129
|
else totalSkipped++;
|
|
130
130
|
|
|
131
|
+
// 6.5. Clean up legacy .codex/skills/ (now served by .agents/skills/)
|
|
132
|
+
const legacyCodexDir = path.join(projectRoot, '.codex', 'skills');
|
|
133
|
+
if (require('fs').existsSync(legacyCodexDir)) {
|
|
134
|
+
console.log(' Legacy cleanup:');
|
|
135
|
+
require('fs').rmSync(legacyCodexDir, { recursive: true });
|
|
136
|
+
console.log(' Removed .codex/skills/ (now served by .agents/skills/)\n');
|
|
137
|
+
}
|
|
138
|
+
|
|
131
139
|
// 7. Generate platform wrappers
|
|
132
140
|
console.log(' Platform wrappers:');
|
|
133
141
|
const wrapperResults = generateWrappers(projectRoot, commands, managedForce);
|
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.3.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,18 @@ 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
|
+
#### Codebase Intelligence (GSD)
|
|
234
|
+
|
|
235
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
236
|
+
- After generating rules in `.dw/rules/`, delegate to `/gsd-map-codebase` to create a rich index in `.planning/intel/`
|
|
237
|
+
- The index includes: architectural assumptions, decision spaces, behavioral references, UI patterns
|
|
238
|
+
- The index is incremental — re-running adds to the existing index, does not replace
|
|
239
|
+
- Other dw-* commands can query the index via `/gsd-intel` internally
|
|
240
|
+
|
|
241
|
+
If GSD is NOT installed:
|
|
242
|
+
- Generate only `.dw/rules/` (current behavior)
|
|
243
|
+
- Suggest: "For queryable codebase intelligence, install GSD via `npx dev-workflow install-deps`"
|
|
244
|
+
|
|
233
245
|
### Step 4: Detect Code Patterns and Conventions
|
|
234
246
|
|
|
235
247
|
Read **10-20 representative source files** per module to identify actual patterns in use. For large projects, increase coverage proportionally.
|
|
@@ -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
|
+
If `.planning/intel/` exists, query before analysis:
|
|
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
|
+
If `.planning/intel/` exists, query before writing requirements:
|
|
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
|
+
If `.planning/intel/` exists, query before proposing architecture:
|
|
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,9 @@ 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 |
|
|
105
108
|
|
|
106
109
|
### Research
|
|
107
110
|
|
|
@@ -234,6 +237,21 @@ LEVEL 3 - Formal Code Review (/dw-code-review)
|
|
|
234
237
|
/dw-generate-pr main # 5. PR
|
|
235
238
|
```
|
|
236
239
|
|
|
240
|
+
### Quick Task
|
|
241
|
+
```bash
|
|
242
|
+
/dw-quick "change description" # Implement + validate + commit
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Resume Session
|
|
246
|
+
```bash
|
|
247
|
+
/dw-resume # Restore context + suggest next step
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Query Codebase
|
|
251
|
+
```bash
|
|
252
|
+
/dw-intel "how does X work in this project?" # Answer with sources
|
|
253
|
+
```
|
|
254
|
+
|
|
237
255
|
### Deep Research
|
|
238
256
|
```bash
|
|
239
257
|
/dw-deep-research "topic or question" # Multi-source research with citations
|
|
@@ -258,7 +276,10 @@ your-project/
|
|
|
258
276
|
│ │ ├── dw-review-implementation.md
|
|
259
277
|
│ │ ├── dw-analyze-project.md
|
|
260
278
|
│ │ ├── dw-deep-research.md
|
|
279
|
+
│ │ ├── dw-intel.md
|
|
280
|
+
│ │ ├── dw-quick.md
|
|
261
281
|
│ │ ├── dw-redesign-ui.md
|
|
282
|
+
│ │ ├── dw-resume.md
|
|
262
283
|
│ │ ├── dw-bugfix.md
|
|
263
284
|
│ │ ├── dw-commit.md
|
|
264
285
|
│ │ ├── dw-functional-doc.md
|
|
@@ -321,4 +342,10 @@ Commands work across multiple AI tools, all pointing to the same source `.dw/com
|
|
|
321
342
|
**Q: Does `/dw-redesign-ui` work with Angular?**
|
|
322
343
|
- 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
344
|
|
|
345
|
+
**Q: What is GSD and do I need to install it?**
|
|
346
|
+
- 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.
|
|
347
|
+
|
|
348
|
+
**Q: Does `/dw-quick` replace `/dw-run-task`?**
|
|
349
|
+
- No. `/dw-quick` is for one-off changes without a PRD. `/dw-run-task` executes tasks from a structured plan with PRD and TechSpec.
|
|
350
|
+
|
|
324
351
|
</system_instructions>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
You are a codebase intelligence assistant. This command exists to answer questions about the project using the knowledge index generated by `/dw-analyze-project`.
|
|
3
|
+
|
|
4
|
+
<critical>This command is read-only. Do NOT modify code or project files.</critical>
|
|
5
|
+
<critical>Always cite information sources (file, line, section).</critical>
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
- Use to understand how something works in the project
|
|
9
|
+
- Use to find patterns, conventions, or architectural decisions
|
|
10
|
+
- Use to verify if something already exists before implementing
|
|
11
|
+
- Do NOT use to implement changes (use `/dw-quick` or `/dw-run-task`)
|
|
12
|
+
|
|
13
|
+
## Pipeline Position
|
|
14
|
+
**Predecessor:** `/dw-analyze-project` (generates the index) | **Successor:** any dw-* command
|
|
15
|
+
|
|
16
|
+
## Input Variables
|
|
17
|
+
|
|
18
|
+
| Variable | Description | Example |
|
|
19
|
+
|----------|-------------|---------|
|
|
20
|
+
| `{{QUERY}}` | Question about the codebase | "how does authentication work?" |
|
|
21
|
+
|
|
22
|
+
## Required Behavior
|
|
23
|
+
|
|
24
|
+
1. Receive the user's question
|
|
25
|
+
2. Query knowledge sources in priority order:
|
|
26
|
+
a. `.planning/intel/` (if exists — GSD index, richer)
|
|
27
|
+
b. `.dw/rules/` (project rules, always available)
|
|
28
|
+
c. Direct codebase search (grep, glob) as complement
|
|
29
|
+
3. Synthesize the answer with concrete references
|
|
30
|
+
4. Cite sources: file, section, line when applicable
|
|
31
|
+
|
|
32
|
+
## GSD Integration
|
|
33
|
+
|
|
34
|
+
If GSD (get-shit-done-cc) is installed and `.planning/intel/` exists:
|
|
35
|
+
- Delegate to `/gsd-intel "{{QUERY}}"` for indexed lookup
|
|
36
|
+
- GSD returns information from: architectural assumptions, decision spaces, behavioral references, UI patterns
|
|
37
|
+
- Enrich with `.dw/rules/` data when relevant
|
|
38
|
+
|
|
39
|
+
If GSD is NOT installed:
|
|
40
|
+
- Use `.dw/rules/` as primary source
|
|
41
|
+
- Complement with direct codebase search (grep for patterns, read key files)
|
|
42
|
+
- Suggest: "For richer intel, run `/dw-analyze-project` with GSD installed"
|
|
43
|
+
|
|
44
|
+
## Response Format
|
|
45
|
+
|
|
46
|
+
### Answer: [topic]
|
|
47
|
+
|
|
48
|
+
[Structured answer based on consulted sources]
|
|
49
|
+
|
|
50
|
+
### Sources
|
|
51
|
+
- `.planning/intel/[file].md` — [relevant section]
|
|
52
|
+
- `.dw/rules/[file].md` — [referenced convention]
|
|
53
|
+
- `src/[path]:[line]` — [code reference]
|
|
54
|
+
|
|
55
|
+
### Related Commands
|
|
56
|
+
- [Suggestion of dw- command to act on the information]
|
|
57
|
+
|
|
58
|
+
</system_instructions>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
You are a quick task executor. This command exists to implement one-off changes with workflow guarantees (validation, atomic commit) without requiring a full PRD.
|
|
3
|
+
|
|
4
|
+
<critical>This command is for small, well-defined changes. If the change needs multiple tasks, redirect to `/dw-create-prd`.</critical>
|
|
5
|
+
<critical>ALWAYS run tests and validation before committing. Workflow guarantees are mandatory even for quick tasks.</critical>
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
- Use for small changes that don't justify the full pipeline (PRD -> TechSpec -> Tasks)
|
|
9
|
+
- Use for hotfixes, config adjustments, dependency updates, one-off refactors
|
|
10
|
+
- Do NOT use for new features with multiple requirements (use `/dw-create-prd`)
|
|
11
|
+
- Do NOT use for complex bugs (use `/dw-bugfix`)
|
|
12
|
+
|
|
13
|
+
## Pipeline Position
|
|
14
|
+
**Predecessor:** (user's ad-hoc need) | **Successor:** `/dw-commit` (automatic)
|
|
15
|
+
|
|
16
|
+
## Input Variables
|
|
17
|
+
|
|
18
|
+
| Variable | Description | Example |
|
|
19
|
+
|----------|-------------|---------|
|
|
20
|
+
| `{{DESCRIPTION}}` | Description of the change to implement | "add loading spinner to dashboard" |
|
|
21
|
+
|
|
22
|
+
## Required Behavior
|
|
23
|
+
|
|
24
|
+
1. Read `.dw/rules/` to understand project patterns and conventions
|
|
25
|
+
2. Summarize the change in 1-2 sentences and confirm scope with the user
|
|
26
|
+
3. If the change seems too large (>3 files, >100 lines), warn and suggest `/dw-create-prd`
|
|
27
|
+
4. Implement the change following project conventions
|
|
28
|
+
5. Run relevant existing tests (unit, integration)
|
|
29
|
+
6. Run lint if configured in the project
|
|
30
|
+
7. Create atomic semantic commit with the change
|
|
31
|
+
|
|
32
|
+
## GSD Integration
|
|
33
|
+
|
|
34
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
35
|
+
- Delegate to `/gsd-quick` for tracking in `.planning/quick/`
|
|
36
|
+
- The task is registered in history for future lookup via `/dw-intel`
|
|
37
|
+
|
|
38
|
+
If GSD is NOT installed:
|
|
39
|
+
- Execute directly with Level 1 validation
|
|
40
|
+
- No history tracking (only git log)
|
|
41
|
+
|
|
42
|
+
## Codebase Intelligence
|
|
43
|
+
|
|
44
|
+
If `.planning/intel/` exists, query before implementing:
|
|
45
|
+
- Internally run: `/gsd-intel "implementation patterns in [target area]"`
|
|
46
|
+
- Follow the patterns found
|
|
47
|
+
|
|
48
|
+
If `.planning/intel/` does NOT exist:
|
|
49
|
+
- Use only `.dw/rules/` as context
|
|
50
|
+
|
|
51
|
+
## Response Format
|
|
52
|
+
|
|
53
|
+
### 1. Scope
|
|
54
|
+
- Change: [description]
|
|
55
|
+
- Affected files: [list]
|
|
56
|
+
- Estimate: [small/medium]
|
|
57
|
+
|
|
58
|
+
### 2. Implementation
|
|
59
|
+
- File-by-file changes
|
|
60
|
+
|
|
61
|
+
### 3. Validation
|
|
62
|
+
- Tests run: [result]
|
|
63
|
+
- Lint: [result]
|
|
64
|
+
|
|
65
|
+
### 4. Commit
|
|
66
|
+
- Message: [semantic commit]
|
|
67
|
+
|
|
68
|
+
## Closing
|
|
69
|
+
|
|
70
|
+
At the end, inform:
|
|
71
|
+
- Change implemented and committed
|
|
72
|
+
- Whether to push or continue with more changes
|
|
73
|
+
|
|
74
|
+
</system_instructions>
|
|
@@ -61,6 +61,17 @@ Use diagnostic tools based on the project's framework:
|
|
|
61
61
|
5. Wait for explicit user approval before implementing.
|
|
62
62
|
6. **IMPLEMENT**: apply the chosen design respecting the existing stack. Use `vercel-react-best-practices` for React/Next.js. Maintain the project's CSS methodology.
|
|
63
63
|
7. **VALIDATE**: capture after-state, compare before/after, verify accessibility (WCAG 2.2 via `ui-ux-pro-max`), run react-doctor `--diff` if React.
|
|
64
|
+
8. **PERSIST CONTRACT**: if the user approved a direction, generate `design-contract.md` in the PRD directory (`.dw/spec/prd-[name]/design-contract.md`) with: approved direction, color palette, typography pairing, layout rules, accessibility rules, and component rules. This contract will be read by `dw-run-task` and `dw-run-plan` to ensure visual consistency.
|
|
65
|
+
|
|
66
|
+
## GSD Integration
|
|
67
|
+
|
|
68
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
69
|
+
- After generating the design contract, register in `.planning/` for cross-session persistence
|
|
70
|
+
- Query `.planning/intel/` in the audit phase for existing UI patterns
|
|
71
|
+
|
|
72
|
+
If GSD is NOT installed:
|
|
73
|
+
- The design contract works normally (file-based in `.dw/spec/`)
|
|
74
|
+
- Audit uses only `.dw/rules/` for context
|
|
64
75
|
|
|
65
76
|
## Preferred Response Format
|
|
66
77
|
|
|
@@ -106,6 +117,7 @@ Depending on the request, this command may produce:
|
|
|
106
117
|
- Accessibility report
|
|
107
118
|
- Design system alignment checklist
|
|
108
119
|
- Health score comparison (react-doctor)
|
|
120
|
+
- Design contract with approved direction (`.dw/spec/prd-[name]/design-contract.md`)
|
|
109
121
|
|
|
110
122
|
## Closing
|
|
111
123
|
|
|
@@ -28,6 +28,16 @@ When available in the project under `./.agents/skills/`, use these skills as ana
|
|
|
28
28
|
When the project uses React, run `npx react-doctor@latest --verbose` in the frontend directory before starting the analysis. Incorporate the health score and findings into the report's metrics section.
|
|
29
29
|
For Angular projects, use `ng lint` as an analytical complement.
|
|
30
30
|
|
|
31
|
+
## Codebase Intelligence
|
|
32
|
+
|
|
33
|
+
If `.planning/intel/` exists, query before the audit:
|
|
34
|
+
- Internally run: `/gsd-intel "tech debt, decision spaces, and known technical debt"`
|
|
35
|
+
- Contextualize findings with already documented decisions
|
|
36
|
+
- Avoid flagging as a smell something that is an intentional recorded decision
|
|
37
|
+
|
|
38
|
+
If `.planning/intel/` does NOT exist:
|
|
39
|
+
- Use `.dw/rules/` as context (current behavior)
|
|
40
|
+
|
|
31
41
|
## Input Variables
|
|
32
42
|
|
|
33
43
|
| Variable | Description | Example |
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
You are a session continuity assistant. This command exists to restore context from the last session and suggest the next workflow step.
|
|
3
|
+
|
|
4
|
+
<critical>This command is read-only. Do NOT modify code, do NOT execute tasks, do NOT create files. Only analyze state and recommend the next step.</critical>
|
|
5
|
+
|
|
6
|
+
## When to Use
|
|
7
|
+
- Use when starting a new session to pick up where you left off
|
|
8
|
+
- Use when unsure which command to run next
|
|
9
|
+
- Do NOT use in the middle of a task or plan execution
|
|
10
|
+
|
|
11
|
+
## Pipeline Position
|
|
12
|
+
**Predecessor:** (session start) | **Successor:** any dw-* command
|
|
13
|
+
|
|
14
|
+
## Required Behavior
|
|
15
|
+
|
|
16
|
+
1. Read `.dw/spec/` and identify PRDs with pending tasks (`- [ ]` checkboxes in tasks.md)
|
|
17
|
+
2. Read `git log --oneline -10` to identify the last work performed
|
|
18
|
+
3. Identify the active branch and whether there are uncommitted changes
|
|
19
|
+
4. Cross-reference: last active PRD, last completed task, next pending task
|
|
20
|
+
5. Present the summary in the format below
|
|
21
|
+
6. Suggest the next command to execute
|
|
22
|
+
|
|
23
|
+
## GSD Integration
|
|
24
|
+
|
|
25
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
26
|
+
- Delegate to `/gsd-resume-work` for cross-session state restoration from `.planning/STATE.md`
|
|
27
|
+
- Incorporate additional context: persistent threads, backlog, notes
|
|
28
|
+
|
|
29
|
+
If GSD is NOT installed:
|
|
30
|
+
- Use only `.dw/spec/` and git log as context sources
|
|
31
|
+
- Full functionality, just without advanced cross-session persistence
|
|
32
|
+
|
|
33
|
+
## Response Format
|
|
34
|
+
|
|
35
|
+
### Session Summary
|
|
36
|
+
- **Last work**: [time ago], branch [name]
|
|
37
|
+
- **Active PRD**: [PRD name]
|
|
38
|
+
- **Tasks**: [N completed] of [total]
|
|
39
|
+
- **Last completed task**: [name]
|
|
40
|
+
- **Next pending task**: [name]
|
|
41
|
+
- **Blockers**: [unresolved dependencies, if any]
|
|
42
|
+
- **Uncommitted changes**: [yes/no]
|
|
43
|
+
|
|
44
|
+
### Suggested Next Step
|
|
45
|
+
- Command: `/dw-[command] [arguments]`
|
|
46
|
+
- Reason: [why this is the logical next step]
|
|
47
|
+
|
|
48
|
+
## Heuristics
|
|
49
|
+
|
|
50
|
+
- If there are uncommitted changes, suggest `/dw-commit` first
|
|
51
|
+
- If all tasks are complete, suggest `/dw-code-review` or `/dw-run-qa`
|
|
52
|
+
- If no active PRD, suggest `/dw-brainstorm` or `/dw-create-prd`
|
|
53
|
+
- If there are pending tasks, suggest `/dw-run-task` or `/dw-run-plan`
|
|
54
|
+
- If the last task failed, suggest investigating the error before continuing
|
|
55
|
+
|
|
56
|
+
## Closing
|
|
57
|
+
|
|
58
|
+
At the end, leave the user ready to execute the next command with a single copy-paste.
|
|
59
|
+
|
|
60
|
+
</system_instructions>
|
|
@@ -141,6 +141,41 @@ If a task FAILS during execution:
|
|
|
141
141
|
4. Wait for manual intervention from the user
|
|
142
142
|
5. **DO NOT** automatically continue to the next task
|
|
143
143
|
|
|
144
|
+
## GSD Integration
|
|
145
|
+
|
|
146
|
+
### Plan Verification (Pre-Execution)
|
|
147
|
+
|
|
148
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
149
|
+
- Before starting execution, delegate to GSD's plan-checker agent
|
|
150
|
+
- The verifier analyzes: cyclic dependencies, task viability, risks, PRD requirements coverage
|
|
151
|
+
- If FAIL: present issues found and suggest fixes. Maximum 3 correction cycles
|
|
152
|
+
- If PASS: proceed to execution
|
|
153
|
+
|
|
154
|
+
If GSD is NOT installed:
|
|
155
|
+
- Skip verification and execute directly (current behavior)
|
|
156
|
+
|
|
157
|
+
### Parallel Execution (Wave-Based)
|
|
158
|
+
|
|
159
|
+
If GSD (get-shit-done-cc) is installed in the project:
|
|
160
|
+
- Analyze each task's `blockedBy` field to build the dependency graph
|
|
161
|
+
- Group tasks into waves:
|
|
162
|
+
- Wave 1: tasks with no dependencies (can run in parallel)
|
|
163
|
+
- Wave 2: tasks that depend on Wave 1 tasks
|
|
164
|
+
- Wave N: and so on
|
|
165
|
+
- Delegate each wave to GSD's parallel execution engine (`/gsd-execute-phase`)
|
|
166
|
+
- Each task runs in an isolated worktree with fresh context
|
|
167
|
+
- Results are merged after the wave completes
|
|
168
|
+
- If any task in a wave fails: pause the wave, report, await user decision
|
|
169
|
+
|
|
170
|
+
If GSD is NOT installed:
|
|
171
|
+
- Execute sequentially as today (current behavior)
|
|
172
|
+
|
|
173
|
+
### Design Contracts
|
|
174
|
+
|
|
175
|
+
If `design-contract.md` exists in the PRD directory:
|
|
176
|
+
- Include the contract in the context of each task involving frontend
|
|
177
|
+
- Validate visual consistency during Level 1 of each task
|
|
178
|
+
|
|
144
179
|
## Important Rules
|
|
145
180
|
|
|
146
181
|
<critical>ALWAYS read and follow the complete instructions in `.dw/commands/dw-run-task.md` for EACH task</critical>
|
|
@@ -21,6 +21,18 @@ When available in the project at `./.agents/skills/`, use these skills as specia
|
|
|
21
21
|
| `vercel-react-best-practices` | Task touches React rendering, hydration, data fetching, bundle, cache, or performance |
|
|
22
22
|
| `webapp-testing` | Task has interactive frontend needing E2E validation in a real browser |
|
|
23
23
|
|
|
24
|
+
## Codebase Intelligence
|
|
25
|
+
|
|
26
|
+
If `.planning/intel/` exists, query before implementing:
|
|
27
|
+
- Internally run: `/gsd-intel "implementation patterns in [task target area]"`
|
|
28
|
+
- Follow conventions found for file structure, naming, and error handling
|
|
29
|
+
|
|
30
|
+
If `design-contract.md` exists in the PRD directory:
|
|
31
|
+
- Read the contract and ensure all frontend implementation follows the approved design rules
|
|
32
|
+
|
|
33
|
+
If `.planning/intel/` does NOT exist:
|
|
34
|
+
- Use `.dw/rules/` as context (current behavior)
|
|
35
|
+
|
|
24
36
|
## File Locations
|
|
25
37
|
|
|
26
38
|
- PRD: `./spec/prd-[feature-name]/prd.md`
|
|
@@ -218,6 +218,18 @@ Para cada projeto/módulo detectado, identificar:
|
|
|
218
218
|
Quando React for detectado, execute `npx react-doctor@latest --verbose` e inclua o health score nas rules geradas como métrica baseline.
|
|
219
219
|
Para projetos Angular, execute `ng lint` e documente warnings como baseline.
|
|
220
220
|
|
|
221
|
+
#### Inteligência do Codebase (GSD)
|
|
222
|
+
|
|
223
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
224
|
+
- Após gerar as rules em `.dw/rules/`, delegue para `/gsd-map-codebase` para criar índice rico em `.planning/intel/`
|
|
225
|
+
- O índice inclui: architectural assumptions, decision spaces, behavioral references, UI patterns
|
|
226
|
+
- O índice é incremental — re-executar adiciona ao existente, não substitui
|
|
227
|
+
- Outros comandos dw-* podem consultar o índice via `/gsd-intel` internamente
|
|
228
|
+
|
|
229
|
+
Se o GSD NÃO estiver instalado:
|
|
230
|
+
- Gere apenas `.dw/rules/` (comportamento atual)
|
|
231
|
+
- Sugira: "Para inteligência queryable do codebase, instale GSD via `npx dev-workflow install-deps`"
|
|
232
|
+
|
|
221
233
|
### Passo 4: Ler Arquivos Fonte Representativos (Obrigatório)
|
|
222
234
|
|
|
223
235
|
Ler **10-20 arquivos fonte** por módulo para identificar padrões. Para projetos grandes, aumentar cobertura proporcionalmente.
|
|
@@ -24,6 +24,16 @@ Quando disponíveis no projeto em `./.agents/skills/`, use estas skills como apo
|
|
|
24
24
|
- `security-review`: use quando auth, autorização, input externo, upload, SQL, integração externa, secrets, SSRF, XSS ou superfícies sensíveis estiverem presentes
|
|
25
25
|
- `vercel-react-best-practices`: use quando o diff tocar React/Next.js para revisar padrões de renderização, fetching, bundle, hidratação e performance
|
|
26
26
|
|
|
27
|
+
## Inteligência do Codebase
|
|
28
|
+
|
|
29
|
+
Se `.planning/intel/` existir, consulte antes da análise:
|
|
30
|
+
- Execute internamente: `/gsd-intel "convenções, anti-patterns e decision spaces documentados"`
|
|
31
|
+
- Priorize findings que violem convenções documentadas
|
|
32
|
+
- Verifique se decisões arquiteturais questionáveis são intencionais (documentadas como decision spaces)
|
|
33
|
+
|
|
34
|
+
Se `.planning/intel/` NÃO existir:
|
|
35
|
+
- Use `.dw/rules/` como contexto (comportamento atual)
|
|
36
|
+
|
|
27
37
|
## Variáveis de Entrada
|
|
28
38
|
|
|
29
39
|
| Variável | Descrição | Exemplo |
|
|
@@ -32,6 +32,15 @@
|
|
|
32
32
|
- Diretório final: `.dw/spec/prd-[nome-funcionalidade]/` (relativo ao workspace root, nome em kebab-case)
|
|
33
33
|
- **IMPORTANTE**: PRDs devem ser salvos em `.dw/spec/` no workspace root, NUNCA dentro de subprojetos
|
|
34
34
|
|
|
35
|
+
## Inteligência do Codebase
|
|
36
|
+
|
|
37
|
+
Se `.planning/intel/` existir, consulte antes de redigir os requisitos:
|
|
38
|
+
- Execute internamente: `/gsd-intel "features existentes no domínio de [tópico do PRD]"`
|
|
39
|
+
- Use os findings para evitar duplicar funcionalidade existente e referenciar padrões já estabelecidos
|
|
40
|
+
|
|
41
|
+
Se `.planning/intel/` NÃO existir:
|
|
42
|
+
- Use `.dw/rules/` como contexto (comportamento atual)
|
|
43
|
+
|
|
35
44
|
## Features Multi-Projeto
|
|
36
45
|
|
|
37
46
|
Muitas funcionalidades podem envolver mais de um projeto no workspace.
|
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
- `ui-ux-pro-max`: use quando definir decisões de design system, paletas de cores, tipografia e estilo UI no TechSpec
|
|
22
22
|
- `security-review`: use quando a feature tocar auth, autorização ou manipulação de dados sensíveis
|
|
23
23
|
|
|
24
|
+
## Inteligência do Codebase
|
|
25
|
+
|
|
26
|
+
Se `.planning/intel/` existir, consulte antes de propor arquitetura:
|
|
27
|
+
- Execute internamente: `/gsd-intel "padrões arquiteturais e decisões técnicas do projeto"`
|
|
28
|
+
- Alinhe propostas com padrões existentes; sinalize desvios explicitamente
|
|
29
|
+
|
|
30
|
+
Se `.planning/intel/` NÃO existir:
|
|
31
|
+
- Use `.dw/rules/` como contexto (comportamento atual)
|
|
32
|
+
|
|
24
33
|
## Fluxograma de Decisão Multi-Projeto
|
|
25
34
|
|
|
26
35
|
```dot
|
|
@@ -89,6 +89,9 @@ Este workspace utiliza um sistema de comandos AI que automatiza o ciclo completo
|
|
|
89
89
|
| `/dw-bugfix` | Analisa e corrige bugs (triagem bug vs feature) | Target + descrição | Fix + commit OU PRD (se feature) |
|
|
90
90
|
| `/dw-fix-qa` | Corrige bugs documentados no QA e retesta com evidências | Path do PRD | Código + `QA/bugs.md` + `QA/qa-report.md` atualizados |
|
|
91
91
|
| `/dw-redesign-ui` | Audita, propõe e implementa redesign visual de páginas/componentes | Página/componente alvo | Brief de redesign + código |
|
|
92
|
+
| `/dw-quick` | Executa task pontual com garantias do workflow sem PRD | Descrição da mudança | Código + commit |
|
|
93
|
+
| `/dw-resume` | Restaura contexto da sessão e sugere próximo passo | (nenhum) | Resumo + sugestão |
|
|
94
|
+
| `/dw-intel` | Consulta inteligência do codebase sobre padrões e arquitetura | Pergunta | Resposta com fontes |
|
|
92
95
|
|
|
93
96
|
### Análise e Pesquisa
|
|
94
97
|
|
|
@@ -186,6 +189,21 @@ Este workspace utiliza um sistema de comandos AI que automatiza o ciclo completo
|
|
|
186
189
|
/dw-generate-pr main # 5. PR
|
|
187
190
|
```
|
|
188
191
|
|
|
192
|
+
### Task Rápida
|
|
193
|
+
```bash
|
|
194
|
+
/dw-quick "descrição da mudança" # Implementa + valida + commit
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Retomar Sessão
|
|
198
|
+
```bash
|
|
199
|
+
/dw-resume # Restaura contexto + sugere próximo passo
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Consultar Codebase
|
|
203
|
+
```bash
|
|
204
|
+
/dw-intel "como funciona X neste projeto?" # Resposta com fontes
|
|
205
|
+
```
|
|
206
|
+
|
|
189
207
|
### Onboarding em Projeto Novo
|
|
190
208
|
```bash
|
|
191
209
|
/dw-analyze-project # Escaneia e gera rules automaticamente
|
|
@@ -211,7 +229,10 @@ workspace/
|
|
|
211
229
|
│ │ ├── dw-refactoring-analysis.md
|
|
212
230
|
│ │ ├── dw-review-implementation.md
|
|
213
231
|
│ │ ├── dw-deep-research.md
|
|
232
|
+
│ │ ├── dw-intel.md
|
|
233
|
+
│ │ ├── dw-quick.md
|
|
214
234
|
│ │ ├── dw-redesign-ui.md
|
|
235
|
+
│ │ ├── dw-resume.md
|
|
215
236
|
│ │ ├── dw-bugfix.md
|
|
216
237
|
│ │ ├── dw-fix-qa.md
|
|
217
238
|
│ │ ├── dw-commit.md
|
|
@@ -260,4 +281,10 @@ workspace/
|
|
|
260
281
|
**Q: O `/dw-redesign-ui` funciona com Angular?**
|
|
261
282
|
- Sim. O comando é framework-agnostic. Para React usa react-doctor e `vercel-react-best-practices`; para Angular usa `ng lint` e Angular DevTools. Design visual (`ui-ux-pro-max`) funciona com qualquer framework.
|
|
262
283
|
|
|
284
|
+
**Q: O que é o GSD e preciso instalar?**
|
|
285
|
+
- GSD (get-shit-done-cc) é uma engine opcional que habilita features avançadas: execução paralela, verificação de planos, inteligência do codebase e persistência cross-sessão. Instale com `npx dev-workflow install-deps`. Sem GSD, todos os comandos funcionam normalmente.
|
|
286
|
+
|
|
287
|
+
**Q: O `/dw-quick` substitui o `/dw-run-task`?**
|
|
288
|
+
- Não. `/dw-quick` é para mudanças pontuais sem PRD. `/dw-run-task` executa tasks de um plano estruturado com PRD e TechSpec.
|
|
289
|
+
|
|
263
290
|
</system_instructions>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
Voce e um assistente de inteligencia do codebase. Este comando existe para responder perguntas sobre o projeto usando o indice de conhecimento gerado pelo `/dw-analyze-project`.
|
|
3
|
+
|
|
4
|
+
<critical>Este comando e somente leitura. NAO modifique codigo ou arquivos do projeto.</critical>
|
|
5
|
+
<critical>Sempre cite as fontes das informacoes (arquivo, linha, secao).</critical>
|
|
6
|
+
|
|
7
|
+
## Quando Usar
|
|
8
|
+
- Use para entender como algo funciona no projeto
|
|
9
|
+
- Use para encontrar padroes, convencoes ou decisoes arquiteturais
|
|
10
|
+
- Use para verificar se algo ja existe antes de implementar
|
|
11
|
+
- NAO use para implementar mudancas (use `/dw-quick` ou `/dw-run-task`)
|
|
12
|
+
|
|
13
|
+
## Posicao no Pipeline
|
|
14
|
+
**Antecessor:** `/dw-analyze-project` (gera o indice) | **Sucessor:** qualquer comando dw-*
|
|
15
|
+
|
|
16
|
+
## Variaveis de Entrada
|
|
17
|
+
|
|
18
|
+
| Variavel | Descricao | Exemplo |
|
|
19
|
+
|----------|-----------|---------|
|
|
20
|
+
| `{{QUERY}}` | Pergunta sobre o codebase | "como funciona a autenticacao?" |
|
|
21
|
+
|
|
22
|
+
## Comportamento Obrigatorio
|
|
23
|
+
|
|
24
|
+
1. Receba a pergunta do usuario
|
|
25
|
+
2. Consulte as fontes de conhecimento na ordem de prioridade:
|
|
26
|
+
a. `.planning/intel/` (se existir — indice GSD, mais rico)
|
|
27
|
+
b. `.dw/rules/` (rules do projeto, sempre disponivel)
|
|
28
|
+
c. Busca direta no codebase (grep, glob) como complemento
|
|
29
|
+
3. Sintetize a resposta com referencias concretas
|
|
30
|
+
4. Cite fontes: arquivo, secao, linha quando aplicavel
|
|
31
|
+
|
|
32
|
+
## Integracao GSD
|
|
33
|
+
|
|
34
|
+
Se o GSD (get-shit-done-cc) estiver instalado e `.planning/intel/` existir:
|
|
35
|
+
- Delegue para `/gsd-intel "{{QUERY}}"` para consulta indexada
|
|
36
|
+
- O GSD retorna informacoes de: architectural assumptions, decision spaces, behavioral references, UI patterns
|
|
37
|
+
- Enriqueca com dados de `.dw/rules/` quando relevante
|
|
38
|
+
|
|
39
|
+
Se o GSD NAO estiver instalado:
|
|
40
|
+
- Consulte `.dw/rules/` como fonte primaria
|
|
41
|
+
- Complemente com busca direta no codebase (grep por padroes, leitura de arquivos chave)
|
|
42
|
+
- Sugira: "Para intel mais rico, execute `/dw-analyze-project` com GSD instalado"
|
|
43
|
+
|
|
44
|
+
## Formato de Resposta
|
|
45
|
+
|
|
46
|
+
### Resposta: [topico]
|
|
47
|
+
|
|
48
|
+
[Resposta estruturada baseada nas fontes consultadas]
|
|
49
|
+
|
|
50
|
+
### Fontes
|
|
51
|
+
- `.planning/intel/[arquivo].md` — [secao relevante]
|
|
52
|
+
- `.dw/rules/[arquivo].md` — [convencao referenciada]
|
|
53
|
+
- `src/[caminho]:[linha]` — [referencia de codigo]
|
|
54
|
+
|
|
55
|
+
### Comandos Relacionados
|
|
56
|
+
- [Sugestao de comando dw- para agir com base na informacao]
|
|
57
|
+
|
|
58
|
+
</system_instructions>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
Voce e um executor de tasks rapidas. Este comando existe para implementar mudancas pontuais com garantias do workflow (validacao, commit atomico) sem precisar de PRD completo.
|
|
3
|
+
|
|
4
|
+
<critical>Este comando e para mudancas pequenas e bem definidas. Se a mudanca precisar de multiplas tasks, redirecione para `/dw-create-prd`.</critical>
|
|
5
|
+
<critical>SEMPRE execute testes e validacao antes de commitar. Garantias do workflow sao obrigatorias mesmo para tasks rapidas.</critical>
|
|
6
|
+
|
|
7
|
+
## Quando Usar
|
|
8
|
+
- Use para mudancas pequenas que nao justificam o pipeline completo (PRD -> TechSpec -> Tasks)
|
|
9
|
+
- Use para hotfixes, ajustes de config, atualizacoes de dependencias, refatoracoes pontuais
|
|
10
|
+
- NAO use para features novas com multiplos requisitos (use `/dw-create-prd`)
|
|
11
|
+
- NAO use para bugs complexos (use `/dw-bugfix`)
|
|
12
|
+
|
|
13
|
+
## Posicao no Pipeline
|
|
14
|
+
**Antecessor:** (necessidade pontual do usuario) | **Sucessor:** `/dw-commit` (automatico)
|
|
15
|
+
|
|
16
|
+
## Variaveis de Entrada
|
|
17
|
+
|
|
18
|
+
| Variavel | Descricao | Exemplo |
|
|
19
|
+
|----------|-----------|---------|
|
|
20
|
+
| `{{DESCRIPTION}}` | Descricao da mudanca a implementar | "adicionar spinner de loading no dashboard" |
|
|
21
|
+
|
|
22
|
+
## Comportamento Obrigatorio
|
|
23
|
+
|
|
24
|
+
1. Leia `.dw/rules/` para entender padroes e convencoes do projeto
|
|
25
|
+
2. Resuma a mudanca em 1-2 frases e confirme escopo com o usuario
|
|
26
|
+
3. Se a mudanca parecer grande demais (>3 arquivos, >100 linhas), alerte e sugira `/dw-create-prd`
|
|
27
|
+
4. Implemente a mudanca seguindo convencoes do projeto
|
|
28
|
+
5. Execute testes existentes relevantes (unit, integration)
|
|
29
|
+
6. Execute lint se configurado no projeto
|
|
30
|
+
7. Crie commit atomico semantico com a mudanca
|
|
31
|
+
|
|
32
|
+
## Integracao GSD
|
|
33
|
+
|
|
34
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
35
|
+
- Delegue para `/gsd-quick` para tracking em `.planning/quick/`
|
|
36
|
+
- A task fica registrada no historico para consulta futura via `/dw-intel`
|
|
37
|
+
|
|
38
|
+
Se o GSD NAO estiver instalado:
|
|
39
|
+
- Execute diretamente com validacao Level 1
|
|
40
|
+
- Sem tracking historico (apenas git log)
|
|
41
|
+
|
|
42
|
+
## Inteligencia do Codebase
|
|
43
|
+
|
|
44
|
+
Se `.planning/intel/` existir, consulte antes de implementar:
|
|
45
|
+
- Execute internamente: `/gsd-intel "implementation patterns in [target area]"`
|
|
46
|
+
- Siga os padroes encontrados
|
|
47
|
+
|
|
48
|
+
Se `.planning/intel/` NAO existir:
|
|
49
|
+
- Use apenas `.dw/rules/` como contexto
|
|
50
|
+
|
|
51
|
+
## Formato de Resposta
|
|
52
|
+
|
|
53
|
+
### 1. Escopo
|
|
54
|
+
- Mudanca: [descricao]
|
|
55
|
+
- Arquivos afetados: [lista]
|
|
56
|
+
- Estimativa: [pequena/media]
|
|
57
|
+
|
|
58
|
+
### 2. Implementacao
|
|
59
|
+
- Mudancas arquivo por arquivo
|
|
60
|
+
|
|
61
|
+
### 3. Validacao
|
|
62
|
+
- Testes executados: [resultado]
|
|
63
|
+
- Lint: [resultado]
|
|
64
|
+
|
|
65
|
+
### 4. Commit
|
|
66
|
+
- Mensagem: [commit semantico]
|
|
67
|
+
|
|
68
|
+
## Encerramento
|
|
69
|
+
|
|
70
|
+
Ao final, informe:
|
|
71
|
+
- Mudanca implementada e commitada
|
|
72
|
+
- Se deseja fazer push ou continuar com mais mudancas
|
|
73
|
+
|
|
74
|
+
</system_instructions>
|
|
@@ -61,6 +61,17 @@ Utilize ferramentas de diagnóstico conforme o framework do projeto:
|
|
|
61
61
|
5. Espere aprovação explícita do usuário antes de implementar.
|
|
62
62
|
6. **IMPLEMENTAR**: aplique o design escolhido respeitando a stack existente. Use `vercel-react-best-practices` para React/Next.js. Mantenha a metodologia CSS do projeto.
|
|
63
63
|
7. **VALIDAR**: capture estado depois, compare antes/depois, verifique acessibilidade (WCAG 2.2 via `ui-ux-pro-max`), rode react-doctor `--diff` se React.
|
|
64
|
+
8. **PERSISTIR CONTRATO**: se o usuário aprovou uma direção, gere `design-contract.md` no diretório do PRD (`.dw/spec/prd-[nome]/design-contract.md`) com: direção aprovada, paleta de cores, par tipográfico, regras de layout, regras de acessibilidade e regras de componentes. Este contrato será lido por `dw-run-task` e `dw-run-plan` para garantir consistência visual.
|
|
65
|
+
|
|
66
|
+
## Integração GSD
|
|
67
|
+
|
|
68
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
69
|
+
- Após gerar o design contract, registre em `.planning/` para persistência cross-sessão
|
|
70
|
+
- Consulte `.planning/intel/` na fase de auditoria para UI patterns existentes
|
|
71
|
+
|
|
72
|
+
Se o GSD NÃO estiver instalado:
|
|
73
|
+
- O design contract funciona normalmente (file-based em `.dw/spec/`)
|
|
74
|
+
- Auditoria usa apenas `.dw/rules/` para contexto
|
|
64
75
|
|
|
65
76
|
## Formato de Resposta Preferido
|
|
66
77
|
|
|
@@ -106,6 +117,7 @@ Dependendo do pedido, o comando pode produzir:
|
|
|
106
117
|
- Relatório de acessibilidade
|
|
107
118
|
- Checklist de alinhamento com design system
|
|
108
119
|
- Comparativo de health score (react-doctor)
|
|
120
|
+
- Design contract com direção aprovada (`.dw/spec/prd-[nome]/design-contract.md`)
|
|
109
121
|
|
|
110
122
|
## Encerramento
|
|
111
123
|
|
|
@@ -28,6 +28,16 @@ Quando disponíveis no projeto em `./.agents/skills/`, use como suporte analíti
|
|
|
28
28
|
Quando o projeto usar React, execute `npx react-doctor@latest --verbose` no diretório do frontend antes de iniciar a análise. Incorpore o health score e findings do react-doctor na seção de métricas do relatório.
|
|
29
29
|
Para projetos Angular, use `ng lint` como complemento analítico.
|
|
30
30
|
|
|
31
|
+
## Inteligência do Codebase
|
|
32
|
+
|
|
33
|
+
Se `.planning/intel/` existir, consulte antes da auditoria:
|
|
34
|
+
- Execute internamente: `/gsd-intel "tech debt, decision spaces e dívida técnica conhecida"`
|
|
35
|
+
- Contextualize findings com decisões já documentadas
|
|
36
|
+
- Evite sinalizar como smell algo que é uma decisão intencional registrada
|
|
37
|
+
|
|
38
|
+
Se `.planning/intel/` NÃO existir:
|
|
39
|
+
- Use `.dw/rules/` como contexto (comportamento atual)
|
|
40
|
+
|
|
31
41
|
## Variáveis de Entrada
|
|
32
42
|
|
|
33
43
|
| Variável | Descrição | Exemplo |
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<system_instructions>
|
|
2
|
+
Voce e um assistente de continuidade de sessao. Este comando existe para restaurar contexto da ultima sessao e sugerir o proximo passo do workflow.
|
|
3
|
+
|
|
4
|
+
<critical>Este comando e somente leitura. NAO modifique codigo, NAO execute tasks, NAO crie arquivos. Apenas analise o estado e recomende o proximo passo.</critical>
|
|
5
|
+
|
|
6
|
+
## Quando Usar
|
|
7
|
+
- Use ao iniciar uma nova sessao para retomar de onde parou
|
|
8
|
+
- Use quando nao souber qual comando executar em seguida
|
|
9
|
+
- NAO use no meio de uma execucao de task ou plano
|
|
10
|
+
|
|
11
|
+
## Posicao no Pipeline
|
|
12
|
+
**Antecessor:** (inicio de sessao) | **Sucessor:** qualquer comando dw-*
|
|
13
|
+
|
|
14
|
+
## Comportamento Obrigatorio
|
|
15
|
+
|
|
16
|
+
1. Leia `.dw/spec/` e identifique PRDs com tasks pendentes (checkboxes `- [ ]` em tasks.md)
|
|
17
|
+
2. Leia `git log --oneline -10` para identificar o ultimo trabalho realizado
|
|
18
|
+
3. Identifique a branch ativa e se ha mudancas nao commitadas
|
|
19
|
+
4. Cruze: ultimo PRD ativo, ultima task completada, proxima task pendente
|
|
20
|
+
5. Apresente o resumo no formato abaixo
|
|
21
|
+
6. Sugira o proximo comando a executar
|
|
22
|
+
|
|
23
|
+
## Integracao GSD
|
|
24
|
+
|
|
25
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
26
|
+
- Delegue para `/gsd-resume-work` para restaurar estado cross-sessao de `.planning/STATE.md`
|
|
27
|
+
- Incorpore contexto adicional: threads persistentes, backlog, notas
|
|
28
|
+
|
|
29
|
+
Se o GSD NAO estiver instalado:
|
|
30
|
+
- Use apenas `.dw/spec/` e git log como fontes de contexto
|
|
31
|
+
- Funcionalidade completa, apenas sem persistencia cross-sessao avancada
|
|
32
|
+
|
|
33
|
+
## Formato de Resposta
|
|
34
|
+
|
|
35
|
+
### Resumo da Sessao
|
|
36
|
+
- **Ultimo trabalho**: [tempo atras], branch [nome]
|
|
37
|
+
- **PRD ativo**: [nome do PRD]
|
|
38
|
+
- **Tasks**: [N completadas] de [total]
|
|
39
|
+
- **Ultima task completada**: [nome]
|
|
40
|
+
- **Proxima task pendente**: [nome]
|
|
41
|
+
- **Bloqueios**: [dependencias nao resolvidas, se houver]
|
|
42
|
+
- **Mudancas nao commitadas**: [sim/nao]
|
|
43
|
+
|
|
44
|
+
### Proximo Passo Sugerido
|
|
45
|
+
- Comando: `/dw-[comando] [argumentos]`
|
|
46
|
+
- Motivo: [por que este e o proximo passo logico]
|
|
47
|
+
|
|
48
|
+
## Heuristicas
|
|
49
|
+
|
|
50
|
+
- Se ha mudancas nao commitadas, sugira `/dw-commit` primeiro
|
|
51
|
+
- Se todas as tasks estao completas, sugira `/dw-code-review` ou `/dw-run-qa`
|
|
52
|
+
- Se nao ha PRD ativo, sugira `/dw-brainstorm` ou `/dw-create-prd`
|
|
53
|
+
- Se ha tasks pendentes, sugira `/dw-run-task` ou `/dw-run-plan`
|
|
54
|
+
- Se a ultima task falhou, sugira investigar o erro antes de continuar
|
|
55
|
+
|
|
56
|
+
## Encerramento
|
|
57
|
+
|
|
58
|
+
Ao final, deixe o usuario pronto para executar o proximo comando com um unico copy-paste.
|
|
59
|
+
|
|
60
|
+
</system_instructions>
|
|
@@ -134,6 +134,41 @@ Se uma tarefa FALHAR durante a execução:
|
|
|
134
134
|
4. Aguardar intervenção manual do usuário
|
|
135
135
|
5. **NÃO** continuar automaticamente para próxima task
|
|
136
136
|
|
|
137
|
+
## Integração GSD
|
|
138
|
+
|
|
139
|
+
### Verificação de Plano (Pré-Execução)
|
|
140
|
+
|
|
141
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
142
|
+
- Antes de iniciar a execução, delegue para o agente plan-checker do GSD
|
|
143
|
+
- O verificador analisa: dependências cíclicas, viabilidade das tasks, riscos, cobertura dos requisitos do PRD
|
|
144
|
+
- Se FALHAR: apresente os problemas encontrados e sugira correções. Máximo 3 ciclos de correção
|
|
145
|
+
- Se PASSAR: prossiga para a execução
|
|
146
|
+
|
|
147
|
+
Se o GSD NÃO estiver instalado:
|
|
148
|
+
- Pule a verificação e execute diretamente (comportamento atual)
|
|
149
|
+
|
|
150
|
+
### Execução Paralela (Wave-Based)
|
|
151
|
+
|
|
152
|
+
Se o GSD (get-shit-done-cc) estiver instalado no projeto:
|
|
153
|
+
- Analise o campo `blockedBy` de cada task para montar o grafo de dependências
|
|
154
|
+
- Agrupe tasks em waves:
|
|
155
|
+
- Wave 1: tasks sem dependências (podem executar em paralelo)
|
|
156
|
+
- Wave 2: tasks que dependem de tasks da Wave 1
|
|
157
|
+
- Wave N: assim por diante
|
|
158
|
+
- Delegue cada wave para o engine de execução paralela do GSD (`/gsd-execute-phase`)
|
|
159
|
+
- Cada task executa em worktree isolado com contexto fresh
|
|
160
|
+
- Resultados são mergeados após a wave completar
|
|
161
|
+
- Se qualquer task de uma wave falhar: pause a wave, reporte, aguarde decisão do usuário
|
|
162
|
+
|
|
163
|
+
Se o GSD NÃO estiver instalado:
|
|
164
|
+
- Execute sequencialmente como hoje (comportamento atual)
|
|
165
|
+
|
|
166
|
+
### Design Contracts
|
|
167
|
+
|
|
168
|
+
Se existir `design-contract.md` no diretório do PRD:
|
|
169
|
+
- Inclua o contrato no contexto de cada task que envolva frontend
|
|
170
|
+
- Valide consistência visual durante Level 1 de cada task
|
|
171
|
+
|
|
137
172
|
## Regras Importantes
|
|
138
173
|
|
|
139
174
|
<critical>SEMPRE leia e siga as instruções completas em `.dw/commands/dw-run-task.md` para CADA tarefa</critical>
|
|
@@ -21,6 +21,18 @@ Quando disponíveis no projeto em `./.agents/skills/`, use estas skills como sup
|
|
|
21
21
|
| `vercel-react-best-practices` | Task envolve renderização React, hidratação, data fetching, bundle, cache ou performance |
|
|
22
22
|
| `webapp-testing` | Task tem frontend interativo que necessita validação E2E em navegador real |
|
|
23
23
|
|
|
24
|
+
## Inteligência do Codebase
|
|
25
|
+
|
|
26
|
+
Se `.planning/intel/` existir, consulte antes de implementar:
|
|
27
|
+
- Execute internamente: `/gsd-intel "padrões de implementação em [área alvo da task]"`
|
|
28
|
+
- Siga convenções encontradas para estrutura de arquivos, nomenclatura e tratamento de erros
|
|
29
|
+
|
|
30
|
+
Se `design-contract.md` existir no diretório do PRD:
|
|
31
|
+
- Leia o contrato e garanta que toda implementação frontend siga as regras de design aprovadas
|
|
32
|
+
|
|
33
|
+
Se `.planning/intel/` NÃO existir:
|
|
34
|
+
- Use `.dw/rules/` como contexto (comportamento atual)
|
|
35
|
+
|
|
24
36
|
## Localização dos Arquivos
|
|
25
37
|
|
|
26
38
|
- PRD: `.dw/spec/prd-[nome-funcionalidade]/prd.md`
|