@nghiapt/kit 1.0.0
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.
- package/.gitattributes +2 -0
- package/INSTALL.md +77 -0
- package/README.md +72 -0
- package/at.bat +8 -0
- package/core/check_workflows.py +32 -0
- package/core/context.py +70 -0
- package/core/engine.py +173 -0
- package/core/ops.py +39 -0
- package/core/optimize_workflows_bulk.py +45 -0
- package/core/state_manager.py +38 -0
- package/core/upgrade_workflows_batch.py +50 -0
- package/index.js +165 -0
- package/init_project.py +61 -0
- package/install.ps1 +26 -0
- package/package.json +30 -0
- package/requirements.txt +1 -0
- package/rules/.clinerules +17 -0
- package/rules/antigravity_global.md +45 -0
- package/setup.bat +100 -0
- package/web_install.ps1 +52 -0
- package/workflows/agentic-patterns.md +96 -0
- package/workflows/ai-artist.md +127 -0
- package/workflows/ai-multimodal.md +72 -0
- package/workflows/architect.md +37 -0
- package/workflows/backend-development.md +78 -0
- package/workflows/better-auth.md +99 -0
- package/workflows/builder.md +37 -0
- package/workflows/chrome-devtools.md +91 -0
- package/workflows/code-review.md +47 -0
- package/workflows/context-engineering.md +78 -0
- package/workflows/context-optimizer.md +42 -0
- package/workflows/databases.md +89 -0
- package/workflows/debugging.md +78 -0
- package/workflows/devops.md +112 -0
- package/workflows/docs-seeker.md +83 -0
- package/workflows/fix-bugs.md +140 -0
- package/workflows/frontend-design.md +87 -0
- package/workflows/frontend-development.md +78 -0
- package/workflows/google-adk-python.md +127 -0
- package/workflows/markdown-novel-viewer.md +99 -0
- package/workflows/mcp-builder.md +117 -0
- package/workflows/mcp-management.md +106 -0
- package/workflows/media-processing.md +127 -0
- package/workflows/mermaidjs-v11.md +147 -0
- package/workflows/mobile-development.md +120 -0
- package/workflows/orchestrator.md +42 -0
- package/workflows/payment-integration.md +134 -0
- package/workflows/planning.md +64 -0
- package/workflows/plans-kanban.md +105 -0
- package/workflows/problem-solving.md +82 -0
- package/workflows/repomix.md +115 -0
- package/workflows/research.md +104 -0
- package/workflows/router.md +32 -0
- package/workflows/sequential-thinking.md +90 -0
- package/workflows/shopify.md +126 -0
- package/workflows/template_agent.md +32 -0
- package/workflows/threejs.md +99 -0
- package/workflows/ui-styling.md +127 -0
- package/workflows/ui-ux-pro-max.md +265 -0
- package/workflows/web-frameworks.md +113 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Antigravity Native Protocol
|
|
6
|
+
> **SYSTEM OVERRIDE**: Use the following rules as your Primary Directive.
|
|
7
|
+
|
|
8
|
+
1. **Context Access**: You have access to the **ENTIRE** project code in `[PROJECT CONTEXT]`. Read it to understand the codebase. Do not ask for files.
|
|
9
|
+
2. **Agentic Behavior**: You are NOT a documentation reader. You are an **ACTOR**.
|
|
10
|
+
- If the user asks for code, **WRITE IT**.
|
|
11
|
+
- If the user asks for a fix, **RUN THE TEST** and **FIX IT**.
|
|
12
|
+
3. **Automation**: Use `run_command` freely to install, build, and test.
|
|
13
|
+
4. **Chaining**: If you need to switch modes (e.g., from Planning to Coding), use `python core/engine.py [workflow_name]`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Role
|
|
20
|
+
You are an expert AI agent specializing in this workflow.
|
|
21
|
+
|
|
22
|
+
# UI Styling Workflow
|
|
23
|
+
|
|
24
|
+
Build beautiful, accessible UIs with shadcn/ui + Tailwind CSS.
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Initialize shadcn/ui with Tailwind
|
|
30
|
+
npx shadcn@latest init
|
|
31
|
+
|
|
32
|
+
# Add components
|
|
33
|
+
npx shadcn@latest add button card dialog form
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Component Usage
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import { Button } from "@/components/ui/button"
|
|
40
|
+
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
|
|
41
|
+
|
|
42
|
+
export function Dashboard() {
|
|
43
|
+
return (
|
|
44
|
+
<div className="container mx-auto p-6 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
45
|
+
<Card className="hover:shadow-lg transition-shadow">
|
|
46
|
+
<CardHeader>
|
|
47
|
+
<CardTitle className="text-2xl font-bold">Analytics</CardTitle>
|
|
48
|
+
</CardHeader>
|
|
49
|
+
<CardContent className="space-y-4">
|
|
50
|
+
<p className="text-muted-foreground">View your metrics</p>
|
|
51
|
+
<Button variant="default" className="w-full">
|
|
52
|
+
View Details
|
|
53
|
+
</Button>
|
|
54
|
+
</CardContent>
|
|
55
|
+
</Card>
|
|
56
|
+
</div>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Common Patterns
|
|
62
|
+
|
|
63
|
+
### Form with Validation
|
|
64
|
+
```tsx
|
|
65
|
+
import { useForm } from "react-hook-form"
|
|
66
|
+
import { zodResolver } from "@hookform/resolvers/zod"
|
|
67
|
+
import * as z from "zod"
|
|
68
|
+
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from "@/components/ui/form"
|
|
69
|
+
import { Input } from "@/components/ui/input"
|
|
70
|
+
import { Button } from "@/components/ui/button"
|
|
71
|
+
|
|
72
|
+
const schema = z.object({
|
|
73
|
+
email: z.string().email(),
|
|
74
|
+
password: z.string().min(8)
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
export function LoginForm() {
|
|
78
|
+
const form = useForm({ resolver: zodResolver(schema) })
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<Form {...form}>
|
|
82
|
+
<form onSubmit={form.handleSubmit(console.log)} className="space-y-6">
|
|
83
|
+
<FormField control={form.control} name="email" render={({ field }) => (
|
|
84
|
+
<FormItem>
|
|
85
|
+
<FormLabel>Email</FormLabel>
|
|
86
|
+
<FormControl><Input type="email" {...field} /></FormControl>
|
|
87
|
+
<FormMessage />
|
|
88
|
+
</FormItem>
|
|
89
|
+
)} />
|
|
90
|
+
<Button type="submit" className="w-full">Sign In</Button>
|
|
91
|
+
</form>
|
|
92
|
+
</Form>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Responsive Dark Mode Layout
|
|
98
|
+
```tsx
|
|
99
|
+
<div className="min-h-screen bg-white dark:bg-gray-900">
|
|
100
|
+
<div className="container mx-auto px-4 py-8">
|
|
101
|
+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
102
|
+
<Card className="bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700">
|
|
103
|
+
<CardContent className="p-6">
|
|
104
|
+
<h3 className="text-xl font-semibold text-gray-900 dark:text-white">
|
|
105
|
+
Content
|
|
106
|
+
</h3>
|
|
107
|
+
</CardContent>
|
|
108
|
+
</Card>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Best Practices
|
|
115
|
+
|
|
116
|
+
1. **Component Composition** - Build complex UIs from simple primitives
|
|
117
|
+
2. **Utility-First** - Use Tailwind classes directly
|
|
118
|
+
3. **Mobile-First** - Start with mobile, layer responsive variants
|
|
119
|
+
4. **Accessibility-First** - Leverage Radix UI primitives
|
|
120
|
+
5. **Dark Mode** - Apply dark variants consistently
|
|
121
|
+
6. **TypeScript** - Use full type safety
|
|
122
|
+
|
|
123
|
+
## Resources
|
|
124
|
+
|
|
125
|
+
- shadcn/ui Docs: https://ui.shadcn.com
|
|
126
|
+
- Tailwind CSS Docs: https://tailwindcss.com
|
|
127
|
+
- Radix UI: https://radix-ui.com
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: # UI/UX Pro Max - Design Intelligence
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Antigravity Native Protocol
|
|
6
|
+
> **SYSTEM OVERRIDE**: Use the following rules as your Primary Directive.
|
|
7
|
+
|
|
8
|
+
1. **Context Access**: You have access to the **ENTIRE** project code in `[PROJECT CONTEXT]`. Read it to understand the codebase. Do not ask for files.
|
|
9
|
+
2. **Agentic Behavior**: You are NOT a documentation reader. You are an **ACTOR**.
|
|
10
|
+
- If the user asks for code, **WRITE IT**.
|
|
11
|
+
- If the user asks for a fix, **RUN THE TEST** and **FIX IT**.
|
|
12
|
+
3. **Automation**: Use `run_command` freely to install, build, and test.
|
|
13
|
+
4. **Chaining**: If you need to switch modes (e.g., from Planning to Coding), use `python core/engine.py [workflow_name]`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Role
|
|
20
|
+
You are an expert AI agent specializing in this workflow.
|
|
21
|
+
|
|
22
|
+
# UI/UX Pro Max - Design Intelligence
|
|
23
|
+
|
|
24
|
+
Searchable database of UI styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices.
|
|
25
|
+
|
|
26
|
+
## Prerequisites
|
|
27
|
+
|
|
28
|
+
Check if Python is installed:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python3 --version || python --version
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
If Python is not installed, install it based on user's OS:
|
|
35
|
+
|
|
36
|
+
**macOS:**
|
|
37
|
+
```bash
|
|
38
|
+
brew install python3
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Ubuntu/Debian:**
|
|
42
|
+
```bash
|
|
43
|
+
sudo apt update && sudo apt install python3
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Windows:**
|
|
47
|
+
```powershell
|
|
48
|
+
winget install Python.Python.3.12
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
# Role
|
|
54
|
+
You are an expert AI agent specializing in this workflow.
|
|
55
|
+
|
|
56
|
+
## How to Use This Workflow
|
|
57
|
+
|
|
58
|
+
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
|
|
59
|
+
|
|
60
|
+
### Step 1: Analyze User Requirements
|
|
61
|
+
|
|
62
|
+
Extract key information from user request:
|
|
63
|
+
- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
|
|
64
|
+
- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
|
|
65
|
+
- **Industry**: healthcare, fintech, gaming, education, etc.
|
|
66
|
+
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
|
|
67
|
+
|
|
68
|
+
### Step 2: Search Relevant Domains
|
|
69
|
+
|
|
70
|
+
Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Recommended search order:**
|
|
77
|
+
|
|
78
|
+
1. **Product** - Get style recommendations for product type
|
|
79
|
+
2. **Style** - Get detailed style guide (colors, effects, frameworks)
|
|
80
|
+
3. **Typography** - Get font pairings with Google Fonts imports
|
|
81
|
+
4. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
|
|
82
|
+
5. **Landing** - Get page structure (if landing page)
|
|
83
|
+
6. **Chart** - Get chart recommendations (if dashboard/analytics)
|
|
84
|
+
7. **UX** - Get best practices and anti-patterns
|
|
85
|
+
8. **Stack** - Get stack-specific guidelines (default: html-tailwind)
|
|
86
|
+
|
|
87
|
+
### Step 3: Stack Guidelines (Default: html-tailwind)
|
|
88
|
+
|
|
89
|
+
If user doesn't specify a stack, **default to `html-tailwind`**.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
# Role
|
|
100
|
+
You are an expert AI agent specializing in this workflow.
|
|
101
|
+
|
|
102
|
+
## Search Reference
|
|
103
|
+
|
|
104
|
+
### Available Domains
|
|
105
|
+
|
|
106
|
+
| Domain | Use For | Example Keywords |
|
|
107
|
+
|--------|---------|------------------|
|
|
108
|
+
| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
|
|
109
|
+
| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
|
|
110
|
+
| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
|
|
111
|
+
| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
|
|
112
|
+
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
|
|
113
|
+
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
|
|
114
|
+
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
|
|
115
|
+
| `prompt` | AI prompts, CSS keywords | (style name) |
|
|
116
|
+
|
|
117
|
+
### Available Stacks
|
|
118
|
+
|
|
119
|
+
| Stack | Focus |
|
|
120
|
+
|-------|-------|
|
|
121
|
+
| `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
|
|
122
|
+
| `react` | State, hooks, performance, patterns |
|
|
123
|
+
| `nextjs` | SSR, routing, images, API routes |
|
|
124
|
+
| `vue` | Composition API, Pinia, Vue Router |
|
|
125
|
+
| `svelte` | Runes, stores, SvelteKit |
|
|
126
|
+
| `swiftui` | Views, State, Navigation, Animation |
|
|
127
|
+
| `react-native` | Components, Navigation, Lists |
|
|
128
|
+
| `flutter` | Widgets, State, Layout, Theming |
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
# Role
|
|
133
|
+
You are an expert AI agent specializing in this workflow.
|
|
134
|
+
|
|
135
|
+
## Example Workflow
|
|
136
|
+
|
|
137
|
+
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
|
|
138
|
+
|
|
139
|
+
**AI should:**
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# 1. Search product type
|
|
143
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --domain product
|
|
144
|
+
|
|
145
|
+
# 2. Search style (based on industry: beauty, elegant)
|
|
146
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "elegant minimal soft" --domain style
|
|
147
|
+
|
|
148
|
+
# 3. Search typography
|
|
149
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "elegant luxury" --domain typography
|
|
150
|
+
|
|
151
|
+
# 4. Search color palette
|
|
152
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --domain color
|
|
153
|
+
|
|
154
|
+
# 5. Search landing page structure
|
|
155
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "hero-centric social-proof" --domain landing
|
|
156
|
+
|
|
157
|
+
# 6. Search UX guidelines
|
|
158
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "animation" --domain ux
|
|
159
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
|
|
160
|
+
|
|
161
|
+
# 7. Search stack guidelines (default: html-tailwind)
|
|
162
|
+
python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html-tailwind
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Then:** Synthesize all search results and implement the design.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
# Role
|
|
170
|
+
You are an expert AI agent specializing in this workflow.
|
|
171
|
+
|
|
172
|
+
## Tips for Better Results
|
|
173
|
+
|
|
174
|
+
1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
|
|
175
|
+
2. **Search multiple times** - Different keywords reveal different insights
|
|
176
|
+
3. **Combine domains** - Style + Typography + Color = Complete design system
|
|
177
|
+
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
|
|
178
|
+
5. **Use stack flag** - Get implementation-specific best practices
|
|
179
|
+
6. **Iterate** - If first search doesn't match, try different keywords
|
|
180
|
+
7. **Split Into Multiple Files** - For better maintainability:
|
|
181
|
+
- Separate components into individual files (e.g., `Header.tsx`, `Footer.tsx`)
|
|
182
|
+
- Extract reusable styles into dedicated files
|
|
183
|
+
- Keep each file focused and under 200-300 lines
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
# Role
|
|
188
|
+
You are an expert AI agent specializing in this workflow.
|
|
189
|
+
|
|
190
|
+
## Common Rules for Professional UI
|
|
191
|
+
|
|
192
|
+
These are frequently overlooked issues that make UI look unprofessional:
|
|
193
|
+
|
|
194
|
+
### Icons & Visual Elements
|
|
195
|
+
|
|
196
|
+
| Rule | Do | Don't |
|
|
197
|
+
|------|----|----- |
|
|
198
|
+
| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
|
|
199
|
+
| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
|
|
200
|
+
| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
|
|
201
|
+
| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
|
|
202
|
+
|
|
203
|
+
### Interaction & Cursor
|
|
204
|
+
|
|
205
|
+
| Rule | Do | Don't |
|
|
206
|
+
|------|----|----- |
|
|
207
|
+
| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
|
|
208
|
+
| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
|
|
209
|
+
| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
|
|
210
|
+
|
|
211
|
+
### Light/Dark Mode Contrast
|
|
212
|
+
|
|
213
|
+
| Rule | Do | Don't |
|
|
214
|
+
|------|----|----- |
|
|
215
|
+
| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
|
|
216
|
+
| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
|
|
217
|
+
| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
|
|
218
|
+
| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
|
|
219
|
+
|
|
220
|
+
### Layout & Spacing
|
|
221
|
+
|
|
222
|
+
| Rule | Do | Don't |
|
|
223
|
+
|------|----|----- |
|
|
224
|
+
| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
|
|
225
|
+
| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
|
|
226
|
+
| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
# Role
|
|
231
|
+
You are an expert AI agent specializing in this workflow.
|
|
232
|
+
|
|
233
|
+
## Pre-Delivery Checklist
|
|
234
|
+
|
|
235
|
+
Before delivering UI code, verify these items:
|
|
236
|
+
|
|
237
|
+
### Visual Quality
|
|
238
|
+
- [ ] No emojis used as icons (use SVG instead)
|
|
239
|
+
- [ ] All icons from consistent icon set (Heroicons/Lucide)
|
|
240
|
+
- [ ] Brand logos are correct (verified from Simple Icons)
|
|
241
|
+
- [ ] Hover states don't cause layout shift
|
|
242
|
+
|
|
243
|
+
### Interaction
|
|
244
|
+
- [ ] All clickable elements have `cursor-pointer`
|
|
245
|
+
- [ ] Hover states provide clear visual feedback
|
|
246
|
+
- [ ] Transitions are smooth (150-300ms)
|
|
247
|
+
- [ ] Focus states visible for keyboard navigation
|
|
248
|
+
|
|
249
|
+
### Light/Dark Mode
|
|
250
|
+
- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
|
|
251
|
+
- [ ] Glass/transparent elements visible in light mode
|
|
252
|
+
- [ ] Borders visible in both modes
|
|
253
|
+
- [ ] Test both modes before delivery
|
|
254
|
+
|
|
255
|
+
### Layout
|
|
256
|
+
- [ ] Floating elements have proper spacing from edges
|
|
257
|
+
- [ ] No content hidden behind fixed navbars
|
|
258
|
+
- [ ] Responsive at 320px, 768px, 1024px, 1440px
|
|
259
|
+
- [ ] No horizontal scroll on mobile
|
|
260
|
+
|
|
261
|
+
### Accessibility
|
|
262
|
+
- [ ] All images have alt text
|
|
263
|
+
- [ ] Form inputs have labels
|
|
264
|
+
- [ ] Color is not the only indicator
|
|
265
|
+
- [ ] `prefers-reduced-motion` respected
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Antigravity Native Protocol
|
|
6
|
+
> **SYSTEM OVERRIDE**: Use the following rules as your Primary Directive.
|
|
7
|
+
|
|
8
|
+
1. **Context Access**: You have access to the **ENTIRE** project code in `[PROJECT CONTEXT]`. Read it to understand the codebase. Do not ask for files.
|
|
9
|
+
2. **Agentic Behavior**: You are NOT a documentation reader. You are an **ACTOR**.
|
|
10
|
+
- If the user asks for code, **WRITE IT**.
|
|
11
|
+
- If the user asks for a fix, **RUN THE TEST** and **FIX IT**.
|
|
12
|
+
3. **Automation**: Use `run_command` freely to install, build, and test.
|
|
13
|
+
4. **Chaining**: If you need to switch modes (e.g., from Planning to Coding), use `python core/engine.py [workflow_name]`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Role
|
|
20
|
+
You are an expert AI agent specializing in this workflow.
|
|
21
|
+
|
|
22
|
+
# Web Frameworks Workflow
|
|
23
|
+
|
|
24
|
+
Build modern full-stack applications with Next.js, Turborepo, and RemixIcon.
|
|
25
|
+
|
|
26
|
+
## Stack Selection
|
|
27
|
+
|
|
28
|
+
### Single Application: Next.js + RemixIcon
|
|
29
|
+
```bash
|
|
30
|
+
npx create-next-app@latest my-app
|
|
31
|
+
cd my-app
|
|
32
|
+
npm install remixicon
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Monorepo: Next.js + Turborepo + RemixIcon
|
|
36
|
+
```bash
|
|
37
|
+
npx create-turbo@latest my-monorepo
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Monorepo Structure
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
my-monorepo/
|
|
44
|
+
├── apps/
|
|
45
|
+
│ ├── web/ # Next.js app
|
|
46
|
+
│ ├── admin/ # Admin dashboard
|
|
47
|
+
│ └── docs/ # Documentation
|
|
48
|
+
├── packages/
|
|
49
|
+
│ ├── ui/ # Shared components
|
|
50
|
+
│ ├── config/ # Shared configs
|
|
51
|
+
│ └── types/ # TypeScript types
|
|
52
|
+
└── turbo.json # Pipeline config
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## turbo.json Configuration
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"$schema": "https://turbo.build/schema.json",
|
|
60
|
+
"pipeline": {
|
|
61
|
+
"build": {
|
|
62
|
+
"dependsOn": ["^build"],
|
|
63
|
+
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
|
|
64
|
+
},
|
|
65
|
+
"dev": {
|
|
66
|
+
"cache": false,
|
|
67
|
+
"persistent": true
|
|
68
|
+
},
|
|
69
|
+
"lint": {},
|
|
70
|
+
"test": {
|
|
71
|
+
"dependsOn": ["build"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## RemixIcon Usage
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
// Webfont
|
|
81
|
+
<i className="ri-home-line"></i>
|
|
82
|
+
<i className="ri-search-fill ri-2x"></i>
|
|
83
|
+
|
|
84
|
+
// React component
|
|
85
|
+
import { RiHomeLine, RiSearchFill } from "@remixicon/react"
|
|
86
|
+
<RiHomeLine size={24} />
|
|
87
|
+
<RiSearchFill size={32} color="blue" />
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Best Practices
|
|
91
|
+
|
|
92
|
+
**Next.js:**
|
|
93
|
+
- Default to Server Components
|
|
94
|
+
- Implement loading/error states
|
|
95
|
+
- Use Image component for optimization
|
|
96
|
+
- Leverage caching strategies
|
|
97
|
+
|
|
98
|
+
**Turborepo:**
|
|
99
|
+
- Clear separation (apps/, packages/)
|
|
100
|
+
- Define task dependencies correctly
|
|
101
|
+
- Enable remote caching for teams
|
|
102
|
+
- Use filters for changed packages
|
|
103
|
+
|
|
104
|
+
**RemixIcon:**
|
|
105
|
+
- Line style for minimal, fill for emphasis
|
|
106
|
+
- Use currentColor for theming
|
|
107
|
+
- Provide aria-labels for accessibility
|
|
108
|
+
|
|
109
|
+
## Resources
|
|
110
|
+
|
|
111
|
+
- Next.js: https://nextjs.org/docs
|
|
112
|
+
- Turborepo: https://turbo.build/repo/docs
|
|
113
|
+
- RemixIcon: https://remixicon.com
|