Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

frontend-design前端设计

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

2,448

周安装

102

GitHub Stars

3

下载量

816
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:frontend-design(前端设计)
来源仓库:https://github.com/dedalus-erp-pas/foundation-skills
仓库路径:skills/frontend-design
安装命令:
npx skills add https://github.com/dedalus-erp-pas/foundation-skills --skill frontend-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dedalus-erp-pas/foundation-skills --skill frontend-design

简介

frontend-design 创建生产级前端界面,自动适配项目现有设计系统与框架约定。

  • 先扫描代码库上下文,再选择布局、动效和视觉方向,确保创意符合工程约束。
  • 支持组件生成、页面结构和交互逻辑设计,但需用户提供具体需求而非泛化描述。
  • 输出前必须验证与现有系统的兼容性,禁止添加装饰性元素而忽略功能性要求。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Frontend Design Skill

This skill guides creation of distinctive, production-grade frontend interfaces. It automatically detects the project's existing design system and frontend framework, respects them first, then channels creativity through composition, layout, and motion.

The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.

Step 1: Codebase Context Discovery (MANDATORY)

Before writing any code or choosing any aesthetic direction, scan the codebase. This step is non-negotiable and runs every time.

What to Detect

  1. Frontend framework — Check package.json (or equivalent) for: react, vue, angular, svelte, next, nuxt, astro, solid-js
  2. Component library — Check dependencies for: PrimeVue, shadcn/ui, Vuetify, MUI, Chakra UI, Ant Design, Radix, Mantine, Quasar, Element Plus, Headless UI
  3. CSS framework / methodology — Check for:

- Tailwind: tailwind.config.* files or @tailwind directives - CSS Modules: *.module.css files - Styled-components / Emotion: imports in component files - SCSS/SASS: *.scss files, variable files - CSS-in-JS: check imports

  1. Design tokens — Scan for:

- CSS custom properties files (variables.css, tokens.css, :root blocks) - Tailwind theme extensions in tailwind.config.* - SCSS variable files (_variables.scss, _tokens.scss) - Theme configuration files

  1. Existing typography — Check for font declarations in:

- Entry points (index.html, _app.tsx, layout.tsx, nuxt.config.*, app.vue) - Global CSS files - Font import statements (Google Fonts, local fonts)

  1. Existing color palette — Look for defined colors in theme files, CSS variables, Tailwind config
  2. Component patterns — Examine 2-3 existing components to understand:

- Naming conventions (PascalCase, kebab-case) - Directory structure - Styling approach used in practice

  1. Design system rules — Check for design system rules in CLAUDE.md, .cursor/rules, or other agent configuration files (the create-design-system-rules skill generates these)

Context Summary

After scanning, internally classify the project into one of three tiers:

TierConditionBehavior
Tier 1: GreenfieldNo framework, no component library, no design tokens (standalone HTML, one-off artifact, new project)Full creative freedom — proceed to Step 2 Path B
Tier 2: Framework presentFramework and/or CSS framework detected, but no established design system or component libraryUse framework idioms, express creativity through theming, layout, and composition
Tier 3: Design system presentComponent library + design tokens + established patterns detectedStrict adherence to existing system; creativity through composition, motion, and micro-interactions only

State your findings before proceeding. Example: "Detected: Vue 3 + PrimeVue + Tailwind CSS with custom theme. Tier 3 — I will use PrimeVue components and existing design tokens."

Step 2: Design Thinking

Path A: Design Within an Existing System (Tier 2 & 3)

When an existing design system or framework is detected, creative expression is channeled — not suppressed.

Hard constraints (NEVER violate):

  • NEVER import fonts that are not already in the project's font stack
  • NEVER override existing design tokens (CSS variables, Tailwind theme values, SCSS variables)
  • NEVER create components that duplicate existing library components (if the library has a Button, use it)
  • NEVER introduce a CSS methodology that differs from the project's approach (if the project uses Tailwind, use Tailwind — not inline styles or CSS Modules)
  • NEVER add external CDN links for styling resources not already used

