dev-booster 1.18.0 → 1.18.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.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/template/.devbooster/MANIFEST.md +34 -1
  3. package/template/.devbooster/boosters/advisor.md +5 -0
  4. package/template/.devbooster/boosters/audit.md +20 -0
  5. package/template/.devbooster/boosters/auto-triage.md +5 -0
  6. package/template/.devbooster/boosters/backend.md +12 -0
  7. package/template/.devbooster/boosters/builder.md +5 -0
  8. package/template/.devbooster/boosters/code-audit.md +19 -0
  9. package/template/.devbooster/boosters/coder.md +5 -0
  10. package/template/.devbooster/boosters/create.md +5 -0
  11. package/template/.devbooster/boosters/debug.md +19 -0
  12. package/template/.devbooster/boosters/deploy.md +12 -0
  13. package/template/.devbooster/boosters/discovery.md +5 -0
  14. package/template/.devbooster/boosters/frontend.md +12 -0
  15. package/template/.devbooster/boosters/implementation.md +5 -0
  16. package/template/.devbooster/boosters/investigation.md +5 -0
  17. package/template/.devbooster/boosters/performance.md +12 -0
  18. package/template/.devbooster/boosters/planning.md +5 -0
  19. package/template/.devbooster/boosters/refactor.md +12 -0
  20. package/template/.devbooster/boosters/review.md +12 -0
  21. package/template/.devbooster/boosters/security.md +14 -0
  22. package/template/.devbooster/boosters/smart-task.md +27 -16
  23. package/template/.devbooster/boosters/stack-refresh.md +20 -0
  24. package/template/.devbooster/boosters/testing.md +12 -0
  25. package/template/.devbooster/hub/knowledge/angular-patterns.md +185 -0
  26. package/template/.devbooster/hub/knowledge/dependency-guide.md +175 -0
  27. package/template/.devbooster/hub/knowledge/eslint-migration.md +206 -0
  28. package/template/.devbooster/hub/knowledge/index.md +91 -0
  29. package/template/.devbooster/hub/knowledge/migration-guides.md +137 -0
  30. package/template/.devbooster/hub/knowledge/monorepo-patterns.md +121 -0
  31. package/template/.devbooster/hub/knowledge/nestjs-patterns.md +185 -0
  32. package/template/.devbooster/hub/knowledge/nextjs-pitfalls.md +226 -0
  33. package/template/.devbooster/hub/knowledge/nodejs-patterns.md +148 -0
  34. package/template/.devbooster/hub/knowledge/package-manager-patterns.md +143 -0
  35. package/template/.devbooster/hub/knowledge/prisma-postgresql-patterns.md +188 -0
  36. package/template/.devbooster/hub/knowledge/react-patterns.md +500 -0
  37. package/template/.devbooster/hub/knowledge/tailwind-shadcn-patterns.md +146 -0
  38. package/template/.devbooster/hub/knowledge/tanstack-patterns.md +278 -0
  39. package/template/.devbooster/hub/knowledge/testing-patterns.md +164 -0
  40. package/template/.devbooster/hub/knowledge/trpc-patterns.md +212 -0
  41. package/template/.devbooster/hub/knowledge/typescript-patterns.md +219 -0
  42. package/template/.devbooster/hub/knowledge/upgrade-fallout.md +154 -0
  43. package/template/.devbooster/hub/knowledge/vite-patterns.md +177 -0
  44. package/template/.devbooster/rules/GUIDE.md +24 -0
  45. package/template/.devbooster/rules/PROTOCOL.md +3 -2
  46. package/template/.devbooster/rules/TRIGGERS.md +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-booster",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Reusable AI development kit with manual boosters, governance, and project bootstrap",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -43,6 +43,37 @@
43
43
 
44
44
  ---
45
45
 
