@smicolon/ai-kit 0.3.2 → 0.4.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 (155) hide show
  1. package/README.md +73 -40
  2. package/dist/index.js +312 -127
  3. package/package.json +5 -5
  4. package/.claude-plugin/marketplace.json +0 -369
  5. package/packs/architect/CHANGELOG.md +0 -17
  6. package/packs/architect/README.md +0 -58
  7. package/packs/architect/agents/system-architect.md +0 -768
  8. package/packs/architect/commands/diagram-create.md +0 -300
  9. package/packs/better-auth/.mcp.json +0 -14
  10. package/packs/better-auth/CHANGELOG.md +0 -26
  11. package/packs/better-auth/README.md +0 -125
  12. package/packs/better-auth/agents/auth-architect.md +0 -278
  13. package/packs/better-auth/commands/auth-provider-add.md +0 -265
  14. package/packs/better-auth/commands/auth-setup.md +0 -298
  15. package/packs/better-auth/skills/auth-security/SKILL.md +0 -425
  16. package/packs/better-auth/skills/better-auth-patterns/SKILL.md +0 -455
  17. package/packs/dev-loop/CHANGELOG.md +0 -69
  18. package/packs/dev-loop/README.md +0 -155
  19. package/packs/dev-loop/commands/cancel-dev.md +0 -21
  20. package/packs/dev-loop/commands/dev-loop.md +0 -72
  21. package/packs/dev-loop/commands/dev-plan.md +0 -351
  22. package/packs/dev-loop/hooks/hooks.json +0 -15
  23. package/packs/dev-loop/hooks/stop-hook.sh +0 -178
  24. package/packs/dev-loop/scripts/setup-dev-loop.sh +0 -194
  25. package/packs/dev-loop/skills/tdd-planner/SKILL.md +0 -249
  26. package/packs/dev-loop/skills/tdd-planner/references/framework-patterns.md +0 -874
  27. package/packs/dev-loop/skills/tdd-planner/references/good-example.md +0 -260
  28. package/packs/dev-loop/skills/tdd-planner/references/plan-template.md +0 -275
  29. package/packs/django/CHANGELOG.md +0 -39
  30. package/packs/django/README.md +0 -92
  31. package/packs/django/agents/django-architect.md +0 -182
  32. package/packs/django/agents/django-builder.md +0 -250
  33. package/packs/django/agents/django-feature-based.md +0 -420
  34. package/packs/django/agents/django-reviewer.md +0 -253
  35. package/packs/django/agents/django-tester.md +0 -230
  36. package/packs/django/commands/api-endpoint.md +0 -285
  37. package/packs/django/commands/model-create.md +0 -178
  38. package/packs/django/commands/test-generate.md +0 -325
  39. package/packs/django/rules/migrations.md +0 -138
  40. package/packs/django/rules/models.md +0 -167
  41. package/packs/django/rules/serializers.md +0 -126
  42. package/packs/django/rules/services.md +0 -131
  43. package/packs/django/rules/tests.md +0 -140
  44. package/packs/django/rules/views.md +0 -102
  45. package/packs/django/skills/import-convention-enforcer/SKILL.md +0 -226
  46. package/packs/django/skills/import-convention-enforcer/patterns/django-imports.md +0 -343
  47. package/packs/django/skills/migration-safety-checker/SKILL.md +0 -375
  48. package/packs/django/skills/model-entity-validator/SKILL.md +0 -298
  49. package/packs/django/skills/performance-optimizer/SKILL.md +0 -447
  50. package/packs/django/skills/red-phase-verifier/SKILL.md +0 -180
  51. package/packs/django/skills/security-first-validator/SKILL.md +0 -435
  52. package/packs/django/skills/test-coverage-advisor/SKILL.md +0 -394
  53. package/packs/django/skills/test-validity-checker/SKILL.md +0 -194
  54. package/packs/failure-log/CHANGELOG.md +0 -20
  55. package/packs/failure-log/README.md +0 -168
  56. package/packs/failure-log/commands/failure-add.md +0 -106
  57. package/packs/failure-log/commands/failure-list.md +0 -89
  58. package/packs/failure-log/hooks/hooks.json +0 -16
  59. package/packs/failure-log/hooks/scripts/inject-failures.sh +0 -64
  60. package/packs/failure-log/skills/failure-log-manager/SKILL.md +0 -164
  61. package/packs/flutter/CHANGELOG.md +0 -19
  62. package/packs/flutter/README.md +0 -170
  63. package/packs/flutter/agents/flutter-architect.md +0 -166
  64. package/packs/flutter/agents/flutter-builder.md +0 -303
  65. package/packs/flutter/agents/release-manager.md +0 -355
  66. package/packs/flutter/commands/fastlane-setup.md +0 -188
  67. package/packs/flutter/commands/flutter-build.md +0 -90
  68. package/packs/flutter/commands/flutter-deploy.md +0 -133
  69. package/packs/flutter/commands/flutter-test.md +0 -117
  70. package/packs/flutter/commands/signing-setup.md +0 -209
  71. package/packs/flutter/hooks/hooks.json +0 -17
  72. package/packs/flutter/skills/fastlane-knowledge/SKILL.md +0 -193
  73. package/packs/flutter/skills/flutter-architecture/SKILL.md +0 -127
  74. package/packs/flutter/skills/store-publishing/SKILL.md +0 -163
  75. package/packs/hono/CHANGELOG.md +0 -19
  76. package/packs/hono/README.md +0 -143
  77. package/packs/hono/agents/hono-architect.md +0 -240
  78. package/packs/hono/agents/hono-builder.md +0 -285
  79. package/packs/hono/agents/hono-reviewer.md +0 -279
  80. package/packs/hono/agents/hono-tester.md +0 -346
  81. package/packs/hono/commands/middleware-create.md +0 -223
  82. package/packs/hono/commands/project-init.md +0 -306
  83. package/packs/hono/commands/route-create.md +0 -153
  84. package/packs/hono/commands/rpc-client.md +0 -263
  85. package/packs/hono/skills/cloudflare-bindings/SKILL.md +0 -408
  86. package/packs/hono/skills/hono-patterns/SKILL.md +0 -309
  87. package/packs/hono/skills/rpc-typesafe/SKILL.md +0 -388
  88. package/packs/hono/skills/zod-validation/SKILL.md +0 -332
  89. package/packs/nestjs/CHANGELOG.md +0 -29
  90. package/packs/nestjs/README.md +0 -75
  91. package/packs/nestjs/agents/nestjs-architect.md +0 -402
  92. package/packs/nestjs/agents/nestjs-builder.md +0 -301
  93. package/packs/nestjs/agents/nestjs-tester.md +0 -437
  94. package/packs/nestjs/commands/module-create.md +0 -369
  95. package/packs/nestjs/rules/controllers.md +0 -92
  96. package/packs/nestjs/rules/dto.md +0 -124
  97. package/packs/nestjs/rules/entities.md +0 -102
  98. package/packs/nestjs/rules/services.md +0 -106
  99. package/packs/nestjs/skills/barrel-export-manager/SKILL.md +0 -389
  100. package/packs/nestjs/skills/import-convention-enforcer/SKILL.md +0 -365
  101. package/packs/nextjs/CHANGELOG.md +0 -36
  102. package/packs/nextjs/README.md +0 -76
  103. package/packs/nextjs/agents/frontend-tester.md +0 -680
  104. package/packs/nextjs/agents/frontend-visual.md +0 -820
  105. package/packs/nextjs/agents/nextjs-architect.md +0 -331
  106. package/packs/nextjs/agents/nextjs-modular.md +0 -433
  107. package/packs/nextjs/commands/component-create.md +0 -398
  108. package/packs/nextjs/rules/api-routes.md +0 -129
  109. package/packs/nextjs/rules/components.md +0 -106
  110. package/packs/nextjs/rules/hooks.md +0 -132
  111. package/packs/nextjs/skills/accessibility-validator/SKILL.md +0 -445
  112. package/packs/nextjs/skills/import-convention-enforcer/SKILL.md +0 -399
  113. package/packs/nextjs/skills/react-form-validator/SKILL.md +0 -569
  114. package/packs/nuxtjs/CHANGELOG.md +0 -30
  115. package/packs/nuxtjs/README.md +0 -56
  116. package/packs/nuxtjs/agents/frontend-tester.md +0 -680
  117. package/packs/nuxtjs/agents/frontend-visual.md +0 -820
  118. package/packs/nuxtjs/agents/nuxtjs-architect.md +0 -537
  119. package/packs/nuxtjs/commands/component-create.md +0 -223
  120. package/packs/nuxtjs/rules/components.md +0 -101
  121. package/packs/nuxtjs/rules/composables.md +0 -118
  122. package/packs/nuxtjs/rules/server-routes.md +0 -127
  123. package/packs/nuxtjs/skills/accessibility-validator/SKILL.md +0 -183
  124. package/packs/nuxtjs/skills/import-convention-enforcer/SKILL.md +0 -196
  125. package/packs/nuxtjs/skills/veevalidate-form-validator/SKILL.md +0 -190
  126. package/packs/onboard/CHANGELOG.md +0 -22
  127. package/packs/onboard/README.md +0 -103
  128. package/packs/onboard/agents/onboard-guide.md +0 -118
  129. package/packs/onboard/commands/onboard.md +0 -313
  130. package/packs/onboard/skills/onboard-context-provider/SKILL.md +0 -98
  131. package/packs/tanstack-router/CHANGELOG.md +0 -30
  132. package/packs/tanstack-router/README.md +0 -113
  133. package/packs/tanstack-router/agents/tanstack-architect.md +0 -173
  134. package/packs/tanstack-router/agents/tanstack-builder.md +0 -360
  135. package/packs/tanstack-router/agents/tanstack-tester.md +0 -454
  136. package/packs/tanstack-router/commands/form-create.md +0 -313
  137. package/packs/tanstack-router/commands/query-create.md +0 -263
  138. package/packs/tanstack-router/commands/route-create.md +0 -190
  139. package/packs/tanstack-router/commands/table-create.md +0 -413
  140. package/packs/tanstack-router/skills/ai-patterns/SKILL.md +0 -370
  141. package/packs/tanstack-router/skills/db-patterns/SKILL.md +0 -346
  142. package/packs/tanstack-router/skills/devtools-patterns/SKILL.md +0 -415
  143. package/packs/tanstack-router/skills/form-patterns/SKILL.md +0 -425
  144. package/packs/tanstack-router/skills/pacer-patterns/SKILL.md +0 -341
  145. package/packs/tanstack-router/skills/query-patterns/SKILL.md +0 -359
  146. package/packs/tanstack-router/skills/router-patterns/SKILL.md +0 -285
  147. package/packs/tanstack-router/skills/store-patterns/SKILL.md +0 -351
  148. package/packs/tanstack-router/skills/table-patterns/SKILL.md +0 -531
  149. package/packs/tanstack-router/skills/tanstack-conventions/SKILL.md +0 -428
  150. package/packs/tanstack-router/skills/virtual-patterns/SKILL.md +0 -490
  151. package/packs/worktree/CHANGELOG.md +0 -45
  152. package/packs/worktree/README.md +0 -219
  153. package/packs/worktree/commands/wt.md +0 -93
  154. package/packs/worktree/scripts/wt.sh +0 -957
  155. package/packs/worktree/skills/worktree-manager/SKILL.md +0 -113
@@ -1,301 +0,0 @@
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.