Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create distinctive, production-grade frontend interfaces with exceptional design quality. Use when building web components, pages, or applications that need creative, polished aesthetics.
.claude/skills/aiskillstore-frontend-design/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 352% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 143% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 292% | 0% |
| case-07 | ✓→✗ | ▼ Worse | 162% | 0% |
此技能指导创建独特的生产级前端界面,避免平庸的"AI 粗糙"美学。实现真正可用的代码,并高度关注美学细节和创意选择。
使用此技能当用户请求:
关键触发词: Web 组件、页面、应用、网站、着陆页、仪表盘、React 组件、HTML/CSS、UI 设计、美化、前端
在编写代码之前,必须进行深入的设计思考。每个界面都应该是独特的、有意图的、令人难忘的。
在实现任何代码之前,回答以下问题:
选择一个明确且大胆的美学方向。不要选择"现代简约"这样的通用描述,而是选择极致的风格:
风格选项(但不限于这些):
关键: 选择清晰的概念方向并精准执行。大胆的极致主义和精致的极简主义都有效——关键在于意图,而不是强度。
原则: 字体选择是设计的灵魂。
Do:
Don't:
推荐字体来源:
示例字体组合:
css/* 极简编辑风格 */ --font-heading: 'Playfair Display', serif; --font-body: 'Source Sans Pro', sans-serif; /* 现代科技风格 */ --font-heading: 'Space Mono', monospace; --font-body: 'DM Sans', sans-serif; /* 优雅奢华风格 */ --font-heading: 'Cormorant Garamond', serif; --font-body: 'Lato', sans-serif;
原则: 颜色定义情绪和品牌。
Do:
Don't:
示例主题:
css:root { /* 极简黑白 */ --color-primary: #000000; --color-secondary: #ffffff; --color-accent: #ff3366; /* 复古未来 */ --color-primary: #1a1a2e; --color-secondary: #16213e; --color-accent: #00fff5; --color-highlight: #ff006e; /* 自然有机 */ --color-primary: #2d6a4f; --color-secondary: #52b788; --color-accent: #ffc857; }
原则: 动画应该增强体验,而不是分散注意力。
Do:
animation-delay 实现元素逐个显示Don't:
prefers-reduced-motion 媒体查询示例动画:
css/* 页面加载 - 元素逐个淡入 */ .fade-in-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; } .fade-in-up:nth-child(1) { animation-delay: 0.1s; } .fade-in-up:nth-child(2) { animation-delay: 0.2s; } .fade-in-up:nth-child(3) { animation-delay: 0.3s; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* 悬停效果 */ .card { transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
原则: 布局应该引导视线,创造视觉节奏。
Do:
Don't:
示例布局技巧:
css/* 不对称网格 */ .grid-asymmetric { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; } /* 重叠效果 */ .overlap-container { position: relative; } .overlap-item { position: absolute; z-index: 2; transform: translate(-20%, -20%); } /* 对角线流程 */ .diagonal-section { transform: skewY(-3deg); padding: 100px 0; } .diagonal-section > * { transform: skewY(3deg); }
原则: 背景营造氛围和深度。
Do:
Don't:
示例背景效果:
css/* 渐变网格背景 */ .gradient-grid { background: linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(135deg, #667eea 0%, #764ba2 100%); background-size: 50px 50px, 50px 50px, 100% 100%; } /* 噪点纹理 */ .noise-texture { position: relative; } .noise-texture::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"); pointer-events: none; } /* 玻璃态效果 */ .glass-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
绝对禁止的元素:
如何避免:
关键原则: 代码复杂度应与设计愿景相匹配。
jsx// 示例:复杂的动画卡片 <motion.div initial={{ opacity: 0, scale: 0.8, rotateX: -15 }} animate={{ opacity: 1, scale: 1, rotateX: 0 }} whileHover={{ scale: 1.05, rotateY: 5, boxShadow: "0 25px 50px rgba(0,0,0,0.2)" }} transition={{ type: "spring", stiffness: 300, damping: 20 }} > {/* 复杂内容 */} </motion.div>
css/* 示例:精致的极简主义 */ .minimal-card { padding: 60px; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); transition: border-color 0.3s ease; } .minimal-card:hover { border-color: rgba(0,0,0,0.2); } .minimal-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 20px 0; }
用户请求: "帮我创建一个 SaaS 产品的着陆页"
设计思考:
实现重点:
用户请求: "创建一个数据分析仪表盘"
设计思考:
实现重点:
用户请求: "创建一套自定义按钮组件"
设计思考:
实现重点:
<header>, <nav>, <main>, <article>)!important.box1, .container2)在完成实现后,验证以下内容:
> 创造性诠释是关键。不要问用户"你想要什么颜色?",而是基于上下文做出大胆的设计决策。每个设计都应该是独一无二的。在不同项目之间变化浅色/深色主题、字体和美学风格。
> 追求卓越,而非完美。一个有强烈个性的设计胜过一个"安全"但平庸的设计。敢于尝试,为用户带来惊喜。
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 45,487 | 45,183 | -1% | 1 | 1 | 0% | 8,230 | 12,683 | +54% | 0 | 0 | — |
case-02 | fail→fail | 36,634 | 37,184 | +2% | 1 | 1 | 0% | 8,237 | 12,690 | +54% | 0 | 0 | — |
case-03 | fail→fail | 33,542 | 39,230 | +17% | 1 | 1 | 0% | 6,963 | 12,691 | +82% | 0 | 0 | — |
case-04 | pass→pass | 34,925 | 37,401 | +7% | 1 | 1 | 0% | 6,193 | 12,695 | +105% | 0 | 0 | — |
case-05 | fail→fail | 16,004 | 46,205 | +189% | 1 | 1 | 0% | 2,045 | 9,806 | +380% | 0 | 0 | — |
case-06 | fail→fail | 42,514 | 34,952 | -18% | 1 | 1 | 0% | 3,420 | 10,669 | +212% | 0 | 0 | — |
case-07 | pass→fail | 22,103 | 42,930 | +94% | 1 | 1 | 0% | 4,841 | 12,692 | +162% | 0 | 0 | — |
case-08 | fail→fail | 36,142 | 68,770 | +90% | 1 | 1 | 0% | 6,316 | 12,687 | +101% | 0 | 0 | — |
case-09 | pass→pass | 11,865 | 29,497 | +149% | 1 | 1 | 0% | 2,466 | 10,238 | +315% | 0 | 0 | — |
case-10 | fail→fail | 22,399 | 22,053 | -2% | 1 | 1 | 0% | 3,157 | 7,575 | +140% | 0 | 0 | — |
case-11 | fail→pass | 15,773 | 26,631 | +69% | 1 | 1 | 0% | 2,144 | 9,701 | +352% | 0 | 0 | — |
case-12 | pass→pass | 14,956 | 23,931 | +60% | 1 | 1 | 0% | 2,294 | 7,255 | +216% | 0 | 0 | — |
case-13 | fail→fail | 21,581 | 39,832 | +85% | 1 | 1 | 0% | 3,376 | 12,676 | +275% | 0 | 0 | — |
case-14 | fail→fail | 32,363 | 41,120 | +27% | 1 | 1 | 0% | 5,746 | 12,672 | +121% | 0 | 0 | — |
case-15 | fail→fail | 10,032 | 63,695 | +535% | 1 | 1 | 0% | 921 | 8,824 | +858% | 0 | 0 | — |
case-16 | pass→pass | 31,324 | 43,382 | +38% | 1 | 1 | 0% | 5,716 | 12,674 | +122% | 0 | 0 | — |
case-17 | fail→pass | 30,127 | 43,407 | +44% | 1 | 1 | 0% | 5,212 | 12,665 | +143% | 0 | 0 | — |
case-18 | fail→pass | 14,743 | 41,698 | +183% | 1 | 1 | 0% | 3,233 | 12,679 | +292% | 0 | 0 | — |
case-19 | pass→fail | 31,369 | 41,281 | +32% | 1 | 1 | 0% | 5,763 | 12,670 | +120% | 0 | 0 | — |
case-20 | pass→pass | 29,862 | 32,438 | +9% | 1 | 1 | 0% | 5,793 | 11,650 | +101% | 0 | 0 | — |
case-21 | pass→pass | 19,156 | 16,615 | -13% | 1 | 1 | 0% | 2,858 | 6,768 | +137% | 0 | 0 | — |
case-22 | pass→pass | 26,317 | 28,230 | +7% | 1 | 1 | 0% | 4,518 | 9,390 | +108% | 0 | 0 | — |
case-23 | pass→pass | 17,637 | 28,898 | +64% | 1 | 1 | 0% | 2,547 | 9,708 | +281% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 23 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.