@brunosps00/dev-workflow 1.0.2 → 1.0.5
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 +74 -20
- package/bin/dev-workflow.js +53 -10
- package/lib/agents.js +410 -0
- package/lib/aws-categories.js +80 -0
- package/lib/azure-categories.js +168 -0
- package/lib/constants.js +16 -0
- package/lib/doctor.js +213 -0
- package/lib/init.js +96 -8
- package/lib/install-aws-skills.js +345 -0
- package/lib/install-azure-skills.js +231 -0
- package/lib/install-state.js +57 -0
- package/lib/list-installed.js +27 -0
- package/lib/mcp.js +32 -21
- package/lib/migrate-skills.js +26 -2
- package/lib/profiles.js +44 -0
- package/lib/prompts.js +38 -1
- package/lib/skill-registry.js +109 -0
- package/lib/subtasks.js +264 -0
- package/lib/uninstall.js +21 -12
- package/lib/utils.js +42 -1
- package/lib/wrappers.js +2 -1
- package/package.json +1 -1
- package/scaffold/agent-registry.json +272 -0
- package/scaffold/agents/core/dw-build-fixer.md +21 -0
- package/scaffold/agents/core/dw-code-explorer.md +32 -0
- package/scaffold/agents/core/dw-code-reviewer.md +28 -0
- package/scaffold/agents/core/dw-planner.md +23 -0
- package/scaffold/agents/core/dw-test-author.md +21 -0
- package/scaffold/agents/csharp/dw-csharp-reviewer.md +15 -0
- package/scaffold/agents/csharp/dw-dotnet-build-fixer.md +15 -0
- package/scaffold/agents/frontend/dw-qa-runner.md +21 -0
- package/scaffold/agents/python/dw-python-build-fixer.md +15 -0
- package/scaffold/agents/python/dw-python-reviewer.md +15 -0
- package/scaffold/agents/rust/dw-rust-build-fixer.md +15 -0
- package/scaffold/agents/rust/dw-rust-reviewer.md +15 -0
- package/scaffold/agents/security/dw-security-reviewer.md +24 -0
- package/scaffold/agents/security/dw-silent-failure-hunter.md +22 -0
- package/scaffold/agents/typescript/dw-typescript-build-fixer.md +15 -0
- package/scaffold/agents/typescript/dw-typescript-reviewer.md +15 -0
- package/scaffold/en/agent-instructions.md +46 -1
- package/scaffold/en/commands/dw-bugfix.md +9 -0
- package/scaffold/en/commands/dw-context-budget.md +28 -0
- package/scaffold/en/commands/dw-harness-audit.md +31 -0
- package/scaffold/en/commands/dw-help.md +15 -5
- package/scaffold/en/commands/dw-install-aws-skills.md +166 -0
- package/scaffold/en/commands/dw-install-azure-skills.md +138 -0
- package/scaffold/en/commands/dw-intel.md +6 -0
- package/scaffold/en/commands/dw-plan.md +11 -0
- package/scaffold/en/commands/dw-review.md +12 -0
- package/scaffold/en/commands/dw-skill-health.md +29 -0
- package/scaffold/en/commands/dw-subtask-complete.md +40 -0
- package/scaffold/en/commands/dw-subtask-resume.md +21 -0
- package/scaffold/en/commands/dw-subtask-start.md +22 -0
- package/scaffold/pt-br/agent-instructions.md +46 -1
- package/scaffold/pt-br/commands/dw-bugfix.md +9 -0
- package/scaffold/pt-br/commands/dw-context-budget.md +28 -0
- package/scaffold/pt-br/commands/dw-harness-audit.md +31 -0
- package/scaffold/pt-br/commands/dw-help.md +15 -5
- package/scaffold/pt-br/commands/dw-install-aws-skills.md +166 -0
- package/scaffold/pt-br/commands/dw-install-azure-skills.md +138 -0
- package/scaffold/pt-br/commands/dw-intel.md +6 -0
- package/scaffold/pt-br/commands/dw-plan.md +11 -0
- package/scaffold/pt-br/commands/dw-review.md +12 -0
- package/scaffold/pt-br/commands/dw-skill-health.md +29 -0
- package/scaffold/pt-br/commands/dw-subtask-complete.md +40 -0
- package/scaffold/pt-br/commands/dw-subtask-resume.md +21 -0
- package/scaffold/pt-br/commands/dw-subtask-start.md +22 -0
- package/scaffold/skill-registry.json +258 -0
- package/scaffold/skills/dw-codebase-intel/SKILL.md +12 -5
- package/scaffold/skills/dw-context-budget/SKILL.md +45 -0
- package/scaffold/skills/dw-search-first/SKILL.md +31 -0
- package/scaffold/skills/dw-silent-failure/SKILL.md +33 -0
- package/scaffold/skills/dw-verify/SKILL.md +2 -29
- package/scaffold/skills/dw-verify/references/verification-discovery-and-attribution.md +32 -0
- package/scaffold/skills/humanizer/SKILL.md +7 -412
- package/scaffold/skills/humanizer/references/ai-writing-patterns.md +418 -0
package/README.md
CHANGED
|
@@ -10,11 +10,11 @@ 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 workflow commands
|
|
14
14
|
3. Create `.dw/templates/` with document templates (PRD, TechSpec, Tasks, ADR, etc.)
|
|
15
15
|
4. Create `.dw/rules/` (populated by `/dw-analyze-project`)
|
|
16
16
|
5. Install bundled skills (`dw-verify`, `dw-memory`, `dw-review-rigor`, `dw-ui-discipline`, `dw-testing-discipline`, `security-review`, etc.) to `.agents/skills/`
|
|
17
|
-
6. Generate skill wrappers for Claude Code, Codex, Copilot, and OpenCode
|
|
17
|
+
6. Generate skill wrappers and project agents for Claude Code, Codex, Copilot, and OpenCode
|
|
18
18
|
7. Configure MCP servers (Context7 + Playwright)
|
|
19
19
|
|
|
20
20
|
> **Compozy-inspired disciplines.** Since 0.5.0, dev-workflow bundles three primitives — `dw-verify`, `dw-memory`, `dw-review-rigor` — adapted from the [Compozy](https://github.com/compozy/compozy) project and invoked internally by existing commands. See [docs/compozy-integration.md](docs/compozy-integration.md) for what was ported and what was not.
|
|
@@ -26,7 +26,7 @@ npx @brunosps00/dev-workflow install-deps
|
|
|
26
26
|
|
|
27
27
|
## Commands
|
|
28
28
|
|
|
29
|
-
dev-workflow v1.0.
|
|
29
|
+
dev-workflow v1.0.5 ships **30 commands** organized into four tiers. Most users only invoke Tier 1 + Tier 2.
|
|
30
30
|
|
|
31
31
|
### Tier 1 — Gateway (3)
|
|
32
32
|
|
|
@@ -52,17 +52,22 @@ Use these when you want step-by-step control instead of `/dw-autopilot`.
|
|
|
52
52
|
| **`/dw-commit`** | Atomic Conventional Commits for pending changes. Applies `dw-git-discipline` (one intent per commit, lint+tests+build green before). |
|
|
53
53
|
| **`/dw-generate-pr [target]`** | Push the branch, draft a PR body with summary + test plan, open the browser. Hard gates: dw-verify PASS + secure-audit. |
|
|
54
54
|
|
|
55
|
-
### Tier 3 — Specialty (
|
|
55
|
+
### Tier 3 — Specialty (8)
|
|
56
56
|
|
|
57
57
|
| Command | What |
|
|
58
58
|
|---------|------|
|
|
59
59
|
| **`/dw-analyze-project`** | Scans the repo, writes `.dw/rules/` (per-module conventions, anti-patterns, naming). Step 8 offers to generate `.dw/constitution.md` (declarative principles the team commits to). Step 9 generates `.dw/rules/concerns.md` (risk map: hot spots, fragile integrations, hostile code, bug history). Run once per project; refresh after major refactors. |
|
|
60
60
|
| **`/dw-redesign-ui "target"`** | Audits a frontend page, runs the `dw-ui-discipline` 4-question grounding, proposes 2-3 design directions, ships the redesign. WCAG 2.2 AA accessibility floor is non-negotiable. |
|
|
61
61
|
| **`/dw-functional-doc`** | Maps screens + user flows into a functional doc, validated end-to-end with Playwright. |
|
|
62
|
+
| **`/dw-context-budget`** | Audits context overhead from commands, skills, agents, instruction files, and MCPs. |
|
|
63
|
+
| **`/dw-harness-audit`** | Deterministic health scorecard for the dev-workflow install, agents, wrappers, MCPs, and gates. |
|
|
64
|
+
| **`/dw-skill-health`** | Audits installed skills and agents for bloat, duplication, and missing references. |
|
|
62
65
|
| **`/dw-new-project`** | Bootstrap a new project from empty directory. Stack interview, wraps official `create-*` tools, composes docker-compose for dev, seeds `.env`, scripts, CI, `.dw/rules/`. |
|
|
63
66
|
| **`/dw-dockerize`** | Reads existing project, detects stack + runtime deps, proposes Dockerfile + docker-compose for dev/prod with explicit trade-offs (Conservative/Balanced/Bold). |
|
|
67
|
+
| **`/dw-install-azure-skills`** | **Opt-in.** Clones curated Azure skills from [`MicrosoftDocs/Agent-Skills`](https://github.com/MicrosoftDocs/Agent-Skills) (CC-BY-4.0) into `.agents/skills/azure/` and registers the [Microsoft Learn MCP Server](https://learn.microsoft.com/en-us/training/support/mcp-get-started) (HTTP, no-auth). Interactive category selection (Compute / Data & Storage / AI & ML / Networking / Identity & Security / DevOps / Observability / Integration / Architecture / All). Re-run to refresh from upstream. Also available as CLI: `npx @brunosps00/dev-workflow install-azure-skills`. |
|
|
68
|
+
| **`/dw-install-aws-skills`** | **Opt-in.** Clones curated AWS skills from [`aws/agent-toolkit-for-aws`](https://github.com/aws/agent-toolkit-for-aws) (Apache 2.0) into `.agents/skills/aws/` and registers the unified [AWS MCP Server](https://docs.aws.amazon.com/aws-mcp/) (stdio via `uvx mcp-proxy-for-aws@latest`). **Requires `uv`, `aws cli ≥ 2.32.0`, and AWS credentials.** Interactive category selection (Core / Analytics / Database / EC2 / Migration / Networking / Operations / Security / Serverless / Storage / All). The agent gains `aws___call_aws` (executes 15,000+ AWS APIs) and `aws___run_script` (Python sandboxed) — review `.dw/references/aws-mcp-instructions.md` for the destructive-operations protocol. Also available as CLI: `npx @brunosps00/dev-workflow install-aws-skills [--region=<aws-region>]`. |
|
|
64
69
|
|
|
65
|
-
### Tier 4 — Hidden/Internal (
|
|
70
|
+
### Tier 4 — Hidden/Internal (8)
|
|
66
71
|
|
|
67
72
|
These are auto-invoked by Tier 1-3 commands. Available standalone via `/dw-help --advanced`.
|
|
68
73
|
|
|
@@ -73,6 +78,9 @@ These are auto-invoked by Tier 1-3 commands. Available standalone via `/dw-help
|
|
|
73
78
|
| **`/dw-secure-audit`** | Unified security: OWASP + Trivy SCA/secret/IaC + lockfile + supply-chain check. Hard gate. Flags: `--scan-only`, `--plan`, `--execute`. | `/dw-review`, `/dw-generate-pr` (for TS/Python/C#/Rust) |
|
|
74
79
|
| **`/dw-find-skills "query"`** | Searches `npx skills` ecosystem, vets, installs. | manual when extending the bundle |
|
|
75
80
|
| **`/dw-update`** | Updates dev-workflow to latest npm release with rollback snapshot. | manual maintenance |
|
|
81
|
+
| **`/dw-subtask-start`** | Creates a minimal input packet for a subagent without injecting the parent transcript. | parent agent before delegation |
|
|
82
|
+
| **`/dw-subtask-complete`** | Records a structured child-session handoff. | subagent / child session |
|
|
83
|
+
| **`/dw-subtask-resume`** | Consumes and archives pending handoffs for parent synthesis. | parent agent after delegation |
|
|
76
84
|
|
|
77
85
|
## Workflow
|
|
78
86
|
|
|
@@ -155,7 +163,7 @@ npx @brunosps00/dev-workflow update
|
|
|
155
163
|
|----------|-----------------|--------|
|
|
156
164
|
| Claude Code | `.claude/skills/` | Full support |
|
|
157
165
|
| Codex CLI | `.agents/skills/` | Full support |
|
|
158
|
-
| Copilot | `.agents/skills/` | Full support |
|
|
166
|
+
| Copilot | `.agents/skills/` + `.github/agents/` | Full support |
|
|
159
167
|
| OpenCode | `.opencode/commands/` | Full support |
|
|
160
168
|
|
|
161
169
|
All wrappers point to `.dw/commands/` as the single source of truth.
|
|
@@ -165,29 +173,67 @@ All wrappers point to `.dw/commands/` as the single source of truth.
|
|
|
165
173
|
```
|
|
166
174
|
your-project/
|
|
167
175
|
├── .dw/
|
|
168
|
-
│ ├── commands/ #
|
|
176
|
+
│ ├── commands/ # workflow command files
|
|
169
177
|
│ ├── templates/ # Document templates (PRD, TechSpec, state, concerns, bugfix-summary, etc.)
|
|
170
178
|
│ │ └── overrides/ # Project-local template customizations (override > core)
|
|
171
179
|
│ ├── rules/ # Project-specific rules (run /dw-analyze-project)
|
|
172
180
|
│ │ └── concerns.md # Risk map: hot spots, fragile integrations, bug history (Step 9 of /dw-analyze-project)
|
|
173
181
|
│ ├── constitution.md # Declarative principles (auto-installed when missing)
|
|
182
|
+
│ ├── skill-registry.json # Local skill taxonomy, triggers, owners, load policy, and context limits
|
|
174
183
|
│ ├── references/ # Reference documentation
|
|
175
184
|
│ ├── scripts/ # Utility scripts
|
|
176
185
|
│ ├── spec/ # PRD directories — each contains tasks-validation.md
|
|
177
186
|
│ ├── bugfixes/ # Persistent bugfix records: NNN-<slug>/{TASK.md, SUMMARY.md, fix-report.md} + review/, QA/
|
|
187
|
+
│ ├── subtasks/ # Local ephemeral subagent input packets and handoffs (pending/archive ignored by Git)
|
|
178
188
|
│ └── STATE.md # Session state: Decisions, Blockers, Todos, Open Loops, Deferred Ideas, Lessons, Preferences (managed by /dw-pause + /dw-resume)
|
|
179
189
|
├── CLAUDE.md # Auto-trigger decision tree for Claude Code (merge-aware, includes Auto-Sizing Matrix)
|
|
180
190
|
├── AGENTS.md # Same content for Codex / Copilot / OpenCode
|
|
181
191
|
├── .claude/
|
|
182
192
|
│ ├── skills/ # Claude Code wrappers
|
|
193
|
+
│ ├── agents/ # Claude Code project agents
|
|
183
194
|
│ └── settings.json # MCP servers (Context7, Playwright)
|
|
184
195
|
├── .agents/skills/ # Codex/Copilot wrappers + bundled skills
|
|
185
|
-
|
|
196
|
+
├── .agents/agents/ # Codex/Copilot fallback agent definitions
|
|
197
|
+
├── .github/agents/ # GitHub Copilot custom agents
|
|
198
|
+
├── .opencode/commands/ # OpenCode wrappers
|
|
199
|
+
└── .opencode/agent/ # OpenCode project agents
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Agents
|
|
203
|
+
|
|
204
|
+
`dev-workflow` installs a compact agent layer in addition to skills. Skills remain protocols and reference material; agents are dispatchable roles such as `dw-code-explorer`, `dw-build-fixer`, `dw-code-reviewer`, and language-specific reviewers.
|
|
205
|
+
|
|
206
|
+
Profiles control agent breadth:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
npx @brunosps00/dev-workflow init --profile=core
|
|
210
|
+
npx @brunosps00/dev-workflow init --profile=standard
|
|
211
|
+
npx @brunosps00/dev-workflow init --profile=full
|
|
212
|
+
npx @brunosps00/dev-workflow init --modules=typescript,python
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Claude Code and OpenCode receive native project-agent files. Copilot receives `.github/agents/*.agent.md`. Codex receives fallback agent definitions and dispatch instructions through `AGENTS.md`.
|
|
216
|
+
|
|
217
|
+
Subagent handoffs use local packets under `.dw/subtasks/`:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
npx @brunosps00/dev-workflow subtask create --agent=dw-code-explorer --goal="Map the auth flow"
|
|
221
|
+
npx @brunosps00/dev-workflow subtask complete --slug=<slug> --file=<handoff.md>
|
|
222
|
+
npx @brunosps00/dev-workflow subtask consume
|
|
186
223
|
```
|
|
187
224
|
|
|
188
225
|
## Bundled Skills
|
|
189
226
|
|
|
190
|
-
Skills installed to `.agents/skills/` for use by all commands.
|
|
227
|
+
Skills installed to `.agents/skills/` for use by all commands. The bundle is governed by `scaffold/skill-registry.json`, which records each skill's kind, tier, owner, trigger, expected output, load policy, and context limit.
|
|
228
|
+
|
|
229
|
+
Skill kinds:
|
|
230
|
+
|
|
231
|
+
- `protocol`: execution discipline or gate used by commands.
|
|
232
|
+
- `domain-pack`: deeper expertise for a domain such as security, UI, testing, React, Remotion, incident response, or LLM evals.
|
|
233
|
+
- `recipe-pack`: tactical recipes for a narrow implementation surface.
|
|
234
|
+
- `asset-pack`: reusable non-code material, prompts, templates, or editorial references.
|
|
235
|
+
|
|
236
|
+
The rule is deliberate: `SKILL.md` should be a compact entrypoint. Large examples, rules, assets, and checklists live under `references/`, `assets/`, `scripts/`, or `rules/` and are loaded only when the trigger actually needs them. `dev-workflow doctor` validates the registry, installed bundled skills, and context-size limits; `/dw-skill-health` is the agent-facing audit for overlap, bloat, and weak triggers.
|
|
191
237
|
|
|
192
238
|
### Workflow discipline (invoked internally by dw-* commands)
|
|
193
239
|
|
|
@@ -234,13 +280,17 @@ Installed via `npx @brunosps00/dev-workflow install-deps`:
|
|
|
234
280
|
## Options
|
|
235
281
|
|
|
236
282
|
```bash
|
|
237
|
-
npx @brunosps00/dev-workflow init
|
|
238
|
-
npx @brunosps00/dev-workflow init --lang=en
|
|
239
|
-
npx @brunosps00/dev-workflow init --lang=pt-br
|
|
240
|
-
npx @brunosps00/dev-workflow init --force
|
|
241
|
-
npx @brunosps00/dev-workflow update
|
|
242
|
-
npx @brunosps00/dev-workflow install-deps
|
|
243
|
-
npx @brunosps00/dev-workflow
|
|
283
|
+
npx @brunosps00/dev-workflow init # Interactive language selection
|
|
284
|
+
npx @brunosps00/dev-workflow init --lang=en # English, skip prompt
|
|
285
|
+
npx @brunosps00/dev-workflow init --lang=pt-br # Portuguese, skip prompt
|
|
286
|
+
npx @brunosps00/dev-workflow init --force # Overwrite existing files
|
|
287
|
+
npx @brunosps00/dev-workflow update # Update commands/templates only
|
|
288
|
+
npx @brunosps00/dev-workflow install-deps # Install Playwright, react-doctor; check Trivy, Docker
|
|
289
|
+
npx @brunosps00/dev-workflow install-azure-skills # Opt-in: Azure skills + Microsoft Learn MCP
|
|
290
|
+
npx @brunosps00/dev-workflow install-azure-skills --products=azure-aks,azure-openai # Subset override
|
|
291
|
+
npx @brunosps00/dev-workflow install-aws-skills # Opt-in: AWS skills + AWS MCP Server (needs uv + aws cli + creds)
|
|
292
|
+
npx @brunosps00/dev-workflow install-aws-skills --region=eu-central-1 # Region override
|
|
293
|
+
npx @brunosps00/dev-workflow help # Show help
|
|
244
294
|
```
|
|
245
295
|
|
|
246
296
|
## Getting Started
|
|
@@ -267,13 +317,17 @@ Incident response (`dw-incident-response`) adapted from [`wilsto/claude-code-sta
|
|
|
267
317
|
|
|
268
318
|
LLM evaluation (`dw-llm-eval`) trajectory-match modes (strict / unordered / subset / superset) and tool-argument matching strategies adapted from [`langchain-ai/agentevals`](https://github.com/langchain-ai/agentevals) (MIT). The broader oracle-ladder framing, judge-calibration discipline, and reference-dataset principle are distilled from the open evaluations literature (OpenAI evals cookbook, Anthropic evals guidance, the academic eval-of-LLM body of work) and rewritten in our voice.
|
|
269
319
|
|
|
320
|
+
Optional AWS integration (v1.0.5). The `/dw-install-aws-skills` command and `npx @brunosps00/dev-workflow install-aws-skills` CLI pull curated agent skills from [`aws/agent-toolkit-for-aws`](https://github.com/aws/agent-toolkit-for-aws) (Apache 2.0, by AWS) into `.agents/skills/aws/` and register the unified [AWS MCP Server](https://docs.aws.amazon.com/aws-mcp/) via [`mcp-proxy-for-aws`](https://github.com/aws/mcp-proxy-for-aws) (stdio transport with SigV4 authentication). Unlike the Azure equivalent, the AWS MCP Server requires `uv`, `aws cli ≥ 2.32.0`, and valid AWS credentials configured via `aws login` or an IAM profile — the command detects each prerequisite and prints OS-specific install instructions if missing (without auto-installing anything). Capability includes `aws___search_documentation`, `aws___read_documentation`, `aws___retrieve_skill`, plus `aws___call_aws` (executes any of 15,000+ AWS APIs with the user's IAM permissions) and `aws___run_script` (Python sandboxed). `.dw/references/aws-mcp-instructions.md` encodes the destructive-operations protocol — agents must confirm before any `create*`/`update*`/`delete*`/`modify*` call, IAM change, or billing-affecting operation. The AWS Knowledge MCP (HTTP, no-auth) was considered for symmetry with Microsoft Learn MCP but is officially deprecated by AWS in favor of the unified server, which AWS explicitly recommends against running alongside the legacy endpoint ("tool conflicts that confuse AI agents"). Default endpoint is `us-east-1` with `eu-central-1` available; region overridable via `--region=<aws-region>` or by editing `.claude/settings.json` directly. Not installed by default; user explicitly invokes the command. Re-run refreshes from upstream; `dev-workflow update` deliberately does not touch `.agents/skills/aws/`.
|
|
321
|
+
|
|
322
|
+
Optional Azure integration (v1.0.3). The `/dw-install-azure-skills` command and `npx @brunosps00/dev-workflow install-azure-skills` CLI pull curated agent skills from [`MicrosoftDocs/Agent-Skills`](https://github.com/MicrosoftDocs/Agent-Skills) (CC-BY-4.0, by Microsoft) into `.agents/skills/azure/` and register the [Microsoft Learn MCP Server](https://learn.microsoft.com/en-us/training/support/mcp-get-started) (HTTP endpoint, no authentication required) into `.claude/settings.json`. The MCP server exposes three tools — `microsoft_docs_search`, `microsoft_docs_fetch`, `microsoft_code_sample_search` — that give the agent live access to Microsoft Learn documentation. **Not installed by default**: `init` and `update` do not touch `.agents/skills/azure/` or register the MCP. Users explicitly invoke the command when they begin Azure-focused work. The 10 categories (Compute, Data & Storage, AI & ML, Networking, Identity & Security, DevOps, Observability, Integration, Architecture, All) are dev-workflow's curated grouping over the 200+ skills in the upstream repo; the `--products=<csv>` flag lets advanced users pick individual services. Re-running the command refreshes from upstream; `dev-workflow update` deliberately does not touch these external skills so the Microsoft upstream release cadence is decoupled from the dev-workflow npm release cadence. Skills are copied verbatim from the upstream repo (CC-BY-4.0 permits this with attribution); the agent-facing `.dw/references/azure-mcp-instructions.md` is a clean-room adaptation of Microsoft's "Set instructions" guidance.
|
|
323
|
+
|
|
270
324
|
Session continuity and adaptive routing patterns adapted from [`tech-leads-club/agent-skills/tlc-spec-driven`](https://github.com/tech-leads-club/agent-skills/tree/main/packages/skills-catalog/skills/(development)/tlc-spec-driven) by Felipe Rodrigues (CC-BY-4.0, v1.0.2). Eight patterns were absorbed selectively after a comparative analysis confirmed that the majority of the skill duplicates existing dev-workflow capabilities (PRD/TechSpec/Tasks pipeline, constitution discipline, source-grounding, two-tier memory, verify-before-complete, brownfield mapping, sub-agent delegation, atomic commits). Patterns adopted: (1) `STATE.md` cross-session working memory at `.dw/STATE.md` + new `/dw-pause` and `/dw-resume` commands; (2) Auto-Sizing Matrix (Small/Medium/Large/Complex) formalized in `CLAUDE.md`/`AGENTS.md` above the Trigger Map; (3) Concerns Map (`.dw/rules/concerns.md`) generated by a new Step 9 in `/dw-analyze-project` and consumed on-demand by `/dw-plan`, `/dw-run`, and `/dw-bugfix`; (4) Context Budget discipline as a new section in `dw-memory` with reference `dw-memory/references/context-budget.md`; (5) Interactive UAT walkthrough as `/dw-qa --uat`; (6) Quick-mode persistence — bugfixes now land in `.dw/bugfixes/NNN-<slug>/{TASK.md, SUMMARY.md, fix-report.md}` and remain queryable via `/dw-intel`; (7) Safety valve in `/dw-bugfix` Step 5.0 that forces escalation to `/dw-plan` when scope exceeds 5 tasks or has cross-dependencies; (8) Cross-skill awareness — `/dw-intel --build` now indexes `.dw/bugfixes/*/SUMMARY.md` into `bugfixes.json`, and `dw-codebase-intel` documents the new `bugfix-history` and `risk-area` query shapes. Patterns explicitly REJECTED: `.specs/` directory structure (dev-workflow uses `.dw/`), Knowledge Verification Chain (already covered by `dw-source-grounding`), Specify/Design/Tasks/Execute naming (dev-workflow keeps PRD/TechSpec/Tasks/Run), Skill Integrations pattern with mermaid-studio/codenavi delegation, and literal text copying (everything is clean-room reimplementation from the conceptual patterns; CC-BY-4.0 attribution is for derivative ideas, not borrowed prose).
|
|
271
325
|
|
|
272
326
|
Four patterns from [`mattpocock/skills`](https://github.com/mattpocock/skills) by Matt Pocock (MIT) were integrated **without adding new commands or skills** — instead they fold into the existing surface as internal modes and inline guidance: (1) **grill-with-docs** → `/dw-brainstorm` `grill` mode (interview discipline that stress-tests plan vocabulary against `.dw/rules/`); (2) **prototype** → `/dw-brainstorm` `prototype` mode (LOGIC terminal app or UI variant dispatch); (3) **improve-codebase-architecture** → `dw-simplification/references/deep-modules.md` (deletion test, locality, leverage, seam, adapter diagnostic invoked by the `refactor-audit` mode); (4) **zoom-out** → one-paragraph guidance in `agent-instructions.md`. The same release also collapses `/dw-brainstorm`'s six legacy flags into a single full-flow entry point that auto-dispatches modes based on project signals.
|
|
273
327
|
|
|
274
328
|
## Migration from v0.x (1.0.0 is a consolidation release)
|
|
275
329
|
|
|
276
|
-
v1.0.0
|
|
330
|
+
v1.0.0 consolidated the legacy command surface into the current `dw-*` pipeline. **The `dev-workflow init`, `update`, and `repair` flows auto-remove obsolete wrappers and known removed command sources**; no manual action required.
|
|
277
331
|
|
|
278
332
|
### Command renames (15 → 7 merged)
|
|
279
333
|
|
|
@@ -309,8 +363,8 @@ On the next `npx @brunosps00/dev-workflow update`, the following happens automat
|
|
|
309
363
|
|
|
310
364
|
1. The 15 renamed commands' wrappers are detected as orphans (their names no longer exist in `lib/constants.js`) and removed from `.claude/skills/`, `.agents/skills/`, and `.opencode/commands/`.
|
|
311
365
|
2. The migrator prints each removal with the friendly "old → new" mapping (e.g., `[orphan] Removing wrapper .agents/skills/dw-create-prd (replaced in v1.0.0 by 'dw-plan prd')`).
|
|
312
|
-
3. The
|
|
313
|
-
4. The
|
|
366
|
+
3. The current command wrappers are installed for the consolidated commands.
|
|
367
|
+
4. The bundled skills are refreshed.
|
|
314
368
|
|
|
315
369
|
### Backwards compatibility
|
|
316
370
|
|
|
@@ -322,7 +376,7 @@ The Trigger Map block (between `<!-- dev-workflow:start -->` and `<!-- dev-workf
|
|
|
322
376
|
|
|
323
377
|
### Skill conventions
|
|
324
378
|
|
|
325
|
-
Skill description format ("pushy" trigger phrases ≤200 chars, "Use when X. Triggers on Y." pattern) and structural conventions (`SKILL.md` + `references/` / `scripts/` / `assets/` / `agents/` subdirectories, explicit `allowed-tools` in frontmatter) follow the official guidance from [`anthropics/skills/skill-creator`](https://github.com/anthropics/skills/tree/main/skills/skill-creator) (Apache 2.0). dev-workflow's
|
|
379
|
+
Skill description format ("pushy" trigger phrases ≤200 chars, "Use when X. Triggers on Y." pattern) and structural conventions (`SKILL.md` + `references/` / `scripts/` / `assets/` / `agents/` subdirectories, explicit `allowed-tools` in frontmatter) follow the official guidance from [`anthropics/skills/skill-creator`](https://github.com/anthropics/skills/tree/main/skills/skill-creator) (Apache 2.0). dev-workflow's bundled skills are not derived from skill-creator's content — only its conventions are followed for auto-trigger reliability across Claude Code, Codex CLI, Copilot, and OpenCode.
|
|
326
380
|
|
|
327
381
|
## License
|
|
328
382
|
|
package/bin/dev-workflow.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const { run } = require('../lib/init');
|
|
4
4
|
const installDeps = require('../lib/install-deps');
|
|
5
|
+
const installAzureSkills = require('../lib/install-azure-skills');
|
|
6
|
+
const installAwsSkills = require('../lib/install-aws-skills');
|
|
5
7
|
const uninstall = require('../lib/uninstall');
|
|
6
8
|
|
|
7
9
|
const args = process.argv.slice(2);
|
|
@@ -20,22 +22,45 @@ const HELP_TEXT = `
|
|
|
20
22
|
|
|
21
23
|
Usage:
|
|
22
24
|
npx dev-workflow init [--force] [--lang=en|pt-br]
|
|
23
|
-
npx dev-workflow
|
|
25
|
+
npx dev-workflow init [--force] [--lang=en|pt-br] [--profile=core|standard|full] [--modules=<csv>]
|
|
26
|
+
npx dev-workflow update [--lang=en|pt-br] [--profile=core|standard|full] [--modules=<csv>]
|
|
24
27
|
npx dev-workflow install-deps
|
|
28
|
+
npx dev-workflow list-installed
|
|
29
|
+
npx dev-workflow doctor
|
|
30
|
+
npx dev-workflow repair
|
|
31
|
+
npx dev-workflow subtask create --agent=<name> --goal="<goal>"
|
|
32
|
+
npx dev-workflow subtask complete --slug=<slug> --file=<handoff.md>
|
|
33
|
+
npx dev-workflow subtask consume
|
|
34
|
+
npx dev-workflow subtask list
|
|
35
|
+
npx dev-workflow install-azure-skills [--products=<csv>]
|
|
36
|
+
npx dev-workflow install-aws-skills [--region=<aws-region>]
|
|
25
37
|
npx dev-workflow help
|
|
26
38
|
|
|
27
39
|
Commands:
|
|
28
|
-
init
|
|
29
|
-
update
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
init Scaffold .dw/ (commands, templates, references, scripts, skills, rules, MCPs)
|
|
41
|
+
update Update managed files (commands, templates, references, scripts, skills, wrappers, MCPs)
|
|
42
|
+
Preserves: .dw/rules/, .dw/spec/, .dw/bugfixes/, .dw/STATE.md, .agents/skills/azure/, user data
|
|
43
|
+
list-installed Show dev-workflow install state for this project
|
|
44
|
+
doctor Check managed files, wrappers, agents, and MCP configuration
|
|
45
|
+
repair Reconcile managed files using the recorded install state
|
|
46
|
+
subtask Create, complete, consume, and list local subagent handoffs
|
|
47
|
+
install-deps Install system dependencies (Playwright browsers, MCP servers)
|
|
48
|
+
install-azure-skills Opt-in: clone curated Azure skills from MicrosoftDocs/Agent-Skills
|
|
49
|
+
into .agents/skills/azure/ and register the Microsoft Learn MCP
|
|
50
|
+
server (HTTP, no-auth). Interactive category selection.
|
|
51
|
+
install-aws-skills Opt-in: clone curated AWS skills from aws/agent-toolkit-for-aws
|
|
52
|
+
into .agents/skills/aws/ and register the unified AWS MCP Server
|
|
53
|
+
(stdio via mcp-proxy-for-aws). Requires uv, aws cli, and AWS
|
|
54
|
+
credentials. Interactive category selection.
|
|
55
|
+
uninstall Remove all managed files (commands, templates, wrappers, skills, MCPs)
|
|
56
|
+
Preserves: .dw/rules/, .dw/spec/, .dw/intel/ (user data)
|
|
57
|
+
help Show this help message
|
|
35
58
|
|
|
36
59
|
Options:
|
|
37
60
|
--force Overwrite existing files (init only; update always overwrites managed files)
|
|
38
61
|
--lang=LANG Set language without prompt (en or pt-br)
|
|
62
|
+
--profile=NAME Install profile for agents (core, standard, full)
|
|
63
|
+
--modules=CSV Extra agent modules to install (typescript, python, csharp, rust, security, frontend)
|
|
39
64
|
|
|
40
65
|
Examples:
|
|
41
66
|
npx dev-workflow init # Interactive language selection
|
|
@@ -50,14 +75,32 @@ const HELP_TEXT = `
|
|
|
50
75
|
async function main() {
|
|
51
76
|
switch (command) {
|
|
52
77
|
case 'init':
|
|
53
|
-
await run({ force: !!flags.force, lang: flags.lang, mode: 'init' });
|
|
78
|
+
await run({ force: !!flags.force, lang: flags.lang, mode: 'init', profile: flags.profile, modules: flags.modules });
|
|
54
79
|
break;
|
|
55
80
|
case 'update':
|
|
56
|
-
await run({ force: !!flags.force, lang: flags.lang, mode: 'update' });
|
|
81
|
+
await run({ force: !!flags.force, lang: flags.lang, mode: 'update', profile: flags.profile, modules: flags.modules });
|
|
82
|
+
break;
|
|
83
|
+
case 'list-installed':
|
|
84
|
+
require('../lib/list-installed').run();
|
|
85
|
+
break;
|
|
86
|
+
case 'doctor':
|
|
87
|
+
require('../lib/doctor').run({ repair: false });
|
|
88
|
+
break;
|
|
89
|
+
case 'repair':
|
|
90
|
+
await run({ force: true, lang: flags.lang, mode: 'repair', profile: flags.profile, modules: flags.modules });
|
|
91
|
+
break;
|
|
92
|
+
case 'subtask':
|
|
93
|
+
require('../lib/subtasks').run(args.slice(1));
|
|
57
94
|
break;
|
|
58
95
|
case 'install-deps':
|
|
59
96
|
installDeps.run();
|
|
60
97
|
break;
|
|
98
|
+
case 'install-azure-skills':
|
|
99
|
+
await installAzureSkills.run();
|
|
100
|
+
break;
|
|
101
|
+
case 'install-aws-skills':
|
|
102
|
+
await installAwsSkills.run();
|
|
103
|
+
break;
|
|
61
104
|
case 'uninstall':
|
|
62
105
|
uninstall.run();
|
|
63
106
|
break;
|