@brunosps00/dev-workflow 2.2.0 → 2.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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +46 -0
- package/README.md +12 -4
- package/lib/constants.js +24 -24
- package/lib/init.js +8 -0
- package/lib/instruction-health.js +38 -0
- package/lib/post-update.js +2 -1
- package/lib/validate.js +3 -1
- package/package.json +1 -1
- package/scaffold/config/routing.json +61 -23
- package/scaffold/en/agent-instructions.md +31 -137
- package/scaffold/en/commands/dw-analyze-project.md +2 -0
- package/scaffold/en/commands/dw-autopilot.md +22 -245
- package/scaffold/en/commands/dw-bugfix.md +9 -35
- package/scaffold/en/commands/dw-claude-run.md +29 -45
- package/scaffold/en/commands/dw-codex-run.md +30 -45
- package/scaffold/en/commands/dw-context-budget.md +6 -14
- package/scaffold/en/commands/dw-copilot-run.md +29 -41
- package/scaffold/en/commands/dw-generate-pr.md +2 -2
- package/scaffold/en/commands/dw-goal.md +11 -5
- package/scaffold/en/commands/dw-help.md +2 -2
- package/scaffold/en/commands/dw-plan.md +14 -7
- package/scaffold/en/commands/dw-qa.md +2 -0
- package/scaffold/en/commands/dw-resume.md +5 -11
- package/scaffold/en/commands/dw-review.md +4 -3
- package/scaffold/en/commands/dw-run.md +19 -166
- package/scaffold/en/commands/dw-skill-health.md +7 -0
- package/scaffold/en/commands/dw-update.md +18 -4
- package/scaffold/en/references/command-routing.md +53 -0
- package/scaffold/en/references/execution-contract.md +55 -0
- package/scaffold/en/templates/frontend-quality-template.md +43 -0
- package/scaffold/en/templates/task-template.md +20 -40
- package/scaffold/en/templates/tasks-template.md +9 -6
- package/scaffold/en/templates/techspec-template.md +4 -0
- package/scaffold/pt-br/agent-instructions.md +31 -137
- package/scaffold/pt-br/commands/dw-analyze-project.md +2 -0
- package/scaffold/pt-br/commands/dw-autopilot.md +22 -245
- package/scaffold/pt-br/commands/dw-bugfix.md +9 -35
- package/scaffold/pt-br/commands/dw-claude-run.md +29 -46
- package/scaffold/pt-br/commands/dw-codex-run.md +30 -45
- package/scaffold/pt-br/commands/dw-context-budget.md +6 -14
- package/scaffold/pt-br/commands/dw-copilot-run.md +29 -43
- package/scaffold/pt-br/commands/dw-generate-pr.md +2 -2
- package/scaffold/pt-br/commands/dw-goal.md +11 -5
- package/scaffold/pt-br/commands/dw-help.md +2 -2
- package/scaffold/pt-br/commands/dw-plan.md +14 -7
- package/scaffold/pt-br/commands/dw-qa.md +2 -0
- package/scaffold/pt-br/commands/dw-resume.md +7 -11
- package/scaffold/pt-br/commands/dw-review.md +4 -3
- package/scaffold/pt-br/commands/dw-run.md +19 -166
- package/scaffold/pt-br/commands/dw-skill-health.md +7 -0
- package/scaffold/pt-br/commands/dw-update.md +18 -4
- package/scaffold/pt-br/references/command-routing.md +53 -0
- package/scaffold/pt-br/references/execution-contract.md +55 -0
- package/scaffold/pt-br/templates/frontend-quality-template.md +43 -0
- package/scaffold/pt-br/templates/task-template.md +20 -40
- package/scaffold/pt-br/templates/tasks-template.md +9 -6
- package/scaffold/pt-br/templates/techspec-template.md +4 -0
- package/scaffold/scripts/lib/workflow-contract.mjs +101 -0
- package/scaffold/skill-registry.json +23 -23
- package/scaffold/skills/dw-cli-run/SKILL.md +33 -217
- package/scaffold/skills/dw-cli-run/references/dispatch-tuning.md +14 -72
- package/scaffold/skills/dw-codebase-intel/SKILL.md +5 -39
- package/scaffold/skills/dw-codebase-intel/agents/intel-updater.md +1 -1
- package/scaffold/skills/dw-codebase-intel/references/agents-detail.md +7 -0
- package/scaffold/skills/dw-codebase-intel/references/files-in-dw-intel-detail.md +16 -0
- package/scaffold/skills/dw-codebase-intel/references/how-dw-intel-reads-this-detail.md +12 -0
- package/scaffold/skills/dw-codebase-intel/references/how-to-compose-the-typical-flow-detail.md +11 -0
- package/scaffold/skills/dw-council/SKILL.md +2 -17
- package/scaffold/skills/dw-council/references/integration-with-other-dw-commands-detail.md +7 -0
- package/scaffold/skills/dw-council/references/phase-2-tensions-and-rebuttals-detail.md +15 -0
- package/scaffold/skills/dw-domain-modeling/SKILL.md +1 -1
- package/scaffold/skills/dw-execute-phase/SKILL.md +12 -32
- package/scaffold/skills/dw-execute-phase/agents/executor.md +15 -252
- package/scaffold/skills/dw-execute-phase/agents/plan-checker.md +4 -207
- package/scaffold/skills/dw-execute-phase/references/atomic-commits.md +8 -18
- package/scaffold/skills/dw-execute-phase/references/de-sloppify-pass-optional-cleanup-task-detail.md +12 -0
- package/scaffold/skills/dw-execute-phase/references/deviation-rules-during-execution-detail.md +8 -0
- package/scaffold/skills/dw-execute-phase/references/how-the-two-agents-compose-detail.md +7 -0
- package/scaffold/skills/dw-execute-phase/references/plan-verification.md +9 -155
- package/scaffold/skills/dw-execute-phase/references/wave-coordination.md +6 -97
- package/scaffold/skills/dw-git-discipline/SKILL.md +2 -2
- package/scaffold/skills/dw-grilling/SKILL.md +1 -1
- package/scaffold/skills/dw-incident-response/SKILL.md +1 -64
- package/scaffold/skills/dw-incident-response/references/the-five-phases-detail.md +66 -0
- package/scaffold/skills/dw-llm-eval/SKILL.md +5 -53
- package/scaffold/skills/dw-llm-eval/references/agent-tool-use-evaluation-detail.md +23 -0
- package/scaffold/skills/dw-llm-eval/references/anti-patterns-will-block-in-dw-review-code-only-detail.md +9 -0
- package/scaffold/skills/dw-llm-eval/references/consistency-run-to-run-stability-detail.md +10 -0
- package/scaffold/skills/dw-llm-eval/references/integration-with-dev-workflow-commands-detail.md +6 -0
- package/scaffold/skills/dw-llm-eval/references/the-oracle-ladder-detail.md +15 -0
- package/scaffold/skills/dw-memory/SKILL.md +4 -50
- package/scaffold/skills/dw-memory/references/context-budget.md +8 -56
- package/scaffold/skills/dw-memory/references/promotion-decision-test-detail.md +30 -0
- package/scaffold/skills/dw-minimalism/SKILL.md +4 -5
- package/scaffold/skills/dw-review-rigor/SKILL.md +1 -54
- package/scaffold/skills/dw-review-rigor/references/the-five-rules-detail.md +56 -0
- package/scaffold/skills/dw-simplification/SKILL.md +2 -55
- package/scaffold/skills/dw-simplification/references/pattern-recognition-detail.md +11 -0
- package/scaffold/skills/dw-simplification/references/the-five-rules-detail.md +48 -0
- package/scaffold/skills/dw-source-grounding/SKILL.md +1 -56
- package/scaffold/skills/dw-source-grounding/references/the-protocol-detect-fetch-implement-cite-detail.md +58 -0
- package/scaffold/skills/dw-testing-discipline/SKILL.md +25 -177
- package/scaffold/skills/dw-testing-discipline/references/agent-guardrails.md +9 -167
- package/scaffold/skills/dw-testing-discipline/references/core-rules.md +3 -3
- package/scaffold/skills/dw-testing-discipline/references/mutation-testing.md +19 -0
- package/scaffold/skills/dw-testing-discipline/references/patterns.md +3 -12
- package/scaffold/skills/dw-ui-discipline/SKILL.md +2 -59
- package/scaffold/skills/dw-ui-discipline/references/frontend-engineering.md +46 -0
- package/scaffold/skills/dw-ui-discipline/references/the-four-grounding-questions-detail.md +61 -0
- package/scaffold/skills/dw-verify/SKILL.md +26 -148
- package/scaffold/skills/dw-verify/references/verification-discovery-and-attribution.md +2 -2
- package/scaffold/skills/humanizer/SKILL.md +2 -1
- package/scaffold/skills/security-review/SKILL.md +3 -183
- package/scaffold/skills/security-review/references/do-not-flag-detail.md +49 -0
- package/scaffold/skills/security-review/references/quick-patterns-reference-detail.md +56 -0
- package/scaffold/skills/security-review/references/review-process-detail.md +84 -0
- package/scaffold/skills/vercel-react-best-practices/SKILL.md +1 -90
- package/scaffold/skills/vercel-react-best-practices/references/quick-reference-detail.md +92 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-workflow",
|
|
3
3
|
"description": "Standalone, à-la-carte skills from the dev-workflow pipeline: minimalism, search-first, simplification, verification, security review, and more.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bruno Santos"
|
|
7
7
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,52 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
10
10
|
> those versions were released, so they are summaries of what shipped, not
|
|
11
11
|
> contemporaneous release notes. `git log` remains the authoritative record.
|
|
12
12
|
|
|
13
|
+
## [2.3.0] — 2026-09-09
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Task execution contracts with per-task tool, model, effort, agent and fallback
|
|
18
|
+
choices, dependency validation and persistent execution state. Schema 1.0 plans
|
|
19
|
+
remain supported with local execution defaults.
|
|
20
|
+
- Instruction size and routed-reference validation in `npm run validate`, with
|
|
21
|
+
regression tests for missing resources and byte/discovery budget violations.
|
|
22
|
+
- Frontend engineering guidance and EN/PT-BR quality baseline templates integrated
|
|
23
|
+
into project analysis, planning, review and QA. Controls cover API contracts,
|
|
24
|
+
types, import boundaries, code reachability, duplication and gradual CI adoption.
|
|
25
|
+
- Scoped mutation-testing guidance that investigates behavioral gaps and cache
|
|
26
|
+
validity without introducing a universal score threshold.
|
|
27
|
+
- Managed `routing-defaults.json` for comparing current model candidates while
|
|
28
|
+
preserving owner routing. Upgrade checks cover legacy plans and template overrides.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Approved implementation plans continue through execution, correction and
|
|
33
|
+
validation without a mandatory second invocation. Publication remains subject
|
|
34
|
+
to the user's authorization.
|
|
35
|
+
- Claude, Codex and Copilot runner instructions use approved task assignments,
|
|
36
|
+
explicit session identity and parent review. New-install model routing defaults
|
|
37
|
+
are updated; existing owner configuration is preserved.
|
|
38
|
+
- Installed root instructions are approximately 62% smaller. Detailed command
|
|
39
|
+
routing and conditional skill procedures move into references loaded as needed.
|
|
40
|
+
- Verification reuses inspectable passing evidence only while command, inputs,
|
|
41
|
+
environment and scope remain equivalent. Required project checks still apply.
|
|
42
|
+
- Planning and testing guidance favors behavior and risk over fixed task/file
|
|
43
|
+
quotas, blanket parallelism, universal coverage targets and score-only approval.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- Resume guidance preserves partial work and avoids blind latest-session recovery
|
|
48
|
+
or destructive retries. Dependent tasks retain a coherent worktree history.
|
|
49
|
+
- Removed contradictory mutation-testing guidance and aligned EN/PT-BR review,
|
|
50
|
+
goal and resume behavior with the continuous execution contract.
|
|
51
|
+
- Humanizer's upstream version is preserved under supported skill metadata.
|
|
52
|
+
- `/dw-update` reads installed versions from `.dw/install-state.json` instead of
|
|
53
|
+
resolving an npm package that may only exist in the `npx` execution environment.
|
|
54
|
+
|
|
55
|
+
Validation: 129 tests pass; registry, instruction and plugin checks pass.
|
|
56
|
+
Install/update and package checks include the new resources. External provider
|
|
57
|
+
dispatches and frontend analysis tools were not exercised against live projects.
|
|
58
|
+
|
|
13
59
|
## [2.2.0] — 2026-08-24
|
|
14
60
|
|
|
15
61
|
Release driven by two operational failures observed on a real project, both of the
|
package/README.md
CHANGED
|
@@ -42,13 +42,13 @@ Exportable skills (no `.dw/` pipeline required): `dw-minimalism`, `dw-search-fir
|
|
|
42
42
|
|
|
43
43
|
## Commands
|
|
44
44
|
|
|
45
|
-
dev-workflow v2.
|
|
45
|
+
dev-workflow v2.3.0 ships **41 commands** organized into four tiers. Most users only invoke Tier 1 + Tier 2.
|
|
46
46
|
|
|
47
47
|
### Tier 1 — Gateway (4)
|
|
48
48
|
|
|
49
49
|
| Command | When |
|
|
50
50
|
|---------|------|
|
|
51
|
-
| **`/dw-autopilot "wish"`** |
|
|
51
|
+
| **`/dw-autopilot "wish"`** | Plan and approve task execution assignments, then continue through implementation, review and validation. Cross-tool workers return to the parent; merge/push/publication follow existing authorization. |
|
|
52
52
|
| **`/dw-bugfix "description"`** | A bug report or pasted error. Triages bug-vs-feature-vs-scope, surgical fix or routes to a PRD. |
|
|
53
53
|
| **`/dw-triage [item]`** | An external bug report, feature request, or PR. Checks whether it already exists and whether it was rejected before, verifies the claim, then routes to `/dw-bugfix`, `/dw-plan prd`, or `/dw-brainstorm --mode=grill`. Local-first in `.dw/triage/`; works with no network and no `gh`. |
|
|
54
54
|
| **`/dw-help [keyword]`** | Discover commands. Pass a keyword for shortcuts; `--advanced` reveals internal commands. |
|
|
@@ -112,8 +112,8 @@ These are auto-invoked by Tier 1-3 commands. Available standalone via `/dw-help
|
|
|
112
112
|
## Workflow
|
|
113
113
|
|
|
114
114
|
```
|
|
115
|
-
/dw-autopilot "wish" ------>
|
|
116
|
-
|
|
115
|
+
/dw-autopilot "wish" ------> PRD → TechSpec → Tasks + execution assignments → approval
|
|
116
|
+
→ /dw-goal → Security Gate → validated delivery → authorized publication
|
|
117
117
|
--- OR step-by-step ---
|
|
118
118
|
|
|
119
119
|
/dw-opportunities --> /dw-brainstorm --> /dw-plan --> .dw/spec/prd-{name}/{prd,techspec,tasks}.md
|
|
@@ -315,6 +315,8 @@ These are not slash commands — they are primitives other commands call to enfo
|
|
|
315
315
|
|
|
316
316
|
## Dependencies
|
|
317
317
|
|
|
318
|
+
Frontend engineering guidance is loaded when planning or reviewing frontend data flow, dependencies or quality tooling. `/dw-analyze-project` documents the module's existing controls and gaps; `/dw-plan` carries accepted changes into tasks; `/dw-review` and `/dw-qa` use applicable evidence. The localized `frontend-quality-template.md` distinguishes required checks, advisory diagnostics and deferred proposals. API contracts, architecture checks and scoped mutation analysis complement the visual UI skill. Tool installation and CI policy changes remain scoped to the consumer project's task.
|
|
319
|
+
|
|
318
320
|
Installed via `npx @brunosps00/dev-workflow install-deps`:
|
|
319
321
|
|
|
320
322
|
| Dependency | Purpose | Link |
|
|
@@ -442,3 +444,9 @@ Skill description format ("pushy" trigger phrases ≤200 chars, "Use when X. Tri
|
|
|
442
444
|
## License
|
|
443
445
|
|
|
444
446
|
MIT
|
|
447
|
+
|
|
448
|
+
### Task execution across tools
|
|
449
|
+
|
|
450
|
+
During `/dw-plan tasks`, review the proposed complexity, local/cross-tool executor, model, effort and agents for each task. Claude can delegate to `/dw-codex-run`, and Codex to `/dw-claude-run`. Approval carries through implementation, review and corrections; the parent continues after each worker handoff. A planning-only request still ends with the plan.
|
|
451
|
+
|
|
452
|
+
Existing task documents remain compatible and default to local execution. Updates preserve your `.dw/config/routing.json`; new model candidates are proposals to verify against your account, not silent upgrades. See [workflow modernization](docs/model-workflow-modernization.md) for the execution contract, evidence reuse and validation limits.
|
package/lib/constants.js
CHANGED
|
@@ -2,13 +2,13 @@ const COMMANDS = {
|
|
|
2
2
|
en: [
|
|
3
3
|
{ name: 'dw-adr', description: 'Records an architectural decision and the trade-offs accepted, before they get lost. --scope=repo writes .dw/adrs/ (works before any PRD); --scope=prd writes under the active PRD. Gated on hard-to-reverse + surprising + genuine trade-off.' },
|
|
4
4
|
{ name: 'dw-analyze-project', description: 'Scans the repo to learn its stack and conventions, then writes the rules other commands rely on.' },
|
|
5
|
-
{ name: 'dw-autopilot', description: '
|
|
6
|
-
{ name: 'dw-brainstorm', description: '
|
|
5
|
+
{ name: 'dw-autopilot', description: 'Plan a multi-component implementation, approve task execution assignments, then continue through implementation, review and validation.' },
|
|
6
|
+
{ name: 'dw-brainstorm', description: 'Explore unresolved product or architecture choices for a concrete idea; use grill for stateful alignment, research for unknowns, or council for competing approaches.' },
|
|
7
7
|
{ name: 'dw-bugfix', description: 'Trigger when user reports a bug, pastes an error, or describes broken behavior. Triages with three questions, then fixes or routes to PRD.' },
|
|
8
|
-
{ name: 'dw-claude-run', userInvoked: true, description: '
|
|
9
|
-
{ name: 'dw-codex-run', userInvoked: true, description: '
|
|
8
|
+
{ name: 'dw-claude-run', userInvoked: true, description: 'Run an approved task through Claude CLI in a dedicated worktree; return a durable session and evidence to the parent.' },
|
|
9
|
+
{ name: 'dw-codex-run', userInvoked: true, description: 'Run an approved task through Codex CLI in a dedicated worktree; return a durable session and evidence to the parent.' },
|
|
10
10
|
{ name: 'dw-commit', description: 'Trigger when implementation is complete and pending changes need to be committed. Atomic commits with Conventional Commits messages.' },
|
|
11
|
-
{ name: 'dw-copilot-run', userInvoked: true, description: '
|
|
11
|
+
{ name: 'dw-copilot-run', userInvoked: true, description: 'Run an approved task through Copilot CLI in a dedicated worktree; return a durable session and evidence to the parent.' },
|
|
12
12
|
{ name: 'dw-dockerize', description: 'Reads a project, detects the stack and runtime deps, then proposes Dockerfile and docker-compose for dev and prod with explicit trade-offs.' },
|
|
13
13
|
{ name: 'dw-find-skills', description: 'Searches the npx skills ecosystem for a skill matching what you need, vets it, and installs it where you choose.' },
|
|
14
14
|
{ name: 'dw-functional-doc', description: 'Maps screens and user flows into a functional doc, validated end-to-end with Playwright.' },
|
|
@@ -17,41 +17,41 @@ const COMMANDS = {
|
|
|
17
17
|
{ name: 'dw-help', description: 'Lists primary commands and the flows that connect them. Pass --advanced to see internal/hidden commands.' },
|
|
18
18
|
{ name: 'dw-context-budget', description: 'Audits context overhead from commands, skills, agents, instructions, and MCPs; recommends token savings.' },
|
|
19
19
|
{ name: 'dw-harness-audit', description: 'Runs a deterministic health scorecard for dev-workflow installation, agents, MCPs, gates, and context discipline.' },
|
|
20
|
-
{ name: 'dw-install-aws-skills', description: '
|
|
20
|
+
{ name: 'dw-install-aws-skills', description: 'Install selected AWS expertise and configure the AWS MCP integration when requested.' },
|
|
21
21
|
{ name: 'dw-install-azure-skills', description: 'Trigger when user asks to install Azure expertise, setup Microsoft docs MCP, or add Azure agent skills. Opt-in: clones curated skills from MicrosoftDocs/Agent-Skills into .agents/skills/azure/ and registers the Microsoft Learn MCP server.' },
|
|
22
22
|
{ name: 'dw-intel', description: 'Codebase intelligence: query mode (default) answers questions citing .dw/intel/ + .dw/rules/; --build mode (re)builds the index.' },
|
|
23
23
|
{ name: 'dw-learn', description: 'Synthesizes durable decisions, bugfixes, deviations, and git history into atomic confidence-weighted instincts you approve; can propose constitution principles. On-demand and human-in-the-loop — no always-on observer.' },
|
|
24
24
|
{ name: 'dw-new-project', description: 'Interviews you about stack and infra, then scaffolds a working monorepo with docker-compose for dev, .env, scripts, CI, and seeded rules.' },
|
|
25
|
-
{ name: 'dw-open-design', userInvoked: true, description: '
|
|
25
|
+
{ name: 'dw-open-design', userInvoked: true, description: 'Generate or iterate Open Design HTML prototypes through the od CLI, including screenshot-based redesign and visual verification.' },
|
|
26
26
|
{ name: 'dw-opportunities', description: 'Scans the installed project for product, UX, automation, refactor, and security opportunities, then routes each idea to the right next dw-* command.' },
|
|
27
27
|
{ name: 'dw-pause', description: 'Trigger when user says "pause work", "end session", or "save where we are". Consolidates open loops, decisions, blockers, and todos into .dw/STATE.md so the next session can resume.' },
|
|
28
|
-
{ name: 'dw-plan', description: '
|
|
28
|
+
{ name: 'dw-plan', description: 'Produce PRD, architecture and tasks, with local/cross-tool executor, model, effort and agent proposals by task complexity.' },
|
|
29
29
|
{ name: 'dw-qa', description: 'Trigger when user wants to validate behavior beyond unit tests. Mode-aware (UI / API / --ai / --uat). --fix enters the iterative QA + fix-retest loop. --bugfix <slug> targets a .dw/bugfixes/ entry.' },
|
|
30
30
|
{ name: 'dw-redesign-ui', description: 'Audits a frontend page, proposes design directions you choose from, then ships the redesign.' },
|
|
31
31
|
{ name: 'dw-refactor', description: 'Audits a target for refactor opportunities using the refactor-audit protocol, Fowler smells, deep-modules analysis, and behavior-preserving test gates.' },
|
|
32
|
-
{ name: 'dw-report', description: '
|
|
32
|
+
{ name: 'dw-report', description: 'Report progress periodically during authorized long-running work; persist updates and stop reporting when the work ends.' },
|
|
33
33
|
{ name: 'dw-resume', description: 'Trigger when user says "resume work", "where did we stop?", or starts a session in a project with an existing .dw/STATE.md. Reads STATE.md, presents a TLDR, and suggests the next dw-* command.' },
|
|
34
34
|
{ name: 'dw-review', description: 'Trigger when user asks to review code, check quality, or verify PR readiness. Default runs L2 (PRD coverage) + L3 (code quality). Flags --coverage-only / --code-only / --bugfix <slug> / --since <ref>.' },
|
|
35
35
|
{ name: 'dw-run', description: 'Trigger when user wants to execute tasks. Default runs all pending in dependency order; \'run <task-id>\' runs one; \'run --resume\' continues an interrupted plan.' },
|
|
36
|
-
{ name: 'dw-secure-audit', description: '
|
|
36
|
+
{ name: 'dw-secure-audit', description: 'Audit relevant code and dependencies for security findings using available scanners; validate exploitability and enforce blocking findings.' },
|
|
37
37
|
{ name: 'dw-skill-health', description: 'Audits installed skills and agents for bloat, duplication, missing references, and stale or unused modules.' },
|
|
38
38
|
{ name: 'dw-subtask-start', userInvoked: true, description: 'Creates a minimal input packet for a subagent without injecting the parent transcript.' },
|
|
39
39
|
{ name: 'dw-subtask-complete', userInvoked: true, description: 'Records a structured subagent handoff with result, files, decisions, risks, verification, and blockers.' },
|
|
40
40
|
{ name: 'dw-subtask-resume', userInvoked: true, description: 'Consumes pending subagent handoffs, summarizes them for the parent, and archives the local packets.' },
|
|
41
41
|
{ name: 'dw-triage', description: 'Local-first intake for external bug reports, feature requests, and PRs. Persists .dw/triage/ state, checks redundancy and prior rejections, verifies claims, then routes to /dw-bugfix, /dw-plan prd, /dw-brainstorm --mode=grill, or no work.' },
|
|
42
|
-
{ name: 'dw-worktree', description: '
|
|
42
|
+
{ name: 'dw-worktree', description: 'Create prepared worktrees, inspect their state, clean safely merged worktrees, or integrate an explicitly authorized branch.' },
|
|
43
43
|
{ name: 'dw-update', description: 'Updates dev-workflow to the latest npm release in-place, with a snapshot you can roll back to.' },
|
|
44
44
|
],
|
|
45
45
|
'pt-br': [
|
|
46
46
|
{ name: 'dw-adr', description: 'Registra uma decisao arquitetural e os trade-offs aceitos, antes que se percam. --scope=repo escreve em .dw/adrs/ (funciona antes de qualquer PRD); --scope=prd escreve sob o PRD ativo. Gated em dificil-de-reverter + surpreendente + trade-off real.' },
|
|
47
47
|
{ name: 'dw-analyze-project', description: 'Escaneia o repo para aprender stack e convencoes, e escreve as regras que os outros commands usam.' },
|
|
48
|
-
{ name: 'dw-autopilot', description: '
|
|
49
|
-
{ name: 'dw-brainstorm', description: '
|
|
48
|
+
{ name: 'dw-autopilot', description: 'Planeja implementação multicomponente, aprova escolhas de execução por task e continua por implementação, review e validação.' },
|
|
49
|
+
{ name: 'dw-brainstorm', description: 'Explora escolhas pendentes de produto ou arquitetura; grill para alinhamento com estado, pesquisa para lacunas e council para alternativas concorrentes.' },
|
|
50
50
|
{ name: 'dw-bugfix', description: 'Trigger quando usuario reporta bug, cola erro ou descreve comportamento quebrado. Tria com tres perguntas, depois corrige ou roteia pra PRD.' },
|
|
51
|
-
{ name: 'dw-claude-run', userInvoked: true, description: '
|
|
52
|
-
{ name: 'dw-codex-run', userInvoked: true, description: '
|
|
51
|
+
{ name: 'dw-claude-run', userInvoked: true, description: 'Executa task aprovada pela CLI Claude em worktree dedicado; retorna sessão durável e evidências ao parent.' },
|
|
52
|
+
{ name: 'dw-codex-run', userInvoked: true, description: 'Executa task aprovada pela CLI Codex em worktree dedicado; retorna sessão durável e evidências ao parent.' },
|
|
53
53
|
{ name: 'dw-commit', description: 'Trigger quando implementacao esta completa e ha mudancas pendentes pra commit. Commits atomicos com mensagens Conventional Commits.' },
|
|
54
|
-
{ name: 'dw-copilot-run', userInvoked: true, description: '
|
|
54
|
+
{ name: 'dw-copilot-run', userInvoked: true, description: 'Executa task aprovada pela CLI Copilot em worktree dedicado; retorna sessão durável e evidências ao parent.' },
|
|
55
55
|
{ name: 'dw-dockerize', description: 'Le um projeto, detecta stack e deps de runtime, e propoe Dockerfile e docker-compose para dev e prod com trade-offs explicitos.' },
|
|
56
56
|
{ name: 'dw-find-skills', description: 'Busca no ecossistema npx skills uma skill que resolva o que voce precisa, valida e instala onde voce escolher.' },
|
|
57
57
|
{ name: 'dw-functional-doc', description: 'Mapeia telas e fluxos em um dossie funcional, validado E2E com Playwright.' },
|
|
@@ -60,29 +60,29 @@ const COMMANDS = {
|
|
|
60
60
|
{ name: 'dw-help', description: 'Lista comandos primarios e fluxos que os conectam. Passe --advanced para ver comandos internos/escondidos.' },
|
|
61
61
|
{ name: 'dw-context-budget', description: 'Audita overhead de contexto em comandos, skills, agentes, instrucoes e MCPs; recomenda economia de tokens.' },
|
|
62
62
|
{ name: 'dw-harness-audit', description: 'Roda um scorecard deterministico da instalacao dev-workflow, agentes, MCPs, gates e disciplina de contexto.' },
|
|
63
|
-
{ name: 'dw-install-aws-skills', description: '
|
|
64
|
-
{ name: 'dw-install-azure-skills', description: 'Trigger quando usuario pede pra instalar expertise Azure, configurar MCP do Microsoft docs, ou adicionar agent skills Azure.
|
|
63
|
+
{ name: 'dw-install-aws-skills', description: 'Instala expertise AWS selecionada e configura integração MCP AWS quando solicitado.' },
|
|
64
|
+
{ name: 'dw-install-azure-skills', description: 'Trigger quando usuario pede pra instalar expertise Azure, configurar MCP do Microsoft docs, ou adicionar agent skills Azure.' },
|
|
65
65
|
{ name: 'dw-intel', description: 'Inteligencia do codebase: modo query (default) responde citando .dw/intel/ + .dw/rules/; modo --build (re)constroi indice.' },
|
|
66
66
|
{ name: 'dw-learn', description: 'Sintetiza decisoes duraveis, bugfixes, deviations e historico git em instincts atomicos ponderados por confianca que voce aprova; pode propor principios de constitution. On-demand e human-in-the-loop — sem observador sempre-ligado.' },
|
|
67
67
|
{ name: 'dw-new-project', description: 'Entrevista voce sobre stack e infra, depois faz scaffold de um monorepo com docker-compose para dev, .env, scripts, CI e rules seed.' },
|
|
68
|
-
{ name: 'dw-open-design', userInvoked: true, description: '
|
|
68
|
+
{ name: 'dw-open-design', userInvoked: true, description: 'Gera ou itera protótipos HTML Open Design pela CLI od, incluindo redesign por screenshots e verificação visual.' },
|
|
69
69
|
{ name: 'dw-opportunities', description: 'Escaneia o projeto instalado por oportunidades de produto, UX, automacao, refactor e seguranca, e roteia cada ideia para o proximo comando dw-* correto.' },
|
|
70
70
|
{ name: 'dw-pause', description: 'Trigger quando usuario diz "pausa o trabalho", "encerra a sessao" ou "salva onde paramos". Consolida pontas soltas, decisoes, bloqueios e todos em .dw/STATE.md para a proxima sessao retomar.' },
|
|
71
|
-
{ name: 'dw-plan', description: '
|
|
71
|
+
{ name: 'dw-plan', description: 'Produz PRD, arquitetura e tasks com propostas de executor local/cruzado, modelo, esforço e agentes por complexidade.' },
|
|
72
72
|
{ name: 'dw-qa', description: 'Trigger quando usuario quer validar comportamento alem de unit tests. Mode-aware (UI / API / --ai / --uat). --fix entra no loop iterativo QA + fix-retest. --bugfix <slug> aponta para uma entrada em .dw/bugfixes/.' },
|
|
73
73
|
{ name: 'dw-redesign-ui', description: 'Audita uma pagina frontend, propoe direcoes de design que voce escolhe, e entrega o redesign.' },
|
|
74
74
|
{ name: 'dw-refactor', description: 'Audita um target por oportunidades de refactor usando o protocolo refactor-audit, smells Fowler, deep-modules e gates de teste preservando comportamento.' },
|
|
75
|
-
{ name: 'dw-report', description: '
|
|
75
|
+
{ name: 'dw-report', description: 'Reporta progresso periódico durante trabalho longo autorizado; persiste atualizações e encerra quando o trabalho termina.' },
|
|
76
76
|
{ name: 'dw-resume', description: 'Trigger quando usuario diz "retoma", "onde paramos?" ou comeca sessao num projeto com .dw/STATE.md existente. Le STATE.md, apresenta TLDR e sugere proximo comando dw-*.' },
|
|
77
77
|
{ name: 'dw-review', description: 'Trigger quando usuário pede pra revisar código, checar qualidade ou validar prontidão pra PR. Default roda L2 (cobertura PRD) + L3 (qualidade). Flags --coverage-only / --code-only / --bugfix <slug> / --since <ref>.' },
|
|
78
78
|
{ name: 'dw-run', description: 'Trigger quando usuario quer executar tasks. Default roda todas pendentes em ordem de dependencia; \'run <task-id>\' roda uma; \'run --resume\' continua plan interrompido.' },
|
|
79
|
-
{ name: 'dw-secure-audit', description: '
|
|
79
|
+
{ name: 'dw-secure-audit', description: 'Audita código e dependências relevantes com scanners disponíveis; valida explorabilidade e aplica achados bloqueantes.' },
|
|
80
80
|
{ name: 'dw-skill-health', description: 'Audita skills e agentes instalados por bloat, duplicacao, referencias quebradas e modulos sem uso.' },
|
|
81
81
|
{ name: 'dw-subtask-start', userInvoked: true, description: 'Cria um input packet minimo para subagente sem injetar transcript bruto do parent.' },
|
|
82
82
|
{ name: 'dw-subtask-complete', userInvoked: true, description: 'Registra handoff estruturado do subagente com resultado, arquivos, decisoes, riscos, verificacao e bloqueios.' },
|
|
83
83
|
{ name: 'dw-subtask-resume', userInvoked: true, description: 'Consome handoffs pendentes de subagentes, resume para o parent e arquiva os pacotes locais.' },
|
|
84
|
-
{ name: 'dw-triage', description: 'Intake local-first para bug reports, feature requests e PRs externos.
|
|
85
|
-
{ name: 'dw-worktree', description: '
|
|
84
|
+
{ name: 'dw-triage', description: 'Intake local-first para bug reports, feature requests e PRs externos.' },
|
|
85
|
+
{ name: 'dw-worktree', description: 'Cria worktrees preparados, inspeciona estado, limpa worktrees integrados com segurança ou integra branch explicitamente autorizada.' },
|
|
86
86
|
{ name: 'dw-update', description: 'Atualiza o dev-workflow para o release mais recente no npm, com snapshot para rollback.' },
|
|
87
87
|
],
|
|
88
88
|
};
|
package/lib/init.js
CHANGED
|
@@ -202,6 +202,13 @@ async function run({ force = false, lang = null, mode = 'init', profile = null,
|
|
|
202
202
|
const cfgDir = path.join(projectRoot, '.dw', 'config');
|
|
203
203
|
ensureDir(cfgDir);
|
|
204
204
|
const routingDest = path.join(cfgDir, 'routing.json');
|
|
205
|
+
// Refresh the candidate reference without replacing active owner choices.
|
|
206
|
+
const defaultsDest = path.join(cfgDir, 'routing-defaults.json');
|
|
207
|
+
const defaultsStatus = writeFile(defaultsDest, require('fs').readFileSync(routingSrc, 'utf-8'), managedForce);
|
|
208
|
+
if (defaultsStatus === 'created') totalCreated++;
|
|
209
|
+
else if (defaultsStatus === 'overwritten') totalOverwritten++;
|
|
210
|
+
else totalSkipped++;
|
|
211
|
+
touchedFiles.push(defaultsDest);
|
|
205
212
|
const rtStatus = writeFile(routingDest, require('fs').readFileSync(routingSrc, 'utf-8'), false);
|
|
206
213
|
if (rtStatus === 'created') totalCreated++;
|
|
207
214
|
else totalSkipped++;
|
|
@@ -419,6 +426,7 @@ async function run({ force = false, lang = null, mode = 'init', profile = null,
|
|
|
419
426
|
managedFiles: listManagedFiles(projectRoot, touchedFiles),
|
|
420
427
|
});
|
|
421
428
|
console.log(` Install state: ${path.relative(projectRoot, path.join(projectRoot, '.dw', 'install-state.json'))} (${installState.managed_files.length} files tracked)\n`);
|
|
429
|
+
console.log(` Installed version: ${priorState?.version || 'unknown'} -> ${installState.version}\n`);
|
|
422
430
|
|
|
423
431
|
// 10. Summary
|
|
424
432
|
console.log(` ${'='.repeat(40)}`);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { COMMANDS } = require('./constants');
|
|
4
|
+
|
|
5
|
+
const LIMITS = { instructions: 6000, skill: 8000, description: 250 };
|
|
6
|
+
|
|
7
|
+
function inspectInstructions(root = path.join(__dirname, '..')) {
|
|
8
|
+
const issues = [];
|
|
9
|
+
const metrics = { instructions: {}, descriptions: {}, skills: {} };
|
|
10
|
+
for (const locale of ['en', 'pt-br']) {
|
|
11
|
+
const file = path.join(root, 'scaffold', locale, 'agent-instructions.md');
|
|
12
|
+
metrics.instructions[locale] = fs.statSync(file).size;
|
|
13
|
+
if (metrics.instructions[locale] > LIMITS.instructions) issues.push(`${locale} installed instructions exceed ${LIMITS.instructions} bytes`);
|
|
14
|
+
metrics.descriptions[locale] = 0;
|
|
15
|
+
for (const command of COMMANDS[locale]) {
|
|
16
|
+
metrics.descriptions[locale] += [...command.description].length;
|
|
17
|
+
if ([...command.description].length > LIMITS.description) issues.push(`${locale} ${command.name} description exceeds ${LIMITS.description} characters`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const skillsDir = path.join(root, 'scaffold', 'skills');
|
|
21
|
+
for (const entry of fs.readdirSync(skillsDir, { withFileTypes: true })) {
|
|
22
|
+
if (!entry.isDirectory()) continue;
|
|
23
|
+
const file = path.join(skillsDir, entry.name, 'SKILL.md');
|
|
24
|
+
if (!fs.existsSync(file)) continue; // Registry validator reports missing entrypoints.
|
|
25
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
26
|
+
metrics.skills[entry.name] = Buffer.byteLength(content);
|
|
27
|
+
if (metrics.skills[entry.name] > LIMITS.skill) issues.push(`${entry.name} entrypoint exceeds ${LIMITS.skill} bytes`);
|
|
28
|
+
const description = content.match(/^description:\s*(.+)$/m)?.[1]?.replace(/^"|"$/g, '');
|
|
29
|
+
if (!description || [...description].length > LIMITS.description) issues.push(`${entry.name} requires a description of at most ${LIMITS.description} characters`);
|
|
30
|
+
// Concrete skill-relative router links, not wildcard examples or installed paths.
|
|
31
|
+
for (const match of content.matchAll(/(?:`|\]\()((?:references|agents|rules|languages|infrastructure)\/[\w./-]+\.md)(?:`|\))/g)) {
|
|
32
|
+
if (!fs.existsSync(path.join(path.dirname(file), match[1]))) issues.push(`${entry.name} missing routed reference ${match[1]}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return { issues, metrics };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { LIMITS, inspectInstructions };
|
package/lib/post-update.js
CHANGED
|
@@ -71,7 +71,7 @@ function listPostUpdateActions(projectRoot) {
|
|
|
71
71
|
});
|
|
72
72
|
actions.push({
|
|
73
73
|
command: '/dw-skill-health',
|
|
74
|
-
reason: 'audit refreshed
|
|
74
|
+
reason: 'audit refreshed skills and compare .dw/config/routing.json with managed routing-defaults.json; preserve owner choices and approved plans',
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
return actions;
|
|
@@ -80,6 +80,7 @@ function listPostUpdateActions(projectRoot) {
|
|
|
80
80
|
function printPostUpdateActions(projectRoot) {
|
|
81
81
|
const actions = listPostUpdateActions(projectRoot);
|
|
82
82
|
console.log(' Post-update agent actions:');
|
|
83
|
+
console.log(' Read the refreshed .dw/commands/dw-update.md before following the post-update instructions.');
|
|
83
84
|
console.log(' The CLI refreshed managed files. Project-derived docs require the agent to run commands:');
|
|
84
85
|
for (const action of actions) {
|
|
85
86
|
console.log(` - ${action.command} - ${action.reason}`);
|
package/lib/validate.js
CHANGED
|
@@ -3,6 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const { validateSkillRegistry } = require('./skill-registry');
|
|
4
4
|
const { validateAgentRegistry, readAgentRegistry } = require('./agents');
|
|
5
5
|
const { buildManifests } = require('./build-plugin');
|
|
6
|
+
const { inspectInstructions } = require('./instruction-health');
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Repo quality gate (npm run validate). Validates the skill + agent registries
|
|
@@ -20,6 +21,7 @@ function run() {
|
|
|
20
21
|
const agent = validateAgentRegistry(readAgentRegistry());
|
|
21
22
|
issues.push(...agent.issues);
|
|
22
23
|
warnings.push(...agent.warnings);
|
|
24
|
+
issues.push(...inspectInstructions().issues);
|
|
23
25
|
|
|
24
26
|
// Plugin manifest drift check.
|
|
25
27
|
const { plugin, marketplace } = buildManifests();
|
|
@@ -41,7 +43,7 @@ function run() {
|
|
|
41
43
|
console.log('FAIL');
|
|
42
44
|
process.exit(1);
|
|
43
45
|
}
|
|
44
|
-
console.log('PASS: skill + agent registries valid; plugin manifests in sync.');
|
|
46
|
+
console.log('PASS: skill + agent registries valid; instruction budgets valid; plugin manifests in sync.');
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
function checkManifestDrift(relPath, expected, issues) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosps00/dev-workflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.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"
|
|
@@ -1,32 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_note": "
|
|
2
|
+
"_note": "Model candidates for planning task execution by complexity. Preserve approved task assignments. Seeded on init and never overwritten on update. Verify provider/account availability and CLI capabilities before approval; model documentation is not proof of account access.",
|
|
3
3
|
"schema_version": "1.0",
|
|
4
|
-
|
|
5
4
|
"brands": {
|
|
6
|
-
"claude": {
|
|
7
|
-
|
|
5
|
+
"claude": {
|
|
6
|
+
"detect": "claude --version"
|
|
7
|
+
},
|
|
8
|
+
"codex": {
|
|
9
|
+
"detect": "codex --version"
|
|
10
|
+
}
|
|
8
11
|
},
|
|
9
|
-
|
|
10
12
|
"tiers": {
|
|
11
13
|
"light": {
|
|
12
14
|
"_use": "mechanical, low-ambiguity work; the answer is obvious and the diff is small",
|
|
13
|
-
"claude": {
|
|
14
|
-
|
|
15
|
+
"claude": {
|
|
16
|
+
"model": "haiku",
|
|
17
|
+
"effort": "low"
|
|
18
|
+
},
|
|
19
|
+
"codex": {
|
|
20
|
+
"model": "gpt-5.6-luna",
|
|
21
|
+
"effort": "low"
|
|
22
|
+
}
|
|
15
23
|
},
|
|
16
24
|
"standard": {
|
|
17
25
|
"_use": "normal feature and fix work",
|
|
18
|
-
"claude": {
|
|
19
|
-
|
|
26
|
+
"claude": {
|
|
27
|
+
"model": "sonnet",
|
|
28
|
+
"effort": "medium"
|
|
29
|
+
},
|
|
30
|
+
"codex": {
|
|
31
|
+
"model": "gpt-5.6-sol",
|
|
32
|
+
"effort": "medium"
|
|
33
|
+
}
|
|
20
34
|
},
|
|
21
35
|
"heavy": {
|
|
22
36
|
"_use": "architectural, security-sensitive, or wide-blast-radius work",
|
|
23
|
-
"claude": {
|
|
24
|
-
|
|
37
|
+
"claude": {
|
|
38
|
+
"model": "opus",
|
|
39
|
+
"effort": "high"
|
|
40
|
+
},
|
|
41
|
+
"codex": {
|
|
42
|
+
"model": "gpt-6-astra",
|
|
43
|
+
"effort": "high"
|
|
44
|
+
}
|
|
25
45
|
}
|
|
26
46
|
},
|
|
27
|
-
|
|
28
47
|
"by_commit_type": {
|
|
29
|
-
"_note": "
|
|
48
|
+
"_note": "Legacy fallback hint only. Approved task complexity/assignment takes precedence.",
|
|
30
49
|
"chore": "light",
|
|
31
50
|
"docs": "light",
|
|
32
51
|
"style": "light",
|
|
@@ -38,23 +57,42 @@
|
|
|
38
57
|
"refactor": "standard",
|
|
39
58
|
"perf": "heavy"
|
|
40
59
|
},
|
|
41
|
-
|
|
42
60
|
"escalate_on_surface": {
|
|
43
61
|
"_note": "If the task's fence touches any of these, override the type-derived tier upward. Match against file paths and the task title.",
|
|
44
62
|
"tier": "heavy",
|
|
45
|
-
"patterns": [
|
|
63
|
+
"patterns": [
|
|
64
|
+
"auth",
|
|
65
|
+
"session",
|
|
66
|
+
"token",
|
|
67
|
+
"credential",
|
|
68
|
+
"migration",
|
|
69
|
+
"payment",
|
|
70
|
+
"billing",
|
|
71
|
+
"invoice",
|
|
72
|
+
"tenant",
|
|
73
|
+
"crypto",
|
|
74
|
+
"permission"
|
|
75
|
+
]
|
|
46
76
|
},
|
|
47
|
-
|
|
48
77
|
"validation": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"acceptance_score": 9
|
|
78
|
+
"cross_brand": "when-planned",
|
|
79
|
+
"degrade": "Use approved independent review assignments; do not switch providers or tiers silently.",
|
|
80
|
+
"acceptance": "Required checks and task acceptance criteria pass; no blocking findings. Scores are diagnostic only."
|
|
53
81
|
},
|
|
54
|
-
|
|
55
82
|
"defaults": {
|
|
56
|
-
"_note": "
|
|
57
|
-
"no_mcp":
|
|
83
|
+
"_note": "Preserve effective permissions and user configuration; enable only approved capabilities where selective configuration is supported.",
|
|
84
|
+
"no_mcp": false,
|
|
58
85
|
"read_only_skips_worktree": true
|
|
86
|
+
},
|
|
87
|
+
"sources": {
|
|
88
|
+
"checked_at": "2026-09-09",
|
|
89
|
+
"codex": [
|
|
90
|
+
"https://developers.openai.com/api/docs/models/gpt-5.6-luna",
|
|
91
|
+
"https://developers.openai.com/api/docs/models/gpt-5.6-sol",
|
|
92
|
+
"https://developers.openai.com/api/docs/guides/latest-model"
|
|
93
|
+
],
|
|
94
|
+
"claude": [
|
|
95
|
+
"https://code.claude.com/docs/en/model-config"
|
|
96
|
+
]
|
|
59
97
|
}
|
|
60
98
|
}
|