К основному содержанию
скилл CX Codex

nextjs-shadcn — скилл для Claude Code: интерфейсы на Next.js

Скилл помогает агенту собрать интерфейс Next.js с shadcn/ui: выбрать шрифты, тему, фон и эффекты под задачу продукта.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add laguagu/claude-code-nextjs-skills --skill nextjs-shadcn -a claude-code
Открыть на GitHub

Что делает nextjs-shadcn

Скилл задаёт агенту рамку для работы над внешним видом приложения на Next.js и shadcn/ui. Перед новой страницей или крупной переделкой он обращается к frontend-design, чтобы выбрать типографику, палитру и композицию, а для подбора иконок и брендовых ассетов — к icons. Выбранный пресет, тему, шрифты и семейство иконок скилл советует записать в заметки проекта и держаться этого направления, пока не изменится задача.

Внутри — инструкции по стилю и движению, а также справочники styling.md, architecture.md, sidebar.md, project-setup.md и shadcn-platform.md. Скилл разбирает, когда уместны сетки, градиенты, фоновые подсветки и короткие анимации, и требует проверять результат на мобильной и десктопной ширине. Он напоминает про узкие границы Client Components, авторизацию внутри Server Actions и семантические токены темы.

В новых проектах скилл берёт Bun: bun install, bun add, bun run <script>, bunx --bun <cli>. В существующих — смотрит на packageManager и локфайл. Команды shadcn docs, add и view ходят в реестр по сети, поэтому офлайн их работа отпадает: тогда API приходится читать по исходникам components/ui и типам примитива. Ещё стоит помнить, что (protected) в имени route group ничего не защищает — проверку доступа нужно писать самому.

Какие задачи решает

  • собрать страницу Next.js с осмысленной типографикой и темой
  • подобрать шрифты, палитру и семейство иконок под тон продукта
  • убрать декоративные бейджи и пустые маркетинговые заголовки
  • добавить короткую анимацию, связывающую действие с результатом
  • проверить вёрстку на мобильной и десктопной ширине

Примеры запросов агенту

  • Собери страницу тарифов на Next.js и shadcn/ui, подбери шрифты и тему под наш продукт
  • Переделай дашборд: нужна новая визуальная подача, посмотри фон и иконки
  • Прогони проверку дизайн-системы и покажи, что изменилось

Как установить nextjs-shadcn

1Через Skills CLI (Vercel)

npx skills add laguagu/claude-code-nextjs-skills --skill nextjs-shadcn -a claude-code

2Вручную: положить файлы

~/.claude/skills/nextjs-shadcn/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/nextjs-shadcn/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о nextjs-shadcn

Как установить nextjs-shadcn в Claude?

Выполните npx skills add laguagu/claude-code-nextjs-skills --skill nextjs-shadcn -a claude-code. Скилл окажется в ~/.claude/skills/nextjs-shadcn/SKILL.md.

Что делает nextjs-shadcn?

Помогает агенту строить интерфейсы Next.js с shadcn/ui: выбирает типографику, тему, фоны и эффекты, следит за границами Server и Client Components и проверяет результат в браузере.

Какие команды shadcn не работают без интернета?

shadcn docs, add и view обращаются к реестру по сети, а docs возвращает ссылки, а не текст. Офлайн опирайтесь на исходники components/ui и типы примитива.

Исходный текст

SKILL.md · MIT
---
name: nextjs-shadcn
description: Builds distinctive Next.js interfaces with shadcn/ui, choosing typography, styling and purposeful visual effects for the product. Use when creating or polishing a Next.js + shadcn app, page or component, including themes, presets, backgrounds and design-system lint. Uses frontend-design for substantial visual direction and icons for asset sourcing.
---

# Next.js + shadcn/ui

Build an interface with a visual identity that fits its content, audience and task. These are design defaults, not a fixed page recipe; the user's direction and an established design system take precedence.

## Choose the visual direction

For a new view or substantial redesign, use `frontend-design` to choose the typography, palette and composition before building. Preserve a working visual system during smaller edits.

Choose fonts for the product's tone, reading density and language support. Use [shadcn/create](https://ui.shadcn.com/create) to choose the component style, body and heading fonts, icon family and theme together. Compare the preview with representative content, then make deliberate choices about type scale, spacing and hierarchy. Neither the default preset nor an unusual font guarantees a good design.

Record the chosen preset, theme, fonts and icon family in the project's design notes; preserve that direction unless the brief changes. References and images are project-specific. Component style and icon family are separate choices; [styling.md](references/styling.md) covers them.

Keep the user's task clear:

- Cut decorative badges, repeated headings, empty marketing claims and helper text that explains the obvious.
- Keep useful status, navigation, explanations and disclosures.
- Use cards, sections and CTAs because the content needs them, rather than filling a template.
- Use brief motion to connect an action with its result, expanded details or active navigation. Reuse existing interaction components; [styling.md](references/styling.md) covers Motion, GSAP and `vercel-react-view-transitions` for different animation needs.
- Reuse the project's icon family. Use `icons` when sourcing new UI icons, file-type icons or official brand assets; an icon does not automatically replace a clear label.

