@allthingsclaude/blueprints 0.2.0 → 0.3.0-beta.10

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 (66) hide show
  1. package/README.md +80 -12
  2. package/content/agents/audit.md +40 -25
  3. package/content/agents/bootstrap.md +25 -5
  4. package/content/agents/changelog.md +350 -0
  5. package/content/agents/cleanup.md +155 -0
  6. package/content/agents/commit.md +235 -0
  7. package/content/agents/debug.md +198 -0
  8. package/content/agents/docs.md +344 -0
  9. package/content/agents/{optimize.md → dry.md} +38 -15
  10. package/content/agents/explain.md +195 -0
  11. package/content/agents/finalize.md +20 -5
  12. package/content/agents/handoff.md +11 -5
  13. package/content/agents/imagine.md +2 -2
  14. package/content/agents/implement.md +54 -16
  15. package/content/agents/migrate.md +330 -0
  16. package/content/agents/parallelize.md +21 -4
  17. package/content/agents/plan.md +35 -5
  18. package/content/agents/refactor.md +156 -0
  19. package/content/agents/release.md +502 -0
  20. package/content/agents/research-codebase.md +160 -18
  21. package/content/agents/research-docs.md +135 -19
  22. package/content/agents/research-web.md +149 -19
  23. package/content/agents/secure.md +351 -0
  24. package/content/agents/storyboard.md +11 -5
  25. package/content/agents/test.md +181 -0
  26. package/content/commands/audit.md +15 -24
  27. package/content/commands/auto.md +361 -0
  28. package/content/commands/bootstrap.md +2 -2
  29. package/content/commands/brainstorm.md +63 -9
  30. package/content/commands/challenge.md +7 -0
  31. package/content/commands/changelog.md +50 -0
  32. package/content/commands/cleanup.md +14 -301
  33. package/content/commands/commit.md +45 -0
  34. package/content/commands/critique.md +7 -0
  35. package/content/commands/debug.md +9 -251
  36. package/content/commands/docs.md +48 -0
  37. package/content/commands/dry.md +48 -0
  38. package/content/commands/explain.md +12 -309
  39. package/content/commands/finalize.md +3 -3
  40. package/content/commands/flush.md +9 -14
  41. package/content/commands/handoff.md +1 -1
  42. package/content/commands/implement.md +5 -5
  43. package/content/commands/kickoff.md +7 -4
  44. package/content/commands/migrate.md +54 -0
  45. package/content/commands/parallelize.md +2 -2
  46. package/content/commands/pickup.md +1 -1
  47. package/content/commands/plan.md +2 -2
  48. package/content/commands/refactor.md +21 -379
  49. package/content/commands/release.md +63 -0
  50. package/content/commands/research.md +1 -1
  51. package/content/commands/secure.md +51 -0
  52. package/content/commands/storyboard.md +3 -3
  53. package/content/commands/test.md +15 -201
  54. package/content/commands/verify.md +7 -0
  55. package/dist/cli.js +47 -15
  56. package/dist/cli.js.map +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/index.js.map +1 -1
  61. package/dist/installer.d.ts +29 -4
  62. package/dist/installer.d.ts.map +1 -1
  63. package/dist/installer.js +120 -17
  64. package/dist/installer.js.map +1 -1
  65. package/package.json +5 -1
  66. package/content/commands/optimize.md +0 -338
package/README.md CHANGED
@@ -39,11 +39,29 @@ npx @allthingsclaude/blueprints --path /path/to/install
39
39
 
40
40
  # Skip confirmation prompts
41
41
  npx @allthingsclaude/blueprints --global --yes
