dev-playbooks 1.0.9 → 1.0.11

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
@@ -1,105 +1,83 @@
1
1
  # DevBooks
2
2
 
3
- **Agentic AI Development Workflow for Claude Code / Codex CLI**
3
+ **An agentic AI development workflow for Claude Code / Codex CLI**
4
4
 
5
- > Transform large changes into controllable, traceable, and verifiable closed loops: Skills + Quality Gates + Role Isolation.
5
+ > Turn large changes into a controlled, traceable, verifiable loop: Skills + quality gates + role isolation.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/dev-playbooks)](https://www.npmjs.com/package/dev-playbooks)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
9
9
 
10
+ ![DevBooks Workflow](docs/workflow-diagram.svg)
11
+
10
12
  ---
11
13
 
12
14
  ## Why DevBooks?
13
15
 
14
16
  AI coding assistants are powerful, but often **unpredictable**:
15
17
 
16
- | Pain Point | Consequence |
17
- |------------|-------------|
18
- | **AI self-declares "done"** | Tests actually fail, edge cases missed |
19
- | **Same conversation writes tests and code** | Tests become "pass-through tests", not spec verification |
20
- | **No verification gates** | False completions silently enter production |
21
- | **Only supports 0→1 projects** | No way to onboard legacy codebases |
22
- | **Too few commands** | Complex changes need more than "spec/apply/archive" |
18
+ | Pain point | Outcome |
19
+ |------|------|
20
+ | **AI self-declares "done"** | Tests fail, edge cases are missed |
21
+ | **Writing tests and code in the same chat** | Tests turn into “pass tests instead of spec verification |
22
+ | **No verification gates** | False completion silently ships |
23
+ | **Only works for greenfield (0→1)** | Brownfield repos have no on-ramp |
24
+ | **Too few commands** | Complex changes are not just "spec/apply/archive" |
23
25
 
24
- **DevBooks Solutions**:
25
- - **Evidence-based completion**: Completion defined by tests/builds/evidence, not AI self-assessment
26
- - **Mandatory role isolation**: Test Owner and Coder must work in separate conversations
27
- - **Multiple quality gates**: Green evidence checks, task completion rate, role boundary checks
28
- - **21 Skills**: Covering proposals, design, debate, review, entropy metrics, federation analysis, and more
26
+ **DevBooks provides**:
27
+ - **Evidence-based done**: completion is defined by tests/build/evidence, not AI self-evaluation
28
+ - **Enforced role isolation**: Test Owner and Coder must work in separate conversations
29
+ - **Multiple quality gates**: green evidence checks, task completion, role boundary checks
30
+ - **21 Skills**: proposal, design, debate, review, entropy metrics, federation, and more
29
31
 
30
32
  ---
31
33
 
32
- ## DevBooks Comparison
34
+ ## DevBooks At a Glance (Comparison)
33
35
 
34
- | Dimension | DevBooks | OpenSpec | spec-kit | No Spec |
35
- |-----------|----------|----------|----------|---------|
36
- | **Spec-driven** | Yes | Yes | Yes | No |
37
- | **Legacy project support** | Auto-generate baseline | Manual | Limited | - |
38
- | **Completion definition** | Test+build evidence | AI self-assessment | AI self-assessment | AI self-assessment |
39
- | **Code quality assurance** | Entropy metrics+gates | None | None | None |
40
- | **Test/implementation separation** | Mandatory isolation | None | None | None |
41
- | **Change traceability** | Change package archive | Feature folders | Spec files | None |
42
- | **Workflow complexity** | High (21 Skills) | Low (3 commands) | Medium (~5 commands) | None |
43
- | **Learning curve** | Steep | Gentle | Medium | None |
44
- | **Best for** | Large/critical changes | Lightweight changes | 0→1 projects | Simple tasks |
36
+ | Dimension | DevBooks | OpenSpec | spec-kit | No spec |
37
+ |------|----------|----------|----------|--------|
38
+ | Spec-driven workflow | Yes | Yes | Yes | No |
39
+ | Artifact traceability | Change package (proposal/design/spec/tasks/verification/evidence) | Mostly folder/file organization | Docs + tasks orchestration | None |
40
+ | Role & responsibility boundaries | **Enforced** (Test Owner / Coder) | Convention-based (not enforced) | Convention-based (not enforced) | None |
41
+ | Definition of Done (DoD) | **Evidence + gates** (tests/build/audit) | Manual definition/checks | Manual definition/checks | Often subjective |
42
+ | Code quality assurance | Gates + metrics (entropy/hotspots) + review roles | External tools / manual review | External tools / manual review | Unstable |
43
+ | Impact analysis | CKB graph capability (falls back to grep) | Text search / manual reasoning | Text search / manual reasoning | Easy to miss |
44
+ | Brownfield onboarding | Baseline specs/glossary/minimal verification anchors | Manual | Limited | - |
45
+ | Automation coverage | 21 Skills (proposal→implementation→archive loop) | 3 core commands | Toolkit (greenfield-leaning) | - |
45
46
 
46
47
  ---
47
48
 
48
49
  ## How It Works
49
50
 
50
- ```
51
- DevBooks Workflow
52
-
53
- PROPOSAL Phase APPLY Phase ARCHIVE Phase
54
- (No coding) (Role isolation enforced) (Quality gates)
55
-
56
- ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
57
- │ /devbooks: │ │ Session A │ │ /devbooks: │
58
- │ proposal │ │ ┌───────────┐ │ │ gardener │
59
- │ impact │─────────│ │Test Owner │ │────────────│ delivery │
60
- │ design │ │ │(Run Red │ │ │ │
61
- │ spec │ │ │ first) │ │ │ Quality Gates: │
62
- │ plan │ │ └───────────┘ │ │ ✓ Green evidence│
63
- └─────────────────┘ │ │ │ ✓ Task complete │
64
- │ │ Session B │ │ ✓ Role boundary │
65
- ▼ │ ┌───────────┐ │ │ ✓ No failures │
66
- ┌─────────────────┐ │ │ Coder │ │ └─────────────────┘
67
- │ Triangle Debate │ │ │(Cannot │ │
68
- │ Author/Challenger│ │ │edit tests)│ │
69
- │ /Judge │ │ └───────────┘ │
70
- └─────────────────┘ └─────────────────┘
71
- ```
72
-
73
- **Core Constraint**: Test Owner and Coder **must work in separate conversations**. This is a hard constraint, not a suggestion. Coder cannot modify `tests/**`; completion is verified by tests/builds, not AI self-assessment.
51
+ **Hard constraint**: Test Owner and Coder **must work in separate conversations**. This is not a suggestion. Coder cannot modify `tests/**`. "Done" is defined by tests/build verification, not AI self-evaluation.
74
52
 
75
53
  ---
76
54
 
77
55
  ## Quick Start
78
56
 
79
- ### Supported AI Tools
57
+ ### Supported AI tools
80
58
 
81
- | Tool | Support Level | Slash Commands | Config File |
82
- |------|---------------|----------------|-------------|
83
- | **Claude Code** | Full Skills | `/devbooks:*` | `CLAUDE.md` |
84
- | **Codex CLI** | Full Skills | `/devbooks:*` | `AGENTS.md` |
85
- | **Qoder** | Full Skills | `/devbooks:*` | `AGENTS.md` |
86
- | **Cursor** | Rules | - | `.cursor/rules/` |
87
- | **Windsurf** | Rules | - | `.windsurf/rules/` |
88
- | **Gemini CLI** | Rules | - | `GEMINI.md` |
89
- | **Continue** | Rules | - | `.continue/rules/` |
90
- | **GitHub Copilot** | Instructions | - | `.github/copilot-instructions.md` |
59
+ | Tool | Support Level | Config File |
60
+ |------|---------------|-------------|
61
+ | **Claude Code** | Full Skills | `CLAUDE.md` |
62
+ | **Codex CLI** | Full Skills | `AGENTS.md` |
63
+ | **Qoder** | Full Skills | `AGENTS.md` |
64
+ | **Cursor** | Rules | `.cursor/rules/` |
65
+ | **Windsurf** | Rules | `.windsurf/rules/` |
66
+ | **Gemini CLI** | Rules | `GEMINI.md` |
67
+ | **Continue** | Rules | `.continue/rules/` |
68
+ | **GitHub Copilot** | Instructions | `.github/copilot-instructions.md` |
91
69
 
92
- > **Tip**: For tools without Slash command support, use natural language, e.g., "Run DevBooks proposal skill..."
70
+ > **Tip**: Use natural language to invoke skills, e.g., "Run devbooks-proposal-author skill to create a proposal for adding OAuth2 authentication"
93
71
 
94
- ### Installation
72
+ ### Install & init
95
73
 
96
- **npm install (recommended):**
74
+ **Install via npm (recommended):**
97
75
 
98
76
  ```bash
99
- # Global install
77
+ # global install
100
78
  npm install -g dev-playbooks
101
79
 
102
- # Initialize in your project
80
+ # init inside your project
103
81
  dev-playbooks init
104
82
  ```
105
83
 
@@ -109,314 +87,330 @@ dev-playbooks init
109
87
  npx dev-playbooks@latest init
110
88
  ```
111
89
 
112
- **Install from source (contributors):**
90
+ **From source (contributors):**
113
91
 
114
92
  ```bash
115
- ./scripts/install-skills.sh
93
+ ../scripts/install-skills.sh
116
94
  ```
117
95
 
118
- ### Installation Locations
96
+ ### Install targets
119
97
 
120
98
  After initialization:
121
99
  - Claude Code: `~/.claude/skills/devbooks-*`
122
- - Codex CLI: `$CODEX_HOME/skills/devbooks-*` (default `~/.codex/skills/devbooks-*`)
100
+ - Codex CLI: `~/.codex/skills/devbooks-*`
101
+ - Qoder: `~/.qoder/` (manual setup required)
123
102
 
124
- ### Quick Integration
103
+ ### Quick integration
125
104
 
126
105
  DevBooks uses two directory roots:
127
106
 
128
107
  | Directory | Purpose | Default |
129
- |-----------|---------|---------|
108
+ |------|------|--------|
130
109
  | `<truth-root>` | Current specs (read-only truth) | `dev-playbooks/specs/` |
131
110
  | `<change-root>` | Change packages (workspace) | `dev-playbooks/changes/` |
132
111
 
133
- See `docs/devbooks-integration-template.md` or use `docs/installation-prompt.md` to let AI auto-configure.
112
+ See `docs/devbooks-setup-guide.md`, or use the "Quick Start" prompt in that guide to let your assistant configure it automatically.
134
113
 
135
114
  ---
136
115
 
137
- ## Daily Change Workflow
116
+ ## Day-to-Day Change Workflow
138
117
 
139
- ### Using Router (Recommended)
118
+ ### Use Router (recommended)
140
119
 
141
120
  ```
142
- /devbooks:router <your requirement>
121
+ Run devbooks-router skill: <your request>
143
122
  ```
144
123
 
145
- Router analyzes requirements and outputs an execution plan, telling you which command to use next.
124
+ Router analyzes your request and outputs an execution plan (which skill to run next).
146
125
 
147
- ### Direct Commands
126
+ ### Direct skill invocation
148
127
 
149
- Once familiar with the flow, call Skills directly:
128
+ Once you know the flow, call the Skills directly:
150
129
 
151
- **1. Proposal Phase (No coding)**
130
+ **1) Proposal stage (no coding)**
152
131
 
153
132
  ```
154
- /devbooks:proposal Add OAuth2 user authentication
133
+ Run devbooks-proposal-author skill to create a proposal: Add OAuth2 user authentication
155
134
  ```
156
135
 
157
136
  Artifacts: `proposal.md` (required), `design.md`, `tasks.md`
158
137
 
159
- **2. Apply Phase (Mandatory role isolation)**
138
+ **2) Apply stage (role isolation enforced)**
160
139
 
161
- Must open **2 separate conversations**:
140
+ You must use **two separate conversations**:
162
141
 
163
142
  ```
164
- # Session A - Test Owner
165
- /devbooks:test add-oauth2
143
+ # Chat A - Test Owner
144
+ Run devbooks-test-owner skill for change add-oauth2
166
145
 
167
- # Session B - Coder
168
- /devbooks:code add-oauth2
146
+ # Chat B - Coder
147
+ Run devbooks-coder skill for change add-oauth2
169
148
  ```
170
149
 
171
- - Test Owner: Write `verification.md` + tests, run **Red** first
172
- - Coder: Implement per `tasks.md`, make gates **Green** (cannot modify tests)
150
+ - Test Owner: writes `verification.md` + tests, runs **Red** first
151
+ - Coder: implements per `tasks.md`, makes gates **Green** (cannot modify tests)
173
152
 
174
- **3. Review Phase**
153
+ **3) Review stage**
175
154
 
176
155
  ```
177
- /devbooks:review add-oauth2
156
+ Run devbooks-code-review skill for change add-oauth2
178
157
  ```
179
158
 
180
- **4. Archive Phase**
159
+ **4) Archive stage**
181
160
 
182
161
  ```
183
- /devbooks:gardener add-oauth2
162
+ Run devbooks-spec-gardener skill for change add-oauth2
184
163
  ```
185
164
 
186
165
  ---
187
166
 
188
- ## Command Reference
167
+ ## Skills Reference
189
168
 
190
- ### Proposal Phase
169
+ ### Proposal stage
191
170
 
192
- | Command | Skill | Description |
193
- |---------|-------|-------------|
194
- | `/devbooks:router` | devbooks-router | Smart routing to appropriate Skill |
195
- | `/devbooks:proposal` | devbooks-proposal-author | Create change proposal |
196
- | `/devbooks:impact` | devbooks-impact-analysis | Cross-module impact analysis |
197
- | `/devbooks:challenger` | devbooks-proposal-challenger | Challenge and critique proposal |
198
- | `/devbooks:judge` | devbooks-proposal-judge | Judge proposal |
199
- | `/devbooks:debate` | devbooks-proposal-debate-workflow | Triangle debate (Author/Challenger/Judge) |
200
- | `/devbooks:design` | devbooks-design-doc | Create design document |
201
- | `/devbooks:spec` | devbooks-spec-contract | Define specs and contracts |
202
- | `/devbooks:c4` | devbooks-c4-map | Generate C4 architecture map |
203
- | `/devbooks:plan` | devbooks-implementation-plan | Create implementation plan |
171
+ | Skill | Description |
172
+ |-------|-------------|
173
+ | devbooks-router | Route to the right Skill |
174
+ | devbooks-proposal-author | Create a change proposal |
175
+ | devbooks-impact-analysis | Cross-module impact analysis |
176
+ | devbooks-proposal-challenger | Challenge a proposal |
177
+ | devbooks-proposal-judge | Adjudicate a proposal |
178
+ | devbooks-proposal-debate-workflow | Triangle debate (Author/Challenger/Judge) |
179
+ | devbooks-design-doc | Create a design doc |
180
+ | devbooks-spec-contract | Define specs & contracts |
181
+ | devbooks-c4-map | Generate a C4 map |
182
+ | devbooks-implementation-plan | Create an implementation plan |
204
183
 
205
- ### Apply Phase
184
+ ### Apply stage
206
185
 
207
- | Command | Skill | Description |
208
- |---------|-------|-------------|
209
- | `/devbooks:test` | devbooks-test-owner | Test Owner role (separate conversation required) |
210
- | `/devbooks:code` | devbooks-coder | Coder role (separate conversation required) |
211
- | `/devbooks:backport` | devbooks-design-backport | Backport findings to design document |
186
+ | Skill | Description |
187
+ |-------|-------------|
188
+ | devbooks-test-owner | Test Owner role (separate chat required) |
189
+ | devbooks-coder | Coder role (separate chat required) |
190
+ | devbooks-design-backport | Backport discoveries to design |
212
191
 
213
- ### Review Phase
192
+ ### Review stage
214
193
 
215
- | Command | Skill | Description |
216
- |---------|-------|-------------|
217
- | `/devbooks:review` | devbooks-code-review | Code review (readability/consistency) |
218
- | `/devbooks:test-review` | devbooks-test-reviewer | Test quality and coverage review |
194
+ | Skill | Description |
195
+ |-------|-------------|
196
+ | devbooks-code-review | Code review (readability/consistency) |
219
197
 
220
- ### Archive Phase
198
+ ### Archive stage
221
199
 
222
- | Command | Skill | Description |
223
- |---------|-------|-------------|
224
- | `/devbooks:gardener` | devbooks-spec-gardener | Spec maintenance and deduplication |
225
- | `/devbooks:delivery` | devbooks-delivery-workflow | Complete delivery closed loop |
200
+ | Skill | Description |
201
+ |-------|-------------|
202
+ | devbooks-spec-gardener | Maintain/dedupe specs |
203
+ | devbooks-delivery-workflow | End-to-end delivery workflow |
226
204
 
227
205
  ### Standalone Skills
228
206
 
229
- | Command | Skill | Description |
230
- |---------|-------|-------------|
231
- | `/devbooks:entropy` | devbooks-entropy-monitor | System entropy metrics |
232
- | `/devbooks:federation` | devbooks-federation | Cross-repo federation analysis |
233
- | `/devbooks:bootstrap` | devbooks-brownfield-bootstrap | Legacy project initialization |
234
- | `/devbooks:index` | devbooks-index-bootstrap | Generate SCIP index |
207
+ | Skill | Description |
208
+ |-------|-------------|
209
+ | devbooks-entropy-monitor | System entropy metrics |
210
+ | devbooks-federation | Cross-repo federation analysis |
211
+ | devbooks-brownfield-bootstrap | Brownfield project bootstrap |
212
+ | devbooks-index-bootstrap | Generate a SCIP index |
235
213
 
236
214
  ---
237
215
 
238
- ## Advanced Features
239
-
240
- <details>
241
- <summary><strong>Detailed Comparison with Other Tools</strong></summary>
216
+ ## DevBooks Comparisons
242
217
 
243
218
  ### vs. OpenSpec
244
219
 
245
- [OpenSpec](https://github.com/Fission-AI/OpenSpec) is a lightweight spec-driven framework using three core commands (proposal/apply/archive) to align humans and AI, organizing changes by feature folders.
220
+ [OpenSpec](https://github.com/Fission-AI/OpenSpec) is a lightweight spec-driven framework with three core commands (proposal/apply/archive), organizing changes by feature folders.
246
221
 
247
- **DevBooks adds:**
248
- - **Role isolation**: Hard boundary between Test Owner and Coder (separate conversations required)
249
- - **Quality gates**: 5+ verification gates to catch false completions
250
- - **21 Skills**: Covering proposals, debate, review, entropy metrics, federation analysis
251
- - **Evidence-based completion**: Tests/builds define "done", not AI self-assessment
222
+ **What DevBooks adds:**
223
+ - **Role isolation**: hard boundary between Test Owner and Coder (separate chats)
224
+ - **Quality gates**: 5+ verification gates to block false completion
225
+ - **21 Skills**: proposal, debate, review, entropy metrics, federation, etc.
226
+ - **Evidence-based done**: tests/build define done”, not self-evaluation
252
227
 
253
- **Choose OpenSpec**: Simple spec-driven changes, need lightweight workflow.
228
+ **Choose OpenSpec**: you want a lightweight spec workflow.
254
229
 
255
- **Choose DevBooks**: Large changes, need role separation and quality verification.
230
+ **Choose DevBooks**: you need role separation and verification gates for larger changes.
256
231
 
257
232
  ### vs. spec-kit
258
233
 
259
- [GitHub spec-kit](https://github.com/github/spec-kit) provides a spec-driven development toolkit with constitution files, multi-step refinement, and structured planning.
234
+ [GitHub spec-kit](https://github.com/github/spec-kit) is a spec-driven toolkit with a constitution file, multi-step refinement, and structured planning.
260
235
 
261
- **DevBooks adds:**
262
- - **Legacy-first**: Auto-generate baseline specs for existing codebases
263
- - **Role isolation**: Mandatory separation of test writing and implementation
264
- - **Quality gates**: Runtime verification, not just workflow guidance
265
- - **Prototype mode**: Safe experimentation without polluting main src/
236
+ **What DevBooks adds:**
237
+ - **Brownfield-first**: generates baseline specs for existing repos
238
+ - **Role isolation**: test authoring and implementation are separated
239
+ - **Quality gates**: runtime verification, not just workflow guidance
240
+ - **Prototype mode**: safe experiments without polluting main `src/`
266
241
 
267
- **Choose spec-kit**: 0→1 greenfield projects, using supported AI tools.
242
+ **Choose spec-kit**: greenfield projects with supported AI tools.
268
243
 
269
- **Choose DevBooks**: Legacy projects or need mandatory quality gates.
244
+ **Choose DevBooks**: brownfield repos or when you want enforced gates.
270
245
 
271
246
  ### vs. Kiro.dev
272
247
 
273
- [Kiro](https://kiro.dev/) is AWS's agentic IDE using a three-phase workflow (EARS format requirements, design, tasks), but stores specs and implementation artifacts separately.
248
+ [Kiro](https://kiro.dev/) is an AWS agentic IDE with a three-phase workflow (EARS requirements, design, tasks), but stores specs separately from implementation artifacts.
274
249
 
275
250
  **DevBooks differences:**
276
- - **Change packages**: Each change contains proposal/design/spec/plan/verification/evidence, entire lifecycle traceable in one location
277
- - **Role isolation**: Mandatory separation of Test Owner and Coder
278
- - **Quality gates**: Verification through gates, not just task completion
251
+ - **Change package**: proposal/design/spec/plan/verification/evidence in one place for lifecycle traceability
252
+ - **Role isolation**: Test Owner and Coder are separated
253
+ - **Quality gates**: verified through gates, not just task completion
279
254
 
280
- **Choose Kiro**: Want integrated IDE experience and AWS ecosystem.
255
+ **Choose Kiro**: you want an IDE experience and AWS ecosystem integration.
281
256
 
282
- **Choose DevBooks**: Want change packages bundling all artifacts with mandatory role boundaries.
257
+ **Choose DevBooks**: you want change packages to bundle artifacts and enforce role boundaries.
283
258
 
284
- ### vs. No Spec
259
+ ### vs. no spec
285
260
 
286
- Without specs, AI generates code from vague prompts, leading to unpredictable outputs, scope creep, and "hallucinated completions".
261
+ Without specs, the assistant generates code from vague prompts, leading to unpredictable output, scope creep, and hallucinated completion”.
287
262
 
288
- **DevBooks provides:**
289
- - Agreed specs before implementation
290
- - Quality gates to verify real completion
291
- - Role isolation to prevent self-validation
292
- - Evidence chain for every change
263
+ **DevBooks brings:**
264
+ - Specs agreed before implementation
265
+ - Quality gates that verify real completion
266
+ - Role isolation to prevent self-verification
267
+ - Evidence chain per change
293
268
 
294
- </details>
269
+ ---
270
+
271
+ ## Core Principles
272
+
273
+ | Principle | Meaning |
274
+ |------|------|
275
+ | **Protocol first** | truth/change/archive live in the repo, not only in chat logs |
276
+ | **Anchor first** | done is defined by tests/static checks/build/evidence |
277
+ | **Role isolation** | Test Owner and Coder must work in separate conversations |
278
+ | **Truth root separation** | `<truth-root>` is read-only truth; `<change-root>` is the workspace |
279
+ | **Structural gates** | prioritize complexity/coupling/test quality, not proxy metrics |
280
+
281
+ ---
282
+
283
+ ## Advanced Features
295
284
 
296
285
  <details>
297
- <summary><strong>Quality Gates</strong></summary>
286
+ <summary><strong>Quality gates</strong></summary>
298
287
 
299
- DevBooks provides quality gates to catch "false completions":
288
+ DevBooks uses quality gates to block false done”:
300
289
 
301
- | Gate | Trigger Mode | Check Content |
302
- |------|--------------|---------------|
303
- | Green Evidence Check | archive, strict | `evidence/green-final/` exists and non-empty |
304
- | Task Completion Check | strict | All tasks in tasks.md complete or SKIP-APPROVED |
305
- | Test Failure Interception | archive, strict | No failure patterns in Green evidence |
306
- | P0 Skip Approval | strict | P0 task skips must have approval record |
307
- | Role Boundary Check | apply --role | Coder cannot modify tests/, Test Owner cannot modify src/ |
290
+ | Gate | Trigger mode | What it checks |
291
+ |------|----------|----------|
292
+ | Green evidence | archive, strict | `evidence/green-final/` exists and is non-empty |
293
+ | Task completion | strict | all tasks are done or SKIP-APPROVED |
294
+ | Test failure block | archive, strict | no failures in green evidence |
295
+ | P0 skip approval | strict | P0 skips require an approval record |
296
+ | Role boundary | apply --role | Coder cannot modify tests/, Test Owner cannot modify src/ |
308
297
 
309
- **Core Scripts:**
298
+ Core scripts (in `../skills/devbooks-delivery-workflow/scripts/`):
310
299
  - `change-check.sh --mode proposal|apply|archive|strict`
311
- - `handoff-check.sh` - Role handoff verification
312
- - `audit-scope.sh` - Full audit scan
313
- - `progress-dashboard.sh` - Progress visualization
300
+ - `handoff-check.sh` - handoff boundary checks
301
+ - `audit-scope.sh` - full audit scan
302
+ - `progress-dashboard.sh` - progress visualization
314
303
 
315
304
  </details>
316
305
 
317
306
  <details>
318
- <summary><strong>Prototype Mode</strong></summary>
307
+ <summary><strong>Prototype mode</strong></summary>
319
308
 
320
- When technical approach is uncertain:
309
+ When the technical approach is uncertain:
321
310
 
322
- 1. Create prototype: `change-scaffold.sh <change-id> --prototype`
323
- 2. Test Owner uses `--prototype`: Characterization tests (no Red baseline needed)
324
- 3. Coder uses `--prototype`: Output to `prototype/src/` (isolated from main src)
311
+ 1. Create a prototype: `change-scaffold.sh <change-id> --prototype`
312
+ 2. Test Owner with `--prototype`: characterization tests (no Red baseline required)
313
+ 3. Coder with `--prototype`: output to `prototype/src/` (isolates main src)
325
314
  4. Promote or discard: `prototype-promote.sh <change-id>`
326
315
 
327
- Prototype mode prevents experimental code from polluting main source tree.
316
+ Prototype mode prevents experimental code from polluting the main tree.
317
+
318
+ Scripts live in `../skills/devbooks-delivery-workflow/scripts/`.
328
319
 
329
320
  </details>
330
321
 
331
322
  <details>
332
- <summary><strong>Entropy Metrics Monitoring</strong></summary>
323
+ <summary><strong>Entropy monitoring</strong></summary>
333
324
 
334
- DevBooks tracks four-dimensional system entropy:
325
+ DevBooks tracks four dimensions of system entropy:
335
326
 
336
- | Metric | What It Measures |
337
- |--------|------------------|
338
- | Structural Entropy | Module complexity and coupling |
339
- | Change Entropy | Churn and volatility patterns |
340
- | Test Entropy | Test coverage and quality decay |
341
- | Dependency Entropy | External dependency health |
327
+ | Metric | What it measures |
328
+ |------|----------|
329
+ | Structural entropy | module complexity and coupling |
330
+ | Change entropy | change patterns and volatility |
331
+ | Test entropy | coverage/quality decay over time |
332
+ | Dependency entropy | external dependency health |
342
333
 
343
- Use `/devbooks:entropy` to generate reports and identify refactoring opportunities.
334
+ Use `devbooks-entropy-monitor` skill to generate reports and identify refactor opportunities.
344
335
 
345
- Tools: `tools/devbooks-complexity.sh`, `tools/devbooks-entropy-viz.sh`
336
+ Scripts (in `../skills/devbooks-entropy-monitor/scripts/`): `entropy-measure.sh`, `entropy-report.sh`
346
337
 
347
338
  </details>
348
339
 
349
340
  <details>
350
- <summary><strong>Legacy Project Initialization</strong></summary>
341
+ <summary><strong>Brownfield project bootstrap</strong></summary>
351
342
 
352
343
  When `<truth-root>` is empty:
353
344
 
354
345
  ```
355
- /devbooks:bootstrap
346
+ Run devbooks-brownfield-bootstrap skill
356
347
  ```
357
348
 
358
349
  Generates:
359
- - Project profile and glossary
360
- - Baseline specs from existing code
361
- - Minimal verification anchors
362
- - Module dependency graph
363
- - Tech debt hotspots
350
+ - project profile and glossary
351
+ - baseline specs from existing code
352
+ - minimal verification anchors
353
+ - module dependency map
354
+ - technical debt hotspots
364
355
 
365
356
  </details>
366
357
 
367
358
  <details>
368
- <summary><strong>Cross-Repository Federation</strong></summary>
359
+ <summary><strong>Cross-repo federation</strong></summary>
369
360
 
370
- Multi-repository analysis:
361
+ For multi-repo analysis:
371
362
 
372
363
  ```
373
- /devbooks:federation
364
+ Run devbooks-federation skill
374
365
  ```
375
366
 
376
- Analyzes contracts and dependencies across repository boundaries, supporting coordinated changes.
367
+ Analyzes cross-repo contracts and dependencies to support coordinated changes.
377
368
 
378
369
  </details>
379
370
 
380
371
  <details>
381
- <summary><strong>MCP Code Intelligence Enhancement</strong></summary>
372
+ <summary><strong>MCP auto-detection</strong></summary>
373
+
374
+ DevBooks Skills support graceful MCP (Model Context Protocol) degradation: you can run the full workflow without MCP/CKB; when CKB (Code Knowledge Base) is detected, DevBooks automatically enables graph-based capabilities for more accurate “scope/reference/call chain” analysis.
375
+
376
+ ### What is it for?
382
377
 
383
- DevBooks connects to CKB (Code Knowledge Base) service via MCP (Model Context Protocol), providing AI with **semantic-level code understanding**, not just text search.
378
+ - **More accurate impact analysis**: upgrades from “file-level guesses” to “symbol references + call graphs”
379
+ - **More focused reviews**: automatically pulls hotspots and prioritizes high-risk areas (tech debt/high churn)
380
+ - **Less manual grep**: reduces noise and repeated confirmation in large repos
384
381
 
385
- **CKB Capabilities:**
382
+ ### MCP status and behavior
386
383
 
387
- | Capability | Description | Typical Scenario |
388
- |------------|-------------|------------------|
389
- | **Impact Analysis** | Analyze propagation range and risk of symbol changes | Assess downstream impact before modifying interfaces |
390
- | **Call Graph** | Trace function call chains and dependencies | Understand code execution paths |
391
- | **Hotspot Discovery** | Identify high-churn, high-coupling code areas | Prioritize refactoring |
392
- | **Symbol References** | Precisely find all usage locations of symbols | Confirm impact scope before renaming |
384
+ | MCP status | Behavior |
385
+ |----------|------|
386
+ | CKB available | Enhanced mode: symbol-level impact/references/call graph/hotspots (`mcp__ckb__analyzeImpact`, `mcp__ckb__findReferences`, `mcp__ckb__getCallGraph`, `mcp__ckb__getHotspots`) |
387
+ | CKB unavailable | Basic mode: Grep + Glob text search (full functionality, lower precision) |
393
388
 
394
- **Graceful Degradation:**
389
+ ### Auto detection
395
390
 
396
- | Environment | Behavior |
397
- |-------------|----------|
398
- | CKB Available | Semantic analysis mode: Use graph-based tools for precise analysis |
399
- | CKB Unavailable | Text search mode: Fall back to Grep + Glob (full functionality, reduced precision) |
391
+ - Skills that depend on MCP call `mcp__ckb__getStatus` first (2s timeout)
392
+ - Timeout/failure → silently falls back to basic mode (non-blocking)
393
+ - No manual “basic/enhanced” switch required
400
394
 
401
- Auto-detection with 2-second timeout. No manual configuration needed. Recommend configuring CKB for best code understanding.
395
+ To enable enhanced mode: configure CKB per `docs/Recommended-MCP.md` and run `devbooks-index-bootstrap` skill to generate `index.scip`.
402
396
 
403
397
  </details>
404
398
 
405
399
  <details>
406
- <summary><strong>Proposal Debate Workflow</strong></summary>
400
+ <summary><strong>Proposal debate workflow</strong></summary>
407
401
 
408
- Rigorous proposal review using triangle debate:
402
+ For strict proposal review, run the triangle debate:
409
403
 
410
404
  ```
411
- /devbooks:debate
405
+ Run devbooks-proposal-debate-workflow skill
412
406
  ```
413
407
 
414
408
  Three roles:
415
- 1. **Author**: Create and defend proposal
416
- 2. **Challenger**: Question assumptions, find gaps, identify risks
417
- 3. **Judge**: Make final decision, record rationale
409
+ 1. **Author**: creates and defends the proposal
410
+ 2. **Challenger**: challenges assumptions, finds gaps, identifies risks
411
+ 3. **Judge**: makes the final decision and records rationale
418
412
 
419
- Decision outcomes: `Approved`, `Revise`, `Rejected`
413
+ Decision: `Approved`, `Revise`, `Rejected`
420
414
 
421
415
  </details>
422
416
 
@@ -431,12 +425,14 @@ DevBooks provides migration scripts to help you transition from other spec-drive
431
425
  If you're currently using [OpenSpec](https://github.com/Fission-AI/OpenSpec) with an `openspec/` directory:
432
426
 
433
427
  ```bash
434
- # Download and run the migration script
435
- curl -sL https://raw.githubusercontent.com/ozbombor/dev-playbooks/master/scripts/migrate-from-openspec.sh | bash
428
+ # Using CLI (recommended)
429
+ dev-playbooks migrate --from openspec
436
430
 
437
- # Or run with options
438
- ./scripts/migrate-from-openspec.sh --project-root . --dry-run # Preview changes
439
- ./scripts/migrate-from-openspec.sh --project-root . --keep-old # Keep original directory
431
+ # Preview changes first
432
+ dev-playbooks migrate --from openspec --dry-run
433
+
434
+ # Keep original directory after migration
435
+ dev-playbooks migrate --from openspec --keep-old
440
436
  ```
441
437
 
442
438
  **What gets migrated:**
@@ -444,18 +440,21 @@ curl -sL https://raw.githubusercontent.com/ozbombor/dev-playbooks/master/scripts
444
440
  - `openspec/changes/` → `dev-playbooks/changes/`
445
441
  - `openspec/project.md` → `dev-playbooks/project.md`
446
442
  - All path references are automatically updated
443
+ - AI tool command directories are cleaned up (`.claude/commands/openspec/`, etc.)
447
444
 
448
445
  ### Migrate from GitHub spec-kit
449
446
 
450
447
  If you're using [GitHub spec-kit](https://github.com/github/spec-kit) with `specs/` and `memory/` directories:
451
448
 
452
449
  ```bash
453
- # Download and run the migration script
454
- curl -sL https://raw.githubusercontent.com/ozbombor/dev-playbooks/master/scripts/migrate-from-speckit.sh | bash
450
+ # Using CLI (recommended)
451
+ dev-playbooks migrate --from speckit
452
+
453
+ # Preview changes first
454
+ dev-playbooks migrate --from speckit --dry-run
455
455
 
456
- # Or run with options
457
- ./scripts/migrate-from-speckit.sh --project-root . --dry-run # Preview changes
458
- ./scripts/migrate-from-speckit.sh --project-root . --keep-old # Keep original directories
456
+ # Keep original directories after migration
457
+ dev-playbooks migrate --from speckit --keep-old
459
458
  ```
460
459
 
461
460
  **Mapping rules:**
@@ -486,42 +485,34 @@ After migration:
486
485
  1. Run `dev-playbooks init` to set up DevBooks Skills
487
486
  2. Review migrated files in `dev-playbooks/`
488
487
  3. Update `verification.md` files with proper AC mappings
489
- 4. Run `/devbooks:bootstrap` if you need baseline specs
488
+ 4. Run `devbooks-brownfield-bootstrap` skill if you need baseline specs
490
489
 
491
490
  ---
492
491
 
493
- ## Repository Structure
492
+ ## Directory Structure
494
493
 
495
494
  ```
496
- skills/ # 21 devbooks-* Skills source code
497
- templates/ # Project initialization templates
498
- scripts/ # Installation and helper scripts
499
- tools/ # Complexity and entropy metrics tools
500
- docs/ # Supporting documentation
501
- bin/ # CLI entry point
495
+ dev-playbooks/
496
+ ├── README.md # This document
497
+ ├── constitution.md # Project constitution (GIP principles)
498
+ ├── project.md # Project context (tech stack/conventions)
499
+ ├── specs/ # Current specs (read-only truth)
500
+ │ ├── _meta/ # Metadata (glossary, project profile)
501
+ │ └── architecture/ # Architecture specs (fitness-rules)
502
+ ├── changes/ # Change packages (workspace)
503
+ ├── scripts/ # Helper scripts
504
+ └── docs/ # Documentation
505
+ ├── devbooks-setup-guide.md # Configuration guide
506
+ ├── workflow-diagram.svg # Workflow visualization
507
+ └── Recommended-MCP.md # MCP configuration
502
508
  ```
503
509
 
504
510
  ---
505
511
 
506
512
  ## Documentation
507
513
 
508
- - [Slash Commands Guide](docs/slash-commands-guide.md)
509
- - [Skills Usage Guide](skills/Skills-Usage-Guide.md)
510
- - [MCP Configuration](docs/Recommended-MCP.md)
511
- - [Integration Template](docs/devbooks-integration-template.md)
512
- - [Installation Prompt](docs/installation-prompt.md)
513
-
514
- ---
515
-
516
- ## Design Principles
517
-
518
- | Principle | Description |
519
- |-----------|-------------|
520
- | **Protocol First** | Truth/changes/archives written to project, not just in chat |
521
- | **Anchor First** | Completion defined by tests, static analysis, builds, and evidence |
522
- | **Role Isolation** | Test Owner and Coder must work in separate conversations |
523
- | **Truth Source Separation** | `<truth-root>` is read-only truth; `<change-root>` is temporary workspace |
524
- | **Structure Gating** | Prioritize complexity/coupling/test quality over proxy metrics |
514
+ - [Setup guide](docs/devbooks-setup-guide.md)
515
+ - [MCP configuration recommendations](docs/Recommended-MCP.md)
525
516
 
526
517
  ---
527
518
 
package/bin/devbooks.js CHANGED
@@ -427,14 +427,14 @@ ${DEVBOOKS_MARKERS.start}
427
427
  - Coder 禁止修改 tests/
428
428
  - 任何新功能/破坏性变更/架构改动:必须先创建 \`dev-playbooks/changes/<id>/\`
429
429
 
430
- ## 工作流命令
430
+ ## 工作流 Skills
431
431
 
432
- | 命令 | 说明 |
432
+ | Skill | 说明 |
433
433
  |------|------|
434
- | \`/devbooks:proposal\` | 创建变更提案 |
435
- | \`/devbooks:design\` | 创建设计文档 |
436
- | \`/devbooks:apply <role>\` | 执行实现 |
437
- | \`/devbooks:archive\` | 归档变更包 |
434
+ | \`devbooks-proposal-author\` | 创建变更提案 |
435
+ | \`devbooks-design-doc\` | 创建设计文档 |
436
+ | \`devbooks-test-owner / devbooks-coder\` | 执行实现 |
437
+ | \`devbooks-spec-gardener\` | 归档变更包 |
438
438
 
439
439
  ${DEVBOOKS_MARKERS.end}
440
440
  `;
@@ -545,14 +545,14 @@ function generateAgentsContent(filename) {
545
545
  - Test Owner 与 Coder 必须独立对话/独立实例;Coder 禁止修改 tests/。
546
546
  - 任何新功能/破坏性变更/架构改动:必须先创建 \`dev-playbooks/changes/<id>/\`。
547
547
 
548
- ## 工作流命令
548
+ ## 工作流 Skills
549
549
 
550
- | 命令 | 说明 |
550
+ | Skill | 说明 |
551
551
  |------|------|
552
- | \`/devbooks:proposal\` | 创建变更提案 |
553
- | \`/devbooks:design\` | 创建设计文档 |
554
- | \`/devbooks:apply <role>\` | 执行实现(test-owner/coder/reviewer) |
555
- | \`/devbooks:archive\` | 归档变更包 |
552
+ | \`devbooks-proposal-author\` | 创建变更提案 |
553
+ | \`devbooks-design-doc\` | 创建设计文档 |
554
+ | \`devbooks-test-owner / devbooks-coder\` | 执行实现(test-owner/coder/reviewer) |
555
+ | \`devbooks-spec-gardener\` | 归档变更包 |
556
556
 
557
557
  ${DEVBOOKS_MARKERS.end}
558
558
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-playbooks",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "AI-powered spec-driven development workflow",
5
5
  "keywords": [
6
6
  "devbooks",
@@ -48,7 +48,7 @@ When MCP is unavailable, output:
48
48
 
49
49
  ```
50
50
  ⚠️ CKB unavailable (timeout or not configured), running in basic mode.
51
- To enable enhanced features, run /devbooks:index to build the index.
51
+ To enable enhanced features, run devbooks-index-bootstrap skill to build the index.
52
52
  ```
53
53
  ```
54
54
 
@@ -227,5 +227,5 @@ MCP 增强规则参考:`skills/_shared/mcp-enhancement-template.md`
227
227
 
228
228
  ```
229
229
  ⚠️ CKB 不可用,使用传统分析方法生成项目画像。
230
- 如需更精确的架构分析,请运行 /devbooks:index 生成索引。
230
+ 如需更精确的架构分析,请运行 devbooks-index-bootstrap skill 生成索引。
231
231
  ```
@@ -146,6 +146,6 @@ When MCP is unavailable, output the following notice:
146
146
 
147
147
  ```
148
148
  Warning: CKB unavailable, using directory structure to infer architecture.
149
- Generated C4 diagrams may not be precise. Recommend running /devbooks:index to generate index.
149
+ Generated C4 diagrams may not be precise. Recommend running devbooks-index-bootstrap skill to generate index.
150
150
  ```
151
151
 
@@ -214,6 +214,6 @@ When MCP is unavailable, output the following notice:
214
214
 
215
215
  ```
216
216
  WARNING: CKB unavailable, skipping hotspot detection.
217
- To enable hotspot warnings, run /devbooks:index to generate the index.
217
+ To enable hotspot warnings, run devbooks-index-bootstrap skill to generate the index.
218
218
  ```
219
219
 
@@ -213,5 +213,5 @@ When MCP is unavailable, output the following notice:
213
213
 
214
214
  ```
215
215
  Warning: CKB index unavailable, architecture check will use basic mode.
216
- Suggest running /devbooks:index to generate index for precise checks.
216
+ Suggest running devbooks-index-bootstrap skill to generate index for precise checks.
217
217
  ```
@@ -130,6 +130,6 @@ When MCP is unavailable, output the following notice:
130
130
 
131
131
  ```
132
132
  Warning: CKB unavailable, using Grep text search for impact analysis.
133
- Analysis results may not be precise. Recommend running /devbooks:index to generate index and re-analyze.
133
+ Analysis results may not be precise. Recommend running devbooks-index-bootstrap skill to generate index and re-analyze.
134
134
  ```
135
135
 
@@ -34,7 +34,7 @@ Core values (non-negotiable):
34
34
 
35
35
  Design decision identification criteria:
36
36
  The following are "design decisions" that require user choice:
37
- - Naming style (e.g., `/devbooks:*` vs `/db:*`)
37
+ - Naming style (e.g., skill naming conventions)
38
38
  - Directory structure organization
39
39
  - Tech stack choices (e.g., npm package naming strategy)
40
40
  - Phase partitioning
@@ -119,16 +119,16 @@ impact_profile:
119
119
  ## Execution Plan (Based on Impact Profile)
120
120
 
121
121
  ### Must Execute
122
- 1. `/devbooks:proposal` → proposal.md (proposal exists, skip)
123
- 2. `/devbooks:design` → design.md (required)
124
- 3. `/devbooks:plan` → tasks.md (required)
122
+ 1. `devbooks-proposal-author skill` → proposal.md (proposal exists, skip)
123
+ 2. `devbooks-design-doc skill` → design.md (required)
124
+ 3. `devbooks-implementation-plan skill` → tasks.md (required)
125
125
 
126
126
  ### Recommended (Based on Impact Analysis)
127
- 4. `/devbooks:spec` → specs/** (detected external_api: true)
128
- 5. `/devbooks:c4` → architecture/c4.md (detected architecture_boundary: true)
127
+ 4. `devbooks-spec-contract skill` → specs/** (detected external_api: true)
128
+ 5. `devbooks-c4-map skill` → architecture/c4.md (detected architecture_boundary: true)
129
129
 
130
130
  ### Optional
131
- 6. `/devbooks:impact` → Deep impact analysis (affected_modules > 5)
131
+ 6. `devbooks-impact-analysis skill` → Deep impact analysis (affected_modules > 5)
132
132
  ```
133
133
 
134
134
  ### Parse Failure Handling (AC-012)
@@ -143,13 +143,13 @@ Missing items:
143
143
  - Or impact_profile YAML block is missing
144
144
 
145
145
  Suggested actions:
146
- 1. Run `/devbooks:impact` to generate impact analysis
147
- 2. Or use direct command `/devbooks:<skill>` directly
146
+ 1. Run `devbooks-impact-analysis skill` to generate impact analysis
147
+ 2. Or use the appropriate skill directly
148
148
 
149
- Direct command list:
150
- - /devbooks:design → Design document
151
- - /devbooks:plan → Implementation plan
152
- - /devbooks:spec → Specification definition
149
+ Skill list:
150
+ - devbooks-design-doc skill → Design document
151
+ - devbooks-implementation-plan skill → Implementation plan
152
+ - devbooks-spec-contract skill → Specification definition
153
153
  ```
154
154
 
155
155
  **When YAML parsing fails**:
@@ -161,7 +161,7 @@ Error: <specific error message>
161
161
 
162
162
  Suggested actions:
163
163
  1. Check impact_profile YAML format in proposal.md
164
- 2. Or use direct command `/devbooks:<skill>` to bypass Router
164
+ 2. Or use the appropriate skill to bypass Router
165
165
  ```
166
166
 
167
167
  ---
@@ -270,9 +270,9 @@ Trigger signals: User says "prototype first/quick validation/spike/--prototype/t
270
270
  1. Record key insights learned to `proposal.md` Decision Log
271
271
  2. Delete `prototype/` directory
272
272
 
273
- ## DevBooks Command Adaptation
273
+ ## DevBooks Skill Adaptation
274
274
 
275
- DevBooks uses `/devbooks:proposal`, `/devbooks:apply`, `/devbooks:archive` as entry points.
275
+ DevBooks uses `devbooks-proposal-author skill`, `devbooks-test-owner/coder skill`, `devbooks-spec-gardener skill` as entry points.
276
276
  Route according to A/B/C/D above, artifact paths follow `<truth-root>/<change-root>` mappings in project signposts.
277
277
 
278
278
  ---
@@ -326,7 +326,7 @@ MCP enhancement rules reference: `skills/_shared/mcp-enhancement-template.md`
326
326
 
327
327
  1. Call `mcp__ckb__getStatus` (2s timeout)
328
328
  2. If CKB available → Mark "graph capabilities activated" in routing suggestions
329
- 3. If timeout or failure → Mark "graph capabilities degraded" in routing suggestions, recommend running /devbooks:index
329
+ 3. If timeout or failure → Mark "graph capabilities degraded" in routing suggestions, recommend running devbooks-index-bootstrap skill
330
330
 
331
331
  ### Enhanced Mode vs Basic Mode
332
332
 
@@ -342,5 +342,5 @@ When MCP is unavailable, output the following notice:
342
342
 
343
343
  ```
344
344
  Warning: CKB index not activated, graph capabilities (impact analysis, call graph, etc.) will be degraded.
345
- Recommend running /devbooks:index to generate index for full functionality.
345
+ Recommend running devbooks-index-bootstrap skill to generate index for full functionality.
346
346
  ```
@@ -187,5 +187,5 @@ When MCP is unavailable, output the following notice:
187
187
 
188
188
  ```
189
189
  Warning: CKB unavailable, using Grep text search for contract reference detection.
190
- Results may be less precise. Consider running /devbooks:index to generate the index.
190
+ Results may be less precise. Consider running devbooks-index-bootstrap skill to generate the index.
191
191
  ```