generating-components
1
总安装量
1
周安装量
#48885
全站排名
安装命令
npx skills add https://github.com/fusengine/agents --skill generating-components
Agent 安装分布
trae-cn
1
cursor
1
Skill 文档
Generating Components
Agent Workflow (MANDATORY)
Before ANY component generation, launch in parallel:
- fuse-ai-pilot:explore-codebase – Analyze existing UI patterns, colors, typography
- fuse-ai-pilot:research-expert – Verify latest component patterns via Context7
- mcp__magic__21st_magic_component_inspiration – Search 21st.dev for inspiration
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
| Feature | Description |
|---|---|
| Gemini Design MCP | AI-powered frontend generation (create, modify, snippet) |
| 21st.dev | Component inspiration and builder |
| shadcn/ui | Copy-paste component library |
| Anti-AI-Slop | Mandatory rules against generic designs |
Critical Rules
- ALWAYS use Gemini Design – Never write UI code manually
- Search inspiration first – 21st.dev before coding
- Match existing tokens – Analyze codebase before generating
- No forbidden fonts – Inter, Roboto, Arial are BANNED
- Framer Motion required – Every component needs animations
Architecture
components/
âââ ui/
â âââ Button.tsx (~40 lines)
â âââ Card.tsx (~50 lines)
â âââ HeroSection.tsx (~80 lines)
âââ sections/
âââ HeroBackground.tsx (~30 lines)
âââ FeatureGrid.tsx (~60 lines)
â See hero-section.md for complete example
Reference Guide
Concepts
| Topic | Reference | When to Consult |
|---|---|---|
| Gemini Workflow | gemini-design-workflow.md | MANDATORY – Read first |
| 21st.dev | 21st-dev.md | Component inspiration |
| shadcn/ui | shadcn.md | Component library |
| Buttons | buttons-guide.md | Button states, sizing |
| Forms | forms-guide.md | Validation, layout |
| Cards | cards-guide.md | Card patterns |
| Icons | icons-guide.md | Icon usage |
| UI Design | ui-visual-design.md | 2026 trends, animations |
| Grids | grids-layout.md | Layout system |
| Patterns | design-patterns.md | Common patterns |
Templates
| Template | When to Use |
|---|---|
| hero-section.md | Landing page hero |
| hero-glassmorphism.md | Glassmorphism hero |
| feature-grid.md | Features showcase |
| pricing-card.md | Pricing tiers |
| contact-form.md | Contact forms |
| testimonial-card.md | Reviews/testimonials |
| stats-section.md | Stats with counters |
| faq-accordion.md | FAQ sections |
Quick Reference
Gemini Design Tools
// Create full view from scratch
mcp__gemini-design__create_frontend({
prompt: "Hero section with glassmorphism",
designSystem: "contents of design-system.md"
})
// Modify existing component
mcp__gemini-design__modify_frontend({
existingCode: "<Button>...",
prompt: "Add hover animation"
})
// Generate snippet
mcp__gemini-design__snippet_frontend({
prompt: "Loading spinner"
})
â See gemini-design-workflow.md for complete workflow
Anti-AI-Slop Table
| FORBIDDEN | USE INSTEAD |
|---|---|
| Inter, Roboto, Arial | Clash Display, Satoshi, Syne |
| Purple/pink gradients | CSS variables, sharp accents |
| Border-left indicators | Icon + bg-*/10 rounded |
| Flat backgrounds | Glassmorphism, gradient orbs |
| No animations | Framer Motion stagger |
â See ui-visual-design.md for 2026 trends
Best Practices
DO
- Read gemini-design-workflow.md FIRST
- Search 21st.dev for inspiration before coding
- Match existing design tokens exactly
- Use Framer Motion for all animations
- Split components into <100 line files
DON’T
- Write UI code manually (use Gemini Design)
- Use forbidden fonts (Inter, Roboto, Arial)
- Skip inspiration search phase
- Forget hover/focus states
- Create components without animations
Framework Delegation (AFTER Gemini)
After generating UI, ALWAYS delegate to framework expert for SOLID validation.
Detection â Expert
| Project Files | Delegate To |
|---|---|
next.config.* |
fuse-nextjs:nextjs-expert |
package.json + React |
fuse-react:react-expert |
composer.json |
fuse-laravel:laravel-expert |
Why Delegate?
design-expert handles:
- â Beautiful UI (Anti-AI-Slop)
- â Animations (Framer Motion)
- â Accessibility (WCAG 2.2)
Framework expert handles:
- â SOLID compliance (files < 100 lines)
- â Framework patterns (App Router, Server Components)
- â Integration (Better Auth, Prisma, TanStack)
Delegation Workflow
1. Generate component with Gemini Design
2. Detect framework from project files
3. Launch Task with framework expert
4. Expert validates SOLID + patterns
5. sniper runs final validation