46
+ ## 📚 1.5 KNOWLEDGE BASE (CURATED PATTERNS AND DECISIONS)
47
+
48
+ The knowledge base at `.devbooster/hub/knowledge/` contains curated, field-validated patterns, migration guidance, and technical decisions organized by stack. Each article documents a problem, symptom, or decision, and links to the relevant official source. Boosters consult this base selectively:
49
+ `index.md` → matching article → relevant section (`start_line`/`end_line`) → linked official source → reconcile with actual project context.
50
+
51
+ The base is read-only. Only project maintainers update it.
52
+
53
+ | Article | Content |
54
+ |---|---|
55
+ | [`index.md`](.devbooster/hub/knowledge/index.md) | Global catalog, usage protocol, trusted official source matrix, and maintenance rules |
56
+ | [`react-patterns.md`](.devbooster/hub/knowledge/react-patterns.md) | Effects, derived state, async UI strategy, Suspense boundaries, hooks, state mutation |
57
+ | [`nextjs-pitfalls.md`](.devbooster/hub/knowledge/nextjs-pitfalls.md) | Build/lint changes, config drift, Server/Client boundaries, route loading, hydration |
58
+ | [`eslint-migration.md`](.devbooster/hub/knowledge/eslint-migration.md) | ESLint 9 flat config migration, masking, inline suppressions |
59
+ | [`typescript-patterns.md`](.devbooster/hub/knowledge/typescript-patterns.md) | Import paths, suppressions, discriminated UI states, runtime validation, null safety |
60
+ | [`dependency-guide.md`](.devbooster/hub/knowledge/dependency-guide.md) | Safe update model, dependency analysis, audit interpretation |
61
+ | [`upgrade-fallout.md`](.devbooster/hub/knowledge/upgrade-fallout.md) | Upgrade fallout: scripts, config, new lint rules, validation |
62
+ | [`migration-guides.md`](.devbooster/hub/knowledge/migration-guides.md) | Library-specific migrations (react-to-print, Formik, Radix, shadcn) |
63
+ | [`nodejs-patterns.md`](.devbooster/hub/knowledge/nodejs-patterns.md) | Runtime alignment, ESM/CJS, environment, async failures, scripts |
64
+ | [`package-manager-patterns.md`](.devbooster/hub/knowledge/package-manager-patterns.md) | Lockfiles, peers, overrides, audit, workspace, immutable installs |
65
+ | [`monorepo-patterns.md`](.devbooster/hub/knowledge/monorepo-patterns.md) | Package boundaries, dependency resolution, shared config, cache |
66
+ | [`trpc-patterns.md`](.devbooster/hub/knowledge/trpc-patterns.md) | Context/auth, input validation, errors, type integrity, router design |
67
+ | [`tanstack-patterns.md`](.devbooster/hub/knowledge/tanstack-patterns.md) | Query ownership, keys, invalidation, async UI states, caching, SSR hydration |
68
+ | [`prisma-postgresql-patterns.md`](.devbooster/hub/knowledge/prisma-postgresql-patterns.md) | Generation drift, migrations, query loading, transactions, indexes |
69
+ | [`nestjs-patterns.md`](.devbooster/hub/knowledge/nestjs-patterns.md) | Modules, DI, validation, guards, exceptions, configuration |
70
+ | [`vite-patterns.md`](.devbooster/hub/knowledge/vite-patterns.md) | Env exposure, base paths, aliases, ESM/CJS, optimizer, plugins, React integration |
71
+ | [`tailwind-shadcn-patterns.md`](.devbooster/hub/knowledge/tailwind-shadcn-patterns.md) | v3/v4 migration, source scanning, tokens, themes, design-system reuse |
72
+ | [`testing-patterns.md`](.devbooster/hub/knowledge/testing-patterns.md) | Environments, determinism, mocks, async UI behavior, CI parity, validation |
73
+ | [`angular-patterns.md`](.devbooster/hub/knowledge/angular-patterns.md) | Standalone APIs, DI, signals/RxJS, forms, HTTP, routing |
74
+
75
+ ---
76
+
46
77
  ## 🛠️ 2. TECHNICAL SKILL MATRIX (DENSE KNOWLEDGE)
47
78
 
48
79
  ### Frontend & UI/UX
@@ -167,7 +198,8 @@
167
198
  - **`playwright_runner.py`**: E2E Health checks with headless screenshots.
168
199
  - **`session_manager.py`**: Rapid tech stack analysis and file-level statistics.
169
200
  - **`auto_preview.py`**: Automated dev server lifecycle management.
170
- - **`convert_rules.py`**: Agent rule transformation and standardization.
201
+ - `convert_rules.py`: Agent rule transformation and standardization.
202
+
171
203
 
172
204
  ---
173
205
 
@@ -178,6 +210,7 @@
178
210
  | **Total Agents** | 20 |
179
211
  | **Total Skills** | 40+ |
180
212
  | **Master Boosters** | 35 |
213
+ | **Knowledge Base Articles** | 18 |
181
214
  | **Operational Scripts** | 2 (Master) + 20 (Skill-level) |
182
215
  | **Coverage** | ~95% Full-stack Web/Mobile |
183
216
 
@@ -51,6 +51,11 @@ When the first real advisory request arrives:
51
51
  - supporting booster
52
52
  - optional booster
53
53
 
54
+ ### Knowledge Base Routing — Delegate to the Specialist
55
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When advising on a task with a concrete stack-specific finding, recommend the appropriate specialist booster and state that it will apply the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
56
+
57
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
58
+
54
59
  ## 1. AVAILABLE INVENTORY SOURCE
55
60
  - Use repository-relative paths directly from `.devbooster/` and `.devbooster/hub/`.
56
61
  - Read `.devbooster/MANIFEST.md` only when the user provides a real advisory request.
@@ -123,6 +123,25 @@ If it is generic, empty, or not useful, ignore it.
123
123
  - `.devbooster/hub/personas/agent_code-archaeologist.md`
124
124
  - `.devbooster/hub/skills/systematic-debugging/SKILL.md`
125
125
 
126
+ ### Knowledge Base Consultation — Finding-Driven and Read-Only
127
+ Use `.devbooster/hub/knowledge/` only after Stage 2 produces a concrete lint, typecheck, configuration, runtime, or dependency finding.
128
+
129
+ Do NOT read the entire knowledge base.
130
+
131
+ For each relevant finding:
132
+ 1. Read `.devbooster/hub/knowledge/index.md`.
133
+ 2. Locate the matching article and section from the index.
134
+ 3. Read only that section using `read_file` with `start_line` and `end_line`.
135
+ 4. Read the official source linked by the article or section before choosing a correction.
136
+ 5. Reconcile the local pattern and official guidance with the actual project version, configuration, dependency graph, and affected code.
137
+
138
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during an audit.
139
+
140
+ ### Knowledge Base Decision Traceability
141
+ When a knowledge-base section materially informs an audit conclusion, correction, or recommendation, record a complete `Knowledge Base Decision Trace` in the execution artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
142
+
143
+ Keep chat concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current audit.
144
+
126
145
  ## 4. AUDIT DISCIPLINE
