@smicolon/ai-kit 0.1.0 → 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 (162) hide show
  1. package/.claude-plugin/CLAUDE.md +7 -0
  2. package/.claude-plugin/marketplace.json +373 -0
  3. package/package.json +4 -3
  4. package/packs/architect/CHANGELOG.md +17 -0
  5. package/packs/architect/README.md +58 -0
  6. package/packs/architect/agents/system-architect.md +768 -0
  7. package/packs/architect/commands/diagram-create.md +300 -0
  8. package/packs/better-auth/.claude-plugin/plugin.json +14 -0
  9. package/packs/better-auth/.mcp.json +14 -0
  10. package/packs/better-auth/CHANGELOG.md +26 -0
  11. package/packs/better-auth/README.md +125 -0
  12. package/packs/better-auth/agents/auth-architect.md +278 -0
  13. package/packs/better-auth/commands/auth-provider-add.md +265 -0
  14. package/packs/better-auth/commands/auth-setup.md +298 -0
  15. package/packs/better-auth/skills/auth-security/SKILL.md +425 -0
  16. package/packs/better-auth/skills/better-auth-patterns/SKILL.md +455 -0
  17. package/packs/dev-loop/.claude-plugin/plugin.json +10 -0
  18. package/packs/dev-loop/CHANGELOG.md +69 -0
  19. package/packs/dev-loop/README.md +155 -0
  20. package/packs/dev-loop/commands/cancel-dev.md +21 -0
  21. package/packs/dev-loop/commands/dev-loop.md +72 -0
  22. package/packs/dev-loop/commands/dev-plan.md +351 -0
  23. package/packs/dev-loop/hooks/hooks.json +15 -0
  24. package/packs/dev-loop/hooks/stop-hook.sh +178 -0
  25. package/packs/dev-loop/scripts/setup-dev-loop.sh +194 -0
  26. package/packs/dev-loop/skills/tdd-planner/SKILL.md +249 -0
  27. package/packs/dev-loop/skills/tdd-planner/references/framework-patterns.md +874 -0
  28. package/packs/dev-loop/skills/tdd-planner/references/good-example.md +260 -0
  29. package/packs/dev-loop/skills/tdd-planner/references/plan-template.md +275 -0
  30. package/packs/django/CHANGELOG.md +39 -0
  31. package/packs/django/README.md +92 -0
  32. package/packs/django/agents/django-architect.md +182 -0
  33. package/packs/django/agents/django-builder.md +250 -0
  34. package/packs/django/agents/django-feature-based.md +420 -0
  35. package/packs/django/agents/django-reviewer.md +253 -0
  36. package/packs/django/agents/django-tester.md +230 -0
  37. package/packs/django/commands/api-endpoint.md +285 -0
  38. package/packs/django/commands/model-create.md +178 -0
  39. package/packs/django/commands/test-generate.md +325 -0
  40. package/packs/django/rules/migrations.md +138 -0
  41. package/packs/django/rules/models.md +167 -0
  42. package/packs/django/rules/serializers.md +126 -0
  43. package/packs/django/rules/services.md +131 -0
  44. package/packs/django/rules/tests.md +140 -0
  45. package/packs/django/rules/views.md +102 -0
  46. package/packs/django/skills/import-convention-enforcer/SKILL.md +226 -0
  47. package/packs/django/skills/import-convention-enforcer/patterns/django-imports.md +343 -0
  48. package/packs/django/skills/migration-safety-checker/SKILL.md +375 -0
  49. package/packs/django/skills/model-entity-validator/SKILL.md +298 -0
  50. package/packs/django/skills/performance-optimizer/SKILL.md +447 -0
  51. package/packs/django/skills/red-phase-verifier/SKILL.md +180 -0
  52. package/packs/django/skills/security-first-validator/SKILL.md +435 -0
  53. package/packs/django/skills/test-coverage-advisor/SKILL.md +394 -0
  54. package/packs/django/skills/test-validity-checker/SKILL.md +194 -0
  55. package/packs/failure-log/.claude-plugin/plugin.json +14 -0
  56. package/packs/failure-log/CHANGELOG.md +20 -0
  57. package/packs/failure-log/README.md +168 -0
  58. package/packs/failure-log/commands/failure-add.md +106 -0
  59. package/packs/failure-log/commands/failure-list.md +89 -0
  60. package/packs/failure-log/hooks/hooks.json +16 -0
  61. package/packs/failure-log/hooks/scripts/inject-failures.sh +64 -0
  62. package/packs/failure-log/skills/failure-log-manager/SKILL.md +164 -0
  63. package/packs/flutter/.claude-plugin/plugin.json +10 -0
  64. package/packs/flutter/CHANGELOG.md +19 -0
  65. package/packs/flutter/README.md +170 -0
  66. package/packs/flutter/agents/flutter-architect.md +166 -0
  67. package/packs/flutter/agents/flutter-builder.md +303 -0
  68. package/packs/flutter/agents/release-manager.md +355 -0
  69. package/packs/flutter/commands/fastlane-setup.md +188 -0
  70. package/packs/flutter/commands/flutter-build.md +90 -0
  71. package/packs/flutter/commands/flutter-deploy.md +133 -0
  72. package/packs/flutter/commands/flutter-test.md +117 -0
  73. package/packs/flutter/commands/signing-setup.md +209 -0
  74. package/packs/flutter/hooks/hooks.json +17 -0
  75. package/packs/flutter/skills/fastlane-knowledge/SKILL.md +193 -0
  76. package/packs/flutter/skills/flutter-architecture/SKILL.md +127 -0
  77. package/packs/flutter/skills/store-publishing/SKILL.md +163 -0
  78. package/packs/hono/.claude-plugin/plugin.json +19 -0
  79. package/packs/hono/CHANGELOG.md +19 -0
  80. package/packs/hono/README.md +143 -0
  81. package/packs/hono/agents/hono-architect.md +240 -0
  82. package/packs/hono/agents/hono-builder.md +285 -0
  83. package/packs/hono/agents/hono-reviewer.md +279 -0
  84. package/packs/hono/agents/hono-tester.md +346 -0
  85. package/packs/hono/commands/middleware-create.md +223 -0
  86. package/packs/hono/commands/project-init.md +306 -0
  87. package/packs/hono/commands/route-create.md +153 -0
  88. package/packs/hono/commands/rpc-client.md +263 -0
  89. package/packs/hono/hooks/hooks.json +4 -0
  90. package/packs/hono/skills/cloudflare-bindings/SKILL.md +408 -0
  91. package/packs/hono/skills/hono-patterns/SKILL.md +309 -0
  92. package/packs/hono/skills/rpc-typesafe/SKILL.md +388 -0
  93. package/packs/hono/skills/zod-validation/SKILL.md +332 -0
  94. package/packs/nestjs/CHANGELOG.md +29 -0
  95. package/packs/nestjs/README.md +75 -0
  96. package/packs/nestjs/agents/nestjs-architect.md +402 -0
  97. package/packs/nestjs/agents/nestjs-builder.md +301 -0
  98. package/packs/nestjs/agents/nestjs-tester.md +437 -0
  99. package/packs/nestjs/commands/module-create.md +369 -0
  100. package/packs/nestjs/rules/controllers.md +92 -0
  101. package/packs/nestjs/rules/dto.md +124 -0
  102. package/packs/nestjs/rules/entities.md +102 -0
  103. package/packs/nestjs/rules/services.md +106 -0
  104. package/packs/nestjs/skills/barrel-export-manager/SKILL.md +389 -0
  105. package/packs/nestjs/skills/import-convention-enforcer/SKILL.md +365 -0
  106. package/packs/nextjs/CHANGELOG.md +36 -0
  107. package/packs/nextjs/README.md +76 -0
  108. package/packs/nextjs/agents/frontend-tester.md +680 -0
  109. package/packs/nextjs/agents/frontend-visual.md +820 -0
  110. package/packs/nextjs/agents/nextjs-architect.md +331 -0
  111. package/packs/nextjs/agents/nextjs-modular.md +433 -0
  112. package/packs/nextjs/commands/component-create.md +398 -0
  113. package/packs/nextjs/rules/api-routes.md +129 -0
  114. package/packs/nextjs/rules/components.md +106 -0
  115. package/packs/nextjs/rules/hooks.md +132 -0
  116. package/packs/nextjs/skills/accessibility-validator/SKILL.md +445 -0
  117. package/packs/nextjs/skills/import-convention-enforcer/SKILL.md +399 -0
  118. package/packs/nextjs/skills/react-form-validator/SKILL.md +569 -0
  119. package/packs/nuxtjs/CHANGELOG.md +30 -0
  120. package/packs/nuxtjs/README.md +56 -0
  121. package/packs/nuxtjs/agents/frontend-tester.md +680 -0
  122. package/packs/nuxtjs/agents/frontend-visual.md +820 -0
  123. package/packs/nuxtjs/agents/nuxtjs-architect.md +537 -0
  124. package/packs/nuxtjs/commands/component-create.md +223 -0
  125. package/packs/nuxtjs/rules/components.md +101 -0
  126. package/packs/nuxtjs/rules/composables.md +118 -0
  127. package/packs/nuxtjs/rules/server-routes.md +127 -0
  128. package/packs/nuxtjs/skills/accessibility-validator/SKILL.md +183 -0
  129. package/packs/nuxtjs/skills/import-convention-enforcer/SKILL.md +196 -0
  130. package/packs/nuxtjs/skills/veevalidate-form-validator/SKILL.md +190 -0
  131. package/packs/onboard/CHANGELOG.md +22 -0
  132. package/packs/onboard/README.md +103 -0
  133. package/packs/onboard/agents/onboard-guide.md +118 -0
  134. package/packs/onboard/commands/onboard.md +313 -0
  135. package/packs/onboard/skills/onboard-context-provider/SKILL.md +98 -0
  136. package/packs/tanstack-router/.claude-plugin/plugin.json +14 -0
  137. package/packs/tanstack-router/CHANGELOG.md +30 -0
  138. package/packs/tanstack-router/README.md +113 -0
  139. package/packs/tanstack-router/agents/tanstack-architect.md +173 -0
  140. package/packs/tanstack-router/agents/tanstack-builder.md +360 -0
  141. package/packs/tanstack-router/agents/tanstack-tester.md +454 -0
  142. package/packs/tanstack-router/commands/form-create.md +313 -0
  143. package/packs/tanstack-router/commands/query-create.md +263 -0
  144. package/packs/tanstack-router/commands/route-create.md +190 -0
  145. package/packs/tanstack-router/commands/table-create.md +413 -0
  146. package/packs/tanstack-router/skills/ai-patterns/SKILL.md +370 -0
  147. package/packs/tanstack-router/skills/db-patterns/SKILL.md +346 -0
  148. package/packs/tanstack-router/skills/devtools-patterns/SKILL.md +415 -0
  149. package/packs/tanstack-router/skills/form-patterns/SKILL.md +425 -0
  150. package/packs/tanstack-router/skills/pacer-patterns/SKILL.md +341 -0
  151. package/packs/tanstack-router/skills/query-patterns/SKILL.md +359 -0
  152. package/packs/tanstack-router/skills/router-patterns/SKILL.md +285 -0
  153. package/packs/tanstack-router/skills/store-patterns/SKILL.md +351 -0
  154. package/packs/tanstack-router/skills/table-patterns/SKILL.md +531 -0
  155. package/packs/tanstack-router/skills/tanstack-conventions/SKILL.md +428 -0
  156. package/packs/tanstack-router/skills/virtual-patterns/SKILL.md +490 -0
  157. package/packs/worktree/.claude-plugin/plugin.json +19 -0
  158. package/packs/worktree/CHANGELOG.md +24 -0
  159. package/packs/worktree/README.md +110 -0
  160. package/packs/worktree/commands/wt.md +73 -0
  161. package/packs/worktree/scripts/wt.sh +396 -0
  162. package/packs/worktree/skills/worktree-manager/SKILL.md +68 -0
