nextjs-react-typescript — скилл для Claude Code
Скилл задаёт стиль кода для Next.js App Router, React, TypeScript, Shadcn UI и Tailwind. Агент пишет функциональные компоненты, серверные по умолчанию, с TypeScript-интерфейсами.
npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-codeЧто делает nextjs-react-typescript
Скилл учит агента писать на TypeScript с Next.js App Router, React, Shadcn UI, Radix UI и Tailwind по единым правилам. Код получается функциональным, без классов; папки именуются через дефис (auth-wizard), переменные — с глаголом (isLoading). Агент предпочитает серверные компоненты React, оборачивает клиентские в Suspense, загружает некритичные части динамически.
Внутри — соглашения по структуре файлов (экспорт, подкомпоненты, хелперы, типы), форматированию (ключевое слово function, декларативный JSX), оптимизации (WebP, ленивая загрузка, Web Vitals). Для состояния URL-параметров скилл советует nuqs. Интерфейсы предпочтительнее типов, енамы заменяются мапами.
Скилл не содержит готовых шаблонов компонентов: он меняет то, как агент пишет и организует код Next.js-проекта.
Какие задачи решает
- задать единый стиль TypeScript-кода в Next.js-проекте
- перейти с клиентских компонентов на серверные по умолчанию
- организовать структуру файлов и папок по соглашениям
- оптимизировать рендеринг и Web Vitals без ручного контроля
- настроить агента на Shadcn UI, Radix UI и Tailwind
Примеры запросов агенту
- Создай страницу профиля с серверным компонентом и Shadcn UI
- Переведи клиентский компонент
UserListна серверный рендеринг - Оберни модальное окно в
Suspenseи загружай его динамически
Как установить nextjs-react-typescript
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code2Вручную: положить файлы
~/.claude/skills/nextjs-react-typescript/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/nextjs-react-typescript/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a codex2Вручную: положить файлы
.agents/skills/nextjs-react-typescript/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a cursor2Вручную: положить файлы
.cursor/skills/nextjs-react-typescript/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills nextjs-react-typescript2Вручную: положить файлы
.github/skills/nextjs-react-typescript/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path nextjs-react-typescriptВручную: положить файлы
.devin/skills/nextjs-react-typescript/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о nextjs-react-typescript
Как установить nextjs-react-typescript в Claude Code?
Выполни npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code, скилл окажется в ~/.claude/skills/nextjs-react-typescript/SKILL.md.
Что делает скилл nextjs-react-typescript?
Скилл задаёт правила для TypeScript, Next.js App Router, React, Shadcn UI и Tailwind: функциональные компоненты, серверный рендеринг по умолчанию, соглашения по именованию и оптимизации.
Зачем нужен nextjs-react-typescript?
Скилл приводит код Next.js-проекта к единому стилю: агент пишет серверные компоненты, использует интерфейсы вместо типов, организует файлы по структуре и оптимизирует рендеринг автоматически.
Исходный текст
SKILL.md · Apache-2.0
--- name: nextjs-react-typescript description: Expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Next.js React TypeScript You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. ## Code Style and Structure - Write concise, technical TypeScript code with accurate examples - Employ functional and declarative programming patterns; steer clear of classes - Prioritize iteration and modularization over code duplication - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError) - Organize files: exported component, subcomponents, helpers, static content, types ## Naming Conventions - Use lowercase with dashes for directories (e.g., components/auth-wizard) - Favor named exports for components ## TypeScript Usage - Use TypeScript for all code; prefer interfaces over types - Avoid enums; use maps instead - Use functional components with TypeScript interfaces ## Syntax and Formatting - Use the "function" keyword for pure functions - Avoid unnecessary curly braces in conditionals - Use declarative JSX ## UI and Styling - Leverage Shadcn UI, Radix, and Tailwind for components and styling - Implement responsive design with Tailwind CSS using a mobile-first approach ## Performance Optimization - Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components - Wrap client components in Suspense with fallback - Use dynamic loading for non-critical components - Optimize images: use WebP format, include size data, implement lazy loading ## Key Conventions - Use 'nuqs' for URL search parameter state management - Optimize Web Vitals (LCP, CLS, FID) - Limit 'use client' to Web API access in small components; avoid for data fetching or state management - Follow Next.js documentation for Data Fetching, Rendering, and Routing
© Mindrally · Apache-2.0 · Mindrally/skills