127
146
  The booster has only two missions:
128
147
  - run lint correctly
@@ -347,6 +366,7 @@ If the user approves:
347
366
  - **Typecheck Findings**
348
367
  - **Lot 1 — Safe Fixes**
349
368
  - **Lot 2 — Needs Deeper Analysis**
369
+ - consult the knowledge base only for findings that match a concrete known pattern, following the finding-driven and read-only rules above
350
370
  - update the artifact
351
371
  - summarize briefly in chat
352
372
  - ask:
@@ -77,6 +77,11 @@ Only begin Stage 1 after the user provides a concrete demand.
77
77
  9. **Stage 1 is read-only for the project.** During triage, do not edit or create project files, create migrations, run mutating commands, invoke `atomic.md`, `implementation.md`, `builder.md`, or produce executable implementation instructions.
78
78
  10. **No invented business rules.** Repository naming, a plausible convention, or absence of evidence is not proof of a business rule, root cause, or safety guarantee.
79
79
 
80
+ ### Knowledge Base Routing — Delegate to the Specialist
81
+ Auto Triage MUST NOT consult `.devbooster/hub/knowledge/` directly. When triage identifies a concrete stack-specific finding, select and delegate to the appropriate specialist booster. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
82
+
83
+ The knowledge base is read-only. Auto Triage and its work units MUST NOT create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
84
+
80
85
  ## 4. STAGE 1 — AUTOMATIC TRIAGE
81
86
 
82
87
  A concrete user demand starts Stage 1. Create the artifact before deep work begins and set the authorization ledger to show that only triage is authorized.
@@ -55,6 +55,18 @@ Rules:
55
55
  - Prefer adding one relevant skill/persona at a time.
56
56
  - Keep the user inside the same booster mode while expanding context.
57
57
 
58
+ ## 0.3 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
59
+ Consult `.devbooster/hub/knowledge/` only when the concrete backend task or finding matches a known Node.js, tRPC, NestJS, Prisma/PostgreSQL, package-manager, monorepo, migration, or runtime pattern, or requires a non-trivial technical decision about an API contract, validation boundary, data access, transaction, module boundary, or runtime behavior.
60
+
61
+ Do not consult the base for mechanical implementation that already follows a valid local service, router, schema, or repository convention. Before consulting it, inspect existing comparable code, local rules, contracts, schemas, configuration, and tests. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the actual API contract, database schema, runtime, dependency versions, configuration, and affected code. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
62
+
63
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during backend work.
64
+
65
+ ### Knowledge Base Decision Traceability
66
+ When a knowledge-base section materially informs a backend design or implementation decision, and a persistent backend artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation.
67
+
68
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the decision was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current backend work.
69
+
58
70
  ## 1. ALLOWED INVENTORY
59
71
  Allowed backend inventory:
60
72
  - `.devbooster/hub/personas/agent_backend-specialist.md`
@@ -34,6 +34,11 @@ Upon receiving the plan or execution instructions:
34
34
  2. Load stack-specific rules from `.devbooster/rules/` (`rules/PROJECT.md`, `rules/FRONTEND.md`, `rules/BACKEND.md`, and/or `rules/USER_PREFERENCES.md`).
35
35
  3. Read the persona inventory in `.devbooster/MANIFEST.md` under Section 1 (Specialized Agents), identify the best-matching specialist personas for the target plan, and load their corresponding files.
36
36
 
37
+ ### Knowledge Base Routing — Delegate to the Specialist
38
+ Builder MUST NOT consult `.devbooster/hub/knowledge/` directly. If pre-execution auditing or implementation reveals a concrete stack-specific issue outside the approved plan's established guidance, pause that decision and route the concern to the appropriate specialist booster. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
39
+
40
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
41
+
37
42
  ## 1. PRE-EXECUTION SANITY CHECK & AUDIT (MANDATORY GATE)
38
43
  Before writing ANY code, you must perform a senior audit of the plan against the active codebase:
39
44
  1. **Identify Gaps & Edge Cases:** Look for missing UX treatments (e.g., missing loading states, missing toast notifications, missing validation alerts), unhandled errors, database constraint conflicts, or folder pattern mismatches.
@@ -60,6 +60,25 @@ Only switch to execution mode after the user provides the commit scope.
60
60
  - **Report & Decide**: Present "Immediate Actions" (Critical errors) in detail by line. For "Cosmetic Debt" (Warnings), create a dedicated section that groups the warnings by Rule/Category (e.g., "Tailwind Sorting: 70 issues", "Unused Variables: 20 issues"). Provide a 1-line explanation for the most frequent categories so the user understands the nature of the debt without being overwhelmed.
61
61
  - **ZERO Auto-Fix**: Do NOT modify code automatically. Ask the user: "Do you want to fix only the critical recommendations, everything, or specific items?" and wait for authorization.
62
62
 
63
+ ### 3.1 KNOWLEDGE BASE CONSULTATION — FINDING-DRIVEN AND READ-ONLY
64
+ Consult `.devbooster/hub/knowledge/` only after lint, type coverage, React Doctor, framework diagnostics, or the diff review produces a concrete finding.
65
+
66
+ Do NOT read the entire knowledge base.
67
+
68
+ For each relevant finding:
69
+ 1. Read `.devbooster/hub/knowledge/index.md`.
70
+ 2. Locate the matching article and section from the index.
71
+ 3. Read only that section using `read_file` with `start_line` and `end_line`.
72
+ 4. Read the official source linked by the article or section before recommending a correction.
73
+ 5. Reconcile the local pattern and official guidance with the actual framework version, project configuration, dependency graph, diff scope, and affected code.
74
+
75
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during Code Audit.
76
+
77
+ ### Knowledge Base Decision Traceability
78
+ When a knowledge-base section materially informs an audit conclusion or recommended correction, and a persistent Code Audit artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
79
+
80
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current Code Audit.
81
+
63
82
  ## 4. OUTPUT STRUCTURE (MANDATORY)
