nextjs-react-typescript — Claude Code skill: Next.js stack
A skill that sets code style for Next.js App Router, React, TypeScript, Shadcn UI and Tailwind. The agent writes functional components, server-first, with TypeScript interfaces.
npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-codeWhat nextjs-react-typescript does
The skill teaches the agent to write TypeScript with Next.js App Router, React, Shadcn UI, Radix UI and Tailwind following shared rules. Code comes out functional, no classes; folders named with dashes (auth-wizard), variables with verbs (isLoading). The agent prefers React Server Components, wraps client ones in Suspense, loads non-critical parts dynamically.
Inside: conventions for file structure (export, subcomponents, helpers, types), formatting (function keyword, declarative JSX), optimization (WebP, lazy loading, Web Vitals). For URL parameter state the skill suggests nuqs. Interfaces beat types, enums replaced with maps.
The skill carries no ready component templates: it changes how the agent writes and organizes Next.js project code.
What it helps with
- set a unified TypeScript code style in a Next.js project
- switch from client components to server-first by default
- organize file and folder structure by convention
- optimize rendering and Web Vitals without manual oversight
- configure the agent for Shadcn UI, Radix UI and Tailwind
Example prompts for the agent
- Build a profile page with a server component and Shadcn UI
- Turn the client
UserListcomponent into a server-rendered one - Wrap the modal in
Suspenseand load it dynamically
How to install nextjs-react-typescript
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code2Manually: put the files in place
~/.claude/skills/nextjs-react-typescript/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/nextjs-react-typescript/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a codex2Manually: put the files in place
.agents/skills/nextjs-react-typescript/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a cursor2Manually: put the files in place
.cursor/skills/nextjs-react-typescript/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills nextjs-react-typescript2Manually: put the files in place
.github/skills/nextjs-react-typescript/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path nextjs-react-typescriptManually: put the files in place
.devin/skills/nextjs-react-typescript/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill nextjs-react-typescript -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about nextjs-react-typescript
How to install nextjs-react-typescript in Claude Code?
Run npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code, the skill lands in ~/.claude/skills/nextjs-react-typescript/SKILL.md.
What does the nextjs-react-typescript skill do?
The skill sets rules for TypeScript, Next.js App Router, React, Shadcn UI and Tailwind: functional components, server rendering by default, naming conventions and optimization.
Why use nextjs-react-typescript?
The skill brings Next.js project code to a single style: the agent writes server components, uses interfaces over types, organizes files by structure and optimizes rendering automatically.
Source text
SKILL.md · Apache-2.0
--- name: nextjs-react-typescript description: Expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Next.js React TypeScript You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. ## Code Style and Structure - Write concise, technical TypeScript code with accurate examples - Employ functional and declarative programming patterns; steer clear of classes - Prioritize iteration and modularization over code duplication - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError) - Organize files: exported component, subcomponents, helpers, static content, types ## Naming Conventions - Use lowercase with dashes for directories (e.g., components/auth-wizard) - Favor named exports for components ## TypeScript Usage - Use TypeScript for all code; prefer interfaces over types - Avoid enums; use maps instead - Use functional components with TypeScript interfaces ## Syntax and Formatting - Use the "function" keyword for pure functions - Avoid unnecessary curly braces in conditionals - Use declarative JSX ## UI and Styling - Leverage Shadcn UI, Radix, and Tailwind for components and styling - Implement responsive design with Tailwind CSS using a mobile-first approach ## Performance Optimization - Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components - Wrap client components in Suspense with fallback - Use dynamic loading for non-critical components - Optimize images: use WebP format, include size data, implement lazy loading ## Key Conventions - Use 'nuqs' for URL search parameter state management - Optimize Web Vitals (LCP, CLS, FID) - Limit 'use client' to Web API access in small components; avoid for data fetching or state management - Follow Next.js documentation for Data Fetching, Rendering, and Routing
© Mindrally · Apache-2.0 · Mindrally/skills