Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Web Rules

  • 85 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

web-rules is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

Key points

  • web-rules
  • AI & Agent Building
  • AI-coding skill

Web Rules by the numbers

  • 85 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,069 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill web-rules

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs85
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with ai & agent building tasks during ai-assisted development?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with web-rules.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during ai-assisted development, or when web-rules is a claude code skill for ai & agent building. it helps solo builders move faster with ai-assisted coding.

What you get

Structured output aligned to web-rules: web-rules; AI & Agent Building; AI-coding skill.

Files

SKILL.mdMarkdownGitHub ↗

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

PriorityCategoryImpactPrefix
1NavigationCRITICALnav-
2Interaction DesignCRITICALinter-
3AccessibilityCRITICALacc-
4User FeedbackHIGHfeed-
5UX PatternsHIGHux-
6Visual DesignHIGHvis-

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)

  • `inter-touch-targets` - 44×44 px minimum touch target (WCAG 2.5.5)
  • `inter-pointer-patterns` - Use standard hover/click/long-press patterns; never invent new ones
  • `inter-microinteractions` - Always confirm interaction with visual feedback within 100ms
  • `inter-keyboard-navigation` - Every interactive element must be reachable and operable by keyboard
  • `inter-drag-drop` - Provide a keyboard-accessible alternative whenever drag is offered
  • `inter-revalidation` - Use revalidatePath/revalidateTag after mutations; never rely on client refresh
  • `inter-row-actions` - Use a single "row action" pattern per list (kebab menu OR hover actions OR swipe)
  • `inter-search` - Debounce search input by 200-300ms and reflect query in the URL

3. Accessibility (CRITICAL)

  • `acc-labels` - Every interactive element has an accessible name
  • `acc-text-scaling` - All text scales to 200% browser zoom without horizontal scroll
  • `acc-color-contrast` - WCAG AA: 4.5:1 body text, 3:1 large/UI
  • `acc-reduce-motion` - Respect prefers-reduced-motion: reduce
  • `acc-color-independent` - Never rely on color alone to convey meaning
  • `acc-focus-management` - Always render a visible focus ring; trap focus inside modals
  • `acc-relative-units` - Use rem for text and spacing; never fix text size in px
  • `acc-responsive-layout` - Every layout works at 320 px width without horizontal scroll

4. User Feedback (HIGH)

  • `feed-loading-states` - Always use loading.tsx or <Suspense> with a skeleton matching final layout
  • `feed-error-states` - Every route segment has error.tsx with a Try-Again action
  • `feed-toasts` - Use toasts only for confirmations of non-blocking actions
  • `feed-success-confirmation` - Confirm every destructive or irreversible action with explicit visible feedback
  • `feed-empty-states` - Empty states explain why and offer the next action

5. UX Patterns (HIGH)

  • `ux-onboarding` - Onboarding never exceeds 3 screens; always skippable
  • `ux-permissions` - Request browser permissions in-context, not on page load
  • `ux-modality` - Choose dialog / popover / full-page by content weight; never stack modals
  • `ux-destructive-confirmation` - Destructive actions require a typed confirmation OR an undo window
  • `ux-data-entry` - Use Server Actions + progressive enhancement; never disable submit while typing
  • `ux-undo` - Prefer undo over confirmation for everyday actions
  • `ux-settings` - Settings are autosaved on change; never gated behind a Save button

6. Visual Design (HIGH)

  • `vis-dark-mode` - Use CSS custom properties + dark: variant; never hardcode text-black/bg-white
  • `vis-icon-system` - Use lucide-react with 1.5px stroke and size-4/size-5 standard sizes
  • `vis-spacing` - Use the Tailwind 4 pt scale and container queries; never use ad-hoc px margins

How to Use

Read individual reference files for detailed explanations and code examples:

  • Section definitions - Category structure and impact levels
  • Rule template - Template for adding new rules

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules

Related skills

FAQ

What does web-rules do?

web-rules is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.

When should I use web-rules?

When you need to helps with ai & agent building tasks during ai-assisted development, or when web-rules is a claude code skill for ai & agent building. it helps developers move faster with ai-assisted coding.

What are the main capabilities?

web-rules; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.