aiblueprint-cli 1.4.12 → 1.4.13
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/claude-code-config/scripts/.claude/commands/fix-on-my-computer.md +87 -0
- package/claude-code-config/scripts/command-validator/CLAUDE.md +112 -0
- package/claude-code-config/scripts/command-validator/src/__tests__/validator.test.ts +62 -111
- package/claude-code-config/scripts/command-validator/src/cli.ts +5 -3
- package/claude-code-config/scripts/command-validator/src/lib/security-rules.ts +3 -4
- package/claude-code-config/scripts/command-validator/src/lib/types.ts +1 -0
- package/claude-code-config/scripts/command-validator/src/lib/validator.ts +47 -317
- package/claude-code-config/scripts/statusline/CLAUDE.md +29 -7
- package/claude-code-config/scripts/statusline/README.md +89 -1
- package/claude-code-config/scripts/statusline/defaults.json +75 -0
- package/claude-code-config/scripts/statusline/src/index.ts +101 -24
- package/claude-code-config/scripts/statusline/src/lib/config-types.ts +100 -0
- package/claude-code-config/scripts/statusline/src/lib/config.ts +21 -0
- package/claude-code-config/scripts/statusline/src/lib/context.ts +32 -11
- package/claude-code-config/scripts/statusline/src/lib/formatters.ts +360 -22
- package/claude-code-config/scripts/statusline/src/lib/git.ts +100 -0
- package/claude-code-config/scripts/statusline/src/lib/render-pure.ts +177 -0
- package/claude-code-config/scripts/statusline/src/lib/types.ts +11 -0
- package/claude-code-config/scripts/statusline/statusline.config.json +93 -0
- package/claude-code-config/skills/claude-memory/SKILL.md +689 -0
- package/claude-code-config/skills/claude-memory/references/comprehensive-example.md +175 -0
- package/claude-code-config/skills/claude-memory/references/project-patterns.md +334 -0
- package/claude-code-config/skills/claude-memory/references/prompting-techniques.md +411 -0
- package/claude-code-config/skills/claude-memory/references/section-templates.md +347 -0
- package/claude-code-config/skills/create-slash-commands/SKILL.md +1110 -0
- package/claude-code-config/skills/create-slash-commands/references/arguments.md +273 -0
- package/claude-code-config/skills/create-slash-commands/references/patterns.md +947 -0
- package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +656 -0
- package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +389 -0
- package/claude-code-config/skills/create-subagents/SKILL.md +425 -0
- package/claude-code-config/skills/create-subagents/references/context-management.md +567 -0
- package/claude-code-config/skills/create-subagents/references/debugging-agents.md +714 -0
- package/claude-code-config/skills/create-subagents/references/error-handling-and-recovery.md +502 -0
- package/claude-code-config/skills/create-subagents/references/evaluation-and-testing.md +374 -0
- package/claude-code-config/skills/create-subagents/references/orchestration-patterns.md +591 -0
- package/claude-code-config/skills/create-subagents/references/subagents.md +599 -0
- package/claude-code-config/skills/create-subagents/references/writing-subagent-prompts.md +513 -0
- package/package.json +1 -1
- package/claude-code-config/commands/apex.md +0 -109
- package/claude-code-config/commands/tasks/run-task.md +0 -220
- package/claude-code-config/commands/utils/watch-ci.md +0 -47
- package/claude-code-config/scripts/command-validator/biome.json +0 -29
- package/claude-code-config/scripts/command-validator/bun.lockb +0 -0
- package/claude-code-config/scripts/command-validator/package.json +0 -27
- package/claude-code-config/scripts/command-validator/vitest.config.ts +0 -7
- package/claude-code-config/scripts/hook-post-file.ts +0 -162
- package/claude-code-config/scripts/statusline/biome.json +0 -34
- package/claude-code-config/scripts/statusline/bun.lockb +0 -0
- package/claude-code-config/scripts/statusline/fixtures/test-input.json +0 -25
- package/claude-code-config/scripts/statusline/package.json +0 -19
- package/claude-code-config/scripts/statusline/statusline.config.ts +0 -25
- package/claude-code-config/scripts/statusline/test.ts +0 -20
- package/claude-code-config/scripts/validate-command.js +0 -712
- package/claude-code-config/scripts/validate-command.readme.md +0 -283
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
<section_templates>
|
|
2
|
+
Copy and adapt these section templates for your CLAUDE.md file.
|
|
3
|
+
|
|
4
|
+
<tech_stack_templates>
|
|
5
|
+
<minimal>
|
|
6
|
+
```markdown
|
|
7
|
+
## Tech Stack
|
|
8
|
+
- Next.js 15 + TypeScript
|
|
9
|
+
- PostgreSQL via Prisma
|
|
10
|
+
- TailwindCSS
|
|
11
|
+
```
|
|
12
|
+
</minimal>
|
|
13
|
+
|
|
14
|
+
<detailed>
|
|
15
|
+
```markdown
|
|
16
|
+
## Tech Stack
|
|
17
|
+
- **Framework**: Next.js 15 with App Router
|
|
18
|
+
- **Language**: TypeScript (strict mode)
|
|
19
|
+
- **Styling**: TailwindCSS v4 + shadcn/ui
|
|
20
|
+
- **Database**: PostgreSQL with Prisma ORM
|
|
21
|
+
- **Auth**: [Auth solution]
|
|
22
|
+
- **Testing**: Vitest (unit), Playwright (e2e)
|
|
23
|
+
- **Package Manager**: pnpm
|
|
24
|
+
```
|
|
25
|
+
</detailed>
|
|
26
|
+
|
|
27
|
+
<with_infrastructure>
|
|
28
|
+
```markdown
|
|
29
|
+
## Tech Stack
|
|
30
|
+
|
|
31
|
+
### Application
|
|
32
|
+
- Next.js 15 + TypeScript
|
|
33
|
+
- PostgreSQL via Prisma
|
|
34
|
+
- Redis for caching/queues
|
|
35
|
+
|
|
36
|
+
### Infrastructure
|
|
37
|
+
- Vercel (hosting)
|
|
38
|
+
- Neon (database)
|
|
39
|
+
- Upstash (Redis)
|
|
40
|
+
|
|
41
|
+
### Monitoring
|
|
42
|
+
- Sentry (errors)
|
|
43
|
+
- Vercel Analytics
|
|
44
|
+
```
|
|
45
|
+
</with_infrastructure>
|
|
46
|
+
</tech_stack_templates>
|
|
47
|
+
|
|
48
|
+
<commands_templates>
|
|
49
|
+
<minimal>
|
|
50
|
+
```markdown
|
|
51
|
+
## Commands
|
|
52
|
+
- `pnpm dev` - Development
|
|
53
|
+
- `pnpm test` - Run tests
|
|
54
|
+
- `pnpm build` - Production build
|
|
55
|
+
```
|
|
56
|
+
</minimal>
|
|
57
|
+
|
|
58
|
+
<categorized>
|
|
59
|
+
```markdown
|
|
60
|
+
## Commands
|
|
61
|
+
|
|
62
|
+
### Development
|
|
63
|
+
- `pnpm dev` - Start dev server
|
|
64
|
+
- `pnpm build` - Production build
|
|
65
|
+
- `pnpm start` - Start production
|
|
66
|
+
|
|
67
|
+
### Quality
|
|
68
|
+
- `pnpm lint` - ESLint
|
|
69
|
+
- `pnpm ts` - Type check
|
|
70
|
+
- `pnpm format` - Prettier
|
|
71
|
+
|
|
72
|
+
### Testing
|
|
73
|
+
- `pnpm test:ci` - Unit tests
|
|
74
|
+
- `pnpm test:e2e:ci` - E2E tests
|
|
75
|
+
|
|
76
|
+
### Database
|
|
77
|
+
- `pnpm db:push` - Push schema
|
|
78
|
+
- `pnpm db:seed` - Seed data
|
|
79
|
+
```
|
|
80
|
+
</categorized>
|
|
81
|
+
|
|
82
|
+
<with_warnings>
|
|
83
|
+
```markdown
|
|
84
|
+
## Commands
|
|
85
|
+
|
|
86
|
+
### Development
|
|
87
|
+
- `pnpm dev` - Start dev server
|
|
88
|
+
- `pnpm build` - Production build
|
|
89
|
+
|
|
90
|
+
### Testing
|
|
91
|
+
**CRITICAL - Use CI commands only:**
|
|
92
|
+
- `pnpm test:ci` - Unit tests (non-interactive)
|
|
93
|
+
- `pnpm test:e2e:ci` - E2E tests (headless)
|
|
94
|
+
|
|
95
|
+
**NEVER use:**
|
|
96
|
+
- ~~`pnpm test`~~ - Interactive mode
|
|
97
|
+
- ~~`pnpm test:e2e`~~ - Interactive mode
|
|
98
|
+
```
|
|
99
|
+
</with_warnings>
|
|
100
|
+
</commands_templates>
|
|
101
|
+
|
|
102
|
+
<directory_structure_templates>
|
|
103
|
+
<simple>
|
|
104
|
+
```markdown
|
|
105
|
+
## Directory Structure
|
|
106
|
+
```
|
|
107
|
+
src/
|
|
108
|
+
├── components/ # UI components
|
|
109
|
+
├── lib/ # Utilities
|
|
110
|
+
├── hooks/ # React hooks
|
|
111
|
+
└── styles/ # CSS
|
|
112
|
+
```
|
|
113
|
+
```
|
|
114
|
+
</simple>
|
|
115
|
+
|
|
116
|
+
<feature_based>
|
|
117
|
+
```markdown
|
|
118
|
+
## Directory Structure
|
|
119
|
+
```
|
|
120
|
+
src/
|
|
121
|
+
├── features/
|
|
122
|
+
│ ├── auth/ # Authentication
|
|
123
|
+
│ ├── dashboard/ # Dashboard views
|
|
124
|
+
│ └── settings/ # User settings
|
|
125
|
+
├── components/
|
|
126
|
+
│ ├── ui/ # shadcn components
|
|
127
|
+
│ └── shared/ # Shared components
|
|
128
|
+
├── lib/ # Utilities
|
|
129
|
+
└── hooks/ # React hooks
|
|
130
|
+
```
|
|
131
|
+
```
|
|
132
|
+
</feature_based>
|
|
133
|
+
|
|
134
|
+
<monorepo>
|
|
135
|
+
```markdown
|
|
136
|
+
## Directory Structure
|
|
137
|
+
```
|
|
138
|
+
apps/
|
|
139
|
+
├── web/ # Next.js frontend
|
|
140
|
+
├── api/ # Node.js backend
|
|
141
|
+
└── admin/ # Admin dashboard
|
|
142
|
+
packages/
|
|
143
|
+
├── ui/ # Shared components
|
|
144
|
+
├── config/ # Shared config
|
|
145
|
+
└── types/ # Shared types
|
|
146
|
+
```
|
|
147
|
+
```
|
|
148
|
+
</monorepo>
|
|
149
|
+
</directory_structure_templates>
|
|
150
|
+
|
|
151
|
+
<conventions_templates>
|
|
152
|
+
<minimal>
|
|
153
|
+
```markdown
|
|
154
|
+
## Conventions
|
|
155
|
+
- TypeScript strict mode
|
|
156
|
+
- ESLint + Prettier configured
|
|
157
|
+
- Conventional commits
|
|
158
|
+
```
|
|
159
|
+
</minimal>
|
|
160
|
+
|
|
161
|
+
<detailed>
|
|
162
|
+
```markdown
|
|
163
|
+
## Code Conventions
|
|
164
|
+
|
|
165
|
+
### TypeScript
|
|
166
|
+
- Use `type` over `interface`
|
|
167
|
+
- No `any` types
|
|
168
|
+
- Strict mode enabled
|
|
169
|
+
|
|
170
|
+
### React
|
|
171
|
+
- Prefer Server Components
|
|
172
|
+
- Client components only for interactivity
|
|
173
|
+
- Components under 300 lines
|
|
174
|
+
|
|
175
|
+
### Naming
|
|
176
|
+
- camelCase for variables/functions
|
|
177
|
+
- PascalCase for components/types
|
|
178
|
+
- kebab-case for files
|
|
179
|
+
```
|
|
180
|
+
</detailed>
|
|
181
|
+
|
|
182
|
+
<with_critical_rules>
|
|
183
|
+
```markdown
|
|
184
|
+
## Code Conventions
|
|
185
|
+
|
|
186
|
+
### TypeScript
|
|
187
|
+
- Strict mode enabled
|
|
188
|
+
- No `any` types
|
|
189
|
+
|
|
190
|
+
### Forms
|
|
191
|
+
**CRITICAL**: Use TanStack Form for ALL forms
|
|
192
|
+
- Import from `@/features/form/tanstack-form`
|
|
193
|
+
- **NEVER** use React Hook Form directly
|
|
194
|
+
|
|
195
|
+
### Server Actions
|
|
196
|
+
- All actions use `safe-actions.ts`
|
|
197
|
+
- Suffix files with `.action.ts`
|
|
198
|
+
```
|
|
199
|
+
</with_critical_rules>
|
|
200
|
+
</conventions_templates>
|
|
201
|
+
|
|
202
|
+
<git_workflow_templates>
|
|
203
|
+
<simple>
|
|
204
|
+
```markdown
|
|
205
|
+
## Git Workflow
|
|
206
|
+
- Branch: `feature/name` or `fix/name`
|
|
207
|
+
- Conventional commits (feat:, fix:, refactor:)
|
|
208
|
+
- PRs required for all changes
|
|
209
|
+
```
|
|
210
|
+
</simple>
|
|
211
|
+
|
|
212
|
+
<detailed>
|
|
213
|
+
```markdown
|
|
214
|
+
## Git Workflow
|
|
215
|
+
|
|
216
|
+
### Branches
|
|
217
|
+
- `main` - Production
|
|
218
|
+
- `develop` - Integration
|
|
219
|
+
- `feature/*` - New features
|
|
220
|
+
- `fix/*` - Bug fixes
|
|
221
|
+
- `hotfix/*` - Production fixes
|
|
222
|
+
|
|
223
|
+
### Commits
|
|
224
|
+
Format: `type(scope): description`
|
|
225
|
+
- `feat`: New feature
|
|
226
|
+
- `fix`: Bug fix
|
|
227
|
+
- `refactor`: Code change
|
|
228
|
+
- `docs`: Documentation
|
|
229
|
+
- `test`: Tests
|
|
230
|
+
|
|
231
|
+
### Pull Requests
|
|
232
|
+
- Create from feature branch to develop
|
|
233
|
+
- Require 1 approval
|
|
234
|
+
- Must pass CI checks
|
|
235
|
+
- Squash merge preferred
|
|
236
|
+
```
|
|
237
|
+
</detailed>
|
|
238
|
+
</git_workflow_templates>
|
|
239
|
+
|
|
240
|
+
<important_files_templates>
|
|
241
|
+
<simple>
|
|
242
|
+
```markdown
|
|
243
|
+
## Key Files
|
|
244
|
+
- `src/lib/auth.ts` - Auth config
|
|
245
|
+
- `src/lib/db.ts` - Database client
|
|
246
|
+
- `prisma/schema.prisma` - DB schema
|
|
247
|
+
```
|
|
248
|
+
</simple>
|
|
249
|
+
|
|
250
|
+
<with_descriptions>
|
|
251
|
+
```markdown
|
|
252
|
+
## Important Files
|
|
253
|
+
|
|
254
|
+
### Configuration
|
|
255
|
+
- `src/lib/auth.ts` - Authentication setup
|
|
256
|
+
- `src/lib/db.ts` - Prisma client
|
|
257
|
+
- `src/site-config.ts` - Site metadata
|
|
258
|
+
|
|
259
|
+
### Patterns
|
|
260
|
+
- `src/features/form/tanstack-form.tsx` - Form utilities (**use for all forms**)
|
|
261
|
+
- `src/lib/actions/safe-actions.ts` - Server action wrapper
|
|
262
|
+
|
|
263
|
+
### Database
|
|
264
|
+
- `prisma/schema.prisma` - Main schema
|
|
265
|
+
- `prisma/seed.ts` - Seed data
|
|
266
|
+
```
|
|
267
|
+
</with_descriptions>
|
|
268
|
+
</important_files_templates>
|
|
269
|
+
|
|
270
|
+
<testing_templates>
|
|
271
|
+
<minimal>
|
|
272
|
+
```markdown
|
|
273
|
+
## Testing
|
|
274
|
+
- Run `pnpm test` before committing
|
|
275
|
+
- Write tests for new features
|
|
276
|
+
```
|
|
277
|
+
</minimal>
|
|
278
|
+
|
|
279
|
+
<detailed>
|
|
280
|
+
```markdown
|
|
281
|
+
## Testing
|
|
282
|
+
|
|
283
|
+
### Unit Tests
|
|
284
|
+
- Location: `__tests__/`
|
|
285
|
+
- Framework: Vitest + Testing Library
|
|
286
|
+
- Run: `pnpm test:ci`
|
|
287
|
+
|
|
288
|
+
### E2E Tests
|
|
289
|
+
- Location: `e2e/`
|
|
290
|
+
- Framework: Playwright
|
|
291
|
+
- Run: `pnpm test:e2e:ci`
|
|
292
|
+
|
|
293
|
+
### Requirements
|
|
294
|
+
- All new features require tests
|
|
295
|
+
- Target 80% coverage
|
|
296
|
+
- Run tests before pushing
|
|
297
|
+
```
|
|
298
|
+
</detailed>
|
|
299
|
+
</testing_templates>
|
|
300
|
+
|
|
301
|
+
<security_templates>
|
|
302
|
+
```markdown
|
|
303
|
+
## Security
|
|
304
|
+
|
|
305
|
+
**NEVER commit:**
|
|
306
|
+
- `.env` files
|
|
307
|
+
- API keys or secrets
|
|
308
|
+
- Database credentials
|
|
309
|
+
- Private tokens
|
|
310
|
+
|
|
311
|
+
**Always:**
|
|
312
|
+
- Use environment variables
|
|
313
|
+
- Store secrets in `.env.local`
|
|
314
|
+
- Check `.gitignore` before committing
|
|
315
|
+
```
|
|
316
|
+
</security_templates>
|
|
317
|
+
</section_templates>
|
|
318
|
+
|
|
319
|
+
<combination_tips>
|
|
320
|
+
<minimal_project>
|
|
321
|
+
For small projects, combine into fewer sections:
|
|
322
|
+
|
|
323
|
+
```markdown
|
|
324
|
+
# Project Name
|
|
325
|
+
|
|
326
|
+
## Stack & Commands
|
|
327
|
+
- Next.js + TypeScript
|
|
328
|
+
- `pnpm dev` / `pnpm test` / `pnpm build`
|
|
329
|
+
|
|
330
|
+
## Conventions
|
|
331
|
+
- ESLint/Prettier configured
|
|
332
|
+
- Run tests before pushing
|
|
333
|
+
- Never commit .env files
|
|
334
|
+
```
|
|
335
|
+
</minimal_project>
|
|
336
|
+
|
|
337
|
+
<large_project>
|
|
338
|
+
For large projects, use all relevant sections but keep each concise. Link to external docs for details:
|
|
339
|
+
|
|
340
|
+
```markdown
|
|
341
|
+
## Detailed Guides
|
|
342
|
+
- Architecture: See [docs/architecture.md](docs/architecture.md)
|
|
343
|
+
- API patterns: See [docs/api.md](docs/api.md)
|
|
344
|
+
- Testing: See [docs/testing.md](docs/testing.md)
|
|
345
|
+
```
|
|
346
|
+
</large_project>
|
|
347
|
+
</combination_tips>
|