Creative layer (WHERE distinctiveness lives):

  • Spatial composition — Unexpected layouts using the existing grid system: asymmetric arrangements, dramatic whitespace, overlapping sections, diagonal flow, grid-breaking hero areas
  • Motion and animation — Staggered reveals, scroll-triggered transitions, hover state choreography, page load orchestration. Use the project's animation approach (CSS transitions, Motion library, GSAP — whatever is already installed or appropriate for the framework)
  • Content hierarchy — Dramatic size contrasts within the existing type scale, bold use of font weight variations, creative letter-spacing, text-transform as a design tool
  • Color accent strategy — Within the existing palette, use dominant/accent relationships intentionally. A design system defines colors; this skill decides *how to deploy them* for maximum impact
  • Component composition — Combine existing primitives in unexpected ways: a DataTable with editorial-quality header treatment, a Card grid with magazine-style layout, a Form with conversational flow
  • Micro-interactions — Purposeful feedback on every interactive element: button press effects, input focus animations, loading state choreography, success/error transitions
  • Whitespace as design — Generous padding, breathing room between sections, whitespace that creates visual rhythm

Think like a designer at a company with an established brand: you don't replace the brand typeface — you create distinction through *how you compose* the existing elements.

Path B: Design From Scratch (Tier 1 — Greenfield)

When no existing system is detected, commit to a BOLD aesthetic direction:

  • Purpose: What problem does this interface solve? Who uses it?
  • Tone: Pick a clear aesthetic direction: Use these for inspiration but design one that is true to the aesthetic direction.

- Brutally minimal - Maximalist chaos - Retro-futuristic - Organic/natural - Luxury/refined - Playful/toy-like - Editorial/magazine - Brutalist/raw - Art deco/geometric - Soft/pastel - Industrial/utilitarian

  • Differentiation: What makes this UNFORGETTABLE? What's the one thing someone will remember?

CRITICAL: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work — the key is intentionality, not intensity.

Implementation Standards

For All Tiers

Implement working code that is:

  • Production-grade and functional
  • Cohesive with a clear visual point-of-view
  • Meticulously refined in every detail
  • Accessible (proper contrast ratios, semantic HTML, keyboard navigation)

For Tier 2 & 3 (Existing System)

  • Use the project's existing component library as the primary building block
  • Follow the project's file naming and directory conventions
  • Use the project's CSS methodology exclusively
  • Extend, don't replace: if you need a variant, extend the existing token system rather than hardcoding values
  • If a component you need doesn't exist in the library, build it following the library's patterns and conventions

For Tier 1 (Greenfield)

  • Choose fonts that are beautiful, unique, and interesting
  • Define a cohesive color system using CSS variables
  • Create a clear spacing scale
  • Establish consistent component patterns
  • Consider suggesting the create-design-system-rules skill to formalize the system

Frontend Aesthetics Guidelines

Typography

Tier 2 & 3: Use the project's established font stack. Create distinction through:

  • Dramatic size contrasts (within the existing type scale)
  • Variable font weight usage (if the project uses variable fonts)
  • Creative letter-spacing and text-transform
  • Line-height adjustments for visual rhythm
  • If the project uses Inter, make Inter look *incredible* — font choice is not the only lever

Tier 1 (Greenfield):

  • Choose fonts that are beautiful, unique, and interesting
  • Avoid generic fonts like Arial and system defaults
  • Pair a distinctive display font with a refined body font
  • NEVER converge on overused choices (Space Grotesk, Inter, Roboto)

Color & Theme

Tier 2 & 3: Work within the existing palette:

  • Use dominant/accent relationships with intention
  • Explore the full range of the existing palette (projects often have colors defined but underused)
  • Use opacity and transparency variations of existing colors for depth
  • Dark/light mode: follow the project's approach

Tier 1 (Greenfield):

  • Commit to a cohesive aesthetic
  • Use CSS variables for consistency
  • Dominant colors with sharp accents outperform timid, evenly-distributed palettes
  • Vary between light and dark themes

Motion & Animation

All Tiers (this is where distinctiveness thrives regardless of design system):

  • Use animations for effects and micro-interactions
  • Focus on high-impact moments: page load reveals with staggered animation-delay
  • Scroll-triggered animations and surprising hover states
  • Purposeful transitions on state changes (loading, success, error)
  • Use the project's preferred animation approach (CSS, Motion, GSAP, or framework-native)
  • Prioritize CSS-only solutions for simple transitions

Spatial Composition

All Tiers (composition creativity works within any system):

  • Unexpected layouts (even with standard components)
  • Asymmetric arrangements of symmetric components
  • Overlapping elements for depth
  • Grid-breaking hero sections
  • Generous negative space OR controlled density — both are valid
  • Diagonal flow and visual rhythm

Backgrounds & Visual Details

Tier 2 & 3: Create atmosphere using the existing design language:

  • Subtle gradients using existing palette colors
  • Background patterns built from the existing token system
  • Layered transparencies with existing colors
  • Shadows that match the project's elevation system

Tier 1 (Greenfield):

  • Gradient meshes
  • Noise textures
  • Geometric patterns
  • Layered transparencies
  • Dramatic shadows
  • Decorative borders
  • Custom cursors
  • Grain overlays

What to AVOID

Always Avoid (All Tiers)

  • Cookie-cutter layouts with no visual rhythm
  • Identical components stacked without variation
  • Animations that are purely decorative without purpose
  • Accessibility violations (poor contrast, missing labels, no keyboard support)

Tier 2 & 3: Avoid Breaking the System

  • Overriding design tokens with hardcoded values
  • Importing fonts not in the project's font stack
  • Creating one-off components that duplicate library components
  • Using a different CSS methodology than the project's
  • Introducing external dependencies without checking the project's approach
  • Ignoring existing component APIs and patterns

Tier 1 (Greenfield): Avoid Generic AI Aesthetics

  • Overused font families (Inter, Roboto, Arial, system fonts, Space Grotesk)
  • Cliched color schemes (particularly purple gradients on white backgrounds)
  • Predictable layouts and component patterns
  • Generic styling that lacks context-specific character

Design Variation

  • No two designs should look the same
  • Even within a design system, vary *how* components are composed across different pages
  • Apply different spatial compositions to different sections
  • Interpret requirements creatively — a dashboard can be editorial, a form can be conversational, a settings page can be elegant
  • The constraint of a design system should inspire more creativity, not less

Complementary Skills

  • create-design-system-rules — If no design system is detected (Tier 1), suggest running this skill first to establish one. If design system rules already exist, consume and obey them.
  • react-best-practices / vue-best-practices — Defer to these for framework idioms and component API patterns. This skill focuses on visual creativity, not framework best practices.
  • web-design-guidelines — Use for auditing and reviewing existing interfaces against quality standards.

Remember

First, understand your room. Then, be the most creative person in that room — but do not repaint the walls if someone already chose the color.

In a greenfield project: don't hold back. Create extraordinary, distinctive work. In an existing project: create extraordinary work *within* the system. A PrimeVue dashboard can be breathtaking. A shadcn/ui page can be unforgettable. The design system is not a prison — it is a creative brief.

适合场景

01

前端页面设计

02

生成更有辨识度的 UI

03

避免模板化 AI 页面

04

需要统一视觉方向时

能力概览

能力 1

建立明确视觉方向

能力 2

约束排版、色彩、动效和空间布局

能力 3

提醒避免通用模板化设计

能力 4

要求生成可运行的前端实现

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.24%
按下载量换算230

OpenCode

23.61%
按下载量换算193

github-copilot

20.22%
按下载量换算165

Cursor

12.5%
按下载量换算102

Gemini CLI

8.8%
按下载量换算72

Antigravity

3.76%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills