dev-booster 1.10.0 → 1.11.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/README.md +19 -6
- package/package.json +1 -1
- package/src/index.js +96 -40
- package/template/.devbooster/MANIFEST.md +5 -2
- package/template/.devbooster/boosters/advisor.md +1 -0
- package/template/.devbooster/boosters/builder.md +65 -0
- package/template/.devbooster/boosters/coder.md +50 -0
- package/template/.devbooster/rules/GUIDE.md +11 -0
- package/template/.devbooster/rules/PROTOCOL.md +3 -19
- package/template/.devbooster/rules/TRIGGERS.md +46 -0
- package/template/DEVBOOSTER_INIT.md +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ After running the command, your project gets:
|
|
|
32
32
|
```
|
|
33
33
|
.devbooster/
|
|
34
34
|
├── MANIFEST.md ← inventory of all agents, skills, and boosters
|
|
35
|
-
├── boosters/ ←
|
|
35
|
+
├── boosters/ ← 28 expert activators (debug, review, design, deploy...)
|
|
36
36
|
├── hub/ ← 40+ skills and operational scripts
|
|
37
37
|
└── rules/
|
|
38
38
|
├── PROTOCOL.md ← governance and conduct rules
|
|
@@ -110,7 +110,7 @@ Boosters are expert activators you invoke manually during development.
|
|
|
110
110
|
| `discovery.md` | Product brainstorm |
|
|
111
111
|
| `performance.md` | Core Web Vitals / bundle issues |
|
|
112
112
|
| `code-audit.md` | Strict Code Auditor (Syntax, React Doctor) before PR |
|
|
113
|
-
| +
|
|
113
|
+
| + 16 more | See `.devbooster/MANIFEST.md` |
|
|
114
114
|
|
|
115
115
|
The practical activation flow is simple:
|
|
116
116
|
- drag a booster file into the chat
|
|
@@ -136,13 +136,26 @@ Files are systematically organized in the `@booster-generated/` root directory:
|
|
|
136
136
|
- `@booster-generated/troubleshooting/` (Systematic RCA and bug fix logs)
|
|
137
137
|
- `@booster-generated/audits/` (Security, accessibility, and performance reports)
|
|
138
138
|
|
|
139
|
-
### Manual Triggers
|
|
139
|
+
### Manual & Shortcut Triggers
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
You can take manual control of the kit's governance or instantly route behavior modes at any time using explicit Chat Triggers:
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
#### 👥 Governance Triggers
|
|
144
|
+
- **`@SaveState`**: Forces the AI to instantly summarize the current conversation context and update the active booster's state file under `@booster-generated/`.
|
|
144
145
|
- **`@SavePattern`**: Instructs the AI to extract a newly resolved technical rule or code pattern and persist it to `.devbooster/rules/USER_PREFERENCES.md`.
|
|
145
|
-
- **`@LogTask`**: Tells the AI to capture a pending technical task
|
|
146
|
+
- **`@LogTask`**: Tells the AI to capture a pending technical task and document it systematically in your backlog at `@booster-generated/tasks.md`.
|
|
147
|
+
|
|
148
|
+
#### ⚡ Booster Shortcut Triggers
|
|
149
|
+
Instead of dragging booster files into the chat, you can instantly activate any booster behavior contract by typing its shortcut trigger:
|
|
150
|
+
- **`@Context`** ➔ Activates `context.md` (Silent Sponge context mapping).
|
|
151
|
+
- **`@Coder`** ➔ Activates `coder.md` (Co-Creative design/writing).
|
|
152
|
+
- **`@Builder`** ➔ Activates `builder.md` (Senior plan audit & execution).
|
|
153
|
+
- **`@Planning`** ➔ Activates `planning.md` (Readiness check).
|
|
154
|
+
- **`@Implementation`** ➔ Activates `implementation.md` (Plan sizing & generation).
|
|
155
|
+
- **`@Atomic`** ➔ Activates `atomic.md` (Surgical step-by-step writing).
|
|
156
|
+
- **`@Review`** ➔ Activates `review.md` (Elite code audit).
|
|
157
|
+
- **`@Advisor`** ➔ Activates `advisor.md` (Kit GPS consultant).
|
|
158
|
+
- *See `.devbooster/rules/TRIGGERS.md` for the complete trigger list.*
|
|
146
159
|
|
|
147
160
|
---
|
|
148
161
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -36,6 +36,44 @@ const IDE_BRIDGE_TARGETS = [
|
|
|
36
36
|
'.github/copilot-instructions.md',
|
|
37
37
|
]
|
|
38
38
|
|
|
39
|
+
const PROTECTED_FILES = [
|
|
40
|
+
'DEVBOOSTER_INIT.md',
|
|
41
|
+
'.devbooster/rules/PROJECT.md',
|
|
42
|
+
'.devbooster/rules/FRONTEND.md',
|
|
43
|
+
'.devbooster/rules/BACKEND.md',
|
|
44
|
+
'.devbooster/rules/COMMERCIAL.md',
|
|
45
|
+
'.devbooster/rules/USER_PREFERENCES.md',
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
function safeCopyFile(src, dest, dryRun = false) {
|
|
49
|
+
const relativeDest = path.relative(TARGET_DIR, dest)
|
|
50
|
+
if (fs.existsSync(dest) && PROTECTED_FILES.includes(relativeDest)) {
|
|
51
|
+
return false // Preserved
|
|
52
|
+
}
|
|
53
|
+
if (!dryRun) {
|
|
54
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true })
|
|
55
|
+
fs.copyFileSync(src, dest)
|
|
56
|
+
}
|
|
57
|
+
return true // Copied/Updated
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function copyDirSafe(src, dest, dryRun = false) {
|
|
61
|
+
fs.mkdirSync(dest, { recursive: true })
|
|
62
|
+
|
|
63
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
64
|
+
if (entry.name === '.DS_Store') continue
|
|
65
|
+
|
|
66
|
+
const srcPath = path.join(src, entry.name)
|
|
67
|
+
const destPath = path.join(dest, entry.name)
|
|
68
|
+
|
|
69
|
+
if (entry.isDirectory()) {
|
|
70
|
+
copyDirSafe(srcPath, destPath, dryRun)
|
|
71
|
+
} else {
|
|
72
|
+
safeCopyFile(srcPath, destPath, dryRun)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
39
77
|
function copyDir(src, dest) {
|
|
40
78
|
fs.mkdirSync(dest, { recursive: true })
|
|
41
79
|
|
|
@@ -192,33 +230,47 @@ async function runInstall() {
|
|
|
192
230
|
printHeader('agentic kit installer')
|
|
193
231
|
if (dryRun) console.log('🔍 [DRY RUN MODE] No real changes will be made.\n')
|
|
194
232
|
|
|
195
|
-
// 1. Copy the full .devbooster/ kit to the user's project
|
|
196
233
|
const agentSrc = path.join(TEMPLATE_DIR, '.devbooster')
|
|
197
234
|
const agentDest = path.join(TARGET_DIR, '.devbooster')
|
|
198
235
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
236
|
+
const boostersCount = fs.existsSync(path.join(agentSrc, 'boosters'))
|
|
237
|
+
? fs.readdirSync(path.join(agentSrc, 'boosters')).filter(f => f !== '.DS_Store' && f !== 'templates').length
|
|
238
|
+
: 28
|
|
239
|
+
const hubCount = fs.existsSync(path.join(agentSrc, 'hub', 'scripts'))
|
|
240
|
+
? fs.readdirSync(path.join(agentSrc, 'hub', 'scripts')).filter(f => f !== '.DS_Store').length
|
|
241
|
+
: 21
|
|
242
|
+
|
|
243
|
+
const isOverlap = fs.existsSync(agentDest)
|
|
244
|
+
|
|
245
|
+
if (isOverlap) {
|
|
246
|
+
console.log('▸ Existing Kit Detected:')
|
|
247
|
+
console.log(` ├── boosters/ ➔ ${boostersCount} expert activators updated successfully`)
|
|
248
|
+
console.log(` ├── hub/ ➔ ${hubCount} operational scripts updated successfully`)
|
|
249
|
+
console.log(' └── rules/ ➔ Core rules updated, project rules preserved')
|
|
250
|
+
console.log(' ✔ PROTOCOL.md (updated)')
|
|
251
|
+
console.log(' ✔ GUIDE.md (updated)')
|
|
252
|
+
console.log(' ✔ TRIGGERS.md (updated)')
|
|
253
|
+
console.log(' ℹ PROJECT.md, FRONTEND.md, BACKEND.md, etc. (preserved)\n')
|
|
204
254
|
} else {
|
|
205
|
-
|
|
206
|
-
console.log(
|
|
207
|
-
console.log(`
|
|
255
|
+
console.log('▸ Installing Kit Structure:')
|
|
256
|
+
console.log(` ├── boosters/ ➔ ${boostersCount} expert activators created successfully`)
|
|
257
|
+
console.log(` ├── hub/ ➔ ${hubCount} operational scripts created successfully`)
|
|
258
|
+
console.log(' └── rules/ ➔ Core rules and templates initialized')
|
|
259
|
+
console.log(' ✔ 8 rules created\n')
|
|
208
260
|
}
|
|
209
261
|
|
|
210
|
-
|
|
262
|
+
copyDirSafe(agentSrc, agentDest, dryRun)
|
|
263
|
+
|
|
264
|
+
// 2. Drop DEVBOOSTER_INIT.md at the root of the user's project safely
|
|
211
265
|
const initSrc = path.join(TEMPLATE_DIR, 'DEVBOOSTER_INIT.md')
|
|
212
266
|
const initDest = path.join(TARGET_DIR, 'DEVBOOSTER_INIT.md')
|
|
213
267
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
console.log(' action: creation skipped\n')
|
|
218
|
-
} else {
|
|
219
|
-
if (!dryRun) fs.copyFileSync(initSrc, initDest)
|
|
220
|
-
console.log('▸ DEVBOOSTER_INIT.md')
|
|
268
|
+
const copiedInit = safeCopyFile(initSrc, initDest, dryRun)
|
|
269
|
+
console.log('▸ DEVBOOSTER_INIT.md')
|
|
270
|
+
if (copiedInit) {
|
|
221
271
|
console.log(` status: ${dryRun ? 'would be created' : 'created'} at project root\n`)
|
|
272
|
+
} else {
|
|
273
|
+
console.log(' status: already exists (preserved)\n')
|
|
222
274
|
}
|
|
223
275
|
|
|
224
276
|
await maybeAddDevBoosterToGitignore(dryRun)
|
|
@@ -252,40 +304,44 @@ function runUpdate() {
|
|
|
252
304
|
return
|
|
253
305
|
}
|
|
254
306
|
|
|
307
|
+
const boostersCount = fs.existsSync(path.join(templateRoot, 'boosters'))
|
|
308
|
+
? fs.readdirSync(path.join(templateRoot, 'boosters')).filter(f => f !== '.DS_Store' && f !== 'templates').length
|
|
309
|
+
: 28
|
|
310
|
+
const hubCount = fs.existsSync(path.join(templateRoot, 'hub', 'scripts'))
|
|
311
|
+
? fs.readdirSync(path.join(templateRoot, 'hub', 'scripts')).filter(f => f !== '.DS_Store').length
|
|
312
|
+
: 21
|
|
313
|
+
|
|
314
|
+
// 1. Sync boosters and hub (fully wiped and overwritten)
|
|
255
315
|
const updateTargets = [
|
|
256
316
|
{ name: 'boosters', src: path.join(templateRoot, 'boosters'), dest: path.join(kitRoot, 'boosters') },
|
|
257
317
|
{ name: 'hub', src: path.join(templateRoot, 'hub'), dest: path.join(kitRoot, 'hub') },
|
|
258
318
|
]
|
|
259
319
|
|
|
260
|
-
|
|
261
|
-
{ name: 'MANIFEST.md', src: path.join(templateRoot, 'MANIFEST.md'), dest: path.join(kitRoot, 'MANIFEST.md') },
|
|
262
|
-
{ name: 'rules/GUIDE.md', src: path.join(templateRoot, 'rules', 'GUIDE.md'), dest: path.join(kitRoot, 'rules', 'GUIDE.md') },
|
|
263
|
-
{ name: 'rules/PROTOCOL.md', src: path.join(templateRoot, 'rules', 'PROTOCOL.md'), dest: path.join(kitRoot, 'rules', 'PROTOCOL.md') },
|
|
264
|
-
]
|
|
320
|
+
console.log('▸ Updating Kit Core:')
|
|
265
321
|
|
|
266
322
|
for (const target of updateTargets) {
|
|
267
323
|
if (!dryRun) syncDir(target.src, target.dest)
|
|
268
|
-
console.log(`▸ .devbooster/${target.name}/`)
|
|
269
|
-
console.log(` status: ${dryRun ? 'would be updated' : 'updated successfully'}`)
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
for (const file of coreFiles) {
|
|
273
|
-
if (!dryRun && fs.existsSync(file.src)) {
|
|
274
|
-
fs.mkdirSync(path.dirname(file.dest), { recursive: true })
|
|
275
|
-
fs.copyFileSync(file.src, file.dest)
|
|
276
|
-
}
|
|
277
|
-
console.log(`▸ .devbooster/${file.name}`)
|
|
278
|
-
console.log(` status: ${dryRun ? 'would be updated' : 'updated successfully'}`)
|
|
279
324
|
}
|
|
325
|
+
console.log(` ├── boosters/ ➔ ${boostersCount} expert activators synced & updated`)
|
|
326
|
+
console.log(` ├── hub/ ➔ ${hubCount} operational scripts synced & updated`)
|
|
327
|
+
|
|
328
|
+
// 2. Safe-copy rules directory recursively (overwriting core rules, preserving custom ones)
|
|
329
|
+
const rulesSrc = path.join(templateRoot, 'rules')
|
|
330
|
+
const rulesDest = path.join(kitRoot, 'rules')
|
|
331
|
+
copyDirSafe(rulesSrc, rulesDest, dryRun)
|
|
332
|
+
|
|
333
|
+
// 3. Safe-copy core files
|
|
334
|
+
safeCopyFile(path.join(templateRoot, 'MANIFEST.md'), path.join(kitRoot, 'MANIFEST.md'), dryRun)
|
|
335
|
+
|
|
336
|
+
console.log(' ├── MANIFEST.md ➔ Inventory updated')
|
|
337
|
+
console.log(' └── rules/ ➔ Core rules updated, customized rules preserved')
|
|
338
|
+
console.log(' ✔ PROTOCOL.md (updated)')
|
|
339
|
+
console.log(' ✔ GUIDE.md (updated)')
|
|
340
|
+
console.log(' ✔ TRIGGERS.md (updated)')
|
|
341
|
+
console.log(' ℹ Whitelabel stack rules (preserved)\n')
|
|
280
342
|
|
|
281
|
-
console.log('')
|
|
282
|
-
console.log('▸ rules/ (Whitelabel files)')
|
|
283
|
-
console.log(' status: preserved')
|
|
284
|
-
console.log(' action: user-customized rules were not overwritten')
|
|
285
|
-
console.log('')
|
|
286
343
|
console.log('▸ DEVBOOSTER_INIT.md')
|
|
287
|
-
console.log(' status: preserved')
|
|
288
|
-
console.log(' action: no local files were overwritten\n')
|
|
344
|
+
console.log(' status: preserved (no changes made)\n')
|
|
289
345
|
|
|
290
346
|
console.log(`
|
|
291
347
|
╭──────────────────────────────────────────────╮
|
|
@@ -125,6 +125,8 @@
|
|
|
125
125
|
| `backend.md` | Backend specialist activation with API/DB constraints. |
|
|
126
126
|
| `seo.md` | SEO audit and semantic HTML compliance check. |
|
|
127
127
|
| `mobile.md` | Mobile UX activation (React Native / Expo patterns). |
|
|
128
|
+
| `builder.md` | Builder Specialist — executes implementation plans and writes actual code. |
|
|
129
|
+
| `coder.md` | Co-Creative Coder — debates folder patterns and code design, writes code only under command. |
|
|
128
130
|
|
|
129
131
|
---
|
|
130
132
|
|
|
@@ -167,7 +169,7 @@
|
|
|
167
169
|
|---|---|
|
|
168
170
|
| **Total Agents** | 20 |
|
|
169
171
|
| **Total Skills** | 40+ |
|
|
170
|
-
| **Master Boosters** |
|
|
172
|
+
| **Master Boosters** | 26 |
|
|
171
173
|
| **Operational Scripts** | 2 (Master) + 21 (Skill-level) |
|
|
172
174
|
| **Coverage** | ~95% Full-stack Web/Mobile |
|
|
173
175
|
|
|
@@ -189,7 +191,8 @@ Dev Booster acts as a continuous document generator. As boosters execute, they M
|
|
|
189
191
|
### Artifact Mapping by Domain:
|
|
190
192
|
- `@booster-generated/contexts/` → Managed by `context.md` (Save State for conversation continuity).
|
|
191
193
|
- `@booster-generated/plans/` → Managed by `planning.md` (Implementation roadmap and risk mapping).
|
|
192
|
-
- `@booster-generated/implementations/` → Managed by `frontend.md`, `backend.md`, `mobile.md`, `atomic.md`.
|
|
194
|
+
- `@booster-generated/implementations/` → Managed by `frontend.md`, `backend.md`, `mobile.md`, `atomic.md`, `builder.md`.
|
|
195
|
+
- `@booster-generated/coder/` → Managed by `coder.md` (Design discussions and incremental coding logs).
|
|
193
196
|
- `@booster-generated/advisory/` → Managed by `advisor.md` (Architectural decisions and mentorship notes).
|
|
194
197
|
- `@booster-generated/discoveries/` → Managed by `investigation.md`, `discovery.md` (Brainstorms, flow mapping).
|
|
195
198
|
- `@booster-generated/troubleshooting/` → Managed by `debug.md` (Root Cause Analysis and bug fixes).
|
|
@@ -62,6 +62,7 @@ Analyze the user's request or the current task and recommend only the best boost
|
|
|
62
62
|
- Be proactive and strategic.
|
|
63
63
|
- Explain WHY the recommended booster is the right entry point.
|
|
64
64
|
- Respond only with booster recommendations.
|
|
65
|
+
- For every recommended booster, provide both its file path (e.g., `.devbooster/boosters/planning.md`) AND its corresponding shortcut trigger (e.g., `@Planning`) from `.devbooster/rules/TRIGGERS.md` so the developer can choose how to activate it.
|
|
65
66
|
- Do NOT expose skills, personas, or agents in the user-facing answer.
|
|
66
67
|
- Do NOT execute any plan, only advise.
|
|
67
68
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# 👷 BOOSTER: BUILDER & SENIOR DEVELOPER (EXECUTION)
|
|
2
|
+
You are the Senior Software Developer (Execution Specialist). Your mission is to audit the provided implementation plan against the codebase for gaps, missing treatments, and edge cases, align with the developer, and then execute the plan step-by-step with absolute technical discipline.
|
|
3
|
+
|
|
4
|
+
## 0. DEV BOOSTER ACTIVATION CONTRACT
|
|
5
|
+
This booster is an execution engine. It expects a concrete implementation plan, instruction file, or detailed prompt as input.
|
|
6
|
+
|
|
7
|
+
### ROUTE A: ARMED ACTIVATION (No plan provided yet)
|
|
8
|
+
If invoked alone or without specific implementation instructions:
|
|
9
|
+
- Do NOT start modifying files or analyzing code.
|
|
10
|
+
- Confirm activation using the format below and wait for the target plan or file path to execute.
|
|
11
|
+
|
|
12
|
+
Use this activation response format:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## 🤖 [DEV BOOSTER // BUILDER]
|
|
16
|
+
|
|
17
|
+
Mode: Builder / Senior Developer
|
|
18
|
+
Status: Armed & Awaiting Plan
|
|
19
|
+
|
|
20
|
+
Capabilities:
|
|
21
|
+
- Audits implementation plans for technical gaps, edge cases, and missing treatments
|
|
22
|
+
- Translates validated plans into production-grade code
|
|
23
|
+
- Enforces strict coding standards and error handling
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### ROUTE B: DIRECT EXECUTION (Plan path or contents provided)
|
|
27
|
+
If invoked with a specific plan (e.g., "Execute the plan at implementation/my-task.md"):
|
|
28
|
+
- Ignore the activation response banner.
|
|
29
|
+
- Immediately start the **PRE-EXECUTION SANITY CHECK & AUDIT (Section 1)**.
|
|
30
|
+
|
|
31
|
+
## 0.1 INITIAL LOAD STRATEGY
|
|
32
|
+
Upon receiving the plan or execution instructions:
|
|
33
|
+
1. Read the plan fully to understand the scope and files involved.
|
|
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
|
+
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
|
+
|
|
37
|
+
## 1. PRE-EXECUTION SANITY CHECK & AUDIT (MANDATORY GATE)
|
|
38
|
+
Before writing ANY code, you must perform a senior audit of the plan against the active codebase:
|
|
39
|
+
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.
|
|
40
|
+
2. **Present the Sanity Audit:** Return a concise, bulleted review of your findings to the user:
|
|
41
|
+
- **Gaps Detected:** (Specific missing items, e.g., "No error toast defined for route X").
|
|
42
|
+
- **Risks/Conflicts:** (Potential build or logic breakages).
|
|
43
|
+
- **Proposed Patches:** (Slight adjustments to fix these gaps during code generation).
|
|
44
|
+
3. **Wait for Approval:** Do NOT write code yet. Ask: *"Would you like me to proceed with the implementation including these senior adjustments?"*.
|
|
45
|
+
|
|
46
|
+
## 2. CHAT CHECKLIST & IMUTABILITY RULES
|
|
47
|
+
Once the plan is approved by the user:
|
|
48
|
+
- **IMMUTABLE SPECIFICATION:** Treat the approved plan as an immutable specification. Do NOT summarize, paraphrase, or re-explain the plan in the chat.
|
|
49
|
+
- **INTERACTIVE TO-DO CHECKLIST:** At the beginning of the execution phase, output a simple `[ ]` markdown checklist representing the steps of the plan in the chat.
|
|
50
|
+
- **PROGRESS TRACKING:** As you complete each task, output the updated checklist, marking completed tasks with `[x]`. This ensures both you and the developer stay aligned without writing progress files to disk.
|
|
51
|
+
|
|
52
|
+
## 3. SENIOR CODING STANDARDS & DISCIPLINE (THE DEV BIBLE)
|
|
53
|
+
- **TARGETED FILE READS:** Do NOT read very large files (e.g., 500+ lines) entirely. Use search tools/grep to locate the exact insertion points or code segments, and read only the target sections needed to understand local context.
|
|
54
|
+
- **SURGICAL PRECISION:** Modify only the files listed in the scope. Preserve all existing logic, helpers, hooks, and services unless explicitly instructed to replace them.
|
|
55
|
+
- **NO PLACEHOLDERS:** Write complete, production-ready, clean code. Do NOT leave comments like `// TODO: implement this` or incomplete code blocks.
|
|
56
|
+
- **TYPE SAFETY & QUALITY:** Enforce strict typing (no `any` types), proper error boundaries, sanitization, and async error handling based on the stack guidelines.
|
|
57
|
+
- **SCOPE RESTRICTION:** Implement ONLY what is specified in the plan. Do NOT perform unsolicited refactoring or add out-of-scope files.
|
|
58
|
+
|
|
59
|
+
## 4. STEP-BY-STEP EXECUTION PROTOCOL
|
|
60
|
+
For each step in the checklist:
|
|
61
|
+
1. **Target Segment Read:** Search and read the target lines of the file to modify.
|
|
62
|
+
2. **Implementation Pass:** Apply the changes surgically. Use the correct project imports and file patterns.
|
|
63
|
+
3. **Internal Verification:** Verify imports, syntax correctness, and structure.
|
|
64
|
+
4. **Update Checklist:** Output the updated checklist in the chat and move to the next item.
|
|
65
|
+
5. **Post-Implementation Verification (Final Step):** After all checklist items are completed, execute or suggest execution of the stack verification commands (e.g., `npm run build`, `npm run lint`, `npx tsc --noEmit` or stack equivalents) to ensure the project has a 100% clean build.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 💻 BOOSTER: CO-CREATIVE CODER & ARCHITECT
|
|
2
|
+
You are the Co-Creative Coder and Software Architect. Your goal is to debate ideas, discuss folder structures, evaluate separation of concerns, and implement code incrementally and creatively, adapting to the project's stack while keeping full control in the developer's hands.
|
|
3
|
+
|
|
4
|
+
## 0. DEV BOOSTER ACTIVATION CONTRACT
|
|
5
|
+
This booster uses a lazy loading strategy to prevent context bloat.
|
|
6
|
+
|
|
7
|
+
### ROUTE A: DISCUSSION ACTIVATION (Only `@Coder` or simple activation)
|
|
8
|
+
If the user invokes this booster to start a conversation or uses the `@Coder` trigger without a direct code modification command:
|
|
9
|
+
- Do NOT load detailed frontend/backend rules or engineering personas yet.
|
|
10
|
+
- Read ONLY `.devbooster/rules/PROJECT.md` to identify the project's basic ecosystem.
|
|
11
|
+
- Confirm activation using the format below and wait for the user's questions or design ideas.
|
|
12
|
+
|
|
13
|
+
Use this activation response format:
|
|
14
|
+
|
|
15
|
+
```md
|
|
16
|
+
## 🤖 [DEV BOOSTER // CODER]
|
|
17
|
+
|
|
18
|
+
Mode: Co-Creative Coder
|
|
19
|
+
Status: Listening & Armed
|
|
20
|
+
|
|
21
|
+
Capabilities:
|
|
22
|
+
- Debates folder structures, design patterns, and separation of concerns
|
|
23
|
+
- Reads stack definitions from PROJECT.md
|
|
24
|
+
- Awaiting your architectural questions or explicit write instructions
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### ROUTE B: DIRECT ACTION ACTIVATION ("change this and use @Coder" or direct command)
|
|
28
|
+
If the user gives an explicit code modification command (e.g. "change this for me and use @Coder", or `@Coder implement X`):
|
|
29
|
+
- Ignore the activation response banner.
|
|
30
|
+
- Execute the INITIAL LOAD STRATEGY (Section 0.1) immediately.
|
|
31
|
+
- Implement the requested change surgically.
|
|
32
|
+
|
|
33
|
+
## 0.1 INITIAL LOAD STRATEGY (PARALLEL SINGLE-TURN INGESTION)
|
|
34
|
+
Upon receiving a code modification command (either direct in Route B or during the conversation in Route A):
|
|
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
|
+
- Do NOT split these reads into sequential chat turns. Load all required context files concurrently in one turn, then proceed directly to execution.
|
|
37
|
+
|
|
38
|
+
## 1. DIALOGUE & CONVENTION RULES (CRITICAL)
|
|
39
|
+
- **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
|
+
- **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.
|
|
41
|
+
- **INCREMENTAL DEVELOPMENT:** Promote step-by-step creation. When asked to code, implement in small increments, ask for feedback, and adjust before moving to the next part.
|
|
42
|
+
- **MANUAL CONTEXT BACKUP ONLY:** Do NOT update or create state files automatically. You must create or update the markdown log file at `@booster-generated/coder/coder-<task-slug>.md` ONLY when explicitly commanded by the user (e.g., via `@SaveState` or a direct saving request).
|
|
43
|
+
|
|
44
|
+
## 2. ANTI-PREMATURE CONCLUSIONS (MANDATORY SEARCH)
|
|
45
|
+
- **SEARCH BEFORE ASSUMING:** Do NOT assume a route, file, helper, or component does not exist in the project just because it is not in the immediate chat history.
|
|
46
|
+
- **INVESTIGATION PROTOCOL:** Before stating that something is missing or proposing to create a new file/logic, you MUST perform active searches in the repository (using directory listing, grep, etc.) to verify if there is an existing equivalent or similar implementation.
|
|
47
|
+
- **MAXIMUM REUSE:** Always ask yourself: *"Does this route, service, or helper already exist somewhere else? Where are similar structures stored in this project?"*.
|
|
48
|
+
|
|
49
|
+
## 3. THE TRIGGER @Coder
|
|
50
|
+
When the user uses the term `@Coder` followed by an instruction (e.g., `@Coder create folder/file X` or `@Coder change logic in Y`), assume the design phase for that segment is complete. Immediately transition to code implementation and execute the changes surgically, respecting local rules and stack guidelines.
|
|
@@ -30,6 +30,10 @@ It has been formatted as a code block to facilitate direct reading in the IDE.
|
|
|
30
30
|
focused on a single surgical change at a time.
|
|
31
31
|
• review.md -> Elite Audit. Triggers multi-agent orchestration to validate
|
|
32
32
|
if a plan or code follows project standards.
|
|
33
|
+
• coder.md -> Co-Creative Coder. Debates folder patterns and architecture
|
|
34
|
+
ideas, writing code only under command.
|
|
35
|
+
• builder.md -> Builder Specialist. Executes implementation plans and writes
|
|
36
|
+
actual code surgically.
|
|
33
37
|
|
|
34
38
|
---
|
|
35
39
|
|
|
@@ -117,6 +121,13 @@ Example:
|
|
|
117
121
|
|
|
118
122
|
---
|
|
119
123
|
|
|
124
|
+
💡 INSTANT ROUTING (SHORTCUT TRIGGERS):
|
|
125
|
+
Instead of dragging booster files, you can instantly activate any booster behavior contract
|
|
126
|
+
by typing its corresponding trigger in the chat (e.g., @Context, @Coder, @Builder, @Planning).
|
|
127
|
+
Refer to `.devbooster/rules/TRIGGERS.md` for the complete trigger dictionary.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
120
131
|
💡 HOW TO UPDATE THE KIT:
|
|
121
132
|
If this project already has Dev Booster installed and you want to receive a newer version of the kit,
|
|
122
133
|
use in the terminal:
|
|
@@ -34,25 +34,9 @@
|
|
|
34
34
|
- **Chat:** Follow the global language configured for the active LLM/environment.
|
|
35
35
|
- **Logs, Code, Comments, Variables:** English, unless the project explicitly requires another convention.
|
|
36
36
|
|
|
37
|
-
## 📚 5. PERSISTENCE (
|
|
38
|
-
- **
|
|
39
|
-
|
|
40
|
-
2. Document in Technical English.
|
|
41
|
-
3. Update/Persist specifically in `./.devbooster/rules/USER_PREFERENCES.md`.
|
|
42
|
-
|
|
43
|
-
- **THE ARTIFACT TRIGGER:** `@SaveState`
|
|
44
|
-
1. When invoked, instantly update the machine-readable state file for the currently active booster (e.g., in `@booster-generated/...`).
|
|
45
|
-
2. Ensure the state file captures the latest architectural decisions, flow logic, and context in a dense, non-conversational format without prompt ping-pong.
|
|
46
|
-
|
|
47
|
-
### ✅ 5.1 TASK CAPTURE (DO LATER BACKLOG)
|
|
48
|
-
- **THE TRIGGER:** `@LogTask`
|
|
49
|
-
- **THE ACTION:**
|
|
50
|
-
1. Capture the identified technical task.
|
|
51
|
-
2. Update/Persist specifically in `./@booster-generated/tasks.md` (at the project root).
|
|
52
|
-
3. Follow this strict format when adding new items:
|
|
53
|
-
`- [ ] Short title of the task.`
|
|
54
|
-
` Resumo: detailed explanation of the task.`
|
|
55
|
-
` Referências: file paths and concepts related to the task.`
|
|
37
|
+
## 📚 5. PERSISTENCE & SHORTCUTS (TRIGGERS)
|
|
38
|
+
- **TRIGGER ROUTING:** Whenever the user references a `@` trigger (e.g., `@Coder`, `@SaveState`, `@SavePattern`), you MUST refer specifically to `.devbooster/rules/TRIGGERS.md` to identify the trigger's contract, load the corresponding files, and execute the behavior mode or background action.
|
|
39
|
+
- **RESTRICTION:** Execute code edits, file writes, or log updates ONLY when explicitly instructed by the trigger contract or a direct user command.
|
|
56
40
|
|
|
57
41
|
---
|
|
58
42
|
*Elite Sovereignty Framework - Conduct Governance 2026*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 🚀 DEV BOOSTER SHORTCUTS & TRIGGERS (DICTIONARY)
|
|
2
|
+
**Version:** 1.0 | **Focus:** Instant behavior routing and background utility execution.
|
|
3
|
+
|
|
4
|
+
Whenever the user references a `@` trigger, you MUST locate the trigger below, load the specified rules/contract, and instantly transition to that behavior mode or execute the defined action.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 👥 1. GOVERNANCE TRIGGERS
|
|
9
|
+
These triggers execute background utility tasks and update persistent rule or status files.
|
|
10
|
+
|
|
11
|
+
- **`@SavePattern`**
|
|
12
|
+
- **Action:** Extract newly resolved technical patterns or rules from the conversation.
|
|
13
|
+
- **Destination:** Append/Update in `.devbooster/rules/USER_PREFERENCES.md` (Technical English).
|
|
14
|
+
|
|
15
|
+
- **`@SaveState`**
|
|
16
|
+
- **Action:** Summarize current context, decisions, and active task progress.
|
|
17
|
+
- **Destination:** Update the active booster's state file under `@booster-generated/` (e.g., plans, contexts, or coder).
|
|
18
|
+
|
|
19
|
+
- **`@LogTask`**
|
|
20
|
+
- **Action:** Capture pending tasks mentioned in the chat.
|
|
21
|
+
- **Destination:** Append to `@booster-generated/tasks.md` in the following strict format:
|
|
22
|
+
```md
|
|
23
|
+
- [ ] Short title of the task.
|
|
24
|
+
Resumo: detailed explanation of the task.
|
|
25
|
+
Referências: file paths and concepts related to the task.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## ⚡ 2. BOOSTER SHORTCUT TRIGGERS
|
|
31
|
+
These triggers instantly activate specific booster behavior contracts without requiring the user to manually load the booster files. Upon invocation, immediately read the corresponding booster file in `.devbooster/boosters/` and follow its execution instructions.
|
|
32
|
+
|
|
33
|
+
- **`@Context`** ➔ Actives `.devbooster/boosters/context.md` (Silent Sponge context mapping).
|
|
34
|
+
- **`@Coder`** ➔ Activates `.devbooster/boosters/coder.md` (Co-Creative design/writing).
|
|
35
|
+
- **`@Builder`** ➔ Activates `.devbooster/boosters/builder.md` (Senior plan audit & execution).
|
|
36
|
+
- **`@Planning`** ➔ Activates `.devbooster/boosters/planning.md` (Risk & readiness check).
|
|
37
|
+
- **`@Implementation`** ➔ Activates `.devbooster/boosters/implementation.md` (Sizing and plan writing).
|
|
38
|
+
- **`@Atomic`** ➔ Activates `.devbooster/boosters/atomic.md` (Surgical step-by-step code writing).
|
|
39
|
+
- **`@Review`** ➔ Activates `.devbooster/boosters/review.md` (Elite code and architecture audit).
|
|
40
|
+
- **`@Advisor`** ➔ Activates `.devbooster/boosters/advisor.md` (Kit GPS / routing consultant).
|
|
41
|
+
- **`@Changelog`** ➔ Activates `.devbooster/boosters/changelog.md` (Release notes generator).
|
|
42
|
+
- **`@Debug`** ➔ Activates `.devbooster/boosters/debug.md` (Systematic RCA / hypothesis engine).
|
|
43
|
+
- **`@Deploy`** ➔ Activates `.devbooster/boosters/deploy.md` (Pre-flight release validation).
|
|
44
|
+
- **`@Discovery`** ➔ Activates `.devbooster/boosters/discovery.md` (Product/ideas brainstorm).
|
|
45
|
+
- **`@Investigation`** ➔ Activates `.devbooster/boosters/investigation.md` (No-code repo structure mapping).
|
|
46
|
+
- **`@Doc`** ➔ Activates `.devbooster/boosters/global-documentation.md` (Universal spec generation).
|
|
@@ -13,7 +13,7 @@ Execute each step in order. Do not skip steps. Do not ask for confirmation betwe
|
|
|
13
13
|
|
|
14
14
|
### STEP 1 — Read the Governance Protocol
|
|
15
15
|
Read `.devbooster/rules/PROTOCOL.md` in full.
|
|
16
|
-
This defines your conduct rules, communication style, and architectural constraints
|
|
16
|
+
This defines your conduct rules, communication style, and architectural constraints. It also delegates instant command shortcuts (like `@Coder`, `@Builder`) to `.devbooster/rules/TRIGGERS.md`.
|
|
17
17
|
|
|
18
18
|
### STEP 2 — Bootstrap PROJECT.md
|
|
19
19
|
Read `.devbooster/rules/PROJECT.md`.
|