## Use atmosphere when it helps

Grid and dot patterns, soft background lights, gradients, custom shapes, textures, illustrations and video are available design tools. Use them when they suit the brief, strengthen the product's identity or clarify a section. A distinctive background can be the right choice; a quiet page can be too.

Keep effects behind content, consistent with the palette and proportionate to the page. Use available image or video generation tools when purpose-made media would improve the result, or reuse suitable real assets. Choose the asset and implementation for the task; there is no mandatory animation library or image quota.

Read [styling.md](references/styling.md) when deciding on fonts, theme customization, backgrounds, media or motion.

## Work from the actual project

Use Bun for packages and scripts in new projects: `bun install`, `bun add`, `bun run <script>` and `bunx --bun <cli>`. This is the user's default; do not ask them to choose a package manager again. In existing projects, follow `packageManager`, the lockfile, component conventions and configured aliases.

Inspect `components.json` and the installed components before editing. Use the `shadcn` skill and the CLI's `info`/`docs` commands for project metadata, component documentation and registry guidance.

Component APIs depend on the primitive base (`init --base base|radix|aria`; Base UI is the default): Base UI uses `render` where Radix commonly uses `asChild`. Preserve the existing base and consult its docs.

`shadcn docs`, `add` and `view` need the registry over the network; `docs` returns URLs rather than text. Offline, the project's own `components/ui` source and the primitive package's type definitions are the API reference, and `shadcn <command> --help`, `preset decode`, `migrate --list` and the installed `shadcn/tailwind.css` still work.

Prefer documentation matching the installed Next.js version, including `node_modules/next/dist/docs/` when present. Use available Next.js dev tools for runtime errors and route context rather than relying on remembered APIs.

## Keep the integration sound

- Keep Client Component boundaries as narrow as practical; providers and interactive subtrees may need a higher boundary.
- Keep shared chrome in layouts and route content near its route. A `(protected)` route group does not enforce authorization.
- Authenticate, authorize and validate inside Server Actions and data access. Choose caching from freshness and access requirements.
- Use semantic theme tokens and existing component variants. Put deliberate design-system changes in the theme or component definitions.

Read [architecture.md](references/architecture.md) for routing, Server/Client boundaries and caching; [sidebar.md](references/sidebar.md) for shared sidebar layouts; [project-setup.md](references/project-setup.md) for scaffolding and presets.

## Verify the result

Inspect the rendered view at relevant mobile and desktop widths. Check composition, wrapping, overflow, controls and the states affected by the change. Preserve accessibility, focus and reduced-motion behavior; screenshots and DOM inspection answer different questions. Own the visual finish: compare the real view and animation intermediates with the project's direction, and fix observed defects before delivery.

Run the project's checks. If `@shadcn/lint` is configured, use its feedback to keep the design system coherent. For a new Tailwind v4 project, or recurring theme drift, consider integrating it with the existing linter. Configure rules for the intended design; custom backgrounds and media may need deliberate exceptions. See [shadcn-platform.md](references/shadcn-platform.md) for lint setup and optional shadcn utilities.

Report what changed and what was verified.

© laguagu · MIT · laguagu/claude-code-nextjs-skills

Похожие скиллы

Всё по теме «Фронтенд и UI» →
typescript-nodejs-nextjs-react-ui-css-cursorrules- PatrickJS Правило для Cursor задаёт стиль кода на TypeScript, Next.js App Router, React и Tailwind. Пригодится, если агент пишет компоненты иначе, чем вы привыкли. ★ 41 011звёзд репо nextjs-typescript-cursorrules-prompt-file PatrickJS Правило для Cursor задаёт стек Next.js с TypeScript и порядок работы агента: план, стиль кода, формат ответа. Пригодится, если вы пишете фронтенд на Next.js. ★ 41 011звёзд репо shadcn-ui giuseppe-trisciuoglio Скилл подсказывает агенту, как ставить и настраивать компоненты shadcn/ui: кнопки, диалоги, таблицы, формы с React Hook Form и Zod. CX Codex +1 22 400установок tailwind-v4-shadcn secondsky Скилл настраивает связку Tailwind CSS v4, shadcn/ui и React в проектах на Vite. Помогает избежать ошибок импорта и поломки CSS-переменных при переключении тем оформления. CX Codex +1 8 100установок shadcn shadcn-ui Скилл ведёт агента по работе с shadcn/ui: добавляет компоненты, ищет в реестрах, чинит верстку и собирает дизайн-систему по вашему описанию. CX Codex +1 123 300установок shadcn-layouts jwynia Помогает агенту собрать раскладку на shadcn и Tailwind так, чтобы она заработала с первого раза, и разобраться с высотой, скроллом и flex/grid. CX Codex +1 457установок

Из того же набора3

Спонсоры проекта

Компании, которые помогают держать аналитику открытой