Token导航 LogoToken导航

Agent Skill · 前端设计

ui-analyzer(用户界面分析器)

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

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

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

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:ui-analyzer(用户界面分析器)
来源仓库:https://github.com/staruhub/claudeskills
仓库路径:skills/ui-analyzer
安装命令:
npx skills add https://github.com/staruhub/claudeskills --skill ui-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/staruhub/claudeskills --skill ui-analyzer

这个 Skill 是做什么的

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

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。适用于前端界面分析与设计支持,可协助生成 React、Vue 等框架下的 UI 代码。

使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。

当前暂无原始 SKILL.md 内容摘录,建议进一步查阅来源仓库获取详细功能说明。

来源仓库内路径:skills/ui-analyzer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/staruhub/claudeskills --skill ui-analyzer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

ui-analyzer 怎么安装?

在终端执行 npx skills add https://github.com/staruhub/claudeskills --skill ui-analyzer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ui-analyzer 支持哪些 AI 工具?

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

ui-analyzer 需要什么权限?

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

ui-analyzer 是免费的吗?

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

ui-analyzer 用的人多吗?

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

ui-analyzer 安全吗?

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

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

值得选的地方

  • 同时适配 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只读未明确通过
ui-analyzer

用户界面分析器 · 本页

190374只读未明确通过

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

SKILL.md 原文

UI Analyzer

This skill provides a systematic approach to analyzing UI design screenshots and translating them into production-ready React components using TypeScript and Tailwind CSS.

Purpose

Transform UI design screenshots into well-structured, accessible, and maintainable React components. The skill guides through analyzing layouts, extracting design tokens, identifying components, and generating clean code that matches the design while following best practices.

When to Use This Skill

Use this skill when:

  • The user provides a UI design screenshot, mockup, or Figma export
  • The user requests "implement this design" or "build this UI"
  • The user asks to "analyze this screenshot"
  • The user wants to convert a design to code
  • The user needs help understanding a UI's structure
  • The user requests matching an existing design

Analysis Workflow

Follow these steps systematically when analyzing a UI screenshot:

Step 1: Initial Observation and Screenshot Reading

Read the provided screenshot first using the Read tool if a file path is provided, or if the user has shared an image in the conversation.

After viewing the screenshot:

  1. Describe what you see in the UI
  2. Identify the screen/page type (login, dashboard, form, etc.)
  3. Determine the target device (desktop, mobile, responsive)
  4. Note the overall aesthetic (modern, minimal, colorful, etc.)
  5. Confirm understanding with the user before proceeding

Step 2: Layout Analysis

Identify the high-level layout structure:

  1. Main layout type - Consult references/layout-patterns.md to identify:

- Single column - Sidebar layout - Header + content - Grid layout - Split screen - Dashboard - Master-detail - Other patterns

  1. Layout hierarchy - Break down into sections:

- Header/navigation - Main content area - Sidebar (if present) - Footer (if present) - Nested structures

  1. Responsive considerations:

- How should layout adapt to mobile? - Which elements stack or hide? - Breakpoint strategy

Reference references/layout-patterns.md for Tailwind implementation patterns.

Step 3: Component Identification

Systematically identify all UI components using references/ui-analysis-checklist.md:

Navigation Components:

  • Top nav, sidebar nav, breadcrumbs, tabs, etc.

Data Display Components:

  • Cards, tables, lists, stats, badges, avatars, icons, etc.

Input Components:

  • Text inputs, selects, checkboxes, radios, switches, date pickers, etc.

Action Components:

  • Buttons (primary, secondary, etc.), icon buttons, links, etc.

Feedback Components:

  • Alerts, toasts, progress bars, loading states, etc.

Overlay Components:

  • Modals, drawers, tooltips, popovers, dropdowns, etc.

List all identified components with:

  • Component type and purpose
  • Location in the layout
  • Approximate size and styling
  • Interactive states (if visible)

Step 4: Design Token Extraction

Extract design system values using references/design-tokens.md:

Color Palette:

  1. Identify all unique colors in the design
  2. Categorize by usage:

- Primary brand color - Secondary/accent colors - Background colors (main, secondary) - Text colors (primary, secondary, muted) - Border colors - State colors (success, warning, error, info)

  1. Map each color to nearest Tailwind color or note custom color needed
  2. Create a color reference table

Typography:

  1. Identify font family (serif, sans-serif, monospace)
  2. List all text sizes observed
  3. Map to Tailwind typography scale (text-xs to text-6xl)
  4. Note font weights used (normal, medium, semibold, bold)
  5. Identify heading hierarchy (H1-H6)

