react

Reviews and implements React 19 and Next.js App Router code against performance and correctness rules.

22|Updated Sep 10, 2026
One-click install
npx skills add https://github.com/Lynricsy/HyperSkills --skill react-lynricsy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/Lynricsy/HyperSkills/tree/main/skills/react
Command: npx skills add https://github.com/Lynricsy/HyperSkills --skill react-lynricsy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? React and Next.js codebases accumulate subtle defects—async waterfalls, misplaced 'use client' boundaries, barrel imports, broken hydration, and shadcn/ui convention drift—that pass code review but degrade performance and correctness in production. ## Core Features & Use Cases - Rule-based performance review: Walks an impact-ordered rule set (async waterfalls, bundle, server, re-render, hydration) and reports findings with file:line references, citable rule ids, and concrete fixes. - Guided implementation workflows: Covers component implementation with server/client boundary decisions, state-location selection, and composition patterns that avoid boolean-prop explosion. - Cache Components and instant navigation: Provides a gated loop for adopting Next.js 16.3+ cacheComponents and proving instant route transitions with the @next/playwright instant() guard. - shadcn/ui integration: Enforces CLI-driven component lookup, registry rules, and Tailwind class conventions instead of recalled component APIs. - Use Case: Ask it to review a Next.js dashboard route; it detects a page-level 'use client', sequential awaits, and barrel imports from recharts, then returns an ordered findings report with fixes. ## Quick Start Ask the agent to review your React or Next.js files for performance and correctness problems using the react skill, for example by requesting a review of app/dashboard/page.tsx grouped by file with rule ids and fixes.

Frequently Asked Questions about react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a Next.js App Router page for performance problems?

Run the review-performance workflow: detect the stack from package.json and next.config, then walk the rule categories in impact order—async waterfalls, bundle, server, client fetching, re-render. Report each finding with a file:line reference, a rule id, and a concrete fix.

Why does 'use client' on a page break server rendering?

The 'use client' directive is contagious downward: every module the file imports becomes client code, opting the entire route out of server rendering. Data fetching moves to the browser and cannot start until the JavaScript downloads and hydrates. Push the directive to the smallest interactive leaf instead.

Can a Client Component be async in React Server Components?

No. Only Server Components may be async; an async function in a file marked 'use client' fails at runtime. The fix is to await data in a Server Component parent and pass the resolved value to the client child as a serializable prop.

Does this skill work with Next.js versions below 16.3?

Most rules apply to React 19 and Next.js 15/16 generally, but the make-route-instant workflow and Cache Components guidance require Next.js 16.3+ with cacheComponents enabled. On older versions the skill says so and suggests upgrading via the official codemod.

How should I add shadcn/ui components without breaking project conventions?

Run npx shadcn@latest info --json first to read the project's aliases, icon library, and Tailwind version, then npx shadcn@latest docs <component> before writing code. Never recall component APIs from memory, and never choose a registry the user did not name.

What is outside the scope of this React skill?

It excludes visual and UX design decisions, Vue/Svelte/Astro, React Native and Expo, Pages Router feature work, test-runner and CI configuration, and server-side Node frameworks like Fastify or NestJS. Those belong to other dedicated skills.