42
+
43
+ # Set agent power level (1-5, default: 4)
44
+ npx @allthingsclaude/blueprints --power 5
45
+
46
+ # Customize tasks directory name (default: tasks)
47
+ npx @allthingsclaude/blueprints --tasks-dir my-tasks
42
48
  ```
43
49
 
50
+ ### Agent Power Levels
51
+
52
+ Control which models power your agents:
53
+
54
+ | Level | Name | Lightweight | Research | Standard | Heavyweight |
55
+ |-------|------|-------------|----------|----------|-------------|
56
+ | 1 | Economy | Haiku | Haiku | Haiku | Sonnet |
57
+ | 2 | Balanced | Haiku | Haiku | Sonnet | Sonnet |
58
+ | 3 | Standard | Sonnet | Sonnet | Sonnet | Sonnet |
59
+ | **4** | **Enhanced (default)** | **Sonnet** | **Opus** | **Opus** | **Opus** |
60
+ | 5 | Maximum | Opus | Opus | Opus | Opus |
61
+
44
62
  ---
45
63
 
46
- ## Commands by Category
64
+ ## Commands (29)
47
65
 
48
66
  ### Planning & Execution
49
67
 
@@ -53,6 +71,7 @@ npx @allthingsclaude/blueprints --global --yes
53
71
  | `/kickoff` | Execute a plan interactively with approval gates (collaborative) |
54
72
  | `/implement` | Execute a plan autonomously (hands-off) |
55
73
  | `/parallelize` | Execute independent plan tasks across multiple agents simultaneously |
74
+ | `/auto` | Full autonomous development loop — from idea to committed code |
56
75
  | `/finalize` | Complete a work phase - update plans, commit changes, document decisions |
57
76
 
58
77
  ### Project Setup
@@ -75,7 +94,18 @@ npx @allthingsclaude/blueprints --global --yes
75
94
  | `/audit` | Pre-commit security and quality review |
76
95
  | `/test` | Run tests, analyze failures, generate test coverage |
77
96
  | `/cleanup` | Find and remove dead code, unused imports, technical debt |
78
- | `/refactor` | DRY analysis, pattern extraction, safe refactoring with validation |
97
+ | `/refactor` | Safe refactoring — rename, extract, inline, or move code with validation |
98
+ | `/dry` | Eliminate DRY violations without changing behavior |
99
+ | `/secure` | Run a focused security scan on your codebase |
100
+
101
+ ### Code Operations
102
+
103
+ | Command | Description |
104
+ |---------|-------------|
105
+ | `/commit` | Create a well-crafted git commit from your current changes |
106
+ | `/changelog` | Generate a changelog from git history |
107
+ | `/docs` | Generate or update project documentation |
108
+ | `/migrate` | Upgrade dependencies or migrate between framework versions |
79
109
 
80
110
  ### Thinking Modes
81
111
 
@@ -92,13 +122,20 @@ npx @allthingsclaude/blueprints --global --yes
92
122
  |---------|-------------|
93
123
  | `/debug` | Systematic investigation with root cause analysis and fix options |
94
124
 
125
+ ### Creative
126
+
127
+ | Command | Description |
128
+ |---------|-------------|
129
+ | `/imagine` | Generate images using Nano Banana Pro (Gemini/fal.ai) |
130
+ | `/storyboard` | Extract UI interaction specs from video mockups |
131
+
95
132
  ### Session Management
96
133
 
97
134
  | Command | Description |
98
135
  |---------|-------------|
99
136
  | `/handoff` | Generate comprehensive documentation for context switching |
100
137
  | `/pickup` | Resume work from a previous handoff document |
101
- | `/flush` | Clear all temporary files from `.claude/temp/` |
138
+ | `/flush` | Clear all task artifacts from `tasks/` |
102
139
 
103
140
  ---
104
141
 
@@ -349,25 +386,50 @@ When you have a plan, choose how to execute it:
349
386
  | **Interactive** | `/kickoff` | Complex changes where you want approval gates and collaboration |
350
387
  | **Autonomous** | `/implement` | Well-defined tasks you trust to run hands-off |
351
388
  | **Parallel** | `/parallelize` | Plans with independent tasks that can run simultaneously |
389
+ | **Full Auto** | `/auto` | End-to-end: idea → plan → implement → test → commit |
352
390
 
353
391
  ---
354
392
 
355
- ## Agents (10)
393
+ ## Agents (23)
356
394
 
357
- Agents are specialized workers launched by commands:
395
+ Agents are specialized workers launched by commands. Each agent is assigned a model based on your chosen power level and its tier classification.
396
+
397
+ ### Agent Tiers
398
+
399
+ | Tier | Agents | Description |
400
+ |------|--------|-------------|
401
+ | **Lightweight** | commit, changelog, handoff, cleanup, imagine | Rote tasks — fast models suffice |
402
+ | **Research** | research-codebase, research-docs, research-web | Search and synthesize |
403
+ | **Standard** | plan, implement, parallelize, bootstrap, refactor, test, explain, docs, dry, storyboard | Balanced reasoning |
404
+ | **Heavyweight** | audit, debug, secure | Deep reasoning, high-stakes analysis |
405
+
406
+ ### Agent List
358
407
 
359
408
  | Agent | Used By | Purpose |
360
409
  |-------|---------|---------|
361
410
  | `audit` | `/audit` | Code quality and security analysis |
362
411
  | `bootstrap` | `/bootstrap` | Project scaffolding and setup |
412
+ | `changelog` | `/changelog` | Changelog generation from git history |
413
+ | `cleanup` | `/cleanup` | Dead code and unused import removal |
414
+ | `commit` | `/commit` | Git commit message crafting |
415
+ | `debug` | `/debug` | Systematic root cause investigation |
416
+ | `docs` | `/docs` | Documentation generation and updates |
417
+ | `dry` | `/dry` | DRY violation detection and elimination |
418
+ | `explain` | `/explain` | Code and architecture explanations |
363
419
  | `finalize` | `/finalize` | Session wrap-up and commits |
364
420
  | `handoff` | `/handoff` | Context documentation |
421
+ | `imagine` | `/imagine` | Image generation via Nano Banana Pro |
365
422
  | `implement` | `/implement` | Autonomous plan execution |
423
+ | `migrate` | `/migrate` | Dependency upgrades and migrations |
366
424
  | `parallelize` | `/parallelize` | Multi-agent orchestration |
367
425
  | `plan` | `/plan` | Structured plan creation |
426
+ | `refactor` | `/refactor` | Safe code refactoring with validation |
368
427
  | `research-codebase` | `/research` | Code exploration |
369
428
  | `research-docs` | `/research` | Library documentation lookup |
370
429
  | `research-web` | `/research` | Online resource research |
430
+ | `secure` | `/secure` | Security scanning and vulnerability detection |
431
+ | `storyboard` | `/storyboard` | UI interaction spec extraction |
432
+ | `test` | `/test` | Test execution and failure analysis |
371
433
 
372
434
  ---
373
435
 
@@ -377,22 +439,28 @@ After installation, your `.claude` directory will contain:
377
439
 
378
440
  ```