Spacing:

  1. Observe padding patterns (card padding, button padding, etc.)
  2. Observe margin/gap patterns (between sections, between items)
  3. Map to Tailwind spacing scale (p-4, m-6, gap-8, etc.)
  4. Note the spacing unit (usually 4px or 8px base)

Other Tokens:

  • Border radius (rounded-none to rounded-full)
  • Shadows (shadow-sm to shadow-2xl)
  • Border widths
  • Icon sizes

Reference references/design-tokens.md for complete mapping tables.

Step 5: Detailed Component Analysis

For each major component identified:

  1. Component boundaries - Where does it start/end?
  2. Props/data - What data does it receive?
  3. Internal structure - Sub-components and elements
  4. Styling details:

- Background color - Text color and size - Padding and margins - Border and radius - Shadow

  1. Interactive states (if visible or inferable):

- Hover - Active/pressed - Focused - Disabled - Loading - Error

  1. Accessibility needs:

- ARIA labels - Semantic HTML - Keyboard navigation

Step 6: Implementation Strategy

Plan the implementation approach:

  1. Component hierarchy - Which components to build first?
  2. Reusability - Which patterns repeat? Extract to reusable components
  3. State management - Does any component need Zustand or just local state?
  4. Integration with react-component-generator - Can existing templates be used?
  5. File structure - Where should components live?

If the react-component-generator skill is available:

  • Reference its templates for common components (forms, cards, buttons, modals, etc.)
  • Use its best practices for component structure
  • Follow its naming conventions

Step 7: Code Generation

Generate React components following these principles:

Structure:

  1. Start with TypeScript interfaces for props
  2. Use functional components with React.FC
  3. Include JSDoc comments
  4. Export both named and default exports

Styling:

  1. Use Tailwind CSS exclusively for styling
  2. Apply extracted design tokens
  3. Organize classes logically (layout → spacing → colors → effects → states)
  4. Use responsive classes where needed (sm:, md:, lg:, xl:)

Best Practices:

  1. Use semantic HTML elements
  2. Include ARIA attributes for accessibility
  3. Handle loading and error states
  4. Support keyboard navigation
  5. Use proper TypeScript types (no any)
  6. Keep components focused and composable

Example Component Template:

import React from 'react';

interface ComponentNameProps {
  // Props based on analysis
  title: string;
  description?: string;
  onClick?: () => void;
  className?: string;
}

/**
 * ComponentName - Brief description based on UI purpose
 *
 * @param props - Component props
 * @returns JSX.Element
 */
export const ComponentName: React.FC<ComponentNameProps> = ({
  title,
  description,
  onClick,
  className = ''
}) => {
  return (
    <div className={`/* Tailwind classes from design */ ${className}`}>
      {/* Implementation based on screenshot */}
    </div>
  );
};

export default ComponentName;

Step 8: Verification and Refinement

After generating code:

  1. Review against screenshot - Does it match the design?
  2. Check responsiveness - Will it work on different screen sizes?
  3. Verify accessibility - Are ARIA labels and semantic HTML present?
  4. Validate design tokens - Are colors, spacing, typography correct?
  5. Consider edge cases - Long text, empty states, loading states
  6. Note assumptions - Clearly state what was assumed vs confirmed

Step 9: Deliverables

Provide the user with:

  1. Analysis Summary:

- Layout description - Component breakdown - Design tokens extracted

  1. Generated Code:

- Complete React component(s) - TypeScript interfaces - Tailwind classes applied

  1. Implementation Notes:

- Installation requirements (if any packages needed) - Usage examples - Customization suggestions - Responsive behavior notes

  1. Next Steps:

- Suggest improvements or variations - Note areas that might need refinement - Offer to generate additional related components

Common Scenarios

Scenario 1: Simple Form Screenshot

User: "Implement this login form design [screenshot]"

Approach:

  1. Read screenshot
  2. Identify: Centered card layout with form inputs and button
  3. Extract: Colors, input styling, button styling, spacing
  4. Reference layout-patterns.md → "Centered Modal/Card" pattern
  5. Reference react-component-generator → FormComponent template
  6. Generate: LoginForm.tsx with proper validation structure
  7. Apply Tailwind classes matching the design

Scenario 2: Dashboard Screenshot

User: "Build this dashboard UI [screenshot]"

