dev-playbooks 1.0.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/LICENSE +21 -0
- package/README.md +463 -0
- package/bin/devbooks.js +986 -0
- package/package.json +41 -0
- package/skills/Skill-Development-Guide.md +249 -0
- package/skills/Skills-Usage-Guide.md +447 -0
- package/skills/_shared/context-detection-template.md +315 -0
- package/skills/_shared/mcp-enhancement-template.md +144 -0
- package/skills/_shared/references/universal-gating-protocol.md +114 -0
- package/skills/_template/config-discovery-template.md +126 -0
- package/skills/devbooks-brownfield-bootstrap/SKILL.md +168 -0
- package/skills/devbooks-brownfield-bootstrap/references/10-glossary-template.md +42 -0
- package/skills/devbooks-brownfield-bootstrap/references/brownfield-bootstrap-prompt.md +115 -0
- package/skills/devbooks-brownfield-bootstrap/references/brownfield-bootstrap.md +96 -0
- package/skills/devbooks-brownfield-bootstrap/references/code-navigation-strategy.md +203 -0
- package/skills/devbooks-brownfield-bootstrap/scripts/cod-update.sh +357 -0
- package/skills/devbooks-brownfield-bootstrap/templates/project-profile-template.md +172 -0
- package/skills/devbooks-c4-map/SKILL.md +151 -0
- package/skills/devbooks-c4-map/references/c4-architecture-map-prompt.md +33 -0
- package/skills/devbooks-c4-map/references/layered-constraint-checklist.md +185 -0
- package/skills/devbooks-code-review/SKILL.md +175 -0
- package/skills/devbooks-code-review/references/code-review-prompt.md +100 -0
- package/skills/devbooks-code-review/references/code-smell-cheatsheet.md +498 -0
- package/skills/devbooks-code-review/references/pr-template-and-guidelines.md +321 -0
- package/skills/devbooks-code-review/references/resource-management-review-checklist.md +311 -0
- package/skills/devbooks-coder/SKILL.md +219 -0
- package/skills/devbooks-coder/references/code-implementation-prompt.md +74 -0
- package/skills/devbooks-coder/references/coding-style-guidelines.md +351 -0
- package/skills/devbooks-coder/references/error-code-standard.md +463 -0
- package/skills/devbooks-coder/references/logging-standard.md +329 -0
- package/skills/devbooks-coder/references/low-risk-modification-techniques.md +275 -0
- package/skills/devbooks-delivery-workflow/SKILL.md +217 -0
- package/skills/devbooks-delivery-workflow/references/9-change-verification-traceability-template.md +133 -0
- package/skills/devbooks-delivery-workflow/references/delivery-acceptance-workflow.md +177 -0
- package/skills/devbooks-delivery-workflow/references/prototype-production-dual-track.md +169 -0
- package/skills/devbooks-delivery-workflow/scripts/ac-trace-check.sh +330 -0
- package/skills/devbooks-delivery-workflow/scripts/audit-scope.sh +262 -0
- package/skills/devbooks-delivery-workflow/scripts/change-check.sh +1039 -0
- package/skills/devbooks-delivery-workflow/scripts/change-codemod-scaffold.sh +135 -0
- package/skills/devbooks-delivery-workflow/scripts/change-evidence.sh +152 -0
- package/skills/devbooks-delivery-workflow/scripts/change-scaffold.sh +467 -0
- package/skills/devbooks-delivery-workflow/scripts/change-spec-delta-scaffold.sh +135 -0
- package/skills/devbooks-delivery-workflow/scripts/constitution-check.sh +237 -0
- package/skills/devbooks-delivery-workflow/scripts/env-match-check.sh +128 -0
- package/skills/devbooks-delivery-workflow/scripts/fitness-check.sh +365 -0
- package/skills/devbooks-delivery-workflow/scripts/guardrail-check.sh +516 -0
- package/skills/devbooks-delivery-workflow/scripts/handoff-check.sh +141 -0
- package/skills/devbooks-delivery-workflow/scripts/hygiene-check.sh +340 -0
- package/skills/devbooks-delivery-workflow/scripts/migrate-from-openspec.sh +385 -0
- package/skills/devbooks-delivery-workflow/scripts/migrate-to-v2-gates.sh +202 -0
- package/skills/devbooks-delivery-workflow/scripts/progress-dashboard.sh +319 -0
- package/skills/devbooks-delivery-workflow/scripts/prototype-promote.sh +341 -0
- package/skills/devbooks-delivery-workflow/scripts/spec-preview.sh +203 -0
- package/skills/devbooks-delivery-workflow/scripts/spec-promote.sh +118 -0
- package/skills/devbooks-delivery-workflow/scripts/spec-rollback.sh +124 -0
- package/skills/devbooks-delivery-workflow/scripts/spec-stage.sh +117 -0
- package/skills/devbooks-delivery-workflow/scripts/verify-all.sh +78 -0
- package/skills/devbooks-delivery-workflow/scripts/verify-npm-package.sh +123 -0
- package/skills/devbooks-delivery-workflow/scripts/verify-openspec-free.sh +81 -0
- package/skills/devbooks-delivery-workflow/scripts/verify-slash-commands.sh +146 -0
- package/skills/devbooks-delivery-workflow/templates/handoff.md +50 -0
- package/skills/devbooks-design-backport/SKILL.md +73 -0
- package/skills/devbooks-design-backport/references/design-backport-prompt.md +132 -0
- package/skills/devbooks-design-doc/SKILL.md +121 -0
- package/skills/devbooks-design-doc/references/design-doc-prompt.md +188 -0
- package/skills/devbooks-design-doc/references/microservice-design-checklist.md +149 -0
- package/skills/devbooks-design-doc/references/privacy-compliance-checklist.md +240 -0
- package/skills/devbooks-entropy-monitor/SKILL.md +188 -0
- package/skills/devbooks-entropy-monitor/references/entropy-metrics-methodology.md +218 -0
- package/skills/devbooks-entropy-monitor/scripts/entropy-measure.sh +449 -0
- package/skills/devbooks-entropy-monitor/scripts/entropy-report.sh +303 -0
- package/skills/devbooks-entropy-monitor/templates/thresholds.json +99 -0
- package/skills/devbooks-federation/SKILL.md +264 -0
- package/skills/devbooks-federation/scripts/federation-check.sh +144 -0
- package/skills/devbooks-federation/templates/federation.yaml +89 -0
- package/skills/devbooks-impact-analysis/SKILL.md +135 -0
- package/skills/devbooks-impact-analysis/references/impact-analysis-prompt.md +82 -0
- package/skills/devbooks-impact-analysis/scripts/graph-cache.sh +214 -0
- package/skills/devbooks-implementation-plan/SKILL.md +83 -0
- package/skills/devbooks-implementation-plan/references/implementation-plan-prompt.md +95 -0
- package/skills/devbooks-index-bootstrap/SKILL.md +240 -0
- package/skills/devbooks-proposal-author/SKILL.md +83 -0
- package/skills/devbooks-proposal-author/references/proposal-authoring-prompt.md +66 -0
- package/skills/devbooks-proposal-challenger/SKILL.md +86 -0
- package/skills/devbooks-proposal-challenger/references/ethics-and-compliance-checklist.md +176 -0
- package/skills/devbooks-proposal-challenger/references/proposal-challenge-prompt.md +57 -0
- package/skills/devbooks-proposal-debate-workflow/SKILL.md +78 -0
- package/skills/devbooks-proposal-debate-workflow/references/11-proposal-debate-template.md +35 -0
- package/skills/devbooks-proposal-debate-workflow/references/proposal-debate-workflow.md +24 -0
- package/skills/devbooks-proposal-debate-workflow/scripts/proposal-debate-check.sh +102 -0
- package/skills/devbooks-proposal-judge/SKILL.md +78 -0
- package/skills/devbooks-proposal-judge/references/proposal-judge-prompt.md +37 -0
- package/skills/devbooks-router/SKILL.md +346 -0
- package/skills/devbooks-spec-contract/SKILL.md +191 -0
- package/skills/devbooks-spec-contract/references/api-design-guide.md +349 -0
- package/skills/devbooks-spec-contract/references/contract-and-data-definition-prompt.md +85 -0
- package/skills/devbooks-spec-contract/references/implicit-change-detection-prompt.md +183 -0
- package/skills/devbooks-spec-contract/references/spec-change-prompt.md +63 -0
- package/skills/devbooks-spec-contract/scripts/implicit-change-detect.sh +378 -0
- package/skills/devbooks-spec-gardener/SKILL.md +73 -0
- package/skills/devbooks-spec-gardener/references/spec-gardener-prompt.md +41 -0
- package/skills/devbooks-test-owner/SKILL.md +173 -0
- package/skills/devbooks-test-owner/references/9-change-verification-traceability-template.md +133 -0
- package/skills/devbooks-test-owner/references/async-system-test-strategy.md +316 -0
- package/skills/devbooks-test-owner/references/decoupling-techniques-cheatsheet.md +269 -0
- package/skills/devbooks-test-owner/references/test-code-prompt.md +171 -0
- package/skills/devbooks-test-owner/references/test-driven-development.md +351 -0
- package/skills/devbooks-test-owner/references/test-layering-strategy.md +281 -0
- package/skills/devbooks-test-reviewer/SKILL.md +189 -0
- package/templates/.devbooks/config.yaml +88 -0
- package/templates/claude-commands/devbooks/apply.md +38 -0
- package/templates/claude-commands/devbooks/archive.md +33 -0
- package/templates/claude-commands/devbooks/backport.md +19 -0
- package/templates/claude-commands/devbooks/bootstrap.md +20 -0
- package/templates/claude-commands/devbooks/c4.md +20 -0
- package/templates/claude-commands/devbooks/challenger.md +19 -0
- package/templates/claude-commands/devbooks/code.md +20 -0
- package/templates/claude-commands/devbooks/debate.md +20 -0
- package/templates/claude-commands/devbooks/delivery.md +20 -0
- package/templates/claude-commands/devbooks/design.md +20 -0
- package/templates/claude-commands/devbooks/entropy.md +19 -0
- package/templates/claude-commands/devbooks/federation.md +19 -0
- package/templates/claude-commands/devbooks/gardener.md +19 -0
- package/templates/claude-commands/devbooks/impact.md +19 -0
- package/templates/claude-commands/devbooks/index.md +19 -0
- package/templates/claude-commands/devbooks/judge.md +19 -0
- package/templates/claude-commands/devbooks/plan.md +20 -0
- package/templates/claude-commands/devbooks/proposal.md +20 -0
- package/templates/claude-commands/devbooks/quick.md +43 -0
- package/templates/claude-commands/devbooks/review.md +20 -0
- package/templates/claude-commands/devbooks/router.md +19 -0
- package/templates/claude-commands/devbooks/spec.md +20 -0
- package/templates/claude-commands/devbooks/test-review.md +19 -0
- package/templates/claude-commands/devbooks/test.md +20 -0
- package/templates/dev-playbooks/changes/.gitkeep +1 -0
- package/templates/dev-playbooks/constitution.md +116 -0
- package/templates/dev-playbooks/project.md +96 -0
- package/templates/dev-playbooks/scripts/.gitkeep +1 -0
- package/templates/dev-playbooks/specs/_meta/anti-patterns/.gitkeep +2 -0
- package/templates/dev-playbooks/specs/_meta/glossary.md +48 -0
- package/templates/dev-playbooks/specs/_meta/project-profile.md +79 -0
- package/templates/dev-playbooks/specs/architecture/fitness-rules.md +95 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
# DevBooks Skills Quick Reference (Purpose / When to Use / Copy-Paste Prompts)
|
|
2
|
+
|
|
3
|
+
Default paths (DevBooks project layout):
|
|
4
|
+
- `<truth-root>` = `dev-playbooks/specs`
|
|
5
|
+
- `<change-root>` = `dev-playbooks/changes`
|
|
6
|
+
- `<change-id>` = the change package directory name for this change (verb-first)
|
|
7
|
+
|
|
8
|
+
If you are not using DevBooks, replace `dev-playbooks/specs` / `dev-playbooks/changes` with the `<truth-root>` / `<change-root>` defined by your project’s “signpost” file (e.g. `project.md`, `AGENTS.md`, or your protocol config).
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## `devbooks-router` (Router)
|
|
13
|
+
|
|
14
|
+
- Purpose: route your natural-language request into which `devbooks-*` Skills to run next (in order) + where each artifact should be written.
|
|
15
|
+
- Graph index health check: calls `mcp__ckb__getStatus` before routing; if SCIP is unavailable it suggests generating an index.
|
|
16
|
+
- When to use:
|
|
17
|
+
- You are not sure whether you are in proposal/apply/review/archive
|
|
18
|
+
- You are not sure whether to write proposal/design/spec/tasks/tests first
|
|
19
|
+
- You want the shortest closed loop, not a long checklist
|
|
20
|
+
- You want **Prototype mode** (technical approach is uncertain; validate quickly)
|
|
21
|
+
- Copy-paste prompt:
|
|
22
|
+
```text
|
|
23
|
+
You are Router. Explicitly use `devbooks-router`.
|
|
24
|
+
First read: `dev-playbooks/project.md`
|
|
25
|
+
Ask me 2 questions first: what is `<change-id>`? what are `<truth-root>/<change-root>` in this project?
|
|
26
|
+
Then provide: the next Skills to use (in order) + the exact file paths for each output.
|
|
27
|
+
|
|
28
|
+
My request:
|
|
29
|
+
<one sentence describing what to do + constraints/boundaries>
|
|
30
|
+
```
|
|
31
|
+
- Prototype-mode prompt:
|
|
32
|
+
```text
|
|
33
|
+
You are Router. Explicitly use `devbooks-router` and enable Prototype mode.
|
|
34
|
+
First read: `dev-playbooks/project.md`
|
|
35
|
+
|
|
36
|
+
I want a throwaway prototype to validate feasibility (Plan to Throw One Away).
|
|
37
|
+
Route me through the prototype track:
|
|
38
|
+
1) Create the prototype scaffold: `change-scaffold.sh <change-id> --prototype ...`
|
|
39
|
+
2) Test Owner produces characterization tests (no Red baseline required)
|
|
40
|
+
3) Coder implements under `prototype/src/` (allowed to bypass gates; must not touch repo `src/`)
|
|
41
|
+
4) After verification, tell me how to promote to production (`prototype-promote.sh`) or discard
|
|
42
|
+
|
|
43
|
+
My request:
|
|
44
|
+
<one sentence describing what to validate + technical questions/assumptions>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## `devbooks-proposal-author` (Proposal Author)
|
|
50
|
+
|
|
51
|
+
- Purpose: produce `proposal.md` (Why/What/Impact + Debate Packet) as the entry point for Design/Spec/Plan (no code in proposal stage).
|
|
52
|
+
- When to use:
|
|
53
|
+
- New features / behavior changes / refactor proposals / “why change?”
|
|
54
|
+
- You want scope/risks/rollback/acceptance clarified before implementation
|
|
55
|
+
- Copy-paste prompt:
|
|
56
|
+
```text
|
|
57
|
+
You are Proposal Author. Explicitly use `devbooks-proposal-author` and follow the DevBooks proposal stage (no implementation code).
|
|
58
|
+
First read: `dev-playbooks/project.md`
|
|
59
|
+
Generate a verb-first `<change-id>` and repeat it 3 times so I can confirm.
|
|
60
|
+
Then write: `dev-playbooks/changes/<change-id>/proposal.md` (must include a Debate Packet).
|
|
61
|
+
Extra requirement: in Impact, explicitly describe value signals/measurement and value-stream bottleneck hypotheses (use "None" if not applicable).
|
|
62
|
+
|
|
63
|
+
My request:
|
|
64
|
+
<one-sentence request + background + constraints>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## `devbooks-impact-analysis` (Impact Analyst)
|
|
70
|
+
|
|
71
|
+
- Purpose: perform impact analysis (cross-module/cross-file/external contract changes) and write conclusions back to the Impact section of `proposal.md`.
|
|
72
|
+
- Two analysis modes:
|
|
73
|
+
- Graph-based (when SCIP is available): use `analyzeImpact`/`findReferences`/`getCallGraph` for high precision
|
|
74
|
+
- Text search (fallback): use `Grep`/`Glob` keyword search
|
|
75
|
+
- When to use:
|
|
76
|
+
- You are changing many files / unsure of blast radius / compatibility risk
|
|
77
|
+
- It “looks like a small change” but you worry about cross-module breakage
|
|
78
|
+
- Copy-paste prompt:
|
|
79
|
+
```text
|
|
80
|
+
You are Impact Analyst. Explicitly use `devbooks-impact-analysis` (do not write code).
|
|
81
|
+
First read: `dev-playbooks/project.md`, `dev-playbooks/changes/<change-id>/proposal.md`, and `dev-playbooks/specs/**`.
|
|
82
|
+
Output impact analysis (Scope/Impacts/Risks/Minimal Diff/Open Questions) and backfill it into:
|
|
83
|
+
`dev-playbooks/changes/<change-id>/proposal.md` (Impact section).
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## `devbooks-proposal-challenger` (Proposal Challenger)
|
|
89
|
+
|
|
90
|
+
- Purpose: challenge `proposal.md`. Output a “challenge report” and a conclusion (Approve/Revise/Reject). Do not modify files.
|
|
91
|
+
- When to use:
|
|
92
|
+
- High risk, high controversy, many trade-offs
|
|
93
|
+
- You want a hard-gate review to prevent vague proposals from passing
|
|
94
|
+
- Copy-paste prompt:
|
|
95
|
+
```text
|
|
96
|
+
You are Proposal Challenger. Explicitly use `devbooks-proposal-challenger`.
|
|
97
|
+
Read only: `dev-playbooks/changes/<change-id>/proposal.md` (optionally `design.md` / `dev-playbooks/specs/**` if needed).
|
|
98
|
+
Output only a challenge report (must conclude `Approve | Revise | Reject`). Do not modify any files.
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## `devbooks-proposal-judge` (Proposal Judge)
|
|
104
|
+
|
|
105
|
+
- Purpose: judge proposal stage; decide `Approved | Revise | Rejected` and write back to the Decision Log in `proposal.md`.
|
|
106
|
+
- When to use:
|
|
107
|
+
- You already have a Challenger report and need final judgment and “required changes / verification requirements”
|
|
108
|
+
- Copy-paste prompt:
|
|
109
|
+
```text
|
|
110
|
+
You are Proposal Judge. Explicitly use `devbooks-proposal-judge`.
|
|
111
|
+
Inputs: `dev-playbooks/changes/<change-id>/proposal.md` + the Challenger report I paste here.
|
|
112
|
+
Decide `Approved | Revise | Rejected`, and write the decision plus required changes/verification requirements into:
|
|
113
|
+
`dev-playbooks/changes/<change-id>/proposal.md` (Decision Log must not be Pending).
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## `devbooks-proposal-debate-workflow` (Proposal Debate Workflow)
|
|
119
|
+
|
|
120
|
+
- Purpose: run “proposal → challenge → judgment” as a 3-role triangular debate (Author/Challenger/Judge isolation), and ensure the Decision Log is explicit.
|
|
121
|
+
- When to use:
|
|
122
|
+
- You want enforced 3-role contention to raise proposal quality
|
|
123
|
+
- Your team often “starts coding before risks are stated”
|
|
124
|
+
- Copy-paste prompt:
|
|
125
|
+
```text
|
|
126
|
+
You are Proposal Debate Orchestrator. Explicitly use `devbooks-proposal-debate-workflow`.
|
|
127
|
+
First read: `dev-playbooks/project.md`
|
|
128
|
+
Constraint: Author/Challenger/Judge must be separate conversations/instances; if I cannot provide that, stop and explain why.
|
|
129
|
+
Goal: `dev-playbooks/changes/<change-id>/proposal.md` Decision Log must end in Approved/Revise/Rejected (no Pending).
|
|
130
|
+
Tell me, step by step, what instruction I should copy-paste into each separate conversation, and what outputs I should paste back here.
|
|
131
|
+
|
|
132
|
+
My request:
|
|
133
|
+
<one-sentence request + background + constraints>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## `devbooks-design-doc` (Design Owner / Design Doc)
|
|
139
|
+
|
|
140
|
+
- Purpose: write `design.md` with What/Constraints + AC-xxx only (no implementation steps). This is the golden truth for tests and planning.
|
|
141
|
+
- When to use:
|
|
142
|
+
- Anything beyond a trivial change
|
|
143
|
+
- You need explicit constraints, acceptance rules, boundaries, and invariants
|
|
144
|
+
- Copy-paste prompt:
|
|
145
|
+
```text
|
|
146
|
+
You are Design Owner. Explicitly use `devbooks-design-doc` (no implementation steps).
|
|
147
|
+
First read: `dev-playbooks/project.md`, `dev-playbooks/changes/<change-id>/proposal.md`
|
|
148
|
+
Write: `dev-playbooks/changes/<change-id>/design.md` (What/Constraints + AC-xxx only).
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## `devbooks-spec-contract` (Spec & Contract Owner) [New]
|
|
154
|
+
|
|
155
|
+
> This Skill merges what used to be `devbooks-spec-delta` and `devbooks-contract-data`, reducing selection friction.
|
|
156
|
+
|
|
157
|
+
- Purpose: define external behavior specs and contracts (Requirements/Scenarios/API/Schema/compatibility strategy), and suggest or generate contract tests.
|
|
158
|
+
- When to use:
|
|
159
|
+
- External behavior/contract/data invariants change
|
|
160
|
+
- OpenAPI/Proto/event envelope/schema/config format changes
|
|
161
|
+
- You need a compatibility/deprecation strategy, migrations, and replay
|
|
162
|
+
- Copy-paste prompt:
|
|
163
|
+
```text
|
|
164
|
+
You are Spec & Contract Owner. Explicitly use `devbooks-spec-contract`.
|
|
165
|
+
First read: `dev-playbooks/changes/<change-id>/proposal.md`, `dev-playbooks/changes/<change-id>/design.md` (if present)
|
|
166
|
+
Output in one pass:
|
|
167
|
+
- Spec delta: `dev-playbooks/changes/<change-id>/specs/<capability>/spec.md` (Requirements/Scenarios)
|
|
168
|
+
- Contract plan: write into the Contract section of `design.md` (API changes + compatibility strategy + Contract Test IDs)
|
|
169
|
+
If there is implicit-change risk, run: `implicit-change-detect.sh`
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## `devbooks-c4-map` (C4 Map Maintainer)
|
|
175
|
+
|
|
176
|
+
- Purpose: maintain/update the authoritative C4 architecture map (truth) and produce a C4 Delta per change.
|
|
177
|
+
- When to use:
|
|
178
|
+
- Proposal stage: describe boundary/dependency direction changes in `design.md` (C4 Delta only; do not modify current truth)
|
|
179
|
+
- Review/archive stage: change is implemented; update the authoritative map at `(<truth-root>/architecture/c4.md)`
|
|
180
|
+
- Copy-paste prompts:
|
|
181
|
+
- Proposal stage (C4 Delta only; do not edit current truth):
|
|
182
|
+
```text
|
|
183
|
+
You are C4 Map Maintainer. Explicitly use `devbooks-c4-map`, but during proposal stage do NOT modify `dev-playbooks/specs/architecture/c4.md` (current truth).
|
|
184
|
+
First read: `dev-playbooks/specs/architecture/c4.md` (if present) + `dev-playbooks/changes/<change-id>/proposal.md` + `dev-playbooks/changes/<change-id>/design.md`.
|
|
185
|
+
Output: a **C4 Delta** section that I can paste into `dev-playbooks/changes/<change-id>/design.md` (C1/C2/C3 add/modify/remove + dependency direction changes + suggested architecture guardrails/fitness tests).
|
|
186
|
+
```
|
|
187
|
+
- Review/archive stage (update current truth map):
|
|
188
|
+
```text
|
|
189
|
+
You are C4 Map Maintainer. Explicitly use `devbooks-c4-map`.
|
|
190
|
+
First read: `dev-playbooks/specs/architecture/c4.md` (if present) + `dev-playbooks/changes/<change-id>/design.md` + relevant code changes (to confirm the change is real).
|
|
191
|
+
Update (or create a minimal skeleton with TODOs): `dev-playbooks/specs/architecture/c4.md`.
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## `devbooks-implementation-plan` (Planner / tasks.md)
|
|
197
|
+
|
|
198
|
+
- Purpose: derive an implementation plan `tasks.md` from `design.md` (critical path / side quests / checkpoints), tied to verification anchors (must not reference `tests/`).
|
|
199
|
+
- When to use:
|
|
200
|
+
- You need task decomposition, parallelization, milestones, and verification anchors
|
|
201
|
+
- A large change needs controlled diffs and testable sub-steps
|
|
202
|
+
- Copy-paste prompt:
|
|
203
|
+
```text
|
|
204
|
+
You are Planner. Explicitly use `devbooks-implementation-plan` (do not write implementation code).
|
|
205
|
+
First read: `dev-playbooks/changes/<change-id>/design.md` (and this change's `specs/**` if present). Do not reference `tests/**`.
|
|
206
|
+
Write: `dev-playbooks/changes/<change-id>/tasks.md` (every task must include a verification anchor).
|
|
207
|
+
Finally run: `devbooks validate <change-id> --strict` and fix all issues.
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## `devbooks-test-owner` (Test Owner)
|
|
213
|
+
|
|
214
|
+
- Purpose: convert design/spec into executable acceptance tests and traceability doc `verification.md`; must be isolated from implementation (Coder) and produce a Red baseline first.
|
|
215
|
+
- When to use:
|
|
216
|
+
- TDD / acceptance tests / trace matrix
|
|
217
|
+
- Contract tests / architecture fitness tests
|
|
218
|
+
- Output control: if test output exceeds 50 lines, keep only the key failure info; write full logs into `evidence/`.
|
|
219
|
+
- Copy-paste prompt (must be a new conversation/instance):
|
|
220
|
+
```text
|
|
221
|
+
You are Test Owner (must be a separate conversation/instance). Explicitly use `devbooks-test-owner` and follow the DevBooks apply stage.
|
|
222
|
+
Read-only inputs: `dev-playbooks/changes/<change-id>/proposal.md`, `design.md`, and this change's `specs/**` (if any). Do not reference `tasks.md`.
|
|
223
|
+
Produce:
|
|
224
|
+
- `dev-playbooks/changes/<change-id>/verification.md` (includes trace matrix)
|
|
225
|
+
- `tests/**` (following repo conventions)
|
|
226
|
+
- failure evidence written into `dev-playbooks/changes/<change-id>/evidence/`
|
|
227
|
+
Requirements: produce a Red baseline first; finally run `devbooks validate <change-id> --strict`.
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## `devbooks-coder` (Coder)
|
|
233
|
+
|
|
234
|
+
- Purpose: implement strictly according to `tasks.md` and run quality gates; must not modify `tests/**`; completion is defined only by tests/static checks/build.
|
|
235
|
+
- When to use:
|
|
236
|
+
- Implementation stage: implement tasks, fix failing tests, make gates green
|
|
237
|
+
- Hotspot awareness: before starting, call `mcp__ckb__getHotspots` to identify high-risk files and produce a hotspot report:
|
|
238
|
+
- Critical: top 5 hotspots + core logic changes → refactor first, then modify; must add tests
|
|
239
|
+
- High: top 10 hotspots → increase test coverage; focus review
|
|
240
|
+
- Normal: not a hotspot → standard workflow
|
|
241
|
+
- Resume support: after interruption, Coder should detect completed tasks in `tasks.md` and continue from the checkpoint
|
|
242
|
+
- Output control: if command output exceeds 50 lines, keep first/last 10 lines + a summary; write full logs to `evidence/`.
|
|
243
|
+
- Copy-paste prompt (must be a new conversation/instance):
|
|
244
|
+
```text
|
|
245
|
+
You are Coder (must be a separate conversation/instance). Explicitly use `devbooks-coder` and follow the DevBooks apply stage.
|
|
246
|
+
First read: `dev-playbooks/changes/<change-id>/tasks.md`, plus Test Owner’s `verification.md` (if present).
|
|
247
|
+
Implement strictly per `tasks.md`; check off each item with `- [x]` as you complete it.
|
|
248
|
+
Do not modify `tests/**`; if tests must change, hand back to Test Owner.
|
|
249
|
+
Use tests/static checks/build as the only definition of done; write key outputs into `dev-playbooks/changes/<change-id>/evidence/` when needed.
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## `devbooks-code-review` (Reviewer)
|
|
255
|
+
|
|
256
|
+
- Purpose: review readability/consistency/dependency health/code smells; output actionable suggestions only; do not judge business correctness.
|
|
257
|
+
- Hotspot-first review: call `mcp__ckb__getHotspots` before reviewing; prioritize by risk:
|
|
258
|
+
- Top 5 hotspots: deep review (test coverage, cyclomatic complexity delta, dependency delta)
|
|
259
|
+
- Top 10 hotspots: focus
|
|
260
|
+
- Not a hotspot: standard review
|
|
261
|
+
- When to use:
|
|
262
|
+
- Before/after PR review to guard maintainability
|
|
263
|
+
- You want to discover coupling/dependency direction/complexity/smells
|
|
264
|
+
- Copy-paste prompt:
|
|
265
|
+
```text
|
|
266
|
+
You are Reviewer. Explicitly use `devbooks-code-review`.
|
|
267
|
+
Review only readability/consistency/dependency health/code smells; do not discuss business correctness; do not modify `tests/` or design.
|
|
268
|
+
Inputs: code changes + `dev-playbooks/specs/**` (as needed for profile/glossary/anti-patterns).
|
|
269
|
+
Output: severe issues / maintainability risks / consistency suggestions / suggested quality gates to add.
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## `devbooks-design-backport` (Design Doc Editor / Backport)
|
|
275
|
+
|
|
276
|
+
- Purpose: backport constraints/conflicts/gaps discovered during implementation into `design.md` (keep design as the golden truth), and record decisions and impact.
|
|
277
|
+
- When to use:
|
|
278
|
+
- You discovered “design gap / conflicts with implementation / temporary decision with non-local impact”
|
|
279
|
+
- You need to stop and update design before continuing
|
|
280
|
+
- Copy-paste prompt:
|
|
281
|
+
```text
|
|
282
|
+
You are Design Doc Editor. Explicitly use `devbooks-design-backport`.
|
|
283
|
+
Trigger: implementation discovered a design gap/conflict/temporary decision.
|
|
284
|
+
Backport design-level updates into: `dev-playbooks/changes/<change-id>/design.md` (explain reasons and impact), then stop.
|
|
285
|
+
Explicitly tell me that Planner must rerun tasks, and Test Owner may need to add tests / rerun the Red baseline.
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## `devbooks-spec-gardener` (Spec Gardener)
|
|
291
|
+
|
|
292
|
+
- Purpose: before archiving, prune and maintain `<truth-root>` (dedupe/merge/remove stale/reorganize/fix consistency) to prevent spec sprawl.
|
|
293
|
+
- When to use:
|
|
294
|
+
- This change produced spec deltas and is ready to be merged into truth
|
|
295
|
+
- You found duplicate/overlapping/stale entries in `<truth-root>`
|
|
296
|
+
- Copy-paste prompt:
|
|
297
|
+
```text
|
|
298
|
+
You are Spec Gardener. Explicitly use `devbooks-spec-gardener`.
|
|
299
|
+
Inputs: `dev-playbooks/changes/<change-id>/specs/**` + `dev-playbooks/specs/**` + `dev-playbooks/changes/<change-id>/design.md` (if any).
|
|
300
|
+
You may modify only `dev-playbooks/specs/**` to merge/dedupe/categorize/delete stale items; do not modify the change package contents.
|
|
301
|
+
Output in order: operation list (CREATE/UPDATE/MOVE/DELETE) → full content for every CREATE/UPDATE file → merge mapping summary → Open Questions (<=3).
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## `devbooks-delivery-workflow` (Delivery Workflow + Scripts)
|
|
307
|
+
|
|
308
|
+
- Purpose: run a change as a traceable closed loop (Design → Plan → Trace → Verify → Implement → Archive), with deterministic scripts for scaffolding/checks/evidence/codemods.
|
|
309
|
+
- Architecture compliance checks: `guardrail-check.sh` options:
|
|
310
|
+
- `--check-layers`: check layering constraint violations
|
|
311
|
+
- `--check-cycles`: check circular dependencies
|
|
312
|
+
- `--check-hotspots`: warn on hotspot file changes
|
|
313
|
+
- When to use:
|
|
314
|
+
- You want to script repetitive steps (avoid missing files/fields/verifications)
|
|
315
|
+
- You want “done” anchored to executable checks, not verbal confirmation
|
|
316
|
+
- Copy-paste prompt:
|
|
317
|
+
```text
|
|
318
|
+
Explicitly use `devbooks-delivery-workflow`.
|
|
319
|
+
Goal: prefer the Skill’s `scripts/*` for scaffolding/checking/evidence collection, rather than hand-writing from memory.
|
|
320
|
+
Constraint: do not paste script bodies; run scripts and summarize results; ask me before running each command.
|
|
321
|
+
|
|
322
|
+
Project root: $(pwd)
|
|
323
|
+
change-id: <change-id>
|
|
324
|
+
truth-root: dev-playbooks/specs
|
|
325
|
+
change-root: dev-playbooks/changes
|
|
326
|
+
|
|
327
|
+
Suggest and execute (after I confirm) in order:
|
|
328
|
+
1) `change-scaffold.sh <change-id> --project-root \"$(pwd)\" --change-root dev-playbooks/changes --truth-root dev-playbooks/specs`
|
|
329
|
+
2) `change-check.sh <change-id> --mode proposal --project-root \"$(pwd)\" --change-root dev-playbooks/changes --truth-root dev-playbooks/specs`
|
|
330
|
+
3) (When evidence is needed) use a script to persist logs into `dev-playbooks/changes/<change-id>/evidence/`
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## `devbooks-brownfield-bootstrap` (Brownfield Bootstrapper)
|
|
336
|
+
|
|
337
|
+
- Purpose: bootstrap an existing project: when `<truth-root>` is empty/missing, generate project profile, glossary, baseline specs, and minimal verification anchors to avoid “editing specs while changing behavior”.
|
|
338
|
+
- COD-style outputs (“code map” artifacts):
|
|
339
|
+
- Module dependency map: `<truth-root>/architecture/module-graph.md` (from `mcp__ckb__getArchitecture`)
|
|
340
|
+
- Tech-debt hotspots: `<truth-root>/architecture/hotspots.md` (from `mcp__ckb__getHotspots`)
|
|
341
|
+
- Domain concepts: `<truth-root>/_meta/key-concepts.md` (from `mcp__ckb__listKeyConcepts`)
|
|
342
|
+
- Project profile template: three layers (syntax/semantics/context)
|
|
343
|
+
- When to use:
|
|
344
|
+
- An existing project wants to adopt DevBooks but has no truth/spec baseline
|
|
345
|
+
- You want to describe “what it is today” before making changes
|
|
346
|
+
- Copy-paste prompt:
|
|
347
|
+
```text
|
|
348
|
+
You are Brownfield Bootstrapper. Explicitly use `devbooks-brownfield-bootstrap`.
|
|
349
|
+
Confirm: truth-root = `dev-playbooks/specs`, change-root = `dev-playbooks/changes`.
|
|
350
|
+
Constraint: produce docs and baseline specs only; no refactors, no behavior changes, no implementation plan.
|
|
351
|
+
Produce, in one pass:
|
|
352
|
+
- `dev-playbooks/specs/_meta/project-profile.md`
|
|
353
|
+
- (optional) `dev-playbooks/specs/_meta/glossary.md`
|
|
354
|
+
- a baseline change package: `dev-playbooks/changes/<baseline-id>/*` (proposal/design/specs/verification)
|
|
355
|
+
Finally, tell me how to merge the baseline into `dev-playbooks/specs/` (archive/manual steps).
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## `devbooks-entropy-monitor` (Entropy Monitor)
|
|
361
|
+
|
|
362
|
+
- Purpose: periodically collect entropy metrics (structural/change/test/dependency) and generate a quantitative report; suggest refactors when thresholds are exceeded.
|
|
363
|
+
- When to use:
|
|
364
|
+
- You want regular health checks (complexity trends, hotspot files, flaky test ratio)
|
|
365
|
+
- You want quantified evidence before refactoring
|
|
366
|
+
- You want a visualized tech-debt trend
|
|
367
|
+
- Copy-paste prompt:
|
|
368
|
+
```text
|
|
369
|
+
You are Entropy Monitor. Explicitly use `devbooks-entropy-monitor`.
|
|
370
|
+
First read: `dev-playbooks/project.md` (if present)
|
|
371
|
+
Goal: collect current entropy metrics and generate a quantitative report.
|
|
372
|
+
|
|
373
|
+
Steps:
|
|
374
|
+
1) Run `entropy-measure.sh --project-root "$(pwd)"` to collect 4 dimensions (structural/change/test/dependency)
|
|
375
|
+
2) Run `entropy-report.sh --output <truth-root>/_meta/entropy/entropy-report-$(date +%Y-%m-%d).md` to generate the report
|
|
376
|
+
3) Compare against thresholds (`thresholds.json`) and list exceeded metrics
|
|
377
|
+
4) If thresholds are exceeded: propose refactoring suggestions (usable as evidence for a future proposal)
|
|
378
|
+
|
|
379
|
+
Project root: $(pwd)
|
|
380
|
+
truth-root: dev-playbooks/specs
|
|
381
|
+
```
|
|
382
|
+
- Suggested cadence:
|
|
383
|
+
- Small (< 10K LOC): weekly manual run
|
|
384
|
+
- Medium (10K–100K LOC): scheduled CI daily run
|
|
385
|
+
- Large (> 100K LOC): trigger on PR merge
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## `devbooks-index-bootstrap` (Index Bootstrapper) [New]
|
|
390
|
+
|
|
391
|
+
- Purpose: detect project language stack and generate a SCIP index to unlock graph-based code understanding (call graph, impact analysis, symbol references, etc.).
|
|
392
|
+
- Triggers:
|
|
393
|
+
- User asks for “index initialization / code graph / graph analysis”
|
|
394
|
+
- `mcp__ckb__getStatus` reports `healthy: false` for SCIP backend
|
|
395
|
+
- New project and `index.scip` does not exist
|
|
396
|
+
- When to use:
|
|
397
|
+
- You want graph-mode in `devbooks-impact-analysis`
|
|
398
|
+
- You want hotspot awareness in `devbooks-coder` / `devbooks-code-review`
|
|
399
|
+
- CKB MCP tools report “SCIP backend unavailable”
|
|
400
|
+
- Copy-paste prompt:
|
|
401
|
+
```text
|
|
402
|
+
Explicitly use `devbooks-index-bootstrap`.
|
|
403
|
+
Goal: detect project stack, generate SCIP index, enable graph-based understanding.
|
|
404
|
+
Project root: $(pwd)
|
|
405
|
+
```
|
|
406
|
+
- Manual indexing (no Skill required):
|
|
407
|
+
```bash
|
|
408
|
+
# TypeScript/JavaScript
|
|
409
|
+
npm install -g @anthropic-ai/scip-typescript
|
|
410
|
+
scip-typescript index --output index.scip
|
|
411
|
+
|
|
412
|
+
# Python
|
|
413
|
+
pip install scip-python
|
|
414
|
+
scip-python index . --output index.scip
|
|
415
|
+
|
|
416
|
+
# Go
|
|
417
|
+
go install github.com/sourcegraph/scip-go@latest
|
|
418
|
+
scip-go --output index.scip
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## `devbooks-federation` (Federation Analyst) [New]
|
|
424
|
+
|
|
425
|
+
- Purpose: cross-repo federation analysis and contract synchronization: detect contract changes, analyze cross-repo impact, notify downstream consumers.
|
|
426
|
+
- Triggers:
|
|
427
|
+
- User asks for “cross-repo impact / federation analysis / contract sync / upstream-downstream dependencies”
|
|
428
|
+
- The change touches contract files defined in `federation.yaml`
|
|
429
|
+
- When to use:
|
|
430
|
+
- Multi-repo projects where you need downstream impact analysis
|
|
431
|
+
- External API/contract changes requiring consumer notification
|
|
432
|
+
- You want cross-repo traceability
|
|
433
|
+
- Prerequisite:
|
|
434
|
+
- `.devbooks/federation.yaml` exists at project root (copy from `skills/devbooks-federation/templates/federation.yaml`)
|
|
435
|
+
- Copy-paste prompt:
|
|
436
|
+
```text
|
|
437
|
+
Explicitly use `devbooks-federation`.
|
|
438
|
+
Goal: analyze cross-repo impact for this change, detect contract changes, generate an impact report.
|
|
439
|
+
Project root: $(pwd)
|
|
440
|
+
Changed files: <list of changed files>
|
|
441
|
+
```
|
|
442
|
+
- Script usage:
|
|
443
|
+
```bash
|
|
444
|
+
# Check federation contract changes
|
|
445
|
+
bash ~/.claude/skills/devbooks-federation/scripts/federation-check.sh --project-root "$(pwd)"
|
|
446
|
+
```
|
|
447
|
+
|