379
441
  .claude/
380
- ├── commands/ # 20 command files
442
+ ├── commands/ # 29 command files
381
443
  │ ├── audit.md
444
+ │ ├── auto.md
382
445
  │ ├── bootstrap.md
383
446
  │ ├── brainstorm.md
384
447
  │ └── ...
385
- ├── agents/ # 10 agent files
448
+ ├── agents/ # 23 agent files
386
449
  │ ├── audit.md
387
450
  │ ├── bootstrap.md
388
- │ ├── finalize.md
451
+ │ ├── changelog.md
389
452
  │ └── ...
390
- └── temp/ # Runtime files (created during use)
391
- ├── PLAN_*.md # Implementation plans
392
- ├── HANDOFF.md # Session handoff document
393
- └── ...
453
+ tasks/ # Runtime artifacts (created during use)
454
+ ├── plans/
455
+ │ └── PLAN_*.md # Implementation plans
456
+ ├── sessions/
457
+ │ ├── HANDOFF.md # Session handoff document
458
+ │ └── PHASE_SUMMARY_*.md # Phase summaries
459
+ └── STATE.md # Active plan tracker
394
460
  ```
395
461
 
462
+ > The `tasks/` directory name is configurable during installation via `--tasks-dir`. Template variables (`{{TASKS_DIR}}`, `{{PLANS_DIR}}`, `{{SESSIONS_DIR}}`) are resolved at install time.
463
+
396
464
  ---
397
465
 
398
466
  ## Platform Support
@@ -2,7 +2,7 @@
2
2
  name: audit
3
3
  description: Review code changes before committing
4
4
  tools: Bash, Read, Grep
5
- model: sonnet
5
+ model: {{MODEL}}
6
6
  author: "@markoradak"
7
7
  ---
8
8
 
@@ -23,6 +23,21 @@ Review all staged and unstaged changes to:
23
23
 
24
24
  ## Analysis Steps
25
25
 
26
+ ### 0. Detect Toolchain
27
+
28
+ Before running any commands, detect the project's package manager and available scripts:
29
+
30
+ ```bash
31
+ cat package.json 2>/dev/null | head -30
32
+ ```
33
+
34
+ - If `pnpm-lock.yaml` exists → use `pnpm`
35
+ - If `yarn.lock` exists → use `yarn`
36
+ - If `bun.lockb` exists → use `bun`
37
+ - If `package-lock.json` exists → use `npm`
38
+ - Check `scripts` in package.json for available typecheck/lint/test/build commands
39
+ - Use the detected package manager for ALL subsequent commands
40
+
26
41
  ### 1. Gather Changes
27
42
 
28
43
  Run these commands to understand what's being changed:
@@ -135,13 +150,12 @@ Go through each change systematically:
135
150
 
136
151
  ### 4. Check Project-Specific Rules
137
152
 
138
- Review against CLAUDE.md requirements:
139
- - Multi-tenant considerations (site isolation)
140
- - Proper middleware usage
141
- - tRPC router patterns
142
- - Prisma best practices
153
+ Review against CLAUDE.md requirements (if present):
154
+ - Project-specific architectural patterns
155
+ - Framework-specific conventions
156
+ - Database/ORM best practices
143
157
  - Environment variable usage
144
- - Package manager (pnpm) compliance
158
+ - Package manager compliance
145
159
 
146
160
  ### 5. Look for Common Pitfalls
147
161
 
@@ -273,9 +287,9 @@ Provide a comprehensive audit report:
273
287
  - [ ] No commented-out code (unless with explanation)
274
288
  - [ ] Environment variables properly configured
275
289
  - [ ] Database migrations created if needed
276
- - [ ] Type errors resolved (`pnpm typecheck`)
277
- - [ ] Linter passes (`pnpm lint`)
278
- - [ ] Build succeeds (`pnpm build`)
290
+ - [ ] Type errors resolved (run typecheck script)
291
+ - [ ] Linter passes (run lint script)
292
+ - [ ] Build succeeds (run build script)
279
293
 
280
294
  ---
281
295
 
@@ -301,7 +315,7 @@ Provide a comprehensive audit report:
301
315
 
302
316
  **Next Steps**:
303
317
  1. Address critical and important issues
304
- 2. Run `pnpm check` to verify TypeScript and linting
318
+ 2. Run typecheck and lint to verify
305
319
  3. Run tests if applicable
306
320
  4. Review this audit report items
307
321
  5. Stage final changes: `git add .`
@@ -321,7 +335,7 @@ How would you like to proceed?
321
335
 
322
336
  1. **Review only** - I'll just show the audit report (done above)
323
337
  2. **Auto-fix** - I'll attempt to automatically fix critical and important issues
324
- 3. **Create fix plan** - I'll generate `.claude/temp/PLAN_AUDIT_FIXES.md` with systematic fixes
338
+ 3. **Create fix plan** - I'll generate `{{PLANS_DIR}}/PLAN_AUDIT_FIXES.md` with systematic fixes
325
339
 
326
340
  Type 1, 2, or 3 (or just describe what you'd like to do).
327
341
  ```
@@ -372,7 +386,12 @@ When user chooses auto-fix:
372
386
 
373
387
  When user chooses to create a fix plan:
374
388
 
375
- 1. **Generate PLAN_AUDIT_FIXES.md** using Write tool at `.claude/temp/PLAN_AUDIT_FIXES.md`
389
+ 1. **Ensure the output directory exists**:
390
+ ```bash
391
+ mkdir -p {{PLANS_DIR}}
392
+ ```
393
+
394
+ 2. **Generate PLAN_AUDIT_FIXES.md** using Write tool at `{{PLANS_DIR}}/PLAN_AUDIT_FIXES.md`
376
395
 
377
396
  2. **Plan structure**:
378
397
  ```markdown
@@ -428,7 +447,7 @@ When user chooses to create a fix plan:
428
447
 
429
448
  3. **Inform user**:
430
449
  ```markdown
431
- ✅ Fix plan created at `.claude/temp/PLAN_AUDIT_FIXES.md`
450
+ ✅ Fix plan created at `{{PLANS_DIR}}/PLAN_AUDIT_FIXES.md`
432
451
 
433
452
  **Next Steps**:
434
453
  1. Review the plan
@@ -471,27 +490,23 @@ When user chooses to create a fix plan:
471
490
 
472
491
  ## Special Considerations
473
492
 
474
- ### Multi-Tenant Context
475
- When reviewing this project, always check:
476
- - Is site isolation maintained?
477
- - Are queries properly filtered by site/domain?
478
- - Could data leak between tenants?
479
- - Are middleware checks in place?
480
-
481
- ### Type Safety
482
- This project uses strict TypeScript:
493
+ ### Type Safety (if TypeScript project)
483
494
  - Every `any` should be justified
484
495
  - Prefer unknown over any
485
496
  - Use proper type guards
486
- - Validate external data with Zod
497
+ - Validate external data at system boundaries
487
498
 
488
499
  ### Performance
489
- This is an e-commerce platform:
490
500
  - Database queries must be efficient
491
501
  - Consider caching strategies
492
502
  - Check for N+1 issues
493
503
  - Validate pagination exists for lists
494
504
 
505
+ ### Project-Specific Rules
506
+ - Read CLAUDE.md (if present) for project-specific architectural guidelines
507
+ - Check for multi-tenant isolation if applicable
508
+ - Verify framework-specific best practices
509
+
495
510
  ## Example Issues
496
511
 
497
512
  ### Critical Example
@@ -2,7 +2,7 @@
2
2
  name: bootstrap
3
3
  description: Generate plan and bootstrap script for new projects
4
4
  tools: Bash, Read, Grep, Write, SlashCommand
5
- model: sonnet
5
+ model: {{MODEL}}
6
6
  author: "@markoradak"
7
7
  ---
8
8
 
@@ -10,7 +10,7 @@ You are a project bootstrap specialist. Your role is to analyze a brainstorming
10
10
 
11
11
  ## Your Mission
12
12
 
13
- 1. First, invoke the `/plan` command to generate `.claude/temp/PLAN_{NAME}.md`
13
+ 1. First, invoke the `/plan` command to generate `{{PLANS_DIR}}/PLAN_{NAME}.md`
14
14
  2. Then, create an executable `bootstrap.sh` script in the current directory
15
15
  3. Provide clear next steps for the user
16
16
 
@@ -291,7 +291,7 @@ main() {
291
291
  echo "========================================"
292
292
  echo ""
293
293
  echo "Next steps:"
294
- echo " 1. Review .claude/temp/PLAN_{NAME}.md for implementation plan"
294
+ echo " 1. Review {{PLANS_DIR}}/PLAN_{NAME}.md for implementation plan"
295
295
  echo " 2. Update environment variables in .env"
296
296
  echo " 3. Start development: $PKG_MANAGER dev"
297
297
  echo ""
@@ -326,7 +326,7 @@ Based on the conversation, customize:
326
326
  After creating both the plan and bootstrap script, respond with:
327
327
 
328
328
  ```
329
- ✅ Plan generated at `.claude/temp/PLAN_{NAME}.md`
329
+ ✅ Plan generated at `{{PLANS_DIR}}/PLAN_{NAME}.md`
330
330
  ✅ Bootstrap script created at `./bootstrap.sh`
331
331
 
332
332
  **Project Summary**:
@@ -339,7 +339,7 @@ After creating both the plan and bootstrap script, respond with:
339
339
 
340
340
  1. Review the plan:
341
341
  \`\`\`bash
342
- cat .claude/temp/PLAN_{NAME}.md
342
+ cat {{PLANS_DIR}}/PLAN_{NAME}.md
343
343
  \`\`\`
344
344
 
345
345
  2. Review the bootstrap script:
@@ -366,6 +366,26 @@ After creating both the plan and bootstrap script, respond with:
366
366
  - Use `/kickoff {NAME}` when ready to start coding
367
367
  ```
368
368
 
369
+ ## Error Recovery
370
+
371
+ ### Plan Generation Fails
372
+ If the `/plan` invocation fails or produces an incomplete plan:
373
+ 1. Report the error to the user
374
+ 2. Ask if they want to provide more context or try again
375
+ 3. Do NOT proceed to generating bootstrap.sh without a plan
376
+
377
+ ### Project Already Exists
378
+ If the current directory already has a `package.json` or project files:
379
+ 1. Warn the user that existing files were detected
380
+ 2. List the conflicting files
381
+ 3. Ask whether to proceed (augment existing project) or abort
382
+ 4. If proceeding, ensure `bootstrap.sh` guards against overwriting existing files
383
+
384
+ ### Missing Prerequisites
385
+ If the required Node.js version, package manager, or other tools aren't installed:
386
+ 1. The bootstrap script should detect this and print a clear error with install instructions
387
+ 2. Include prerequisite checks at the top of bootstrap.sh (before any file creation)
388
+
369
389
  ## Important Notes
370
390
 
371
391
  - The script should NEVER overwrite existing files without warning