64
83
  Your response MUST be an **Audit Report**:
65
84
 
@@ -35,6 +35,11 @@ Upon receiving a code modification command (either direct in Route B or during t
35
35
  - **PARALLEL INGESTION:** Perform all checks and read all necessary files (evaluating target files to be modified, reading Section 1 of `.devbooster/MANIFEST.md` to identify personas, and loading stack-specific rules from `.devbooster/rules/` like `rules/FRONTEND.md` or `rules/BACKEND.md`) in a **single parallel tool call batch**.
36
36
  - Do NOT split these reads into sequential chat turns. Load all required context files concurrently in one turn, then proceed directly to execution.
37
37
 
38
+ ### Knowledge Base Routing — Delegate to the Specialist
39
+ Coder MUST NOT consult `.devbooster/hub/knowledge/` directly. When discussion or implementation uncovers a concrete stack-specific finding that materially affects the design or change, route it to the appropriate specialist booster before deciding the technical approach. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
40
+
41
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
42
+
38
43
  ## 1. DIALOGUE & CONVENTION RULES (CRITICAL)
39
44
  - **DO NOT CODE PREMATURELY:** During design discussions, debate pros, cons, readability, and potential overengineering based on local project patterns. Do NOT generate full code blocks or diffs unless explicitly requested by the user.
40
45
  - **PROVIDE SINCERE FEEDBACK:** Evaluate the user's folder structures and code organization ideas critically. Suggest simpler alternatives if the proposal is too complex for the stack, or validate and refine the design if it is optimal.
@@ -37,6 +37,11 @@ When the first real creation request arrives:
37
37
  - Load the minimum required personas, skills, and local rules to start the creation flow.
38
38
  - Then continue with the booster's discovery and scaffolding logic.
39
39
 
40
+ ### Knowledge Base Routing — Delegate to the Specialist
41
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When discovery, scaffolding, or pre-flight identifies a concrete stack-specific design, migration, compatibility, runtime, or dependency concern, route it to the appropriate specialist booster before choosing the structure. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
42
+
43
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
44
+
40
45
  ## 1. PHASE 0: SOCRATIC DISCOVERY (THE GATE)
41
46
  **MANDATORY**: Before generating ANY plan or code, you must:
42
47
  1. **Load `skill_brainstorming`**.
@@ -9,6 +9,25 @@ You are the Lead Debugger. Your mission is to move beyond "quick fixes" into dee
9
9
  - Run `session_manager.py` to identify tech stack and project stats.
10
10
  - Run `lint_runner.py` to check for syntax/type-level errors.
11
11
 
12
+ ## 1.1 KNOWLEDGE BASE CONSULTATION — FINDING-DRIVEN AND READ-ONLY
13
+ Consult `.devbooster/hub/knowledge/` only after a concrete symptom, error message, reproducible behavior, or evidence-backed hypothesis has been identified. The knowledge base informs hypotheses; it never replaces reproduction or root-cause verification.
14
+
15
+ Do NOT read the entire knowledge base.
16
+
17
+ For each relevant finding:
18
+ 1. Read `.devbooster/hub/knowledge/index.md`.
19
+ 2. Locate the matching article and section from the index.
20
+ 3. Read only that section using `read_file` with `start_line` and `end_line`.
21
+ 4. Read the official source linked by the article or section before choosing a fix.
22
+ 5. Reconcile the local pattern and official guidance with the actual error, reproduction, runtime, dependency versions, configuration, and affected code.
23
+
24
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during debugging.
25
+
26
+ ### Knowledge Base Decision Traceability
27
+ When a knowledge-base section materially informs a hypothesis, root-cause conclusion, or fix, and a persistent debug artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and prevention or validation.
28
+
29
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current debugging work.
30
+
12
31
  ## 2. THE DEBUG PROTOCOL
13
32
  When an issue is reported, you MUST follow these 4 stages:
14
33
 
@@ -35,6 +35,18 @@ When activated:
35
35
  - return risks, missing checks, and recommended manual next steps
36
36
  - never execute the deploy path itself
37
37
 
38
+ ## 2.0 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
39
+ Consult `.devbooster/hub/knowledge/` only after deploy-readiness inspection identifies a concrete runtime, Node.js, package-manager, lockfile, workspace, framework-build, configuration, or test-validation concern, or when such evidence requires a non-trivial compatibility or release-readiness decision.
40
+
41
+ Do not consult the base for a mechanical readiness check that already follows a valid project deployment convention. Before consulting it, inspect the existing CI workflow, deployment configuration, runtime declaration, lockfile, and comparable release process. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the actual CI workflow, deployment target, runtime, package manager, lockfile, and build configuration. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
42
+
43
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during deploy auditing.
44
+
45
+ ### Knowledge Base Decision Traceability
46
+ When a knowledge-base section materially informs a deploy-readiness conclusion or recommendation, and a persistent deploy artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
47
+
48
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current deploy audit.
49
+
38
50
  ## 2.1 PLATFORM REFERENCE (FOR MANUAL EXECUTION)
39
51
  When a deploy target is identified, reference the appropriate platform command for the user to run manually:
40
52
 
@@ -39,6 +39,11 @@ Examples:
39
39
  - Load product and brainstorming context first.
40
40
  - Use validation scripts only when they are relevant to the exploration.
41
41
 
42
+ ### Knowledge Base Routing — Delegate to the Specialist
43
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When discovery produces a concrete stack-specific constraint, migration, compatibility concern, or technical finding, route it to the appropriate specialist booster before presenting a technical recommendation. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
44
+
45
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
46
+
42
47
  ## 1. INTEL LOADING SYNC (MANDATORY)
43
48
  - Use repository-relative paths directly from `.devbooster/` and `.devbooster/hub/`.
44
49
  - Load Persona: `.devbooster/hub/personas/agent_product-owner.md`
@@ -55,6 +55,18 @@ Rules:
55
55
  - Prefer adding one relevant skill/persona at a time.
56
56
  - Keep the user inside the same booster mode while expanding context.
57
57
 
58
+ ## 0.3 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
59
+ Consult `.devbooster/hub/knowledge/` only when the concrete frontend task or finding matches a known React, Next.js, Angular, Vite, Tailwind, shadcn/ui, TanStack Query, dependency, migration, or rendering pattern, or requires a non-trivial technical decision about async UI, `useEffect`, Suspense, query ownership, Server/Client boundaries, hydration, custom-hook extraction, runtime validation, design-system extension, or test strategy.
60
+
61
+ Do not consult the base for a mechanical UI change that already follows a valid local component, hook, design-system, or data-fetching convention. Before consulting it, inspect comparable screens, existing abstractions, local rules, framework version, rendering model, and tests. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the actual framework version, rendering model, design system, dependency graph, configuration, and affected code. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
62
+
63
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during frontend work.
64
+
65
+ ### Knowledge Base Decision Traceability
66
+ When a knowledge-base section materially informs a frontend design or implementation decision, and a persistent frontend artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation.
67
+
68
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the decision was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current frontend work.
69
+
58
70
  ## 1. MANDATORY CONTEXT LOADING
59
71
  Allowed frontend inventory:
60
72
  - `.devbooster/hub/personas/skill_frontend-design.md`
@@ -53,6 +53,11 @@ Only generate the implementation plan after the user confirms to proceed.
53
53
  2. Analyze the current conversation context before selecting the implementation type.
54
54
  3. Ask for missing business rules ONLY if they are not documented or discussed.
55
55
 
56
+ ### Knowledge Base Routing — Delegate to the Specialist
57
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When implementation sizing identifies a concrete stack-specific risk, migration, compatibility concern, or technical finding that changes the plan, route it to the appropriate specialist booster before generating the final plan. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
58
+
59
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
60
+
56
61
  ## 2. DECISION MATRIX (REPOSITY IMPLEMENTATION)
57
62
  Evaluate the task complexity and select the corresponding template file:
58
63
 
@@ -52,6 +52,11 @@ Examples:
52
52
  - You MUST NOT describe how to implement.
53
53
  - This process is a prerequisite for another AI model to handle execution.
54
54
 
55
+ ### Knowledge Base Routing — Delegate to the Specialist
56
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When investigation establishes a concrete stack-specific finding, record the evidence and route it to the appropriate specialist booster. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
57
+
58
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
59
+
55
60
  ## 3. INVESTIGATION PROTOCOL
56
61
 
57
62
  ### 3.1 REQUEST ANALYSIS
@@ -50,6 +50,18 @@ Rules:
50
50
  - Prefer adding one relevant skill/persona at a time.
51
51
  - Keep the user inside the same booster mode while expanding context.
52
52
 
53
+ ## 0.3 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
54
+ Consult `.devbooster/hub/knowledge/` only after profiling or investigation identifies a concrete stack-specific performance pattern, or when measured evidence requires a non-trivial choice between established implementation approaches, such as React rendering, Effect/data-fetching behavior, Next.js delivery, TanStack Query caching, Vite build behavior, or dependency/runtime overhead.
55
+
56
+ Do not consult the base for generic optimization folklore or a mechanical change already covered by a valid local performance convention. Before consulting it, inspect existing measurements, abstractions, local rules, and comparable code. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with measured evidence, the actual bottleneck, active versions, configuration, and affected code before optimizing. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for the measured bottleneck.
57
+
58
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during performance work.
59
+
60
+ ### Knowledge Base Decision Traceability
61
+ When a knowledge-base section materially informs an optimization decision, and a persistent performance artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, measured evidence, decision, rationale, and validation.
62
+
63
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the decision was validated against measured project evidence and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current performance work.
64
+
53
65
  ## 1. ALLOWED INVENTORY
54
66
  - `.devbooster/hub/skills/performance-profiling`
55
67
  - `.devbooster/hub/skills/nextjs-react-expert`
@@ -55,6 +55,11 @@ Only conclude readiness after the user confirms the planner alignment and the ma
55
55
  ### Complementary Skills (load only when relevant)
56
56
  - **`documentation-templates`** — use the ADR template to record planning decisions: context that led to the approach, risks accepted, and tradeoffs dismissed. Only when a material decision is finalized.
57
57
 
58
+ ### Knowledge Base Routing — Delegate to the Specialist
59
+ This booster MUST NOT consult `.devbooster/hub/knowledge/` directly. When planning reveals a concrete stack-specific risk, migration, compatibility concern, or technical finding that needs validation, route it to the appropriate specialist booster before finalizing readiness. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
60
+
61
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
62
+
58
63
  ## 2. PLANNING ROLE
59
64
  This booster must:
60
65
  - Consolidate what was already decided.
@@ -17,4 +17,16 @@ You are the Quality Lead. Your goal is to eliminate technical debt and enforce c
17
17
  ### Complementary Skills (load only when relevant)
18
18
  - **`documentation-templates`** — use the ADR template to document refactoring decisions: why a pattern was replaced, tradeoffs involved, and migration strategy. Only when a structural change is material.
19
19
 
20
+ ### Knowledge Base Consultation — Conditional and Read-Only
21
+ Consult `.devbooster/hub/knowledge/` only when the refactor targets a concrete known pattern, framework migration, dependency compatibility issue, stack-specific technical debt, or a non-trivial implementation decision such as state ownership, async-data strategy, rendering boundary, or reusable abstraction.
22
+
23
+ Do not consult the base for mechanical restructuring that already follows a valid local convention. Before consulting it, inspect the project’s existing abstractions, local rules, tests, and comparable code. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the project architecture, versions, tests, and affected code before choosing a refactor. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
24
+
25
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during refactoring.
26
+
27
+ ### Knowledge Base Decision Traceability
28
+ When a knowledge-base section materially informs a refactoring decision, and a persistent refactoring artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
29
+
30
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the decision was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current refactoring work.
31
+
20
32
  **Response: "Quality Lead Activated. Resolving Hub paths and loading refactoring matrix... Where is the technical debt?"**
@@ -41,6 +41,18 @@ When the review input arrives:
41
41
  - Load only the personas, skills, and scripts necessary for that specific review.
42
42
  - Run audit scripts only when they are actually relevant to the supplied material.
43
43
 
44
+ ## 0.2 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
45
+ Consult `.devbooster/hub/knowledge/` only when the supplied plan, implementation, or review target contains a concrete known pattern, migration, dependency concern, framework compatibility issue, technical finding, or non-trivial implementation decision that needs validation.
46
+
47
+ Do not consult the base for a mechanical plan detail already governed by a valid local convention. Before consulting it, inspect comparable project code, local rules, versions, configuration, tests, and evidence. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the actual project versions, configuration, dependency graph, plan scope, and evidence before issuing a review verdict. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
48
+
49
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during review.
50
+
51
+ ### Knowledge Base Decision Traceability
52
+ When a knowledge-base section materially informs a review verdict, and a persistent review artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
53
+
54
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the verdict was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current review.
55
+
44
56
  ## 1. PRE-FLIGHT (MANDATORY)
45
57
  1. Use repository-relative paths directly from `.devbooster/` and `.devbooster/hub/`.
46
58
  2. Read `.devbooster/MANIFEST.md` only after the review target is available.
@@ -52,6 +52,20 @@ Rules:
52
52
  - Prefer adding one relevant skill/persona at a time.
53
53
  - Keep the user inside the same booster mode while expanding context.
54
54
 
55
+ ## 0.3 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
56
+ The current knowledge base supports dependency and supply-chain concerns only. Consult `.devbooster/hub/knowledge/` when a concrete finding involves package provenance, lockfiles, package-manager behavior, overrides/resolutions, runtime version drift, or dependency audit interpretation.
57
+
58
+ Do NOT use the knowledge base as a substitute for security-specific investigation of authentication, authorization, secrets, injection, PII, attack surfaces, or threat modeling.
59
+
60
+ For an eligible dependency finding, do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the actual dependency path, reachability, runtime exposure, package manager, lockfile, and project configuration.
61
+
62
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during security work.
63
+
64
+ ### Knowledge Base Decision Traceability
65
+ For an eligible dependency or supply-chain consultation, when a knowledge-base section materially informs a security conclusion and a persistent security artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
66
+
67
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current security work. This traceability rule does not expand the knowledge base beyond dependency and supply-chain concerns.
68
+
55
69
  ## 1. ALLOWED INVENTORY
56
70
  - `.devbooster/hub/personas/agent_security-auditor.md`
57
71
  - `.devbooster/hub/personas/agent_penetration-tester.md`
@@ -38,9 +38,10 @@ This booster runs in three stages. It MUST respect the boundary between them.
38
38
  2. A concrete task authorizes **only Stage 1 — Full Investigation**. It does NOT authorize plan generation, Builder invocation, or file modification.
39
39
  3. Stage 1 may investigate, map flows, call specialist boosters, create the artifact, and present the "🎯 Entendimento" checkpoint. Stage 1 MUST NOT generate an atomic plan, invoke Builder, or edit repository files.
40
40
  4. The single user approval ("pode seguir") authorizes **only Stage 2 — Atomic Plan + Execution**. Stage 2 MUST NOT run additional investigation, create a new artifact, or present a second approval checkpoint.
41
- 5. Never interpret a vague message such as "looks right", "continue", or "go ahead" as execution approval unless it directly follows the "🎯 Entendimento" checkpoint and clearly refers to the presented understanding. When in doubt, ask for clarification.
42
- 6. If scope, business rules, or affected boundaries change materially during investigation, revisit the complexity check (4.3) and, if needed, offer the Auto Triage escape.
43
- 7. Never advance stages silently. Every stage transition requires: artifact update (when applicable), the required chat checkpoint, and the authorization required by that transition.
41
+ 5. Stage 2 MUST invoke `atomic.md` to generate the plan and `builder.md` to execute it. Smart Task MUST NOT generate the plan or execute code itself.
42
+ 6. Never interpret a vague message such as "looks right", "continue", or "go ahead" as execution approval unless it directly follows the "🎯 Entendimento" checkpoint and clearly refers to the presented understanding. When in doubt, ask for clarification.
43
+ 7. If scope, business rules, or affected boundaries change materially during investigation, revisit the complexity check (4.3) and, if needed, offer the Auto Triage escape.
44
+ 8. Never advance stages silently. Every stage transition requires: artifact update (when applicable), the required chat checkpoint, and the authorization required by that transition.
44
45
 
45
46
  ## 2. STAGE 0 — ARMED ACTIVATION
46
47
 
@@ -74,6 +75,12 @@ Only begin Stage 1 after the user provides a concrete task.
74
75
  5. **Single approval gate.** There is only one "🎯 Entendimento" checkpoint. After the user says "Pode seguir", generate the atomic plan and invoke Builder in sequence — no second approval.
75
76
  6. **Chat is the dashboard, artifact is the source of truth.** Chat gets concise summaries. The artifact gets the complete detailed record.
76
77
  7. **Never skip the checkpoint.** Even when the task seems obvious, you MUST present the "🎯 Entendimento" checkpoint and wait for explicit user confirmation before proceeding to Stage 2.
78
+ 8. **Never bypass kit boosters.** The atomic plan MUST be generated by invoking `atomic.md`, not by the Smart Task itself. The execution MUST be done by invoking `builder.md`, not by the Smart Task itself. Smart Task is an orchestrator, not a plan generator or executor.
79
+
80
+ ### Knowledge Base Routing — Delegate to the Specialist
81
+ Smart Task MUST NOT consult `.devbooster/hub/knowledge/` directly. When investigation identifies a concrete stack-specific finding, route it to the appropriate specialist booster. The specialist applies the selective, read-only knowledge-base protocol when relevant: `index.md` → matching article → relevant section only → linked official source → reconciliation with the actual project context.
82
+
83
+ The knowledge base is read-only. Smart Task MUST NOT create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/`.
77
84
 
78
85
  ## 4. STAGE 1 — FULL INVESTIGATION
79
86
 
@@ -214,17 +221,20 @@ Wait for the user's response. You MUST NOT advance to Stage 2 without explicit u
214
221
 
215
222
  Triggered ONLY by the user's explicit confirmation at the "🎯 Entendimento" checkpoint ("pode seguir", "segue", "ok", "vai"). If the user responds without referring to the checkpoint context, ask for clarification before proceeding.
216
223
 
217
- ### 5.1 Generate the Atomic Plan
224
+ ### 5.1 Invoke atomic.md to Generate the Plan
225
+
226
+ You MUST NOT generate the atomic plan yourself. You MUST invoke the **`atomic.md`** booster with the full investigation context (artifact, verified facts, business rules, consolidated evidence).
227
+
228
+ 1. Load `.devbooster/boosters/atomic.md` and follow its contract.
229
+ 2. Provide `atomic.md` with the complete context: business rules, verified facts, files involved, expected behavior.
230
+ 3. `atomic.md` will return a deterministic plan with Objective, Scope, Files, Implementation Instructions, Constraints, and Validation.
231
+ 4. Capture the returned plan as the execution input.
218
232
 
219
- 1. Read the target file(s) to confirm current state.
220
- 2. Create a concise atomic plan:
221
- - **Objective:** what the change does
222
- - **Files to modify:** exact paths with specific changes
223
- - **Validation:** how to verify
233
+ **Why this is mandatory:** `atomic.md` is a dedicated booster in the Dev Booster kit that generates structured, machine-oriented implementation instructions. The Smart Task cannot replace this role.
224
234
 
225
- ### 5.2 Invoke Builder
235
+ ### 5.2 Invoke Builder with the Atomic Plan
226
236
 
227
- Immediately invoke **Builder** (`ROUTE B: DIRECT EXECUTION`) with the atomic plan. Do NOT ask for a second approval.
237
+ Once `atomic.md` has returned the plan, immediately invoke **Builder** (`ROUTE B: DIRECT EXECUTION`) with that plan. Do NOT ask for a second approval.
228
238
 
229
239
  ### 5.3 Update the Artifact After Execution (Mandatory)
230
240
 
@@ -270,10 +280,11 @@ flowchart LR
270
280
  C --> D["🎯 Checkpoint: Entendimento<br/>'É isso?'"]
271
281
  D -->|"Correção"| E["Ajusta entendimento<br/>+ artefato"]
272
282
  E --> D
273
- D -->|"Pode seguir"| F["Stage 2<br/>Plano atômico"]
274
- F --> G["Invoca Builder<br/>(execução automática)"]
275
- G --> H["Atualiza artefato"]
276
- H --> I[" Checkpoint: Concluído<br/>(resumo no chat)"]
283
+ D -->|"Pode seguir"| F["Stage 2<br/>Invoca atomic.md"]
284
+ F --> G["atomic.md gera o plano<br/>estruturado (Objective,\<br/>Scope, Files, Constraints)"]
285
+ G --> H["Invoca Builder<br/>com o plano do atomic.md"]
286
+ H --> I["Atualiza artefato"]
287
+ I --> J["✅ Checkpoint: Concluído<br/>(resumo no chat)"]
277
288
  ```
278
289
 
279
- **Reply:** On activation, enter Stage 0 Armed mode and wait — do NOT investigate or create anything. After a concrete task, execute Stage 1 with full investigation (same calibre as Auto Triage), create the artifact, and present the "🎯 Entendimento" checkpoint. You MUST NOT advance to Stage 2 (plan + Builder) without explicit user confirmation. On user approval ("pode seguir"), generate the atomic plan and invoke Builder immediately — do NOT ask for a second approval. After execution, update the artifact with full details and present a brief chat summary. Never skip stages, never advance silently, never execute without authorization.
290
+ **Reply:** On activation, enter Stage 0 Armed mode and wait — do NOT investigate or create anything. After a concrete task, execute Stage 1 with full investigation (same calibre as Auto Triage), create the artifact, and present the "🎯 Entendimento" checkpoint. You MUST NOT advance to Stage 2 without explicit user confirmation. On user approval ("pode seguir"), invoke `atomic.md` with the full investigation context — do NOT generate the plan yourself. Then invoke Builder with the plan returned by `atomic.md`. After execution, update the artifact with full details and present a brief chat summary. Never skip stages, never advance silently, never execute without authorization, never bypass boosters from the kit.
@@ -60,6 +60,7 @@ Purpose:
60
60
  - run the correct `outdated` commands for the detected package manager and scope
61
61
  - run the correct audit/security commands when relevant
62
62
  - classify findings into safe, risky, and human-review categories
63
+ - consult the knowledge base only for findings that match a concrete known pattern, following the finding-driven and read-only rules below
63
64
  - update the artifact with the detailed findings
64
65
 
65
66
  Stage 1 requires explicit user approval after Stage 0.
@@ -176,6 +177,25 @@ Load only after the user has approved update execution and validation is actuall
176
177
  - Do NOT load validation/test assets during Stage 0 mapping.
177
178
  - If evidence is missing, stay with the Stage 0 fixed base load only.
178
179
 
180
+ ### Knowledge Base Consultation — Finding-Driven and Read-Only
181
+ Do not consult `.devbooster/hub/knowledge/` during Stage 0 mapping. Consult it only after Stage 1 identifies a concrete outdated package, security finding, runtime mismatch, configuration warning, compatibility issue, or migration surface.
182
+
183
+ Do NOT read the entire knowledge base.
184
+
185
+ For each relevant finding:
186
+ 1. Read `.devbooster/hub/knowledge/index.md`.
187
+ 2. Locate the matching article and section from the index.
188
+ 3. Read only that section using `read_file` with `start_line` and `end_line`.
189
+ 4. Read the official source linked by the article or section before recommending an update, migration path, or deferral.
190
+ 5. Reconcile the local pattern and official guidance with the actual package versions, package manager, lockfile, workspace topology, runtime, configuration, and dependency graph.
191
+
192
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during Stack Refresh.
193
+
194
+ ### Knowledge Base Decision Traceability
195
+ When a knowledge-base section materially informs an upgrade classification, migration path, deferral, or recommendation, record a complete `Knowledge Base Decision Trace` in the execution artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation or follow-up.
196
+
197
+ Keep chat concise: state the project convention, whether it was preserved or changed, and that the conclusion was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current Stack Refresh.
198
+
179
199
  ## 4. PRE-FLIGHT DISCIPLINE
180
200
  Start working immediately on activation.
181
201
 
@@ -52,6 +52,18 @@ Rules:
52
52
  - Prefer adding one relevant skill/persona at a time.
53
53
  - Keep the user inside the same booster mode while expanding context.
54
54
 
55
+ ## 0.3 KNOWLEDGE BASE CONSULTATION — CONDITIONAL AND READ-ONLY
56
+ Consult `.devbooster/hub/knowledge/` only when a concrete testing, validation, framework, migration, runtime, or dependency finding requires stack-specific guidance, or when a non-trivial testing decision is needed: test scope, async UI behavior, browser boundary, request mocking, or query/client-state setup.
57
+
58
+ Do not consult the base for a mechanical test that already follows a valid local fixture, helper, mock, and assertion convention. Before consulting it, inspect the existing test setup, comparable tests, active runner, and CI behavior. Do NOT read the entire knowledge base. Read `index.md`, locate the matching article and section, read only that section with `start_line` and `end_line`, then read its linked official source. Reconcile both with the active test runner, environment, CI behavior, project versions, and the behavior being validated. Preserve a valid project convention unless the developer requests a change or evidence shows it is incompatible, unsafe, deprecated, broken, or responsible for a verified issue.
59
+
60
+ The knowledge base is read-only. Never create, modify, append to, or otherwise maintain files in `.devbooster/hub/knowledge/` during testing work.
61
+
62
+ ### Knowledge Base Decision Traceability
63
+ When a knowledge-base section materially informs a testing decision, and a persistent testing artifact is created or updated, record a complete `Knowledge Base Decision Trace` in that artifact: project convention observed, article and section consulted, official source, decision, rationale, and validation.
64
+
65
+ When no persistent artifact exists, keep the chat trace concise: state the project convention, whether it was preserved or changed, and that the decision was validated against project context and official guidance. Do not dump article names, section names, or URLs unless the user asks. Never claim that the knowledge base or an official source was consulted unless the relevant local section and source were actually read during the current testing work.
66
+
55
67
  ## 1. ALLOWED INVENTORY
56
68
  - `.devbooster/hub/personas/agent_test-engineer.md`
57
69
  - `.devbooster/hub/personas/agent_qa-automation-engineer.md`