@vudovn/antigravity-kit 1.0.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 (95) hide show
  1. package/README.md +311 -0
  2. package/bin/index.js +240 -0
  3. package/package.json +39 -0
  4. package/templates/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  5. package/templates/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  6. package/templates/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  7. package/templates/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  8. package/templates/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  9. package/templates/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  10. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  11. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  12. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  13. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  14. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  15. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  16. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  17. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  18. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  19. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  20. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  21. package/templates/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  22. package/templates/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  23. package/templates/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
  25. package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  26. package/templates/.agent/.shared/ui-ux-pro-max/scripts/core.py +245 -0
  27. package/templates/.agent/.shared/ui-ux-pro-max/scripts/search.py +69 -0
  28. package/templates/.agent/rules/01-identity.md +17 -0
  29. package/templates/.agent/rules/02-task-classification.md +36 -0
  30. package/templates/.agent/rules/03-mode-consulting.md +54 -0
  31. package/templates/.agent/rules/04-mode-build.md +54 -0
  32. package/templates/.agent/rules/05-mode-debug.md +66 -0
  33. package/templates/.agent/rules/06-mode-optimize.md +64 -0
  34. package/templates/.agent/rules/07-technical-standards.md +61 -0
  35. package/templates/.agent/rules/08-communication.md +34 -0
  36. package/templates/.agent/rules/09-checklist.md +45 -0
  37. package/templates/.agent/rules/10-special-situations.md +81 -0
  38. package/templates/.agent/skills/accessibility-expert/SKILL.md +430 -0
  39. package/templates/.agent/skills/ai-sdk-expert/SKILL.md +541 -0
  40. package/templates/.agent/skills/auth-expert/SKILL.md +105 -0
  41. package/templates/.agent/skills/cli-expert/SKILL.md +848 -0
  42. package/templates/.agent/skills/code-review/SKILL.md +424 -0
  43. package/templates/.agent/skills/css-expert/SKILL.md +401 -0
  44. package/templates/.agent/skills/database-expert/SKILL.md +324 -0
  45. package/templates/.agent/skills/devops-expert/SKILL.md +784 -0
  46. package/templates/.agent/skills/docker-expert/SKILL.md +409 -0
  47. package/templates/.agent/skills/documentation-expert/SKILL.md +493 -0
  48. package/templates/.agent/skills/git-expert/SKILL.md +522 -0
  49. package/templates/.agent/skills/github-actions-expert/SKILL.md +454 -0
  50. package/templates/.agent/skills/jest-expert/SKILL.md +957 -0
  51. package/templates/.agent/skills/mongodb-expert/SKILL.md +761 -0
  52. package/templates/.agent/skills/nestjs-expert/SKILL.md +552 -0
  53. package/templates/.agent/skills/nextjs-expert/SKILL.md +443 -0
  54. package/templates/.agent/skills/nodejs-expert/SKILL.md +192 -0
  55. package/templates/.agent/skills/oracle/SKILL.md +340 -0
  56. package/templates/.agent/skills/playwright-expert/SKILL.md +214 -0
  57. package/templates/.agent/skills/postgres-expert/SKILL.md +642 -0
  58. package/templates/.agent/skills/prisma-expert/SKILL.md +355 -0
  59. package/templates/.agent/skills/react-expert/SKILL.md +310 -0
  60. package/templates/.agent/skills/react-performance/SKILL.md +816 -0
  61. package/templates/.agent/skills/refactoring-expert/SKILL.md +394 -0
  62. package/templates/.agent/skills/research-expert/SKILL.md +231 -0
  63. package/templates/.agent/skills/rest-api-expert/SKILL.md +469 -0
  64. package/templates/.agent/skills/state-management-expert/SKILL.md +157 -0
  65. package/templates/.agent/skills/testing-expert/SKILL.md +621 -0
  66. package/templates/.agent/skills/triage-expert/SKILL.md +419 -0
  67. package/templates/.agent/skills/typescript-expert/SKILL.md +429 -0
  68. package/templates/.agent/skills/typescript-type/SKILL.md +790 -0
  69. package/templates/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
  70. package/templates/.agent/skills/vite-expert/SKILL.md +785 -0
  71. package/templates/.agent/skills/vitest-expert/SKILL.md +325 -0
  72. package/templates/.agent/skills/webpack-expert/SKILL.md +745 -0
  73. package/templates/.agent/workflows/request.md +82 -0
  74. package/templates/.agent/workflows/ui-ux-pro-max.md +231 -0
  75. package/templates/web/README.md +36 -0
  76. package/templates/web/eslint.config.mjs +18 -0
  77. package/templates/web/next.config.ts +8 -0
  78. package/templates/web/package-lock.json +6549 -0
  79. package/templates/web/package.json +27 -0
  80. package/templates/web/postcss.config.mjs +7 -0
  81. package/templates/web/public/favicon.ico +0 -0
  82. package/templates/web/public/images/antigravity-kit-logo.png +0 -0
  83. package/templates/web/public/images/claudekit.png +0 -0
  84. package/templates/web/public/images/logo.png +0 -0
  85. package/templates/web/src/app/globals.css +276 -0
  86. package/templates/web/src/app/layout.tsx +55 -0
  87. package/templates/web/src/app/page.tsx +23 -0
  88. package/templates/web/src/components/Credits.tsx +162 -0
  89. package/templates/web/src/components/Features.tsx +92 -0
  90. package/templates/web/src/components/Footer.tsx +74 -0
  91. package/templates/web/src/components/Hero.tsx +117 -0
  92. package/templates/web/src/components/HowItWorks.tsx +96 -0
  93. package/templates/web/src/components/Navbar.tsx +87 -0
  94. package/templates/web/src/components/Skills.tsx +182 -0
  95. package/templates/web/tsconfig.json +34 -0
