Token导航 LogoToken导航

Agent Skill · 前端设计

gui-design-principles(图形用户界面设计原则)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

gui-design-principles 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 9,918。

总安装 190周安装 8GitHub Stars 22下载 67核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:gui-design-principles(图形用户界面设计原则)
来源仓库:https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude
仓库路径:skills/gui-design-principles
安装命令:
npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude --skill gui-design-principles
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude --skill gui-design-principles

这个 Skill 是做什么的

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

gui-design-principles 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。适合让 Agent 根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素。涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出和对齐表现。

安装前需确认权限范围和维护状态,注意是否会触发联网或文件读写操作。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-cla…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gui-design-principles 怎么安装?

在终端执行 npx skills add https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude --skil…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gui-design-principles 支持哪些 AI 工具?

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

gui-design-principles 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

gui-design-principles 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gui-design-principles 用的人多吗?

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

gui-design-principles 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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只读未明确通过
gui-design-principles

图形用户界面设计原则 · 本页

19022操作浏览器未明确通过

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

SKILL.md 原文

Overview

This skill provides essential design principles, patterns, and guidelines for developing high-quality graphical user interfaces. It encompasses visual design, user experience, accessibility, and modern UI/UX best practices across web, desktop, and mobile platforms.

Design Foundations

Core Design Principles

Visual Hierarchy

  • Establish clear information hierarchy with size, weight, and spacing
  • Use contrast to guide attention to important elements
  • Implement progressive disclosure for complex interfaces
  • Follow the "F-Pattern" and "Z-Pattern" for natural eye movement

Color Theory

  • Use limited color palettes (3-5 primary colors maximum)
  • Ensure sufficient contrast ratios (WCAG AA: 4.5:1, AAA: 7:1)
  • Implement consistent color meanings across the interface
  • Use color purposefully for branding, actions, and feedback

Typography

  • Choose readable fonts optimized for screens
  • Establish clear type scale (h1-h6, body, small, caption)
  • Maintain consistent line spacing (1.4-1.6 for body text)
  • Limit font families to 2-3 maximum for consistency

Spacing & Layout

  • Use consistent spacing units (4px, 8px, 16px grid system)
  • Implement proper visual rhythm with consistent margins/padding
  • Ensure adequate touch targets (44px minimum for mobile)
  • Use white space strategically to reduce cognitive load

Responsive Design Principles

Mobile-First Approach

  • Design for smallest screen first, then enhance for larger screens
  • Use flexible grids and layouts that adapt to screen size
  • Optimize touch interactions for mobile devices
  • Consider content prioritization for different screen sizes

Breakpoint Strategy

  • Mobile: 320px - 768px
  • Tablet: 768px - 1024px
  • Desktop: 1024px - 1440px
  • Large Desktop: 1440px+

Flexible Components

  • Use relative units (%, rem, em, vh, vw)
  • Implement fluid typography with clamp() function
  • Create adaptive layouts with CSS Grid and Flexbox
  • Design components that work across all screen sizes

UI Component Design

Button Design

  • Primary Actions: High contrast, clear call-to-action
  • Secondary Actions: Subtle styling, less emphasis
  • Danger Actions: Red color scheme, clear warnings
  • Disabled States: Clear visual feedback, reduced opacity
  • Loading States: Progress indicators, disabled during action

Form Design

  • Input Fields: Clear labels, helpful placeholders, validation states
  • Error Handling: Inline error messages, clear error indicators
  • Success States: Confirmation messages, positive feedback
  • Accessibility: Proper labels, ARIA attributes, keyboard navigation

Navigation Design

  • Consistent Placement: Same location across all pages
  • Clear Labels: Descriptive, concise navigation labels
  • Visual States: Active, hover, and visited states
  • Breadcrumb Navigation: For hierarchical content

Card & Container Design

  • Consistent Spacing: Uniform padding and margins
  • Visual Separation: Borders, shadows, or background colors
  • Content Hierarchy: Clear title, subtitle, body structure
  • Interactive Elements: Hover states and transitions

Modern Design Systems

Design Tokens

/* Color Tokens */
--color-primary: #3b82f6;
--color-secondary: #64748b;
--color-success: #10b981;
--color-warning: #f59e0b;
--color-danger: #ef4444;
--color-background: #ffffff;
--color-surface: #f8fafc;
--color-text: #1e293b;
--color-text-muted: #64748b;

/* Spacing Tokens */
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;

/* Typography Tokens */
--font-size-xs: 12px;
--font-size-sm: 14px;
--font-size-base: 16px;
--font-size-lg: 18px;
--font-size-xl: 20px;
--font-size-2xl: 24px;
--font-size-3xl: 30px;

/* Shadow Tokens */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

Component Library Structure

  • Base Components: Button, Input, Card, Modal
  • Layout Components: Grid, Container, Sidebar, Header
  • Navigation Components: Menu, Breadcrumb, Tabs, Pagination
  • Feedback Components: Alert, Toast, Spinner, Progress
  • Data Display: Table, List, Badge, Avatar

Dashboard Design Best Practices

Data Visualization

  • Chart Selection: Choose appropriate chart types for data

- Line charts: Trends over time - Bar charts: Comparisons between categories - Pie charts: Parts of a whole (max 5-7 segments) - Scatter plots: Correlations and distributions

  • Color Usage: Use color consistently and meaningfully
  • Accessibility: Provide patterns and textures in addition to color
  • Interactivity: Tooltips, zoom, filter capabilities

Layout Patterns

  • Header: Clear title, key metrics, primary actions
  • Sidebar: Navigation, filters, secondary information
  • Main Content: Primary data visualization and insights
  • Footer: Summary, export options, help links

Real-time Updates

  • Smooth Transitions: Animate data changes smoothly
  • Loading States: Clear indicators during data updates
  • Error Handling: Graceful degradation when data unavailable
  • Performance: Optimize for frequent updates without lag

Accessibility Guidelines

WCAG 2.1 Compliance

  • Perceivable: Information must be presentable in ways users can perceive
  • Operable: Interface components must be operable
  • Understandable: Information and UI operation must be understandable
  • Robust: Content must be robust enough for various assistive technologies

Keyboard Navigation

  • Tab Order: Logical tab order through interactive elements
  • Focus Indicators: Clear visible focus states
  • Shortcuts: Keyboard shortcuts for common actions
  • Skip Links: Allow skipping to main content

Screen Reader Support

  • Semantic HTML: Use proper HTML5 semantic elements
  • ARIA Labels: Descriptive labels for complex components
  • Alternative Text: Meaningful alt text for images
  • Announcements: Dynamic content changes announced

Mobile App Design

Touch Interactions

  • Touch Targets: Minimum 44px for comfortable tapping
  • Gesture Support: Swipe, pinch, long press interactions
  • Haptic Feedback: Vibration for important actions
  • Thumb-Friendly Design: Place primary actions in easy reach zones

Platform Guidelines

  • iOS: Human Interface Guidelines compliance
  • Android: Material Design principles
  • Cross-Platform: Consistent experience while respecting platform conventions

Performance Considerations

  • Optimized Assets: Compressed images, efficient code
  • Offline Support: Critical functionality available offline
  • Battery Optimization: Minimize battery drain
  • Network Awareness: Adapt to connection quality

CSS Framework Integration

Tailwind CSS Strategy

  • Utility-First: Rapid development with utility classes
  • Component Abstraction: Create reusable component classes
  • Design System: Consistent design tokens and variants
  • Responsive Design: Mobile-first responsive utilities

Modern CSS Features

  • CSS Grid: Complex layouts with fewer elements
  • Flexbox: Flexible box layouts for components
  • Custom Properties: CSS variables for theming
  • Container Queries: Component-based responsive design

Animation & Micro-interactions

Motion Principles

  • Purposeful Animation: Every animation should have a purpose
  • Natural Movement: Follow physical laws and expectations
  • Performance: Use transform and opacity for smooth 60fps
  • Accessibility: Respect prefers-reduced-motion settings

Common Animations

  • Page Transitions: Smooth navigation between views
  • Loading States: Engaging waiting experiences
  • Hover Effects: Subtle feedback for interactive elements
  • State Changes: Clear feedback for status updates

Implementation Guidelines

File Structure

src/
├── components/          # Reusable UI components
├── layouts/            # Layout templates
├── styles/             # Global styles and utilities
├── assets/             # Images, icons, fonts
├── utils/              # Helper functions
└── types/              # TypeScript definitions

Naming Conventions

  • BEM Methodology: Block__Element--Modifier
  • Consistent Prefixes: Component-specific prefixes
  • Semantic Names: Descriptive, purpose-driven names
  • File Organization: Logical grouping and structure

Testing Strategy

  • Visual Regression: Catch unintended design changes
  • Accessibility Testing: Automated and manual testing
  • Cross-Browser Testing: Ensure consistency
  • Performance Testing: Load times and animation performance

Common Design Patterns

Modal Windows

  • Overlay: Semi-transparent background
  • Focus Management: Trap focus within modal
  • Close Options: X button, overlay click, ESC key
  • Accessibility: Proper ARIA attributes

Dropdown Menus

  • Trigger: Clear button or link to open menu
  • Positioning: Proper placement relative to trigger
  • Keyboard Navigation: Arrow keys, Enter, Escape
  • Outside Click: Close when clicking outside

Form Validation

  • Real-time Validation: Immediate feedback on input
  • Error Messaging: Clear, actionable error messages
  • Success States: Positive confirmation of valid input
  • Accessibility: Associate errors with form controls

Design Review Checklist

Visual Design

  • Consistent color usage throughout interface
  • Proper typography hierarchy and readability
  • Adequate spacing and visual rhythm
  • Appropriate contrast ratios for accessibility
  • Consistent icon style and usage

User Experience

  • Clear navigation and information architecture
  • Intuitive interaction patterns
  • Proper feedback for user actions
  • Error prevention and recovery
  • Responsive design across devices

Accessibility

  • Keyboard navigation support
  • Screen reader compatibility
  • Sufficient color contrast
  • Alternative text for images
  • ARIA labels for complex components

Performance

  • Optimized images and assets
  • Efficient CSS and JavaScript
  • Smooth animations and transitions
  • Fast loading times
  • Minimal layout shifts

Tools and Resources

Design Tools

  • Figma: Collaborative interface design
  • Sketch: Mac-only design tool
  • Adobe XD: Adobe's design platform
  • Framer: Interactive design and prototyping

Development Tools

  • Chrome DevTools: Device simulation and debugging
  • Lighthouse: Performance and accessibility auditing
  • Axe: Accessibility testing extension
  • Color Contrast Analyzer: Contrast ratio validation

Inspiration Resources

  • Dribbble: UI/UX design inspiration
  • Behance: Design portfolio platform
  • Awwwards: Website awards and inspiration
  • Mobbin: Mobile app design patterns

When to Apply

Use these design principles when:

  • Creating new GUI applications (web, desktop, mobile)
  • Redesigning existing interfaces
  • Building dashboards and data visualization tools
  • Developing interactive components and widgets
  • Implementing responsive design
  • Ensuring accessibility compliance
  • Improving user experience and usability
  • Establishing design systems and component libraries

These principles ensure professional, accessible, and user-friendly interfaces that work across all platforms and devices.

平台分布

Codex

33.25%
按下载量换算22

Claude

30.35%
按下载量换算20

Cursor

20.02%
按下载量换算13

Gemini CLI

10.43%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills