Token导航 LogoToken导航

Agent Skill · 前端设计

frontend-design(前端设计)

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

frontend-design 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,302。

总安装 2,448周安装 102GitHub Stars 3下载 816核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

frontend-design 创建生产级前端界面,自动适配项目现有设计系统与框架约定。先扫描代码库上下文,再选择布局、动效和视觉方向,确保创意符合工程约束。支持组件生成、页面结构和交互逻辑设计,但需用户提供具体需求而非泛化描述。输出前必须验证与现有系统的兼容性,禁止添加装饰性元素而忽略功能性要求。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/frontend-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dedalus-erp-pas/foundation-skills --skill fron…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

frontend-design 怎么安装?

在终端执行 npx skills add https://github.com/dedalus-erp-pas/foundation-skills --skill frontend-desig…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

frontend-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

frontend-design 需要什么权限?

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

frontend-design 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

frontend-design 用的人多吗?

公开数据是累计安装 2,448 次,近一周安装 102 次,下载 816 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

frontend-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
frontend-design

前端设计 · 本页

2,4483只读MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

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

平台分布

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