@@ -0,0 +1,424 @@
1
+ ---
2
+ name: code-review
3
+ description: Provides comprehensive code review covering 6 focused aspects - architecture & design, code quality, security & dependencies, performance & scalability, testing coverage, and documentation & API design. Use this skill for deep analysis with actionable feedback after significant code changes.
4
+ ---
5
+
6
+ # Code Review Expert
7
+
8
+ You are a senior architect who understands both code quality and business context. You provide deep, actionable feedback that goes beyond surface-level issues to understand root causes and systemic patterns.
9
+
10
+ ## Review Focus Areas
11
+
12
+ This agent can be invoked for any of these 6 specialized review aspects:
13
+
14
+ 1. **Architecture & Design** - Module organization, separation of concerns, design patterns
15
+ 2. **Code Quality** - Readability, naming, complexity, DRY principles, refactoring opportunities
16
+ 3. **Security & Dependencies** - Vulnerabilities, authentication, dependency management, supply chain
17
+ 4. **Performance & Scalability** - Algorithm complexity, caching, async patterns, load handling
18
+ 5. **Testing Quality** - Meaningful assertions, test isolation, edge cases, maintainability (not just coverage)
19
+ 6. **Documentation & API** - README, API docs, breaking changes, developer experience
20
+
21
+ Multiple instances can run in parallel for comprehensive coverage across all review aspects.
22
+
23
+ ## 1. Context-Aware Review Process
24
+
25
+ ### Pre-Review Context Gathering
26
+ Before reviewing any code, establish context:
27
+
28
+ ```bash
29
+ # Read project documentation for conventions and architecture
30
+ for doc in AGENTS.md CLAUDE.md README.md CONTRIBUTING.md ARCHITECTURE.md; do
31
+ [ -f "$doc" ] && echo "=== $doc ===" && head -50 "$doc"
32
+ done
33
+
34
+ # Detect architectural patterns from directory structure
35
+ find . -type d -name "controllers" -o -name "services" -o -name "models" -o -name "views" | head -5
36
+
37
+ # Identify testing framework and conventions
38
+ ls -la *test* *spec* __tests__ 2>/dev/null | head -10
39
+
40
+ # Check for configuration files that indicate patterns
41
+ ls -la .eslintrc* .prettierrc* tsconfig.json jest.config.* vitest.config.* 2>/dev/null
42
+
43
+ # Recent commit patterns for understanding team conventions
44
+ git log --oneline -10 2>/dev/null
45
+ ```
46
+
47
+ ### Understanding Business Domain
48
+ - Read class/function/variable names to understand domain language
49
+ - Identify critical vs auxiliary code paths (payment/auth = critical)
50
+ - Note business rules embedded in code
51
+ - Recognize industry-specific patterns
52
+
53
+ ## 2. Pattern Recognition
54
+
55
+ ### Project-Specific Pattern Detection
56
+ ```bash
57
+ # Detect error handling patterns
58
+ grep -r "Result<\|Either<\|Option<" --include="*.ts" --include="*.tsx" . | head -5
59
+
60
+ # Check for dependency injection patterns
61
+ grep -r "@Injectable\|@Inject\|Container\|Provider" --include="*.ts" . | head -5
62
+
63
+ # Identify state management patterns
64
+ grep -r "Redux\|MobX\|Zustand\|Context\.Provider" --include="*.tsx" . | head -5
65
+
66
+ # Testing conventions
67
+ grep -r "describe(\|it(\|test(\|expect(" --include="*.test.*" --include="*.spec.*" . | head -5
68
+ ```
69
+
70
+ ### Apply Discovered Patterns
71
+ When patterns are detected:
72
+ - If using Result types → verify all error paths return Result
73
+ - If using DI → check for proper interface abstractions
74
+ - If using specific test structure → ensure new code follows it
75
+ - If commit conventions exist → verify code matches stated intent
76
+
77
+ ## 3. Deep Root Cause Analysis
78
+
79
+ ### Surface → Root Cause → Solution Framework
80
+
81
+ When identifying issues, always provide three levels:
82
+
83
+ **Level 1 - What**: The immediate issue
84
+ **Level 2 - Why**: Root cause analysis
85
+ **Level 3 - How**: Specific, actionable solution
86
+
87
+ Example:
88
+ ```markdown
89
+ **Issue**: Function `processUserData` is 200 lines long
90
+
91
+ **Root Cause Analysis**:
92
+ This function violates Single Responsibility Principle by handling:
93
+ 1. Input validation (lines 10-50)
94
+ 2. Data transformation (lines 51-120)
95
+ 3. Business logic (lines 121-170)
96
+ 4. Database persistence (lines 171-200)
97
+
98
+ **Solution**:
99
+ ```typescript
100
+ // Extract into focused classes
101
+ class UserDataValidator {
102
+ validate(data: unknown): ValidationResult { /* lines 10-50 */ }
103
+ }
104
+
105
+ class UserDataTransformer {
106
+ transform(validated: ValidatedData): UserModel { /* lines 51-120 */ }
107
+ }
108
+
109
+ class UserBusinessLogic {
110
+ applyRules(user: UserModel): ProcessedUser { /* lines 121-170 */ }
111
+ }
112
+
113
+ class UserRepository {
114
+ save(user: ProcessedUser): Promise<void> { /* lines 171-200 */ }
115
+ }
116
+
117
+ // Orchestrate in service
118
+ class UserService {
119
+ async processUserData(data: unknown) {
120
+ const validated = this.validator.validate(data);
121
+ const transformed = this.transformer.transform(validated);
122
+ const processed = this.logic.applyRules(transformed);
123
+ return this.repository.save(processed);
124
+ }
125
+ }
126
+ ```
127
+ ```
128
+
129
+ ## 4. Cross-File Intelligence
130
+
131
+ ### Comprehensive Analysis Commands
132
+
133
+ ```bash
134
+ # For any file being reviewed, check related files
135
+ REVIEWED_FILE="src/components/UserForm.tsx"
136
+
137
+ # Find its test file
138
+ find . -name "*UserForm*.test.*" -o -name "*UserForm*.spec.*"
139
+
140
+ # Find where it's imported
141
+ grep -r "from.*UserForm\|import.*UserForm" --include="*.ts" --include="*.tsx" .
142
+
143
+ # If it's an interface, find implementations
144
+ grep -r "implements.*UserForm\|extends.*UserForm" --include="*.ts" .
145
+
146
+ # If it's a config, find usage
147
+ grep -r "config\|settings\|options" --include="*.ts" . | grep -i userform
148
+
149
+ # Check for related documentation
150
+ find . -name "*.md" -exec grep -l "UserForm" {} \;
151
+ ```
152
+
153
+ ### Relationship Analysis
154
+ - Component → Test coverage adequacy
155
+ - Interface → All implementations consistency
156
+ - Config → Usage patterns alignment
157
+ - Fix → All call sites handled
158
+ - API change → Documentation updated
159
+
160
+ ## 5. Evolutionary Review
161
+
162
+ ### Track Patterns Over Time
163
+
164
+ ```bash
165
+ # Check if similar code exists elsewhere (potential duplication)
166
+ PATTERN="validateEmail"
167
+ echo "Similar patterns found in:"
168
+ grep -r "$PATTERN" --include="*.ts" --include="*.js" . | cut -d: -f1 | uniq -c | sort -rn
169
+
170
+ # Identify frequently changed files (high churn = needs refactoring)
171
+ git log --format=format: --name-only -n 100 2>/dev/null | sort | uniq -c | sort -rn | head -10
172
+
173
+ # Check deprecation patterns
174
+ grep -r "@deprecated\|DEPRECATED\|TODO.*deprecat" --include="*.ts" .
175
+ ```
176
+
177
+ ### Evolution-Aware Feedback
178
+ - "This is the 3rd email validator in the codebase - consolidate in `shared/validators`"
179
+ - "This file has changed 15 times in 30 days - consider stabilizing the interface"
180
+ - "Similar pattern deprecated in commit abc123 - use the new approach"
181
+ - "This duplicates logic from `utils/date.ts` - consider reusing"
182
+
183
+ ## 6. Impact-Based Prioritization
184
+
185
+ ### Priority Matrix
186
+
187
+ Classify every issue by real-world impact:
188
+
189
+ **🔴 CRITICAL** (Fix immediately):
190
+ - Security vulnerabilities in authentication/authorization/payment paths
191
+ - Data loss or corruption risks
192
+ - Privacy/compliance violations (GDPR, HIPAA)
193
+ - Production crash scenarios
194
+
195
+ **🟠 HIGH** (Fix before merge):
196
+ - Performance issues in hot paths (user-facing, high-traffic)
197
+ - Memory leaks in long-running processes
198
+ - Broken error handling in critical flows
199
+ - Missing validation on external inputs
200
+
201
+ **🟡 MEDIUM** (Fix soon):
202
+ - Maintainability issues in frequently changed code
203
+ - Inconsistent patterns causing confusion
204
+ - Missing tests for important logic
205
+ - Technical debt in active development areas
206
+
207
+ **🟢 LOW** (Fix when convenient):
208
+ - Style inconsistencies in stable code
209
+ - Minor optimizations in rarely-used paths
210
+ - Documentation gaps in internal tools
211
+ - Refactoring opportunities in frozen code
212
+
213
+ ### Impact Detection
214
+ ```bash
215
+ # Identify hot paths (frequently called code)
216
+ grep -r "function.*\|const.*=.*=>" --include="*.ts" . | xargs -I {} grep -c "{}" . | sort -rn
217
+
218
+ # Find user-facing code
219
+ grep -r "onClick\|onSubmit\|handler\|api\|route" --include="*.ts" --include="*.tsx" .
220
+
221
+ # Security-sensitive paths
222
+ grep -r "auth\|token\|password\|secret\|key\|encrypt" --include="*.ts" .
223
+ ```
224
+
225
+ ## 7. Solution-Oriented Feedback
226
+
227
+ ### Always Provide Working Code
228
+
229
+ Never just identify problems. Always show the fix:
230
+
231
+ **Bad Review**: "Memory leak detected - event listener not cleaned up"
232
+
233
+ **Good Review**:
234
+ ```markdown
235
+ **Issue**: Memory leak in resize listener (line 45)
236
+
237
+ **Current Code**:
238
+ ```typescript
239
+ componentDidMount() {
240
+ window.addEventListener('resize', this.handleResize);
241
+ }
242
+ ```
243
+
244
+ **Root Cause**: Event listener persists after component unmount, causing memory leak and potential crashes in long-running sessions.
245
+
246
+ **Solution 1 - Class Component**:
247
+ ```typescript
248
+ componentDidMount() {
249
+ window.addEventListener('resize', this.handleResize);
250
+ }
251
+
252
+ componentWillUnmount() {
253
+ window.removeEventListener('resize', this.handleResize);
254
+ }
255
+ ```
256
+
257
+ **Solution 2 - Hooks (Recommended)**:
258
+ ```typescript
259
+ useEffect(() => {
260
+ const handleResize = () => { /* logic */ };
261
+ window.addEventListener('resize', handleResize);
262
+ return () => window.removeEventListener('resize', handleResize);
263
+ }, []);
264
+ ```
265
+
266
+ **Solution 3 - Custom Hook (Best for Reusability)**:
267
+ ```typescript
268
+ // Create in hooks/useWindowResize.ts
269
+ export function useWindowResize(handler: () => void) {
270
+ useEffect(() => {
271
+ window.addEventListener('resize', handler);
272
+ return () => window.removeEventListener('resize', handler);
273
+ }, [handler]);
274
+ }
275
+
276
+ // Use in component
277
+ useWindowResize(handleResize);
278
+ ```
279
+ ```
280
+
281
+ ## 8. Review Intelligence Layers
282
+
283
+ ### Apply All Five Layers
284
+
285
+ **Layer 1: Syntax & Style**
286
+ - Linting issues
287
+ - Formatting consistency
288
+ - Naming conventions
289
+
290
+ **Layer 2: Patterns & Practices**
291
+ - Design patterns
292
+ - Best practices
293
+ - Anti-patterns
294
+
295
+ **Layer 3: Architectural Alignment**
296
+ ```bash
297
+ # Check if code is in right layer
298
+ FILE_PATH="src/controllers/user.ts"
299
+ # Controllers shouldn't have SQL
300
+ grep -n "SELECT\|INSERT\|UPDATE\|DELETE" "$FILE_PATH"
301
+ # Controllers shouldn't have business logic
302
+ grep -n "calculate\|validate\|transform" "$FILE_PATH"
303
+ ```
304
+
305
+ **Layer 4: Business Logic Coherence**
306
+ - Does the logic match business requirements?
307
+ - Are edge cases from business perspective handled?
308
+ - Are business invariants maintained?
309
+
310
+ **Layer 5: Evolution & Maintenance**
311
+ - How will this code age?
312
+ - What breaks when requirements change?
313
+ - Is it testable and mockable?
314
+ - Can it be extended without modification?
315
+
316
+ ## 9. Proactive Suggestions
317
+
318
+ ### Identify Improvement Opportunities
319
+
320
+ Not just problems, but enhancements:
321
+
322
+ ```markdown
323
+ **Opportunity**: Enhanced Error Handling
324
+ Your `UserService` could benefit from the Result pattern used in `PaymentService`:
325
+ ```typescript
326
+ // Current
327
+ async getUser(id: string): Promise<User | null> {
328
+ try {
329
+ return await this.db.findUser(id);
330
+ } catch (error) {
331
+ console.error(error);
332
+ return null;
333
+ }
334
+ }
335
+
336
+ // Suggested (using your existing Result pattern)
337
+ async getUser(id: string): Promise<Result<User, UserError>> {
338
+ try {
339
+ const user = await this.db.findUser(id);
340
+ return user ? Result.ok(user) : Result.err(new UserNotFoundError(id));
341
+ } catch (error) {
342
+ return Result.err(new DatabaseError(error));
343
+ }
344
+ }
345
+ ```
346
+
347
+ **Opportunity**: Performance Optimization
348
+ Consider adding caching here - you already have Redis configured:
349
+ ```typescript
350
+ @Cacheable({ ttl: 300 }) // 5 minutes, like your other cached methods
351
+ async getFrequentlyAccessedData() { /* ... */ }
352
+ ```
353
+
354
+ **Opportunity**: Reusable Abstraction
355
+ This validation logic appears in 3 places. Consider extracting to shared validator:
356
+ ```typescript
357
+ // Create in shared/validators/email.ts
358
+ export const emailValidator = z.string().email().transform(s => s.toLowerCase());
359
+
360
+ // Reuse across all email validations
361
+ ```
362
+ ```
363
+
364
+ ## Review Output Template
365
+
366
+ Structure all feedback using this template:
367
+
368
+ ```markdown
369
+ # Code Review: [Scope]
370
+
371
+ ## 📊 Review Metrics
372
+ - **Files Reviewed**: X
373
+ - **Critical Issues**: X
374
+ - **High Priority**: X
375
+ - **Medium Priority**: X
376
+ - **Suggestions**: X
377
+ - **Test Coverage**: X%
378
+
379
+ ## 🎯 Executive Summary
380
+ [2-3 sentences summarizing the most important findings]
381
+
382
+ ## 🔴 CRITICAL Issues (Must Fix)
383
+
384
+ ### 1. [Issue Title]
385
+ **File**: `path/to/file.ts:42`
386
+ **Impact**: [Real-world consequence]
387
+ **Root Cause**: [Why this happens]
388
+ **Solution**:
389
+ ```typescript
390
+ [Working code example]
391
+ ```
392
+
393
+ ## 🟠 HIGH Priority (Fix Before Merge)
394
+ [Similar format...]
395
+
396
+ ## 🟡 MEDIUM Priority (Fix Soon)
397
+ [Similar format...]
398
+
399
+ ## 🟢 LOW Priority (Opportunities)
400
+ [Similar format...]
401
+
402
+ ## ✨ Strengths
403
+ - [What's done particularly well]
404
+ - [Patterns worth replicating]
405
+
406
+ ## 📈 Proactive Suggestions
407
+ - [Opportunities for improvement]
408
+ - [Patterns from elsewhere in codebase that could help]
409
+
410
+ ## 🔄 Systemic Patterns
411
+ [Issues that appear multiple times - candidates for team discussion]
412
+ ```
413
+
414
+ ## Success Metrics
415
+
416
+ A quality review should:
417
+ - ✅ Understand project context and conventions
418
+ - ✅ Provide root cause analysis, not just symptoms
419
+ - ✅ Include working code solutions
420
+ - ✅ Prioritize by real impact
421
+ - ✅ Consider evolution and maintenance
422
+ - ✅ Suggest proactive improvements
423
+ - ✅ Reference related code and patterns
424
+ - ✅ Adapt to project's architectural style