一键导入
ui-ux
Use when analyzing product UI/UX through code review, product context, pattern research, prioritized recommendations, or design system setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when analyzing product UI/UX through code review, product context, pattern research, prioritized recommendations, or design system setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Extract decisions, action items, new context, and insights from the current session into LEARNINGS.md and auto-memory. Run before ending any substantive conversation.
Capture a lightweight work item into BUGS.md, NEXT_STEPS.md, DEFERRED.md, or recommend the feature workflow. Use when a bug, fix, small follow-up, next step, deferred idea, or possible feature comes up during development.
Use when seeking a second opinion from OpenAI Codex on documents, specs, plans, or other non-code-diff content.
Use when delegating code implementation to Codex CLI with Claude-managed decomposition, context scoping, and verification.
Use when requesting an OpenAI Codex review of the current branch with documentation research and cross-AI verification.
Detect split data source anti-patterns and scattered business rule duplication where the same logic is reimplemented across multiple files and languages. Catches semantic duplication that syntactic tools like jscpd miss. Use at phase checkpoints or when investigating data consistency issues.
基于 SOC 职业分类
| name | ui-ux |
| description | Use when analyzing product UI/UX through code review, product context, pattern research, prioritized recommendations, or design system setup. |
| allowed-tools | Bash, Read, Glob, Grep, WebSearch, WebFetch, Edit, Write, Task, AskUserQuestion |
| argument-hint | [action] [target] — actions: audit, design, improve, setup-design-system. e.g. 'audit src/components' or 'design dashboard for analytics SaaS' |
Unified UI/UX skill for analysis, research, and design guidance. Works in two modes:
audit, review, improve, check) — Analyze existing UI code against craft principles, accessibility, and industry patterns. Produces prioritized recommendations.design, build, create, plan) — Guide new UI creation with research-backed design direction, style selection, and implementation.Both modes use product context, user research, and the design knowledge embedded below.
This skill incorporates ideas from three excellent sources. It bundles their key insights directly so no separate installs are needed. For the full experience, install the originals:
Read these files if they exist (stop once you have a clear picture):
PRODUCT_SPEC.md, FEATURE_SPEC.md, README.md, VISION.md,
AGENTS.md (look for design system references),
design-system/MASTER.md, design-system/tokens.*,
.cursorrules, .ai/*.md
Extract: product type, target users, core user jobs, emotional tone, industry.
Look for evidence of an established design system:
design-system/**, tailwind.config.*, theme.ts, theme.js,
**/tokens.css, **/variables.css, **/design-tokens.*,
components/ui/**, shadcn components (components.json)
Note: existing tokens, color palette, typography scale, spacing system, component library.
Detect from package.json, config files, file extensions:
For audit targets, read the relevant UI files. Look at:
If product context is thin (no specs, no README with product description), use AskUserQuestion:
"To give you the best UI/UX recommendations, I need some context:
- What does this product do? Who uses it?
- What's the emotional job? (Trust? Efficiency? Delight? Focus?)
- Any design references or products you admire?
You can also point me at product docs or a live URL."
If ui-ux-pro-max is installed, use its Python CLI for data-driven recommendations. Check for the search script at these paths:
~/.agents/skills/ui-ux-pro-max/scripts/search.py~/.claude/skills/ui-ux-pro-max/scripts/search.pyIf found, generate a design system recommendation:
python3 <path>/search.py "<product_type> <industry> <keywords>" --design-system -p "Project Name"
Domain searches for deeper detail:
python3 <path>/search.py "<keywords>" --domain <domain> # product, style, typography, color, landing, chart, ux, web
python3 <path>/search.py "<keywords>" --stack <stack> # html-tailwind, react, nextjs, vue, svelte, shadcn, etc.
Persist design system for future sessions:
python3 <path>/search.py "<keywords>" --design-system --persist -p "Project Name" [--page "dashboard"]
If not installed, skip this step — the inline knowledge and web research below are sufficient. Note the availability to the user at the end: "For richer style/palette recommendations, install ui-ux-pro-max by nextlevelbuilder."
Use WebSearch to find relevant patterns for the specific product type and user base:
Search: "[product type] UI design patterns 2025 2026"
Search: "[industry] dashboard UX best practices"
Search: "[competitor names] design system"
Search: "best [product type] interfaces examples"
Focus on:
If the stack warrants it, search for current best practices:
Search: "[framework] [component type] accessibility patterns"
Search: "Tailwind v4 @theme design tokens" (if using Tailwind)
Search: "shadcn/ui [component] best practices" (if using shadcn)
Adapted from design-principles by interface-design.
Before writing any code, commit to a design direction. Don't default. Think about what this specific product needs to feel like.
| Personality | Characteristics | Best For |
|---|---|---|
| Precision & Density | Tight spacing, monochrome, information-forward | Power user tools (Linear, Raycast, terminals) |
| Warmth & Approachability | Generous spacing, soft shadows, friendly colors | Collaborative tools (Notion, Coda) |
| Sophistication & Trust | Cool tones, layered depth, financial gravitas | Finance, sensitive data (Stripe, Mercury) |
| Boldness & Clarity | High contrast, dramatic negative space, confident type | Modern dashboards (Vercel) |
| Utility & Function | Muted palette, functional density, clear hierarchy | Developer tools (GitHub) |
| Data & Analysis | Chart-optimized, technical but accessible | Analytics, BI tools |
| Bold Creative | Unexpected layouts, distinctive type, atmospheric depth | Marketing, creative tools, portfolios |
Pick one. Or blend two. But commit to a direction that fits the product.
Don't default to warm neutrals. Consider the product:
Light or dark? Dark feels technical, focused, premium. Light feels open, approachable, clean. Choose based on context. Pick ONE accent color that means something.
Adapted from frontend-design by Anthropic.
For every project, push beyond safe defaults. Ask: what makes this UNFORGETTABLE?
Adapted from design-principles by interface-design.
Apply these regardless of design direction — they are the minimum quality bar. Covers: 4px spacing grid, depth/elevation strategy (pick one: borders-only, single shadows, layered shadows, or surface color shifts), typography hierarchy, contrast levels, card/surface consistency, custom controls, navigation context, dark mode rules, and anti-patterns to avoid.
See references/craft-principles.md for the full principles with CSS examples and detailed guidance.
Enforce WCAG AA standards (4.5:1 contrast, 44px touch targets, keyboard navigation,
semantic HTML, focus rings, prefers-reduced-motion). Audit interaction quality:
cursor states, hover feedback, transitions (150-300ms), loading states, error feedback.
Check light/dark mode contrast for text, borders, and glass elements.
See references/accessibility.md for the full requirements tables and do/don't guidance.
Structure findings as a prioritized report:
# UI/UX Audit: [Product Name]
## Context
- Product type: ...
- Target users: ...
- Design direction: [recommended personality]
- Tech stack: ...
## Design System Status
- [EXISTS/PARTIAL/MISSING] — [details]
## Findings
### Critical (Fix Immediately)
[Accessibility, broken interactions, contrast failures]
### High Priority (Fix Soon)
[Layout inconsistencies, missing states, responsive issues]
### Medium Priority (Improve)
[Typography, spacing, animation opportunities]
### Suggestions (Consider)
[Design direction refinement, creative enhancements, industry patterns]
## Research Insights
[Patterns from industry research specific to this product type]
## Design System Recommendations
[What to establish for consistent future work — see Phase 7]
## Implementation Plan
[Ordered changes, grouped by file/component]
For new UI work, provide:
After every audit or design session, include a "Future-Proofing" section with relevant recommendations. Don't include all — pick what's most impactful for this project's state.
If the project lacks a design system, recommend creating one. This includes design
tokens (CSS @theme or tokens.css), a design-system/MASTER.md doc, and
page-specific overrides. Use AI-readable token metadata (DTCG format with
when_to_use/avoid_when) for maximum AI effectiveness.
See references/design-tokens.md for token templates, CSS examples, component patterns, and modern CSS techniques.
Recommend adding a Design System section to the project's AGENTS.md to document the chosen personality, tokens location, component library, icon set, and key constraints.
See references/agents-template.md for the template.
cursor-pointerprefers-reduced-motion respected