@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,365 @@
1
+ ---
2
+ name: nestjs-import-enforcer
3
+ description: Automatically enforce absolute imports from barrel exports in NestJS. Use when writing imports, creating TypeScript files, or organizing NestJS module structure.
4
+ ---
5
+
6
+ # Import Convention Enforcer (NestJS)
7
+
8
+ Auto-enforces absolute imports from barrel exports for clean, maintainable NestJS code.
9
+
10
+ ## When This Skill Activates
11
+
12
+ I automatically run when:
13
+ - User writes or modifies TypeScript files
14
+ - User creates entities, DTOs, services, controllers
15
+ - User imports from other modules
16
+ - User mentions "import", "NestJS", "module"
17
+ - User organizes project structure
18
+
19
+ ## Required Import Pattern (MANDATORY)
20
+
21
+ **✅ CORRECT - Absolute imports from barrel exports:**
22
+ ```typescript
23
+ // Absolute path from src/
24
+ import { User, Profile } from 'src/users/entities'
25
+ import { UsersService } from 'src/users/services'
26
+ import { CreateUserDto, UpdateUserDto } from 'src/users/dto'
27
+ import { JwtAuthGuard } from 'src/auth/guards'
28
+
29
+ // NestJS/Third-party - standard imports
30
+ import { Injectable, NotFoundException } from '@nestjs/common'
31
+ import { InjectRepository } from '@nestjs/typeorm'
32
+ ```
33
+
34
+ **❌ WRONG - Relative imports:**
35
+ ```typescript
36
+ import { User } from './entities/user.entity'
37
+ import { UsersService } from '../services/users.service'
38
+ import { JwtAuthGuard } from '../../auth/guards/jwt-auth.guard'
39
+ ```
40
+
41
+ **❌ WRONG - Import from specific files (not barrel):**
42
+ ```typescript
43
+ import { User } from 'src/users/entities/user.entity'
44
+ ```
45
+
46
+ ## Auto-Fix Process
47
+
48
+ ### Step 1: Detect Violations
49
+
50
+ ```typescript
51
+ // ❌ User writes
52
+ import { User } from './entities/user.entity'
53
+ import { CreateUserDto } from '../dto/create-user.dto'
54
+ import { AuthService } from '../../auth/services/auth.service'
55
+ ```
56
+
57
+ ### Step 2: Convert to Absolute Barrel Imports
58
+
59
+ ```typescript
60
+ // ✅ Auto-fixed to
61
+ import { User } from 'src/users/entities'
62
+ import { CreateUserDto } from 'src/users/dto'
63
+ import { AuthService } from 'src/auth/services'
64
+ ```
65
+
66
+ ### Step 3: Organize Import Order
67
+
68
+ ```typescript
69
+ // ✅ Final organized imports
70
+ // 1. NestJS core
71
+ import { Injectable, NotFoundException } from '@nestjs/common'
72
+ import { InjectRepository } from '@nestjs/typeorm'
73
+
74
+ // 2. Third-party
75
+ import { Repository } from 'typeorm'
76
+
77
+ // 3. Project modules (absolute from src/)
78
+ import { User, Profile } from 'src/users/entities'
79
+ import { CreateUserDto, UpdateUserDto } from 'src/users/dto'
80
+ import { AuthService } from 'src/auth/services'
81
+ ```
82
+
83
+ ## Import Organization Rules
84
+
85
+ ### 1. Import Categories (Top to Bottom)
86
+
87
+ ```typescript
88
+ // 1. NestJS core
89
+ import { Module, Injectable, Controller } from '@nestjs/common'
90
+ import { TypeOrmModule } from '@nestjs/typeorm'
91
+
92
+ // 2. Third-party libraries
93
+ import { Repository } from 'typeorm'
94
+ import { ApiTags, ApiOperation } from '@nestjs/swagger'
95
+
96
+ // 3. Project modules (src/ absolute imports)
97
+ import { User } from 'src/users/entities'
98
+ import { UsersService } from 'src/users/services'
99
+ import { JwtAuthGuard } from 'src/auth/guards'
100
+
101
+ // 4. Local module imports (from barrel)
102
+ import { CreateUserDto } from './dto'
103
+ import { UserResponseDto } from './dto'
104
+ ```
105
+
106
+ ### 2. Named Imports (Alphabetical)
107
+
108
+ ```typescript
109
+ // ✅ CORRECT
110
+ import { Injectable, Logger, NotFoundException } from '@nestjs/common'
111
+
112
+ // ❌ WRONG
113
+ import { NotFoundException, Injectable, Logger } from '@nestjs/common'
114
+ ```
115
+
116
+ ## Module Structure with Barrel Exports
117
+
118
+ ```
119
+ users/
120
+ ├── users.module.ts
121
+ ├── entities/
122
+ │ ├── user.entity.ts
123
+ │ └── index.ts # export * from './user.entity'
124
+ ├── dto/
125
+ │ ├── create-user.dto.ts
126
+ │ └── index.ts # export * from './create-user.dto'
127
+ ├── services/
128
+ │ ├── users.service.ts
129
+ │ └── index.ts # export * from './users.service'
130
+ └── controllers/
131
+ ├── users.controller.ts
132
+ └── index.ts # export * from './users.controller'
133
+ ```
134
+
135
+ ## Complete Service Example
136
+
137
+ ```typescript
138
+ // users/services/users.service.ts
139
+ import { Injectable, NotFoundException } from '@nestjs/common'
140
+ import { InjectRepository } from '@nestjs/typeorm'
141
+ import { Repository } from 'typeorm'
142
+
143
+ // ✅ Absolute imports from barrels
144
+ import { User } from 'src/users/entities'
145
+ import { CreateUserDto, UpdateUserDto } from 'src/users/dto'
146
+ import { AuthService } from 'src/auth/services'
147
+
148
+ @Injectable()
149
+ export class UsersService {
150
+ constructor(
151
+ @InjectRepository(User)
152
+ private readonly userRepository: Repository<User>,
153
+ private readonly authService: AuthService,
154
+ ) {}
155
+
156
+ async create(dto: CreateUserDto): Promise<User> {
157
+ const user = this.userRepository.create(dto)
158
+ return this.userRepository.save(user)
159
+ }
160
+
161
+ async findOne(id: string): Promise<User> {
162
+ const user = await this.userRepository.findOne({ where: { id } })
163
+
164
+ if (!user) {
165
+ throw new NotFoundException(`User with ID ${id} not found`)
166
+ }
167
+
168
+ return user
169
+ }
170
+ }
171
+ ```
172
+
173
+ ## Complete Controller Example
174
+
175
+ ```typescript
176
+ // users/controllers/users.controller.ts
177
+ import {
178
+ Controller,
179
+ Get,
180
+ Post,
181
+ Body,
182
+ Param,
183
+ UseGuards,
184
+ } from '@nestjs/common'
185
+ import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger'
186
+
187
+ // ✅ Absolute imports from barrels
188
+ import { UsersService } from 'src/users/services'
189
+ import { CreateUserDto, UpdateUserDto, UserResponseDto } from 'src/users/dto'
190
+ import { JwtAuthGuard } from 'src/auth/guards'
191
+ import { CurrentUser } from 'src/common/decorators'
192
+ import { User } from 'src/users/entities'
193
+
194
+ @ApiTags('users')
195
+ @Controller('users')
196
+ @UseGuards(JwtAuthGuard)
197
+ export class UsersController {
198
+ constructor(private readonly usersService: UsersService) {}
199
+
200
+ @Post()
201
+ @ApiOperation({ summary: 'Create new user' })
202
+ async create(@Body() dto: CreateUserDto): Promise<UserResponseDto> {
203
+ return this.usersService.create(dto)
204
+ }
205
+
206
+ @Get(':id')
207
+ @ApiBearerAuth()
208
+ @ApiOperation({ summary: 'Get user by ID' })
209
+ async findOne(@Param('id') id: string): Promise<UserResponseDto> {
210
+ return this.usersService.findOne(id)
211
+ }
212
+ }
213
+ ```
214
+
215
+ ## Cross-Module Imports
216
+
217
+ ```typescript
218
+ // orders/services/orders.service.ts
219
+ import { Injectable } from '@nestjs/common'
220
+
221
+ // ✅ Import from other modules using absolute paths
222
+ import { User } from 'src/users/entities'
223
+ import { UsersService } from 'src/users/services'
224
+ import { Product } from 'src/products/entities'
225
+ import { ProductsService } from 'src/products/services'
226
+
227
+ @Injectable()
228
+ export class OrdersService {
229
+ constructor(
230
+ private readonly usersService: UsersService,
231
+ private readonly productsService: ProductsService,
232
+ ) {}
233
+
234
+ async createOrder(userId: string, productId: string) {
235
+ const user = await this.usersService.findOne(userId)
236
+ const product = await this.productsService.findOne(productId)
237
+ // Create order...
238
+ }
239
+ }
240
+ ```
241
+
242
+ ## Local Module Imports
243
+
244
+ Within the same module, you can use local barrel imports:
245
+
246
+ ```typescript
247
+ // users/services/users.service.ts
248
+ import { Injectable } from '@nestjs/common'
249
+
250
+ // ✅ Local barrel import (shorter)
251
+ import { User } from '../entities'
252
+ import { CreateUserDto } from '../dto'
253
+
254
+ // ✅ Also acceptable (explicit)
255
+ import { User } from 'src/users/entities'
256
+ import { CreateUserDto } from 'src/users/dto'
257
+ ```
258
+
259
+ ## TypeScript Configuration
260
+
261
+ Ensure `tsconfig.json` supports absolute imports:
262
+
263
+ ```json
264
+ {
265
+ "compilerOptions": {
266
+ "baseUrl": "./",
267
+ "paths": {
268
+ "src/*": ["src/*"]
269
+ }
270
+ }
271
+ }
272
+ ```
273
+
274
+ ## Common Violations
275
+
276
+ ### Violation 1: Relative Imports
277
+
278
+ ```typescript
279
+ // ❌ WRONG
280
+ import { User } from './entities/user.entity'
281
+ import { UsersService } from '../services/users.service'
282
+
283
+ // ✅ CORRECT
284
+ import { User } from 'src/users/entities'
285
+ import { UsersService } from 'src/users/services'
286
+ ```
287
+
288
+ ### Violation 2: Importing from Specific Files
289
+
290
+ ```typescript
291
+ // ❌ WRONG - Skip barrel
292
+ import { User } from 'src/users/entities/user.entity'
293
+
294
+ // ✅ CORRECT - Use barrel
295
+ import { User } from 'src/users/entities'
296
+ ```
297
+
298
+ ### Violation 3: Inconsistent Paths
299
+
300
+ ```typescript
301
+ // ❌ WRONG - Mixing styles
302
+ import { User } from 'src/users/entities'
303
+ import { CreateUserDto } from './dto/create-user.dto'
304
+
305
+ // ✅ CORRECT - Consistent
306
+ import { User } from 'src/users/entities'
307
+ import { CreateUserDto } from 'src/users/dto'
308
+ ```
309
+
310
+ ## Module Pattern Best Practices
311
+
312
+ ```typescript
313
+ // users/users.module.ts
314
+ import { Module } from '@nestjs/common'
315
+ import { TypeOrmModule } from '@nestjs/typeorm'
316
+
317
+ // ✅ Clean local imports from barrels
318
+ import { User, Profile } from './entities'
319
+ import { UsersService } from './services'
320
+ import { UsersController } from './controllers'
321
+
322
+ // ✅ Cross-module imports absolute
323
+ import { AuthModule } from 'src/auth/auth.module'
324
+
325
+ @Module({
326
+ imports: [
327
+ TypeOrmModule.forFeature([User, Profile]),
328
+ AuthModule,
329
+ ],
330
+ controllers: [UsersController],
331
+ providers: [UsersService],
332
+ exports: [UsersService],
333
+ })
334
+ export class UsersModule {}
335
+ ```
336
+
337
+ ## Success Criteria
338
+
339
+ ✅ ALL imports use absolute paths from `src/`
340
+ ✅ ALL imports use barrel exports
341
+ ✅ NO relative imports
342
+ ✅ Imports organized by category
343
+ ✅ Consistent import style across project
344
+
345
+ ## Skill Behavior
346
+
347
+ **I am PROACTIVE:**
348
+ - I detect relative imports AUTOMATICALLY
349
+ - I convert to absolute barrel imports IMMEDIATELY
350
+ - I organize import order
351
+ - I ensure barrel exports exist
352
+ - I explain import patterns
353
+
354
+ **I do NOT:**
355
+ - Allow relative imports
356
+ - Allow imports from specific files (skip barrels)
357
+ - Accept inconsistent import styles
358
+
359
+ **I ALWAYS:**
360
+ - Use `src/` absolute paths
361
+ - Import from barrel exports (`index.ts`)
362
+ - Organize imports by category
363
+ - Keep imports clean and maintainable
364
+
365
+ This ensures clean, maintainable NestJS import structure from day one.
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ All notable changes to the smi-nextjs plugin will be documented in this file.
4
+
5
+ ## [Unreleased]
6
+
7
+ ### Changed
8
+ - Renamed from `smi-nextjs` to `nextjs` as part of ai-kit migration
9
+ - Moved from `plugins/smi-nextjs/` to `packs/nextjs/`
10
+
11
+ ## [2.1.0] - 2025-01-02
12
+
13
+ ### Added
14
+ - 3 auto-enforcing skills
15
+ - `accessibility-validator` - WCAG 2.1 AA compliance
16
+ - `react-form-validator` - React Hook Form + Zod
17
+ - `import-convention-enforcer` - @/ path alias
18
+
19
+ ### Added
20
+ - `@frontend-visual` agent for Playwright + Figma MCP integration
21
+
22
+ ## [2.0.0] - 2024-12-01
23
+
24
+ ### Changed
25
+ - BREAKING: Standardized on TanStack Query for data fetching
26
+ - Updated component patterns for App Router
27
+
28
+ ### Added
29
+ - `@nextjs-modular` agent for large-scale architecture
30
+
31
+ ## [1.0.0] - 2024-10-01
32
+
33
+ ### Added
34
+ - Initial stable release
35
+ - 4 agents: architect, modular, visual, tester
36
+ - 1 command: component-create
@@ -0,0 +1,76 @@
1
+ # Next.js Development Standards Plugin
2
+
3
+ Smicolon company standards for Next.js/React projects.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Add Smicolon marketplace
9
+ /plugin marketplace add https://github.com/smicolon/ai-kit
10
+
11
+ # Install Next.js plugin
12
+ /plugin install nextjs
13
+ ```
14
+
15
+ ## What's Included
16
+
17
+ ### 4 Specialized Agents
18
+
19
+ - `@nextjs-architect` - Next.js/React architecture design
20
+ - `@nextjs-modular` - Large-scale Next.js modular architecture
21
+ - `@frontend-visual` - Visual QA with Playwright + Figma MCP integration
22
+ - `@frontend-tester` - Frontend testing (unit, integration, E2E, accessibility)
23
+
24
+ ### 3 Auto-Enforcing Skills (NEW!)
25
+
26
+ Skills automatically activate based on context - no manual invocation needed:
27
+
28
+ **Frontend Quality:**
29
+ - `accessibility-validator` - Auto-checks WCAG 2.1 AA compliance (keyboard nav, ARIA, contrast)
30
+ - `react-form-validator` - Auto-enforces React Hook Form + Zod for all forms
31
+ - `import-convention-enforcer` - Auto-fixes imports to use path aliases (@/ pattern)
32
+
33
+ **How Skills Work:**
34
+ - Auto-invoke when creating components, forms, or organizing imports
35
+ - Proactively fix violations (divs→buttons, add ARIA, convert to Zod)
36
+ - Explain WHY accessibility/validation matters
37
+ - Block inaccessible/unvalidated code
38
+ - Work alongside agents for complete quality assurance
39
+
40
+ ### Automatic Convention Enforcement
41
+
42
+ **Required Standards:**
43
+ - TypeScript strict mode (no `any`)
44
+ - Zod validation for all forms
45
+ - TanStack Query for API calls
46
+ - Proper error and loading states
47
+ - Tailwind CSS
48
+ - WCAG 2.1 AA accessibility
49
+
50
+ ### Visual QA Integration
51
+
52
+ The `@frontend-visual` agent integrates with:
53
+ - **Playwright MCP** for automated browser testing
54
+ - **Figma MCP** for design comparison
55
+
56
+ See [MCP_SETUP.md](../../MCP_SETUP.md) for configuration.
57
+
58
+ ## Usage
59
+
60
+ ```bash
61
+ # Design architecture
62
+ @nextjs-architect "Design a dashboard with real-time analytics"
63
+
64
+ # Large-scale architecture
65
+ @nextjs-modular "Design modular architecture for e-commerce platform"
66
+
67
+ # Write comprehensive tests
68
+ @frontend-tester "Write tests for authentication flow"
69
+
70
+ # Visual QA (requires Playwright + Figma MCP)
71
+ @frontend-visual "Verify dashboard matches Figma: https://figma.com/file/..."
72
+ ```
73
+
74
+ ## Documentation
75
+
76
+ See the main [Smicolon Claude Infra repository](https://github.com/smicolon/ai-kit) for complete documentation.