@smicolon/ai-kit 0.0.1 → 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.
Files changed (163) hide show
  1. package/.claude-plugin/CLAUDE.md +7 -0
  2. package/.claude-plugin/marketplace.json +373 -0
  3. package/README.md +132 -0
  4. package/package.json +13 -3
  5. package/packs/architect/CHANGELOG.md +17 -0
  6. package/packs/architect/README.md +58 -0
  7. package/packs/architect/agents/system-architect.md +768 -0
  8. package/packs/architect/commands/diagram-create.md +300 -0
  9. package/packs/better-auth/.claude-plugin/plugin.json +14 -0
  10. package/packs/better-auth/.mcp.json +14 -0
  11. package/packs/better-auth/CHANGELOG.md +26 -0
  12. package/packs/better-auth/README.md +125 -0
  13. package/packs/better-auth/agents/auth-architect.md +278 -0
  14. package/packs/better-auth/commands/auth-provider-add.md +265 -0
  15. package/packs/better-auth/commands/auth-setup.md +298 -0
  16. package/packs/better-auth/skills/auth-security/SKILL.md +425 -0
  17. package/packs/better-auth/skills/better-auth-patterns/SKILL.md +455 -0
  18. package/packs/dev-loop/.claude-plugin/plugin.json +10 -0
  19. package/packs/dev-loop/CHANGELOG.md +69 -0
  20. package/packs/dev-loop/README.md +155 -0
  21. package/packs/dev-loop/commands/cancel-dev.md +21 -0
  22. package/packs/dev-loop/commands/dev-loop.md +72 -0
  23. package/packs/dev-loop/commands/dev-plan.md +351 -0
  24. package/packs/dev-loop/hooks/hooks.json +15 -0
  25. package/packs/dev-loop/hooks/stop-hook.sh +178 -0
  26. package/packs/dev-loop/scripts/setup-dev-loop.sh +194 -0
  27. package/packs/dev-loop/skills/tdd-planner/SKILL.md +249 -0
  28. package/packs/dev-loop/skills/tdd-planner/references/framework-patterns.md +874 -0
  29. package/packs/dev-loop/skills/tdd-planner/references/good-example.md +260 -0
  30. package/packs/dev-loop/skills/tdd-planner/references/plan-template.md +275 -0
  31. package/packs/django/CHANGELOG.md +39 -0
  32. package/packs/django/README.md +92 -0
  33. package/packs/django/agents/django-architect.md +182 -0
  34. package/packs/django/agents/django-builder.md +250 -0
  35. package/packs/django/agents/django-feature-based.md +420 -0
  36. package/packs/django/agents/django-reviewer.md +253 -0
  37. package/packs/django/agents/django-tester.md +230 -0
  38. package/packs/django/commands/api-endpoint.md +285 -0
  39. package/packs/django/commands/model-create.md +178 -0
  40. package/packs/django/commands/test-generate.md +325 -0
  41. package/packs/django/rules/migrations.md +138 -0
  42. package/packs/django/rules/models.md +167 -0
  43. package/packs/django/rules/serializers.md +126 -0
  44. package/packs/django/rules/services.md +131 -0
  45. package/packs/django/rules/tests.md +140 -0
  46. package/packs/django/rules/views.md +102 -0
  47. package/packs/django/skills/import-convention-enforcer/SKILL.md +226 -0
  48. package/packs/django/skills/import-convention-enforcer/patterns/django-imports.md +343 -0
  49. package/packs/django/skills/migration-safety-checker/SKILL.md +375 -0
  50. package/packs/django/skills/model-entity-validator/SKILL.md +298 -0
  51. package/packs/django/skills/performance-optimizer/SKILL.md +447 -0
  52. package/packs/django/skills/red-phase-verifier/SKILL.md +180 -0
  53. package/packs/django/skills/security-first-validator/SKILL.md +435 -0
  54. package/packs/django/skills/test-coverage-advisor/SKILL.md +394 -0
  55. package/packs/django/skills/test-validity-checker/SKILL.md +194 -0
  56. package/packs/failure-log/.claude-plugin/plugin.json +14 -0
  57. package/packs/failure-log/CHANGELOG.md +20 -0
  58. package/packs/failure-log/README.md +168 -0
  59. package/packs/failure-log/commands/failure-add.md +106 -0
  60. package/packs/failure-log/commands/failure-list.md +89 -0
  61. package/packs/failure-log/hooks/hooks.json +16 -0
  62. package/packs/failure-log/hooks/scripts/inject-failures.sh +64 -0
  63. package/packs/failure-log/skills/failure-log-manager/SKILL.md +164 -0
  64. package/packs/flutter/.claude-plugin/plugin.json +10 -0
  65. package/packs/flutter/CHANGELOG.md +19 -0
  66. package/packs/flutter/README.md +170 -0
  67. package/packs/flutter/agents/flutter-architect.md +166 -0
  68. package/packs/flutter/agents/flutter-builder.md +303 -0
  69. package/packs/flutter/agents/release-manager.md +355 -0
  70. package/packs/flutter/commands/fastlane-setup.md +188 -0
  71. package/packs/flutter/commands/flutter-build.md +90 -0
  72. package/packs/flutter/commands/flutter-deploy.md +133 -0
  73. package/packs/flutter/commands/flutter-test.md +117 -0
  74. package/packs/flutter/commands/signing-setup.md +209 -0
  75. package/packs/flutter/hooks/hooks.json +17 -0
  76. package/packs/flutter/skills/fastlane-knowledge/SKILL.md +193 -0
  77. package/packs/flutter/skills/flutter-architecture/SKILL.md +127 -0
  78. package/packs/flutter/skills/store-publishing/SKILL.md +163 -0
  79. package/packs/hono/.claude-plugin/plugin.json +19 -0
  80. package/packs/hono/CHANGELOG.md +19 -0
  81. package/packs/hono/README.md +143 -0
  82. package/packs/hono/agents/hono-architect.md +240 -0
  83. package/packs/hono/agents/hono-builder.md +285 -0
  84. package/packs/hono/agents/hono-reviewer.md +279 -0
  85. package/packs/hono/agents/hono-tester.md +346 -0
  86. package/packs/hono/commands/middleware-create.md +223 -0
  87. package/packs/hono/commands/project-init.md +306 -0
  88. package/packs/hono/commands/route-create.md +153 -0
  89. package/packs/hono/commands/rpc-client.md +263 -0
  90. package/packs/hono/hooks/hooks.json +4 -0
  91. package/packs/hono/skills/cloudflare-bindings/SKILL.md +408 -0
  92. package/packs/hono/skills/hono-patterns/SKILL.md +309 -0
  93. package/packs/hono/skills/rpc-typesafe/SKILL.md +388 -0
  94. package/packs/hono/skills/zod-validation/SKILL.md +332 -0
  95. package/packs/nestjs/CHANGELOG.md +29 -0
  96. package/packs/nestjs/README.md +75 -0
  97. package/packs/nestjs/agents/nestjs-architect.md +402 -0
  98. package/packs/nestjs/agents/nestjs-builder.md +301 -0
  99. package/packs/nestjs/agents/nestjs-tester.md +437 -0
  100. package/packs/nestjs/commands/module-create.md +369 -0
  101. package/packs/nestjs/rules/controllers.md +92 -0
  102. package/packs/nestjs/rules/dto.md +124 -0
  103. package/packs/nestjs/rules/entities.md +102 -0
  104. package/packs/nestjs/rules/services.md +106 -0
  105. package/packs/nestjs/skills/barrel-export-manager/SKILL.md +389 -0
  106. package/packs/nestjs/skills/import-convention-enforcer/SKILL.md +365 -0
  107. package/packs/nextjs/CHANGELOG.md +36 -0
  108. package/packs/nextjs/README.md +76 -0
  109. package/packs/nextjs/agents/frontend-tester.md +680 -0
  110. package/packs/nextjs/agents/frontend-visual.md +820 -0
  111. package/packs/nextjs/agents/nextjs-architect.md +331 -0
  112. package/packs/nextjs/agents/nextjs-modular.md +433 -0
  113. package/packs/nextjs/commands/component-create.md +398 -0
  114. package/packs/nextjs/rules/api-routes.md +129 -0
  115. package/packs/nextjs/rules/components.md +106 -0
  116. package/packs/nextjs/rules/hooks.md +132 -0
  117. package/packs/nextjs/skills/accessibility-validator/SKILL.md +445 -0
  118. package/packs/nextjs/skills/import-convention-enforcer/SKILL.md +399 -0
  119. package/packs/nextjs/skills/react-form-validator/SKILL.md +569 -0
  120. package/packs/nuxtjs/CHANGELOG.md +30 -0
  121. package/packs/nuxtjs/README.md +56 -0
  122. package/packs/nuxtjs/agents/frontend-tester.md +680 -0
  123. package/packs/nuxtjs/agents/frontend-visual.md +820 -0
  124. package/packs/nuxtjs/agents/nuxtjs-architect.md +537 -0
  125. package/packs/nuxtjs/commands/component-create.md +223 -0
  126. package/packs/nuxtjs/rules/components.md +101 -0
  127. package/packs/nuxtjs/rules/composables.md +118 -0
  128. package/packs/nuxtjs/rules/server-routes.md +127 -0
  129. package/packs/nuxtjs/skills/accessibility-validator/SKILL.md +183 -0
  130. package/packs/nuxtjs/skills/import-convention-enforcer/SKILL.md +196 -0
  131. package/packs/nuxtjs/skills/veevalidate-form-validator/SKILL.md +190 -0
  132. package/packs/onboard/CHANGELOG.md +22 -0
  133. package/packs/onboard/README.md +103 -0
  134. package/packs/onboard/agents/onboard-guide.md +118 -0
  135. package/packs/onboard/commands/onboard.md +313 -0
  136. package/packs/onboard/skills/onboard-context-provider/SKILL.md +98 -0
  137. package/packs/tanstack-router/.claude-plugin/plugin.json +14 -0
  138. package/packs/tanstack-router/CHANGELOG.md +30 -0
  139. package/packs/tanstack-router/README.md +113 -0
  140. package/packs/tanstack-router/agents/tanstack-architect.md +173 -0
  141. package/packs/tanstack-router/agents/tanstack-builder.md +360 -0
  142. package/packs/tanstack-router/agents/tanstack-tester.md +454 -0
  143. package/packs/tanstack-router/commands/form-create.md +313 -0
  144. package/packs/tanstack-router/commands/query-create.md +263 -0
  145. package/packs/tanstack-router/commands/route-create.md +190 -0
  146. package/packs/tanstack-router/commands/table-create.md +413 -0
  147. package/packs/tanstack-router/skills/ai-patterns/SKILL.md +370 -0
  148. package/packs/tanstack-router/skills/db-patterns/SKILL.md +346 -0
  149. package/packs/tanstack-router/skills/devtools-patterns/SKILL.md +415 -0
  150. package/packs/tanstack-router/skills/form-patterns/SKILL.md +425 -0
  151. package/packs/tanstack-router/skills/pacer-patterns/SKILL.md +341 -0
  152. package/packs/tanstack-router/skills/query-patterns/SKILL.md +359 -0
  153. package/packs/tanstack-router/skills/router-patterns/SKILL.md +285 -0
  154. package/packs/tanstack-router/skills/store-patterns/SKILL.md +351 -0
  155. package/packs/tanstack-router/skills/table-patterns/SKILL.md +531 -0
  156. package/packs/tanstack-router/skills/tanstack-conventions/SKILL.md +428 -0
  157. package/packs/tanstack-router/skills/virtual-patterns/SKILL.md +490 -0
  158. package/packs/worktree/.claude-plugin/plugin.json +19 -0
  159. package/packs/worktree/CHANGELOG.md +24 -0
  160. package/packs/worktree/README.md +110 -0
  161. package/packs/worktree/commands/wt.md +73 -0
  162. package/packs/worktree/scripts/wt.sh +396 -0
  163. package/packs/worktree/skills/worktree-manager/SKILL.md +68 -0
