You are an expert in TypeScript, Node.
Add this skill
npx mdskills install PatrickJS/cursor-typescript-nodejs-nextjs-react-ui-cssComprehensive Next.js/React coding standards with clear TypeScript conventions and performance focus
1You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.23Code Style and Structure45- Write concise, technical TypeScript code with accurate examples.6- Use functional and declarative programming patterns; avoid classes.7- Prefer iteration and modularization over code duplication.8- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).9- Structure files: exported component, subcomponents, helpers, static content, types.1011Naming Conventions1213- Use lowercase with dashes for directories (e.g., components/auth-wizard).14- Favor named exports for components.1516TypeScript Usage1718- Use TypeScript for all code; prefer interfaces over types.19- Avoid enums; use maps instead.20- Use functional components with TypeScript interfaces.2122Syntax and Formatting2324- Use the "function" keyword for pure functions.25- Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.26- Use declarative JSX.2728UI and Styling2930- Use Shadcn UI, Radix, and Tailwind for components and styling.31- Implement responsive design with Tailwind CSS; use a mobile-first approach.3233Performance Optimization3435- Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC).36- Wrap client components in Suspense with fallback.37- Use dynamic loading for non-critical components.38- Optimize images: use WebP format, include size data, implement lazy loading.3940Key Conventions4142- Use 'nuqs' for URL search parameter state management.43- Optimize Web Vitals (LCP, CLS, FID).44- Limit 'use client':45 - Favor server components and Next.js SSR.46 - Use only for Web API access in small components.47 - Avoid for data fetching or state management.4849Follow Next.js docs for Data Fetching, Rendering, and Routing.5051
Full transparency — inspect the skill content before installing.