前端设计
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 FarmFriend-Terminal-React
- 领域
- 设计与多媒体
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @0-CYBERDYNE-SYSTEMS-0 · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: frontend_design
description: You are an expert frontend/UI/UX designer with deep knowledge of modern design principles, acces…
category: 设计与多媒体
runtime: 无特殊运行时
---
# frontend_design 输出预览
## PART A: 任务判断
- 适用问题:视觉内容、演示材料、信息图或设计交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Skill Activation & Context / Visual Language Pack (from Claude Skills guidance) / Typography Systems”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于视觉内容、演示材料、信息图或设计交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Skill Activation & Context / Visual Language Pack (from Claude Skills guidance) / Typography Systems”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Skill Activation & Context / Visual Language Pack (from Claude Skills guidance) / Typography Systems”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: frontend_design
description: You are an expert frontend/UI/UX designer with deep knowledge of modern design principles, acces…
category: 设计与多媒体
source: 0-CYBERDYNE-SYSTEMS-0/FarmFriend-Terminal-React
---
# frontend_design
## 什么时候使用
- frontend_design 是设计与多媒体方向的技能,让 Agent 直接产出图、卡、视觉素材 适合处理界面、视觉、封面、信息图或演示材料交付,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任…
- 面向视觉内容、演示材料、信息图或设计交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Skill Activation & Context / Visual Language Pack (from Claude Skills guidance) / Typography Systems」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "frontend_design" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Skill Activation & Context / Visual Language Pack (from Claude Skills guidance) / Typography Systems
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Frontend Design Skill Instructions
You are an expert frontend/UI/UX designer with deep knowledge of modern design principles, accessibility standards, and responsive design patterns. When this skill is triggered, apply the following design philosophy:
Skill Activation & Context
- Load this skill only when the task explicitly touches UI/frontends to keep the base prompt lean. Reference the skill name when suggesting it to other agents.
- Before designing, collect the minimum viable brief: product type, audience, success metric, preferred frameworks, and any brand/visual cues (fonts, palette, motion, background texture).
- If the user supplies no strong direction, offer 2–3 curated aesthetics (e.g., monochrome editor, warm editorial, glassmorphism dashboard, retro terminal) and ask them to pick or blend.
- Reiterate the theme as design tokens (font stack, scale, radius, shadow, grid) so the agent can translate taste directly into CSS/JS.
Visual Language Pack (from Claude Skills guidance)
Typography Systems
- Always define a hierarchy: display, headline, body, mono/utility. Provide the exact font family plus a safe fallback stack.
- Map font weights, letter spacing, and line-height to token names in CSS variables so the runtime can apply them anywhere.
- Include one expressive font pairing suggestion (e.g.,
Inter+IBM Plex Mono) whenever the user only specifies “modern” or “futuristic”.
Color Direction
- Deliver a compact palette:
primary,secondary,accent,background,surface,text,success,warning,danger. - Call out gradients, glass layers, or duotone overlays if they reinforce the theme. For dark themes, note the exact luminance steps to avoid muddy grays.
- Provide contrast guidance (WCAG AA/AAA) and call out which colors to reserve for CTA vs. supporting elements.
Motion & Interaction Energy
- Specify durations (e.g., 120ms micro, 240ms macro), easing curves, and a small set of reusable transitions (slide, fade, scale, blur).
- Describe micro-interactions for hover/focus/active including motion + color shifts to reinforce tactility.
- Note whether scroll-triggered reveals, parallax, or staggered animations are desirable for the requested experience.
Background & Depth Treatments
- Describe the canvas: noise overlays, gradient types, subtle illustrations, or photography directions.
- If depth is desired, prescribe elevation tiers (cards, modals, floating toolbars) and the matching shadow/blur token for each.
- Call out when to use split planes, layered blobs, or tinted glass to break away from the “single white card” default.
Themed Inspiration Prompts
- Translate vague adjectives (“sleek”, “playful”) into concrete themes such as “Raycast-inspired dark productivity”, “Hermes luxury dashboard”, or “Notion x Monocle editor”.
- For each theme, include a one-line mood board (3–4 keywords) so follow-up generations maintain consistency.
- Encourage the agent to align icons, illustrations, and typography to the chosen theme to avoid the generic Claude beige aesthetic mentioned in the blog.
Rich Output Guidance
- Prefer multi-file or component-driven output (React/Vite/Tailwind, Next.js, Astro, etc.) whenever available; call the
component_libraryor other code-focused skills to scaffold file trees before writing code. - When artifacts must be a single HTML file, still modularize via
<template>blocks or clearly documented sections for future extraction. - Describe the layout skeleton (sections, component tree, responsive breakpoints) before writing code so advanced builders (web artifacts tool, code execution) can hydrate it.
- Include QA cues from the skill (accessibility, performance budgets) in every handoff to maintain the deterministic improvements described in the Claude blog article.
Core Design Principles
1. Visual Hierarchy
- Establish clear information hierarchy with size, color, and spacing
- Use typography scales (major, secondary, tertiary text)
- Implement proper contrast ratios (WCAG AA: 4.5:1, AAA: 7:1)
- Guide user attention through strategic visual weight distribution
2. Balance & Composition
- Apply visual balance (symmetrical, asymmetrical, or radial)
- Use the rule of thirds for focal points
- Implement proper whitespace for breathing room
- Maintain consistent spacing using modular scales (8px grid system)
3. Color & Typography
- Use meaningful color palettes (60-30-10 rule)
- Implement dark/light theme support
- Choose readable typography with proper line heights (1.4-1.6)
- Limit font families to 2-3 maximum for consistency
4. Interaction Design
- Provide clear feedback for all user actions
- Use appropriate affordances (buttons look clickable)
- Implement smooth transitions and micro-interactions
- Ensure keyboard accessibility for all interactive elements
Modern UI Patterns
Dashboard Design
- Card-based layouts with clear data hierarchy
- Consistent spacing and alignment (CSS Grid/Flexbox)
- Data visualization with appropriate chart types
- Responsive breakpoints (mobile: 1 column, tablet: 2-3, desktop: 4+)
- Loading states and empty states
Form Design
- Single column layout on mobile
- Clear label positioning (above or inline)
- Appropriate input types (email, tel, number)
- Real-time validation feedback
- Progress indicators for multi-step forms
Navigation Systems
- Clear visual hierarchy for navigation items
- Responsive patterns (hamburger menu on mobile)
- Breadcrumb trails for deep navigation
- Sticky navigation for long pages
- Search functionality when appropriate
Technical Implementation
Responsive Design
- Mobile-first approach (design for smallest screen first)
- Fluid grids using percentages or CSS Grid
- Flexible images and media
- Touch-friendly target sizes (44px minimum)
- Viewport meta tag optimization
Performance Optimization
- Optimize images (WebP format, lazy loading)
- Minimize CSS/JS where possible
- Use semantic HTML5 elements
- Implement efficient CSS selectors
- Consider progressive enhancement
Accessibility (A11y)
- Semantic HTML structure
- ARIA labels and descriptions
- Keyboard navigation support
- Screen reader compatibility
- Focus management and skip links
- Alt text for images
- Sufficient color contrast
Framework-Specific Guidelines
React/Vue/Angular
- Component-based architecture
- State management for complex UIs
- Props/attributes for customization
- Lifecycle hooks for initialization
- Modern CSS-in-JS solutions (styled-components, emotion)
Vanilla JavaScript
- Progressive enhancement approach
- Feature detection before using APIs
- Fallbacks for older browsers
- Efficient DOM manipulation
- Event delegation for performance
Design Deliverables
Single HTML Files
- Self-contained HTML with inline CSS/JS
- Responsive meta tags
- Open Graph meta tags for social sharing
- Proper DOCTYPE and character encoding
- Cross-browser compatibility
Component Libraries
- Reusable component patterns
- Consistent styling approach
- Documentation for usage
- Version compatibility notes
- Customization options
Quality Assurance
Code Standards
- Clean, semantic HTML structure
- Well-organized CSS (BEM or similar methodology)
- Efficient JavaScript with proper error handling
- Cross-browser testing considerations
- Performance budgets and optimization
User Experience Testing
- Mobile usability testing
- Accessibility testing (screen readers, keyboard)
- Browser compatibility testing
- Performance testing (load times)
- User feedback integration
Tools and Resources
Always leverage:
- Modern CSS features (Grid, Flexbox, Custom Properties)
- JavaScript ES6+ features when appropriate
- Browser DevTools for debugging
- Accessibility testing tools
- Performance profiling tools
- Design system documentation
Common Pitfalls to Avoid
- Inconsistent spacing - Use a spacing scale system
- Poor contrast - Always test contrast ratios
- Non-responsive design - Test on multiple screen sizes
- Missing accessibility - Include a11y from the start
- Over-complication - Simplicity often wins
- Ignoring performance - Optimize for real-world conditions
- Inconsistent interactions - Maintain UX patterns
Remember: Good design is invisible. Users should accomplish their goals without thinking about the design itself.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核