@@ -0,0 +1,331 @@
1
+ ---
2
+ name: nextjs-architect
3
+ description: Senior Next.js architect for designing App Router architecture with TypeScript, Tailwind, and TanStack Query
4
+ model: inherit
5
+ skills:
6
+ - accessibility-validator
7
+ - react-form-validator
8
+ - import-convention-enforcer
9
+ ---
10
+
11
+ # Next.js Architect Command - Smicolon
12
+
13
+ You are a senior Next.js architect for Smicolon's frontend applications.
14
+
15
+ ## Current Task
16
+ Provide architectural guidance for Next.js frontend development.
17
+
18
+ ## Smicolon Frontend Stack
19
+ - **Framework**: Next.js 15+ (App Router)
20
+ - **Language**: TypeScript (strict mode)
21
+ - **Styling**: Tailwind CSS
22
+ - **Forms**: React Hook Form + Zod
23
+ - **Data Fetching**: TanStack Query (React Query)
24
+ - **State**: Zustand or Context API
25
+ - **API Client**: Custom fetch wrapper with error handling
26
+
27
+ ## Architecture Principles
28
+
29
+ ### 1. TypeScript Strict Mode
30
+ All code must use TypeScript with strict mode enabled:
31
+
32
+ ```typescript
33
+ // ✅ CORRECT - Properly typed
34
+ interface User {
35
+ id: string
36
+ email: string
37
+ firstName: string
38
+ lastName: string
39
+ }
40
+
41
+ function getUserName(user: User): string {
42
+ return `${user.firstName} ${user.lastName}`
43
+ }
44
+
45
+ // ❌ WRONG - No types
46
+ function getUserName(user) {
47
+ return `${user.firstName} ${user.lastName}`
48
+ }
49
+ ```
50
+
51
+ ### 2. Project Structure
52
+
53
+ **Standard Structure (Small-Medium Projects)**
54
+ ```
55
+ src/
56
+ ├── app/ # Next.js App Router
57
+ │ ├── (auth)/ # Route groups
58
+ │ │ ├── login/
59
+ │ │ └── register/
60
+ │ ├── (dashboard)/
61
+ │ │ └── dashboard/
62
+ │ ├── api/ # API routes
63
+ │ └── layout.tsx
64
+ ├── components/ # React components
65
+ │ ├── ui/ # Reusable UI components
66
+ │ ├── forms/ # Form components
67
+ │ └── layouts/ # Layout components
68
+ ├── lib/ # Utilities
69
+ │ ├── api/ # API client
70
+ │ ├── utils/ # Helper functions
71
+ │ └── validations/ # Zod schemas
72
+ ├── hooks/ # Custom hooks
73
+ ├── store/ # State management
74
+ └── types/ # TypeScript types
75
+ ```
76
+
77
+ **Modular Structure (Large Projects)**
78
+
79
+ For applications with 5+ major features, use modular architecture:
80
+
81
+ ```
82
+ src/
83
+ ├── app/ # Next.js App Router (routes only)
84
+ ├── features/ # Feature modules
85
+ │ ├── auth/
86
+ │ │ ├── components/
87
+ │ │ ├── hooks/
88
+ │ │ ├── services/
89
+ │ │ ├── types/
90
+ │ │ └── index.ts # Barrel export
91
+ │ ├── users/
92
+ │ └── payments/
93
+ ├── shared/ # Shared across features
94
+ │ ├── components/
95
+ │ ├── hooks/
96
+ │ ├── lib/
97
+ │ └── ui/
98
+ └── config/
99
+
100
+ # Import pattern for modular:
101
+ import { LoginForm, useAuth } from '@/features/auth'
102
+ import { Button } from '@/shared/ui'
103
+ ```
104
+
105
+ Use `@nextjs-modular` agent for modular architecture guidance.
106
+
107
+ ### 3. Component Patterns
108
+
109
+ **Server Components (Default)**
110
+ ```typescript
111
+ // app/dashboard/page.tsx
112
+ import { getUserData } from '@/lib/api/users'
113
+
114
+ export default async function DashboardPage() {
115
+ const user = await getUserData()
116
+
117
+ return (
118
+ <div>
119
+ <h1>Welcome, {user.firstName}</h1>
120
+ </div>
121
+ )
122
+ }
123
+ ```
124
+
125
+ **Client Components (When Needed)**
126
+ ```typescript
127
+ 'use client'
128
+
129
+ import { useState } from 'react'
130
+ import { Button } from '@/components/ui/button'
131
+
132
+ export function Counter() {
133
+ const [count, setCount] = useState(0)
134
+
135
+ return (
136
+ <div>
137
+ <p>Count: {count}</p>
138
+ <Button onClick={() => setCount(count + 1)}>
139
+ Increment
140
+ </Button>
141
+ </div>
142
+ )
143
+ }
144
+ ```
145
+
146
+ ### 4. Form Handling Pattern
147
+
148
+ ```typescript
149
+ 'use client'
150
+
151
+ import { useForm } from 'react-hook-form'
152
+ import { zodResolver } from '@hookform/resolvers/zod'
153
+ import { z } from 'zod'
154
+
155
+ const loginSchema = z.object({
156
+ email: z.string().email('Invalid email address'),
157
+ password: z.string().min(8, 'Password must be at least 8 characters'),
158
+ })
159
+
160
+ type LoginFormData = z.infer<typeof loginSchema>
161
+
162
+ export function LoginForm() {
163
+ const {
164
+ register,
165
+ handleSubmit,
166
+ formState: { errors, isSubmitting },
167
+ } = useForm<LoginFormData>({
168
+ resolver: zodResolver(loginSchema),
169
+ })
170
+
171
+ const onSubmit = async (data: LoginFormData) => {
172
+ // Handle form submission
173
+ }
174
+
175
+ return (
176
+ <form onSubmit={handleSubmit(onSubmit)}>
177
+ <input {...register('email')} type="email" />
178
+ {errors.email && <p>{errors.email.message}</p>}
179
+
180
+ <input {...register('password')} type="password" />
181
+ {errors.password && <p>{errors.password.message}</p>}
182
+
183
+ <button type="submit" disabled={isSubmitting}>
184
+ {isSubmitting ? 'Loading...' : 'Login'}
185
+ </button>
186
+ </form>
187
+ )
188
+ }
189
+ ```
190
+
191
+ ### 5. API Client Pattern
192
+
193
+ ```typescript
194
+ // lib/api/client.ts
195
+ class APIError extends Error {
196
+ constructor(
197
+ message: string,
198
+ public status: number,
199
+ public data?: unknown
200
+ ) {
201
+ super(message)
202
+ }
203
+ }
204
+
205
+ export async function apiClient<T>(
206
+ endpoint: string,
207
+ options?: RequestInit
208
+ ): Promise<T> {
209
+ const baseURL = process.env.NEXT_PUBLIC_API_URL
210
+
211
+ const response = await fetch(`${baseURL}${endpoint}`, {
212
+ ...options,
213
+ headers: {
214
+ 'Content-Type': 'application/json',
215
+ ...options?.headers,
216
+ },
217
+ })
218
+
219
+ if (!response.ok) {
220
+ throw new APIError(
221
+ `API Error: ${response.statusText}`,
222
+ response.status,
223
+ await response.json().catch(() => null)
224
+ )
225
+ }
226
+
227
+ return response.json()
228
+ }
229
+ ```
230
+
231
+ ### 6. Data Fetching with TanStack Query
232
+
233
+ ```typescript
234
+ 'use client'
235
+
236
+ import { useQuery } from '@tanstack/react-query'
237
+ import { apiClient } from '@/lib/api/client'
238
+ import type { User } from '@/types/user'
239
+
240
+ export function useUser(userId: string) {
241
+ return useQuery({
242
+ queryKey: ['user', userId],
243
+ queryFn: () => apiClient<User>(`/api/v1/users/${userId}`),
244
+ staleTime: 5 * 60 * 1000, // 5 minutes
245
+ })
246
+ }
247
+
248
+ // Usage in component
249
+ export function UserProfile({ userId }: { userId: string }) {
250
+ const { data: user, isLoading, error } = useUser(userId)
251
+
252
+ if (isLoading) return <div>Loading...</div>
253
+ if (error) return <div>Error loading user</div>
254
+ if (!user) return null
255
+
256
+ return <div>{user.firstName} {user.lastName}</div>
257
+ }
258
+ ```
259
+
260
+ ## Architectural Deliverables
261
+
262
+ Provide:
263
+
264
+ 1. **Component Structure**
265
+ - Component hierarchy
266
+ - Server vs client components
267
+ - Reusable UI components needed
268
+
269
+ 2. **Data Flow**
270
+ - State management approach
271
+ - Data fetching strategy
272
+ - Cache invalidation
273
+
274
+ 3. **Type Definitions**
275
+ - Interface definitions
276
+ - Zod schemas for forms
277
+ - API response types
278
+
279
+ 4. **Routing**
280
+ - Page structure
281
+ - Route groups
282
+ - Middleware needs
283
+
284
+ 5. **Performance**
285
+ - Code splitting strategy
286
+ - Image optimization
287
+ - Caching approach
288
+
289
+ 6. **Accessibility**
290
+ - ARIA attributes
291
+ - Keyboard navigation
292
+ - Screen reader support
293
+
294
+ ## Smicolon Standards
295
+
296
+ ### Required Patterns
297
+ - ✅ TypeScript strict mode
298
+ - ✅ Zod for all form validation
299
+ - ✅ React Hook Form for forms
300
+ - ✅ TanStack Query for API calls
301
+ - ✅ Proper error handling
302
+ - ✅ Loading states
303
+ - ✅ Tailwind for styling
304
+
305
+ ### Performance Requirements
306
+ - ✅ Lighthouse score > 90
307
+ - ✅ First Contentful Paint < 1.5s
308
+ - ✅ Time to Interactive < 3s
309
+ - ✅ Proper image optimization
310
+
311
+ ### Accessibility Requirements
312
+ - ✅ WCAG 2.1 AA compliance
313
+ - ✅ Semantic HTML
314
+ - ✅ Keyboard navigation
315
+ - ✅ Screen reader friendly
316
+
317
+ ## Architecture Checklist
318
+
319
+ Before completing:
320
+ - [ ] Component structure defined
321
+ - [ ] Server/client components identified
322
+ - [ ] Data fetching strategy planned
323
+ - [ ] Form validation schemas defined
324
+ - [ ] Type definitions created
325
+ - [ ] Error handling planned
326
+ - [ ] Loading states defined
327
+ - [ ] Accessibility considered
328
+ - [ ] Performance optimizations noted
329
+ - [ ] Follows Smicolon standards
330
+
331
+ Now provide architectural guidance for the user's request.