frontend-enhancer · travisjneuman — скилл для Claude Code: что делает и как установить
Скилл frontend-enhancer для Claude Code доводит визуал веб-приложения: палитру, сетки, анимации и состояния компонентов. Помогает доработать интерфейс, который всё ещё выглядит как дефолтный шаблон.
MIT 145 установок ★ 114 обновлён 2026-10-25
npx skills add travisjneuman/.claude --skill frontend-enhancer -a claude-codeЧто делает frontend-enhancer
Скилл ведёт правку внешнего вида по шагам: сначала исследование через ui-research, потом оценка текущего интерфейса, план направления, токены в теме, вёрстка, проверка на «AI-вид», тест адаптивности и доступности. Для нового дизайна порядок важен: без ui-research выбор падает на дефолтные стили, а их скилл как раз и просит избегать.
Внутри — таблица палитр (Corporate Blue, Vibrant Purple, Minimalist Gray, Warm Sunset, Ocean Fresh, Dark Mode) с набором токенов от primary до error, паттерны кнопок, карточек и форм, правила анимаций только на transform и opacity с длительностями от 100 до 500ms, брейкпоинты от base до 1280px и чек-лист доступности: контраст от 4.5:1 по WCAG AA, фокус с клавиатуры, цели нажатия от 44x44px, prefers-reduced-motion.
Отдельный блок — утилита cn в lib/utils.ts. Она собирается из clsx и tailwind-merge, поэтому оба пакета должны стоять в проекте до того, как скилл предложит код. Список «красных флагов» вроде дефолтных сине-фиолетовых градиентов и glassmorphism остаётся чек-листом для самопроверки, автоматически он ничего не ловит.
Какие задачи решает
- подобрать палитру и токены под бренд
- сверстать раскладку, которая держится от телефона до десктопа
- добавить анимации наведения без просадки кадров
- убрать из страницы дефолтные градиенты и стоковые иллюстрации
- проверить контраст и цели нажатия перед сдачей
Примеры запросов агенту
- Доведи этот дашборд до человеческого вида: своя палитра, асимметричная сетка, живые состояния у кнопок.
- Добавь анимации наведения на карточки и проверь, что при
prefers-reduced-motionони отключаются. - Пройдись по чек-листу доступности: контраст, фокус с клавиатуры, размеры целей нажатия.
Как установить frontend-enhancer
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill frontend-enhancer -a claude-code2Вручную: положить файлы
~/.claude/skills/frontend-enhancer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/frontend-enhancer/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill frontend-enhancer -a codex2Вручную: положить файлы
.agents/skills/frontend-enhancer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill frontend-enhancer -a cursor2Вручную: положить файлы
.cursor/skills/frontend-enhancer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install travisjneuman/.claude skills/frontend-enhancer2Вручную: положить файлы
.github/skills/frontend-enhancer/SKILL.md1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill frontend-enhancer -a gemini-cli2Командой платформы
gemini skills install https://github.com/travisjneuman/.claude --path skills/frontend-enhancerВручную: положить файлы
.devin/skills/frontend-enhancer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill frontend-enhancer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о frontend-enhancer
Как установить frontend-enhancer в Claude Code?
Выполните npx skills add travisjneuman/.claude --skill frontend-enhancer -a claude-code. Файл скилла появится по пути ~/.claude/skills/frontend-enhancer/SKILL.md.
Что делает frontend-enhancer?
Ведёт работу над внешним видом приложения: выбор палитры и токенов темы, паттерны компонентов, правила анимаций, брейкпоинты и проверка доступности. Перед этим просит оценить текущий интерфейс и свериться с референсами.
Нужен ли ui-research вместе с ним?
Для нового направления да: скилл сам отправляет к ui-research, чтобы решения шли от реальных продуктов. Для правки уже выбранного стиля можно начинать сразу с него.
Исходный текст
SKILL.md · MIT
---
name: frontend-enhancer
description: "Enhance the visual design of web apps: modern UI components, layout, responsive design, color palettes, animations. Use for styling and UI polish; pair with ui-research first for new design directions."
---
# Frontend Enhancer
Transform web applications into visually polished, human-designed experiences.
## Prerequisite: Research First
For a new design direction, run `ui-research` first so choices come from real reference products rather than default styles; the specific defaults to avoid are under "Avoiding the AI Look". See [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md).
---
## When to Use
**Use for:**
- Improving styling and visual design
- Creating responsive layouts
- Adding animations and transitions
- Selecting color schemes
- Building modern UI patterns
- Enhancing aesthetics
**Don't use when:**
- Need inspiration first → use `ui-research` first
- UX flow design → use `generic-ux-designer`
- Code architecture → use `generic-feature-developer`
- Code review → use `generic-code-reviewer`
**Foundational References:**
- [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md) - Research sources
- [Design Patterns](../_shared/DESIGN_PATTERNS.md) - Visual tokens
## Research-Driven Enhancement Workflow
1. **Research** - Use `ui-research` skill first (5-10 examples minimum)
2. **Assess** - Identify current gaps against research findings
3. **Plan** - Define direction based on inspiration analysis
4. **Foundation** - Set up colors, spacing, animations in theme
5. **Apply** - Implement with human polish (not defaults)
6. **Anti-AI Check** - Verify no generic AI patterns
7. **Refine** - Test responsiveness, verify accessibility
8. **Review** - Check hierarchy, consistency, performance
## Color Palette Selection
| Palette | Use Case |
| --------------- | --------------------------- |
| Corporate Blue | Business apps, SaaS |
| Vibrant Purple | Creative tools, portfolios |
| Minimalist Gray | Clean, sophisticated |
| Warm Sunset | Consumer apps, e-commerce |
| Ocean Fresh | Health, finance apps |
| Dark Mode | Developer tools, dashboards |
Each palette needs: Primary, Secondary, Accent, Background, Foreground, Muted, Success, Warning, Error
## Component Patterns
### Buttons
- Variants: primary, secondary, outline, ghost, danger
- Sizes: sm, md, lg
- States: loading, disabled
### Cards
- Variants: default, bordered, elevated, interactive
- Subcomponents: Header, Title, Description, Content, Footer
### Forms
- Clear focus states
- Validation feedback
- Helper text
- Required indicators
## Animation Guidelines
**GPU-Accelerated Only:**
```css
/* ✅ DO animate */
transform: translateY(-4px);
opacity: 0.8;
/* ❌ AVOID */
margin-top: -4px;
height: 100px;
```
**Duration Guidelines:**
- Micro-interactions: 100-200ms
- Transitions: 200-300ms
- Complex animations: 300-500ms
**Accessibility:**
```css
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
```
## Responsive Strategy
| Breakpoint | Min Width | Target |
| ---------- | --------- | ------------ |
| base | 0 | Mobile |
| sm | 640px | Large phones |
| md | 768px | Tablets |
| lg | 1024px | Laptops |
| xl | 1280px | Desktops |
## Accessibility Checklist
- [ ] Color contrast >= 4.5:1 (WCAG AA)
- [ ] Keyboard accessible
- [ ] Visible focus indicators
- [ ] Semantic HTML
- [ ] Alt text on images
- [ ] Form labels
- [ ] Respects prefers-reduced-motion
- [ ] Touch targets >= 44x44px
## Layout Patterns
### Hero Section
- Centered, split, or minimal variants
- Primary + secondary CTAs
- Optional background gradients
### Feature Grid
- 2, 3, or 4 columns
- Icon + title + description
- Staggered animations
- Hover effects
## Performance
- Bundle size awareness
- Lazy load heavy components
- Optimize images (WebP, responsive)
- 60fps animations
## cn Utility Setup
```typescript
// lib/utils.ts
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
```
## Before/After Pattern
When enhancing, document changes:
```
Before: Plain gray button, no hover state
After: Gradient primary button with hover lift effect
```
## Avoiding the AI Look
### Red Flags to Check
Before finalizing, ensure you DON'T have:
- [ ] Default blue/purple gradients
- [ ] Perfectly symmetrical layouts
- [ ] Generic blob/wave decorations
- [ ] Undraw-style stock illustrations
- [ ] "Hero with laptop mockup" cliché
- [ ] Unchanged default color schemes
- [ ] Cookie-cutter card grids
- [ ] Overused glassmorphism/blur
### Human Touch Checklist
Ensure you DO have:
- [ ] Custom color palette (not defaults)
- [ ] Intentional layout asymmetry
- [ ] Unique typography pairing
- [ ] Real/custom imagery
- [ ] Micro-interactions with personality
- [ ] Brand-specific details
- [ ] Thoughtful empty/loading states
- [ ] Copy with character
### Quality Comparison
| Aspect | Generic AI | Human-Polished |
| ----------- | ------------- | ---------------------- |
| **Color** | Default blue | Custom brand palette |
| **Layout** | Perfect grid | Intentional variation |
| **Images** | Stock/generic | Curated/custom |
| **Copy** | Lorem ipsum | Real, personality-rich |
| **Motion** | Basic fades | Purposeful, branded |
| **Details** | None | Hover states, feedback |
---
## See Also
- [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md) - Research sources (USE FIRST)
- [Design Patterns](../_shared/DESIGN_PATTERNS.md) - Visual design reference
- [UX Principles](../_shared/UX_PRINCIPLES.md) - User experience
- `ui-research` - Research step to run first for new design directions
- Project `CLAUDE.md` - Design constraints
© travisjneuman · MIT · travisjneuman/.claude
Похожие скиллы
Все скиллы по теме «Фронтенд и UI» →Сначала — frontend-enhancer от других авторов.