Approach:

  1. Read screenshot
  2. Identify: Header + sidebar layout with grid of stat cards
  3. Break down into components:

- Header component - Sidebar navigation - StatCard component (repeated) - Main dashboard layout

  1. Extract design tokens for consistency
  2. Reference layout-patterns.md → "Dashboard Layout" pattern
  3. Generate components starting with reusable StatCard
  4. Compose into main Dashboard component

Scenario 3: Complex Page with Multiple Sections

User: "Implement this landing page [screenshot]"

Approach:

  1. Read screenshot
  2. Identify sections: Hero, features grid, testimonials, CTA
  3. Analyze each section separately using checklist
  4. Extract shared design tokens
  5. Generate section components one by one
  6. Show how sections compose into the full page
  7. Provide responsive behavior notes

Scenario 4: Component Library Screenshot

User: "Create components from this design system screenshot [screenshot]"

Approach:

  1. Read screenshot
  2. Identify: Multiple variations of buttons, inputs, cards shown
  3. Extract design tokens for the system
  4. Generate each component variant
  5. Document the prop variations
  6. Create a usage guide
  7. Suggest how to organize in the project

Reference Files Usage

references/ui-analysis-checklist.md

  • When to use: During Step 3 (Component Identification) and as a comprehensive analysis guide
  • Purpose: Ensures no components or details are missed
  • How: Work through checklist sections systematically

references/layout-patterns.md

  • When to use: During Step 2 (Layout Analysis) and Step 7 (Code Generation)
  • Purpose: Quickly identify common patterns and get implementation code
  • How: Match observed layout to pattern, adapt provided code

references/design-tokens.md

  • When to use: During Step 4 (Design Token Extraction) and Step 7 (Code Generation)
  • Purpose: Map visual elements to Tailwind classes accurately
  • How: Use color tables, spacing scale, and component size guides

Tips for Accurate Analysis

  1. Be systematic - Follow the workflow steps in order, don't skip ahead
  2. Take measurements - Estimate sizes and spacing carefully
  3. Look for patterns - Repeated elements indicate design system consistency
  4. Note uncertainties - Clearly mark assumptions vs confirmed details
  5. Think responsive - Always consider mobile behavior
  6. Prioritize accessibility - Include ARIA labels and semantic HTML from the start
  7. Stay DRY - Extract reusable components when patterns repeat
  8. Consult references - Use the reference files liberally for accuracy
  9. Verify with user - Confirm understanding before extensive code generation
  10. Iterate - Expect refinement based on user feedback

Integration with Other Skills

With react-component-generator skill

When both skills are available:

  1. Use ui-analyzer to understand the design and extract requirements
  2. Reference react-component-generator templates for similar components
  3. Apply ui-analyzer's extracted design tokens to the templates
  4. Follow react-component-generator's naming and structure conventions

This creates a powerful workflow: analyze → identify template → customize → implement.

Example Full Workflow

User provides login page screenshot

  1. ✅ Read screenshot and describe the UI
  2. ✅ Identify: Centered card layout, split-screen with image
  3. ✅ Extract design tokens:

- Primary blue: #3B82F6 → bg-blue-500 - Text: #1F2937 → text-gray-800 - Background: #F9FAFB → bg-gray-50 - Card padding: ~32px → p-8 - Input height: ~40px → h-10 - Button: blue background, white text, rounded-md

  1. ✅ Identify components:

- Logo/brand element - Heading and subheading - Email input (with label) - Password input (with label, show/hide icon) - "Remember me" checkbox - "Forgot password?" link - Submit button - Sign up link at bottom

  1. ✅ Reference layout-patterns.md → Split Screen + Centered Card patterns
  2. ✅ Generate LoginForm.tsx:

- TypeScript interfaces for props - Form validation structure - Tailwind classes matching design - Accessibility attributes - Responsive behavior (stacked on mobile)

  1. ✅ Provide usage example and notes
  2. ✅ Offer to generate the accompanying image section or adjust styling

Notes

  • Always read the screenshot first before any analysis
  • Prioritize user confirmation of understanding before extensive code generation
  • When in doubt about colors or spacing, choose the closest Tailwind default
  • Document all assumptions clearly
  • Provide complete, runnable code, not pseudocode
  • Consider suggesting improvements while matching the design
  • Be prepared to iterate based on user feedback

平台分布

Codex

37.04%
按下载量换算25

Claude

28.12%
按下载量换算19

Cursor

18.38%
按下载量换算12

Gemini CLI

8.3%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills