@allthingsclaude/blueprints 0.1.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.
- package/LICENSE +21 -0
- package/README.md +413 -0
- package/bin/cli.js +4 -0
- package/content/agents/audit.md +553 -0
- package/content/agents/bootstrap.md +386 -0
- package/content/agents/finalize.md +490 -0
- package/content/agents/handoff.md +207 -0
- package/content/agents/implement.md +350 -0
- package/content/agents/parallelize.md +484 -0
- package/content/agents/plan.md +309 -0
- package/content/agents/research-codebase.md +33 -0
- package/content/agents/research-docs.md +34 -0
- package/content/agents/research-web.md +34 -0
- package/content/commands/audit.md +54 -0
- package/content/commands/bootstrap.md +46 -0
- package/content/commands/brainstorm.md +76 -0
- package/content/commands/challenge.md +26 -0
- package/content/commands/cleanup.md +326 -0
- package/content/commands/critique.md +34 -0
- package/content/commands/debug.md +283 -0
- package/content/commands/explain.md +340 -0
- package/content/commands/finalize.md +49 -0
- package/content/commands/flush.md +29 -0
- package/content/commands/handoff.md +46 -0
- package/content/commands/implement.md +67 -0
- package/content/commands/kickoff.md +65 -0
- package/content/commands/parallelize.md +118 -0
- package/content/commands/pickup.md +30 -0
- package/content/commands/plan.md +38 -0
- package/content/commands/refactor.md +406 -0
- package/content/commands/research.md +58 -0
- package/content/commands/test.md +229 -0
- package/content/commands/verify.md +16 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +150 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/installer.d.ts +49 -0
- package/dist/installer.d.ts.map +1 -0
- package/dist/installer.js +125 -0
- package/dist/installer.js.map +1 -0
- package/package.json +64 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Marko Radak
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
# @allthingsclaude/blueprints
|
|
2
|
+
|
|
3
|
+
Install powerful commands and agents for Claude Code to enhance your AI-assisted development workflows.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @allthingsclaude/blueprints
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This will prompt you to choose an installation location:
|
|
12
|
+
|
|
13
|
+
- **Global** (`~/.claude`) - Available in all your projects
|
|
14
|
+
- **Local** (current directory) - Available only in the current project
|
|
15
|
+
- **Custom path** - Install to any location you specify
|
|
16
|
+
|
|
17
|
+
## Installation Options
|
|
18
|
+
|
|
19
|
+
### Interactive Mode (Recommended)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx @allthingsclaude/blueprints
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Command Line Flags
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Install globally to ~/.claude
|
|
29
|
+
npx @allthingsclaude/blueprints --global
|
|
30
|
+
|
|
31
|
+
# Install locally to current directory
|
|
32
|
+
npx @allthingsclaude/blueprints --local
|
|
33
|
+
|
|
34
|
+
# Install to a custom path
|
|
35
|
+
npx @allthingsclaude/blueprints --path /path/to/install
|
|
36
|
+
|
|
37
|
+
# Skip confirmation prompts
|
|
38
|
+
npx @allthingsclaude/blueprints --global --yes
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Commands by Category
|
|
44
|
+
|
|
45
|
+
### Planning & Execution
|
|
46
|
+
|
|
47
|
+
| Command | Description |
|
|
48
|
+
|---------|-------------|
|
|
49
|
+
| `/plan` | Create a structured implementation plan from your requirements |
|
|
50
|
+
| `/kickoff` | Execute a plan interactively with approval gates (collaborative) |
|
|
51
|
+
| `/implement` | Execute a plan autonomously (hands-off) |
|
|
52
|
+
| `/parallelize` | Execute independent plan tasks across multiple agents simultaneously |
|
|
53
|
+
| `/finalize` | Complete a work phase - update plans, commit changes, document decisions |
|
|
54
|
+
|
|
55
|
+
### Project Setup
|
|
56
|
+
|
|
57
|
+
| Command | Description |
|
|
58
|
+
|---------|-------------|
|
|
59
|
+
| `/bootstrap` | Initialize new projects with generated plans and executable setup scripts |
|
|
60
|
+
|
|
61
|
+
### Research & Learning
|
|
62
|
+
|
|
63
|
+
| Command | Description |
|
|
64
|
+
|---------|-------------|
|
|
65
|
+
| `/research` | Smart routing to codebase, documentation, or web research |
|
|
66
|
+
| `/explain` | Generate detailed explanations of code, architecture, or features |
|
|
67
|
+
|
|
68
|
+
### Code Quality
|
|
69
|
+
|
|
70
|
+
| Command | Description |
|
|
71
|
+
|---------|-------------|
|
|
72
|
+
| `/audit` | Pre-commit security and quality review |
|
|
73
|
+
| `/test` | Run tests, analyze failures, generate test coverage |
|
|
74
|
+
| `/cleanup` | Find and remove dead code, unused imports, technical debt |
|
|
75
|
+
| `/refactor` | DRY analysis, pattern extraction, safe refactoring with validation |
|
|
76
|
+
|
|
77
|
+
### Thinking Modes
|
|
78
|
+
|
|
79
|
+
| Command | Description |
|
|
80
|
+
|---------|-------------|
|
|
81
|
+
| `/brainstorm` | Pure ideation mode - explore ideas without any code changes |
|
|
82
|
+
| `/challenge` | Critical analysis - question assumptions before proceeding |
|
|
83
|
+
| `/verify` | Quick sanity check - validate your approach |
|
|
84
|
+
| `/critique` | Get direct, unfiltered feedback on code or decisions |
|
|
85
|
+
|
|
86
|
+
### Debugging
|
|
87
|
+
|
|
88
|
+
| Command | Description |
|
|
89
|
+
|---------|-------------|
|
|
90
|
+
| `/debug` | Systematic investigation with root cause analysis and fix options |
|
|
91
|
+
|
|
92
|
+
### Session Management
|
|
93
|
+
|
|
94
|
+
| Command | Description |
|
|
95
|
+
|---------|-------------|
|
|
96
|
+
| `/handoff` | Generate comprehensive documentation for context switching |
|
|
97
|
+
| `/pickup` | Resume work from a previous handoff document |
|
|
98
|
+
| `/flush` | Clear all temporary files from `.claude/temp/` |
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Workflows
|
|
103
|
+
|
|
104
|
+
### 1. New Project
|
|
105
|
+
|
|
106
|
+
Start a project from scratch with automated scaffolding.
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
110
|
+
│ │
|
|
111
|
+
│ "I want to build a tool for..." │
|
|
112
|
+
│ │ │
|
|
113
|
+
│ ▼ │
|
|
114
|
+
│ /brainstorm │
|
|
115
|
+
│ (explore ideas) │
|
|
116
|
+
│ │ │
|
|
117
|
+
│ ▼ │
|
|
118
|
+
│ /bootstrap │
|
|
119
|
+
│ (generates PLAN + bootstrap.sh) │
|
|
120
|
+
│ │ │
|
|
121
|
+
│ ┌───────────┼───────────┐ │
|
|
122
|
+
│ ▼ ▼ ▼ │
|
|
123
|
+
│ /kickoff /implement /parallelize │
|
|
124
|
+
│ (interactive) (autonomous) (parallel) │
|
|
125
|
+
│ └───────────┼───────────┘ │
|
|
126
|
+
│ ▼ │
|
|
127
|
+
│ /test → /audit │
|
|
128
|
+
│ │ │
|
|
129
|
+
│ ▼ │
|
|
130
|
+
│ /finalize │
|
|
131
|
+
│ (commit phase) │
|
|
132
|
+
│ │
|
|
133
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Example:**
|
|
137
|
+
```
|
|
138
|
+
You: I want to build a React dashboard with authentication
|
|
139
|
+
/brainstorm
|
|
140
|
+
... explore architecture, tech choices, features ...
|
|
141
|
+
/bootstrap dashboard-app
|
|
142
|
+
... generates PLAN_DASHBOARD_APP.md + bootstrap.sh ...
|
|
143
|
+
/kickoff
|
|
144
|
+
... interactive implementation with approval gates ...
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 2. Feature Development
|
|
148
|
+
|
|
149
|
+
Add features to an existing project with structured planning.
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
153
|
+
│ │
|
|
154
|
+
│ /research (optional) │
|
|
155
|
+
│ (understand codebase/docs) │
|
|
156
|
+
│ │ │
|
|
157
|
+
│ ▼ │
|
|
158
|
+
│ /plan │
|
|
159
|
+
│ (create structured plan) │
|
|
160
|
+
│ │ │
|
|
161
|
+
│ ┌──────────┼──────────┐ │
|
|
162
|
+
│ ▼ ▼ ▼ │
|
|
163
|
+
│ /kickoff /implement /parallelize │
|
|
164
|
+
│ └──────────┼──────────┘ │
|
|
165
|
+
│ │ │
|
|
166
|
+
│ ▼ │
|
|
167
|
+
│ /test → /audit │
|
|
168
|
+
│ │ │
|
|
169
|
+
│ ▼ │
|
|
170
|
+
│ /finalize │
|
|
171
|
+
│ │
|
|
172
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Example:**
|
|
176
|
+
```
|
|
177
|
+
/research how does auth work in this codebase?
|
|
178
|
+
... investigation results ...
|
|
179
|
+
/plan add OAuth integration
|
|
180
|
+
... creates PLAN_OAUTH.md ...
|
|
181
|
+
/implement
|
|
182
|
+
... autonomous execution ...
|
|
183
|
+
/test
|
|
184
|
+
/audit
|
|
185
|
+
/finalize
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### 3. Bug Fix
|
|
189
|
+
|
|
190
|
+
Systematic debugging with proper verification.
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
194
|
+
│ │
|
|
195
|
+
│ /debug │
|
|
196
|
+
│ (investigate, find root cause) │
|
|
197
|
+
│ │ │
|
|
198
|
+
│ ┌───────────┴───────────┐ │
|
|
199
|
+
│ ▼ ▼ │
|
|
200
|
+
│ Simple fix Needs refactor │
|
|
201
|
+
│ │ │ │
|
|
202
|
+
│ │ /refactor │
|
|
203
|
+
│ │ │ │
|
|
204
|
+
│ └───────────┬───────────┘ │
|
|
205
|
+
│ ▼ │
|
|
206
|
+
│ /test │
|
|
207
|
+
│ (verify fix works) │
|
|
208
|
+
│ │ │
|
|
209
|
+
│ ▼ │
|
|
210
|
+
│ /audit │
|
|
211
|
+
│ │ │
|
|
212
|
+
│ ▼ │
|
|
213
|
+
│ /finalize │
|
|
214
|
+
│ │
|
|
215
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Example:**
|
|
219
|
+
```
|
|
220
|
+
/debug users can't login after password reset
|
|
221
|
+
... investigation, root cause found ...
|
|
222
|
+
... apply fix ...
|
|
223
|
+
/test
|
|
224
|
+
/audit
|
|
225
|
+
/finalize fix password reset token validation
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### 4. Code Quality Improvement
|
|
229
|
+
|
|
230
|
+
Clean up and refactor existing code safely.
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
234
|
+
│ │
|
|
235
|
+
│ /audit │
|
|
236
|
+
│ (identify issues and debt) │
|
|
237
|
+
│ │ │
|
|
238
|
+
│ ┌───────────┴───────────┐ │
|
|
239
|
+
│ ▼ ▼ │
|
|
240
|
+
│ /cleanup /refactor │
|
|
241
|
+
│ (remove dead code) (improve patterns) │
|
|
242
|
+
│ └───────────┬───────────┘ │
|
|
243
|
+
│ ▼ │
|
|
244
|
+
│ /test │
|
|
245
|
+
│ (ensure nothing broke) │
|
|
246
|
+
│ │ │
|
|
247
|
+
│ ▼ │
|
|
248
|
+
│ /finalize │
|
|
249
|
+
│ │
|
|
250
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Example:**
|
|
254
|
+
```
|
|
255
|
+
/audit src/services/
|
|
256
|
+
... identifies DRY violations, unused exports ...
|
|
257
|
+
/cleanup imports
|
|
258
|
+
... removes unused imports ...
|
|
259
|
+
/refactor dry-check src/services/
|
|
260
|
+
... consolidates duplicate code ...
|
|
261
|
+
/test
|
|
262
|
+
/finalize
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### 5. Session Continuity
|
|
266
|
+
|
|
267
|
+
Switch contexts or resume work across sessions.
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
271
|
+
│ │
|
|
272
|
+
│ SESSION 1 SESSION 2 │
|
|
273
|
+
│ │
|
|
274
|
+
│ ... working ... │
|
|
275
|
+
│ │ │
|
|
276
|
+
│ ▼ │
|
|
277
|
+
│ /handoff ─────────────────────► /pickup │
|
|
278
|
+
│ (saves state to (restores context) │
|
|
279
|
+
│ HANDOFF.md) │ │
|
|
280
|
+
│ ▼ │
|
|
281
|
+
│ ... continue ... │
|
|
282
|
+
│ │ │
|
|
283
|
+
│ ▼ │
|
|
284
|
+
│ /finalize │
|
|
285
|
+
│ │
|
|
286
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Example:**
|
|
290
|
+
```
|
|
291
|
+
# End of day
|
|
292
|
+
/handoff
|
|
293
|
+
... creates HANDOFF.md with current state, next steps, blockers ...
|
|
294
|
+
|
|
295
|
+
# Next day, new session
|
|
296
|
+
/pickup
|
|
297
|
+
... restores context, shows what to do next ...
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### 6. Thinking Before Doing
|
|
301
|
+
|
|
302
|
+
Validate approaches before committing to implementation.
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
306
|
+
│ │
|
|
307
|
+
│ Got a task? │
|
|
308
|
+
│ │ │
|
|
309
|
+
│ ├─── Quick check? ───► /verify │
|
|
310
|
+
│ │ (lightweight validation) │
|
|
311
|
+
│ │ │
|
|
312
|
+
│ ├─── Need to think? ──► /challenge │
|
|
313
|
+
│ │ (question assumptions, │
|
|
314
|
+
│ │ explore alternatives) │
|
|
315
|
+
│ │ │
|
|
316
|
+
│ ├─── Want feedback? ──► /critique │
|
|
317
|
+
│ │ (direct, unfiltered) │
|
|
318
|
+
│ │ │
|
|
319
|
+
│ └─── Exploring? ──────► /brainstorm │
|
|
320
|
+
│ (pure ideation, │
|
|
321
|
+
│ no code changes) │
|
|
322
|
+
│ │
|
|
323
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
**Example:**
|
|
327
|
+
```
|
|
328
|
+
/challenge Should we use microservices or a monolith?
|
|
329
|
+
... analyzes tradeoffs, questions assumptions ...
|
|
330
|
+
|
|
331
|
+
/verify Is using Redis for sessions the right approach here?
|
|
332
|
+
... quick validation with gotchas ...
|
|
333
|
+
|
|
334
|
+
/brainstorm What would an ideal developer experience look like?
|
|
335
|
+
... explores ideas without committing to code ...
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Implementation Modes
|
|
341
|
+
|
|
342
|
+
When you have a plan, choose how to execute it:
|
|
343
|
+
|
|
344
|
+
| Mode | Command | Best For |
|
|
345
|
+
|------|---------|----------|
|
|
346
|
+
| **Interactive** | `/kickoff` | Complex changes where you want approval gates and collaboration |
|
|
347
|
+
| **Autonomous** | `/implement` | Well-defined tasks you trust to run hands-off |
|
|
348
|
+
| **Parallel** | `/parallelize` | Plans with independent tasks that can run simultaneously |
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Agents (10)
|
|
353
|
+
|
|
354
|
+
Agents are specialized workers launched by commands:
|
|
355
|
+
|
|
356
|
+
| Agent | Used By | Purpose |
|
|
357
|
+
|-------|---------|---------|
|
|
358
|
+
| `audit` | `/audit` | Code quality and security analysis |
|
|
359
|
+
| `bootstrap` | `/bootstrap` | Project scaffolding and setup |
|
|
360
|
+
| `finalize` | `/finalize` | Session wrap-up and commits |
|
|
361
|
+
| `handoff` | `/handoff` | Context documentation |
|
|
362
|
+
| `implement` | `/implement` | Autonomous plan execution |
|
|
363
|
+
| `parallelize` | `/parallelize` | Multi-agent orchestration |
|
|
364
|
+
| `plan` | `/plan` | Structured plan creation |
|
|
365
|
+
| `research-codebase` | `/research` | Code exploration |
|
|
366
|
+
| `research-docs` | `/research` | Library documentation lookup |
|
|
367
|
+
| `research-web` | `/research` | Online resource research |
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## File Structure
|
|
372
|
+
|
|
373
|
+
After installation, your `.claude` directory will contain:
|
|
374
|
+
|
|
375
|
+
```
|
|
376
|
+
.claude/
|
|
377
|
+
├── commands/ # 20 command files
|
|
378
|
+
│ ├── audit.md
|
|
379
|
+
│ ├── bootstrap.md
|
|
380
|
+
│ ├── brainstorm.md
|
|
381
|
+
│ └── ...
|
|
382
|
+
├── agents/ # 10 agent files
|
|
383
|
+
│ ├── audit.md
|
|
384
|
+
│ ├── bootstrap.md
|
|
385
|
+
│ ├── finalize.md
|
|
386
|
+
│ └── ...
|
|
387
|
+
└── temp/ # Runtime files (created during use)
|
|
388
|
+
├── PLAN_*.md # Implementation plans
|
|
389
|
+
├── HANDOFF.md # Session handoff document
|
|
390
|
+
└── ...
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## Platform Support
|
|
396
|
+
|
|
397
|
+
- **macOS**: `~/.claude`
|
|
398
|
+
- **Linux**: `~/.claude`
|
|
399
|
+
- **Windows**: `%USERPROFILE%\.claude`
|
|
400
|
+
|
|
401
|
+
## Requirements
|
|
402
|
+
|
|
403
|
+
- Node.js 16.0.0 or higher
|
|
404
|
+
- Claude Code CLI
|
|
405
|
+
|
|
406
|
+
## License
|
|
407
|
+
|
|
408
|
+
MIT
|
|
409
|
+
|
|
410
|
+
## Links
|
|
411
|
+
|
|
412
|
+
- [Claude Code Documentation](https://docs.anthropic.com/en/docs/claude-code)
|
|
413
|
+
- [Report Issues](https://github.com/allthingsclaude/blueprints/issues)
|
package/bin/cli.js
ADDED