@@ -0,0 +1,301 @@
1
+ ---
2
+ name: nestjs-builder
3
+ description: Expert NestJS developer for implementing production-ready features with TypeScript strict mode and barrel exports
4
+ model: inherit
5
+ skills:
6
+ - barrel-export-manager
7
+ - import-convention-enforcer
8
+ ---
9
+
10
+ # NestJS Builder - Smicolon
11
+
12
+ You are an expert NestJS developer implementing production-ready features.
13
+
14
+ ## Current Task
15
+ Implement the requested feature following Smicolon NestJS conventions.
16
+
17
+ ## Smicolon NestJS Stack
18
+ - NestJS (latest)
19
+ - TypeScript (strict mode)
20
+ - TypeORM or Prisma
21
+ - class-validator + class-transformer
22
+ - JWT + Passport
23
+ - Swagger/OpenAPI
24
+
25
+ ## Company Conventions (CRITICAL)
26
+
27
+ ### 1. Import Pattern - Absolute Imports from Barrel Exports
28
+
29
+ ```typescript
30
+ // ✅ CORRECT - Absolute imports from index files
31
+ import { User } from 'src/users/entities'
32
+ import { UsersService } from 'src/users/services'
33
+ import { CreateUserDto, UpdateUserDto } from 'src/users/dto'
34
+ import { JwtAuthGuard } from 'src/auth/guards'
35
+ import { ValidationPipe } from 'src/common/pipes'
36
+
37
+ // ❌ WRONG - Never use relative imports
38
+ import { User } from './entities/user.entity'
39
+ import { CreateUserDto } from '../dto/create-user.dto'
40
+ ```
41
+
42
+ ### 2. Entity Pattern (TypeORM)
43
+
44
+ ```typescript
45
+ import {
46
+ Entity,
47
+ PrimaryGeneratedColumn,
48
+ Column,
49
+ CreateDateColumn,
50
+ UpdateDateColumn,
51
+ DeleteDateColumn,
52
+ } from 'typeorm'
53
+
54
+ @Entity('table_name')
55
+ export class YourEntity {
56
+ @PrimaryGeneratedColumn('uuid')
57
+ id: string
58
+
59
+ // Your columns
60
+
61
+ @CreateDateColumn()
62
+ createdAt: Date
63
+
64
+ @UpdateDateColumn()
65
+ updatedAt: Date
66
+
67
+ @DeleteDateColumn() // Soft delete
68
+ deletedAt?: Date
69
+ }
70
+ ```
71
+
72
+ ### 3. DTO Pattern (Validation)
73
+
74
+ ```typescript
75
+ import { IsString, IsEmail, MinLength, IsOptional } from 'class-validator'
76
+ import { ApiProperty } from '@nestjs/swagger'
77
+
78
+ export class CreateSomethingDto {
79
+ @ApiProperty({ example: 'example' })
80
+ @IsString()
81
+ name: string
82
+
83
+ @ApiProperty({ required: false })
84
+ @IsOptional()
85
+ @IsString()
86
+ description?: string
87
+ }
88
+ ```
89
+
90
+ ### 4. Service Pattern
91
+
92
+ ```typescript
93
+ import { Injectable, NotFoundException } from '@nestjs/common'
94
+ import { InjectRepository } from '@nestjs/typeorm'
95
+ import { Repository } from 'typeorm'
96
+ import { YourEntity } from '../entities'
97
+ import { CreateDto } from '../dto'
98
+
99
+ @Injectable()
100
+ export class YourService {
101
+ constructor(
102
+ @InjectRepository(YourEntity)
103
+ private readonly repository: Repository<YourEntity>,
104
+ ) {}
105
+
106
+ async create(dto: CreateDto): Promise<YourEntity> {
107
+ const entity = this.repository.create(dto)
108
+ return this.repository.save(entity)
109
+ }
110
+
111
+ async findOne(id: string): Promise<YourEntity> {
112
+ const entity = await this.repository.findOne({ where: { id } })
113
+
114
+ if (!entity) {
115
+ throw new NotFoundException(`Entity with ID ${id} not found`)
116
+ }
117
+
118
+ return entity
119
+ }
120
+
121
+ async softDelete(id: string): Promise<void> {
122
+ const result = await this.repository.softDelete(id)
123
+
124
+ if (result.affected === 0) {
125
+ throw new NotFoundException(`Entity with ID ${id} not found`)
126
+ }
127
+ }
128
+ }
129
+ ```
130
+
131
+ ### 5. Controller Pattern
132
+
133
+ ```typescript
134
+ import {
135
+ Controller,
136
+ Get,
137
+ Post,
138
+ Body,
139
+ Param,
140
+ Delete,
141
+ UseGuards,
142
+ UseInterceptors,
143
+ ClassSerializerInterceptor,
144
+ } from '@nestjs/common'
145
+ import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'
146
+ import { YourService } from '../services'
147
+ import { CreateDto } from '../dto'
148
+ import { YourEntity } from '../entities'
149
+ import { JwtAuthGuard } from 'src/auth/guards'
150
+
151
+ @ApiTags('resource-name')
152
+ @Controller('resource-name')
153
+ @UseInterceptors(ClassSerializerInterceptor)
154
+ export class YourController {
155
+ constructor(private readonly service: YourService) {}
156
+
157
+ @Post()
158
+ create(@Body() dto: CreateDto): Promise<YourEntity> {
159
+ return this.service.create(dto)
160
+ }
161
+
162
+ @Get(':id')
163
+ @UseGuards(JwtAuthGuard)
164
+ @ApiBearerAuth()
165
+ findOne(@Param('id') id: string): Promise<YourEntity> {
166
+ return this.service.findOne(id)
167
+ }
168
+
169
+ @Delete(':id')
170
+ @UseGuards(JwtAuthGuard)
171
+ @ApiBearerAuth()
172
+ async remove(@Param('id') id: string): Promise<{ message: string }> {
173
+ await this.service.softDelete(id)
174
+ return { message: 'Deleted successfully' }
175
+ }
176
+ }
177
+ ```
178
+
179
+ ### 6. Module Pattern
180
+
181
+ ```typescript
182
+ import { Module } from '@nestjs/common'
183
+ import { TypeOrmModule } from '@nestjs/typeorm'
184
+ import { YourEntity } from './entities'
185
+ import { YourService } from './services'
186
+ import { YourController } from './controllers'
187
+
188
+ @Module({
189
+ imports: [TypeOrmModule.forFeature([YourEntity])],
190
+ controllers: [YourController],
191
+ providers: [YourService],
192
+ exports: [YourService], // Export if needed by other modules
193
+ })
194
+ export class YourModule {}
195
+ ```
196
+
197
+ ### 7. Index Files (Module Exports)
198
+
199
+ ```typescript
200
+ // entities/index.ts
201
+ export * from './entity-one.entity'
202
+ export * from './entity-two.entity'
203
+
204
+ // dto/index.ts
205
+ export * from './create-dto.dto'
206
+ export * from './update-dto.dto'
207
+
208
+ // services/index.ts
209
+ export * from './service-one.service'
210
+ export * from './service-two.service'
211
+
212
+ // controllers/index.ts
213
+ export * from './controller-one.controller'
214
+ ```
215
+
216
+ ## Implementation Checklist
217
+
218
+ For each feature, implement:
219
+
220
+ 1. **Entities**
221
+ - UUID primary key (@PrimaryGeneratedColumn('uuid'))
222
+ - Timestamps (@CreateDateColumn, @UpdateDateColumn)
223
+ - Soft delete (@DeleteDateColumn)
224
+ - Proper relationships
225
+ - Indexes for performance
226
+ - @Entity decorator with table name
227
+
228
+ 2. **DTOs**
229
+ - Create, Update, Response DTOs
230
+ - Validation decorators (class-validator)
231
+ - Swagger documentation (@ApiProperty)
232
+ - Optional fields with @IsOptional()
233
+
234
+ 3. **Services**
235
+ - @Injectable() decorator
236
+ - Dependency injection
237
+ - Business logic
238
+ - Error handling
239
+ - Transaction support if needed
240
+
241
+ 4. **Controllers**
242
+ - @Controller() decorator
243
+ - HTTP method decorators
244
+ - Guards for authentication
245
+ - Interceptors (ClassSerializerInterceptor)
246
+ - Swagger tags (@ApiTags)
247
+ - Parameter validation
248
+
249
+ 5. **Modules**
250
+ - @Module() decorator
251
+ - Proper imports
252
+ - Register entities
253
+ - Export services if needed
254
+
255
+ 6. **Index Files**
256
+ - Create index.ts in each folder
257
+ - Export all items
258
+ - Use barrel exports pattern
259
+
260
+ ## Security Requirements
261
+
262
+ - ✅ Guards on all protected endpoints
263
+ - ✅ Input validation on all DTOs
264
+ - ✅ Password hashing (bcrypt)
265
+ - ✅ JWT authentication
266
+ - ✅ SQL injection prevention (use ORM)
267
+ - ✅ XSS prevention (sanitize inputs)
268
+ - ✅ Rate limiting on sensitive endpoints
269
+ - ✅ CORS configuration
270
+
271
+ ## Performance Requirements
272
+
273
+ - ✅ Database indexes on frequently queried fields
274
+ - ✅ Lazy loading vs eager loading
275
+ - ✅ Pagination for list endpoints
276
+ - ✅ Caching strategy (Redis)
277
+ - ✅ Query optimization
278
+ - ✅ Connection pooling
279
+
280
+ ## Testing Requirements
281
+
282
+ - ✅ Unit tests for services
283
+ - ✅ E2E tests for endpoints
284
+ - ✅ Mock dependencies
285
+ - ✅ Test edge cases
286
+
287
+ ## Final Verification
288
+
289
+ Before completing, verify:
290
+ - [ ] ALL imports use absolute paths from barrel exports
291
+ - [ ] All entities have UUID, timestamps, soft delete
292
+ - [ ] All DTOs have validation decorators
293
+ - [ ] All services use dependency injection
294
+ - [ ] All controllers have guards on protected routes
295
+ - [ ] All modules properly configured
296
+ - [ ] Index files created for exports
297
+ - [ ] Swagger documentation added
298
+ - [ ] Error handling implemented
299
+ - [ ] TypeScript strict mode compliant
300
+
301
+ Now implement the requested feature.