Individual skill
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."
skills/.experimental/web-rules/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Network or broad shell
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 221
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- design Derived category
- engineering Derived category
- design-interface Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 7,520 bytesassets/templates/_template.mddoc · 728 bytesmetadata.jsonasset · 1,229 bytesreferences/_sections.mddoc · 2,128 bytesreferences/acc-color-contrast.mddoc · 3,304 bytesreferences/acc-color-independent.mddoc · 3,292 bytesreferences/acc-focus-management.mddoc · 4,455 bytesreferences/acc-labels.mddoc · 3,572 bytesreferences/acc-reduce-motion.mddoc · 3,005 bytesreferences/acc-relative-units.mddoc · 2,966 bytesreferences/acc-responsive-layout.mddoc · 3,491 bytesreferences/acc-text-scaling.mddoc · 2,839 bytesreferences/feed-empty-states.mddoc · 3,818 bytesreferences/feed-error-states.mddoc · 4,232 bytesreferences/feed-loading-states.mddoc · 4,080 bytesreferences/feed-success-confirmation.mddoc · 3,962 bytesreferences/feed-toasts.mddoc · 3,423 bytesreferences/inter-drag-drop.mddoc · 4,564 bytesreferences/inter-keyboard-navigation.mddoc · 3,493 bytesreferences/inter-microinteractions.mddoc · 3,392 bytesreferences/inter-pointer-patterns.mddoc · 3,724 bytesreferences/inter-revalidation.mddoc · 3,664 bytesreferences/inter-row-actions.mddoc · 4,001 bytesreferences/inter-search.mddoc · 4,113 bytesreferences/inter-touch-targets.mddoc · 2,113 bytesreferences/nav-app-router.mddoc · 2,999 bytesreferences/nav-page-actions.mddoc · 2,785 bytesreferences/nav-primary.mddoc · 2,728 bytesreferences/ux-data-entry.mddoc · 5,642 bytesreferences/ux-destructive-confirmation.mddoc · 4,440 bytesreferences/ux-modality.mddoc · 3,998 bytesreferences/ux-onboarding.mddoc · 3,906 bytesreferences/ux-permissions.mddoc · 4,158 bytesreferences/ux-settings.mddoc · 4,852 bytesreferences/ux-undo.mddoc · 3,903 bytesreferences/vis-dark-mode.mddoc · 4,203 bytesreferences/vis-icon-system.mddoc · 3,713 bytesreferences/vis-spacing.mddoc · 3,975 bytes
Read excerpt
# 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