Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

web-rules

БесплатноБез исполняемых скриптовНе проверен

Strict design and UX rules for React 19 + Next.js 16 (App Router) + Tailwind CSS 4. Covers navigation, interaction design, accessibility, user feedback, UX…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

React 19 + Next.js 16 + Tailwind CSS Best Practices

Comprehensive strict-rules reference for web apps built on React 19, the Next.js 16 App Router, and Tailwind CSS 4. Contains 34 rules across 6 categories. Each rule is stated as an Always/Never directive with a quantified impact, an incorrect example, and a correct example.

Stack Contract

All guidance assumes:

  • React 19 with Server Components by default; Client Components only when interactivity is required ('use client' at the top)
  • Next.js 16 App Router with app/ directory, layout.tsx, page.tsx, loading.tsx, error.tsx, not-found.tsx, parallel routes, intercepting routes
  • Server Actions for mutations ('use server') — never useEffect for data fetching
  • Tailwind CSS 4 with the @theme directive, dark: variant, container queries, and the standard 4pt spacing scale
  • lucide-react as the canonical icon system
  • No CSS-in-JS (no styled-components, no emotion) — Tailwind utility classes only, with cn() from clsx + tailwind-merge for conditional classes
  • shadcn/ui primitives (Radix-based) preferred for dialogs, popovers, dropdowns, tooltips, toasts

When to Apply

Reference these rules when:

  • Building any user-facing route, layout, or component
  • Reviewing PRs for design / UX / accessibility regressions
  • Choosing between modality types (dialog vs popover vs full-page)
  • Implementing forms with Server Actions and useFormState / useOptimistic
  • Configuring loading and error boundaries
  • Designing onboarding, permissions, or settings flows
  • Ensuring dark mode, focus management, and keyboard navigation work end-to-end

Rule Categories by Priority

Priority Category Impact Prefix
1 Navigation CRITICAL nav-
2 Interaction Design CRITICAL inter-
3 Accessibility CRITICAL acc-
4 User Feedback HIGH feed-
5 UX Patterns HIGH ux-
6 Visual Design HIGH vis-

Quick Reference

1. Navigation (CRITICAL)

  • nav-primary - Use top nav (3-7 sections) or sidebar; never hamburger-only on desktop
  • nav-app-router - Use App Router layouts, parallel routes, and <Link> for all internal navigation
  • nav-page-actions - Place primary actions in the page header; never bury them in scroll

2. Interaction Design (CRITICAL)

3. Accessibility (CRITICAL)

4. User Feedback (HIGH)

Полный SKILL.md на GitHub

Установить web-rules в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/acc-color-contrast.mdreferences/acc-color-independent.mdreferences/acc-focus-management.mdreferences/acc-labels.mdreferences/acc-reduce-motion.mdreferences/acc-relative-units.mdreferences/acc-responsive-layout.mdreferences/acc-text-scaling.mdreferences/feed-empty-states.mdreferences/feed-error-states.mdreferences/feed-loading-states.mdreferences/feed-success-confirmation.mdreferences/feed-toasts.mdreferences/inter-drag-drop.mdreferences/inter-keyboard-navigation.mdreferences/inter-microinteractions.mdreferences/inter-pointer-patterns.mdreferences/inter-revalidation.mdreferences/inter-row-actions.mdreferences/inter-search.mdreferences/inter-touch-targets.mdreferences/nav-app-router.mdreferences/nav-page-actions.mdreferences/nav-primary.mdreferences/ux-data-entry.mdreferences/ux-destructive-confirmation.mdreferences/ux-modality.mdreferences/ux-onboarding.mdreferences/ux-permissions.mdreferences/ux-settings.mdreferences/ux-undo.mdreferences/vis-dark-mode.mdreferences/vis-icon-system.mdreferences/vis-spacing.md

FAQ

Что делает скилл web-rules?

Strict design and UX rules for React 19 + Next.js 16 (App Router) + Tailwind CSS 4. Covers navigation, interaction design, accessibility, user feedback, UX patterns, and visual design. Use when designing, building, or reviewing any user-facing web feature on this stack. Trigger when the user asks to "build a settings page", "add a dialog", "design this form", "review for accessibility", "fix dark mode", or any Next.js App Router / React 19 / Tailwind UI task. Also trigger when the user says output "looks off", "isn't accessible", or "doesn't follow best practices."

Как установить скилл web-rules?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл web-rules запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить web-rules с