@brunosps00/dev-workflow 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,7 +26,7 @@ npx @brunosps00/dev-workflow install-deps
26
26
 
27
27
  ## Commands
28
28
 
29
- dev-workflow v1.1.4 ships **33 commands** organized into four tiers. Most users only invoke Tier 1 + Tier 2.
29
+ dev-workflow v1.2.1 ships **33 commands** organized into four tiers. Most users only invoke Tier 1 + Tier 2.
30
30
 
31
31
  ### Tier 1 — Gateway (3)
32
32
 
@@ -1,5 +1,6 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
+ const { COMMANDS } = require('./constants');
3
4
  const { readJson } = require('./utils');
4
5
 
5
6
  const SCAFFOLD_DIR = path.join(__dirname, '..', 'scaffold');
@@ -42,6 +43,7 @@ function validateSkillRegistry() {
42
43
  const warnings = [];
43
44
  const entriesByName = new Map();
44
45
  const scaffoldNames = new Set(listScaffoldSkillNames());
46
+ const commandNames = new Set(Object.values(COMMANDS).flat().map((cmd) => cmd.name));
45
47
 
46
48
  for (const entry of registry.skills) {
47
49
  validateEntry(entry, issues);
@@ -50,6 +52,10 @@ function validateSkillRegistry() {
50
52
  }
51
53
  entriesByName.set(entry.name, entry);
52
54
 
55
+ if (commandNames.has(entry.name)) {
56
+ issues.push(`Skill registry entry collides with command wrapper name: ${entry.name}`);
57
+ }
58
+
53
59
  if (!scaffoldNames.has(entry.name)) {
54
60
  issues.push(`Skill registry references missing scaffold skill: ${entry.name}`);
55
61
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosps00/dev-workflow",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AI-driven development workflow commands for any project. Scaffolds a complete PRD-to-PR pipeline with multi-platform AI assistant support.",
5
5
  "bin": {
6
6
  "dev-workflow": "./bin/dev-workflow.js"
@@ -34,17 +34,6 @@
34
34
  "context_limit": 12000,
35
35
  "bundled": true
36
36
  },
37
- {
38
- "name": "dw-context-budget",
39
- "kind": "protocol",
40
- "tier": "core",
41
- "owner": "dw-context-budget",
42
- "trigger": "Context overhead, slow sessions, many agents/skills/MCPs",
43
- "expected_output": "A context budget report with concrete savings.",
44
- "load_policy": "always-small",
45
- "context_limit": 6000,
46
- "bundled": true
47
- },
48
37
  {
49
38
  "name": "dw-council",
50
39
  "kind": "protocol",
@@ -1,57 +0,0 @@
1
- ---
2
- name: dw-context-budget
3
- description: Audit context overhead from commands, skills, agents, MCPs, and instruction files before sessions degrade.
4
- allowed-tools:
5
- - Read
6
- - Grep
7
- - Glob
8
- - Bash
9
- ---
10
-
11
- # dw-context-budget
12
-
13
- Use when a project has many commands, skills, agents, MCP servers, or long instruction files.
14
-
15
- ## Audit Targets
16
-
17
- - `CLAUDE.md` and `AGENTS.md`
18
- - `.dw/commands/*.md`
19
- - `.agents/skills/*/SKILL.md`
20
- - `.agents/agents/*.md`
21
- - `.claude/agents/*.md`
22
- - `.opencode/agent/*.md`
23
- - `.claude/settings.json`
24
-
25
- ## Heuristics
26
-
27
- - Prose estimate: `word count * 1.3`
28
- - JSON/code estimate: `character count / 4`
29
- - Flag command files over 20KB
30
- - Flag `SKILL.md` files over 12KB
31
- - Flag agent files over 8KB
32
- - Flag more than 10 configured MCP servers
33
- - Flag duplicate copies loaded by more than one platform when a fallback would be enough
34
-
35
- ## Report
36
-
37
- Return:
38
-
39
- 1. Estimated overhead by category.
40
- 2. Top 10 largest files.
41
- 3. Duplicate or overlapping components.
42
- 4. Top 5 concrete savings.
43
- 5. What must remain loaded because commands depend on it.
44
-
45
- Inspired by ECC's `context-budget` and `strategic-compact` patterns; adapted for dev-workflow's `.dw/` scaffold and cross-platform wrappers.
46
-
47
- ## Structured Return
48
-
49
- When invoked directly or by a harness, return or merge this block:
50
-
51
- - **Status:** `PASS` when the budget is acceptable, `FINDINGS` when concrete savings exist, `BLOCKED` when files cannot be measured, `NOT_APPLICABLE` when context budget is not relevant.
52
- - **Scope:** commands, skills, agents, MCPs, and instruction files measured.
53
- - **Evidence:** largest files, duplicate content, loaded references, and approximate byte/token cost.
54
- - **Artifacts:** report path or inline budget table.
55
- - **Decisions:** what stays loaded, what moves behind lazy references, and what can merge/remove.
56
- - **Risks:** losing trigger clarity, hiding required instructions, or creating stale references.
57
- - **Next Step:** top compaction action with expected savings.