modern-web-development — скилл для Claude Code: правила Next.js
Набор правил для современного веб-стека: TypeScript, Next.js 14, React Server Components, Supabase, GraphQL и Tailwind CSS. Пригодится, когда агент пишет фронтенд и API в одном проекте.
npx skills add Mindrally/skills --skill modern-web-development -a claude-codeЧто делает modern-web-development
Скилл подсовывает агенту свод правил по коду. Внутри — требования к стилю: функциональный подход вместо классов, function для чистых функций, интерфейсы вместо типов, имена переменных с вспомогательными глаголами вроде isLoading, паттерн RORO. Файлы предлагается раскладывать по порядку: экспортируемый компонент, подкомпоненты, хелперы, статика, типы.
По React и Next.js правила конкретные. Минимум use client, useEffect и setState — ставка на серверные компоненты. Клиентские компоненты оборачиваются в Suspense с фолбэком, некритичные грузятся динамически, формы валидируются через Zod. Для данных — серверные компоненты и preload-паттерн против водопадов, Supabase для синхронизации в реальном времени, Vercel KV для истории чатов и сессий. В GraphQL советуется Genql ради типизации.
Отдельные блоки — про Supabase с политиками Row Level Security, Auth, Storage и Edge Functions, про Tailwind с CVA для вариантов компонентов, про тесты трёх уровней и доступность: клавиатурная навигация, ARIA, контраст по WCAG. Стиль кода в правилах без точек с запятой и с ранними возвратами на входе функции. Если ваш проект на классовых компонентах или использует другой CSS-подход, эти правила будут спорить с текущим кодом — это повод проверить, стоит ли включать скилл целиком или только частью.
Какие задачи решает
- задать агенту единый стиль TypeScript по всему проекту
- перевести страницы на React Server Components без лишних
use client - настроить выборку данных через Supabase и политики RLS
- типизировать GraphQL-запросы без ручных интерфейсов
- разложить компоненты и хелперы по предсказуемой структуре файла
Примеры запросов агенту
- собери страницу каталога на Next.js 14 с серверным компонентом и выборкой из Supabase
- проверь этот компонент по правилам скилла и убери лишние
use clientиuseEffect - добавь форму с валидацией через Zod и оберни клиентскую часть в Suspense
Как установить modern-web-development
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill modern-web-development -a claude-code2Вручную: положить файлы
~/.claude/skills/modern-web-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/modern-web-development/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill modern-web-development -a codex2Вручную: положить файлы
.agents/skills/modern-web-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill modern-web-development -a cursor2Вручную: положить файлы
.cursor/skills/modern-web-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills modern-web-development2Вручную: положить файлы
.github/skills/modern-web-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill modern-web-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path modern-web-developmentВручную: положить файлы
.devin/skills/modern-web-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill modern-web-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о modern-web-development
Как установить modern-web-development в Claude?
Выполните npx skills add Mindrally/skills --skill modern-web-development -a claude-code. Скилл встанет в ~/.claude/skills/modern-web-development/SKILL.md.
Что делает modern-web-development?
Задаёт агенту правила современного веб-стека: TypeScript, Next.js 14, React Server Components, Supabase, GraphQL и Tailwind CSS. Агент опирается на них, когда пишет или правит код.
С какими платформами работает скилл?
Кроме Claude есть установка для Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Для GitHub Copilot команда другая: gh skill install Mindrally/skills modern-web-development.
Исходный текст
SKILL.md · Apache-2.0
--- name: modern-web-development description: Modern web development best practices for TypeScript, Next.js 14, React Server Components, Supabase, GraphQL, and Tailwind CSS. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Modern Web Development Brandon Fernandez's comprehensive cursor rules for modern web development with TypeScript, Node.js, Next.js 14, React, Supabase, GraphQL, Tailwind CSS, Radix UI, and Shadcn UI. ## Key Development Principles ### Code Style and Architecture - Write concise, technical responses with accurate TypeScript examples - Employ functional, declarative programming while avoiding class-based approaches - Prioritize iteration and modularization over code duplication - Use descriptive variable names with auxiliary verbs (`isLoading`, `hasError`) - Implement the RORO pattern (Receive an Object, Return an Object) ### JavaScript/TypeScript Standards - Use `function` keyword for pure functions - Omit semicolons - Leverage TypeScript exclusively, preferring interfaces over types - Structure files as: exported component, subcomponents, helpers, static content, types - Minimize unnecessary curly braces in conditionals ### Error Handling - Address errors and edge cases at function entry points - Apply early returns for error conditions avoiding deep nesting - Position the success path last for improved readability - Use guard clauses for precondition validation - Implement user-friendly error messaging ## React and Next.js Guidelines - Use functional components with TypeScript interfaces - Write declarative JSX using `function` declarations - Style with Shadcn UI, Radix, and Tailwind CSS - Implement mobile-first responsive design - Minimize `use client`, `useEffect`, and `setState` - favor React Server Components - Employ Zod for form validation - Wrap client components in Suspense with fallbacks - Use dynamic loading for non-critical components - Optimize images (WebP format, size data, lazy loading) ## Data and State Management - Leverage React Server Components for data fetching - Implement the preload pattern to prevent waterfalls - Use Supabase for real-time synchronization and state management - Consider Vercel KV for chat history, rate limiting, and sessions ## Supabase and GraphQL - Use Supabase client for database interactions and subscriptions - Implement Row Level Security (RLS) policies - Leverage Supabase Auth, Storage, and Edge Functions - Use Genql for type-safe GraphQL API interactions - Optimize GraphQL queries to fetch only necessary data ## Styling and Testing ### Styling - Apply Tailwind CSS utility-first approach - Use Class Variance Authority (CVA) for component variants ### Testing - Implement unit tests for utilities and hooks - Create integration tests for complex components - Develop end-to-end tests for critical user flows ## Accessibility and Documentation ### Accessibility - Ensure keyboard navigation throughout interfaces - Implement proper ARIA labels and semantic roles - Maintain WCAG-compliant color contrast ratios ### Documentation - Provide clear JSDoc comments for IDE intellisense - Document Supabase schemas, RLS policies, and Edge Functions
© Mindrally · Apache-2.0 · Mindrally/skills