Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code
Open on GitHub

What 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 UserList component into a server-rendered one
  • Wrap the modal in Suspense and load it dynamically

How to install nextjs-react-typescript

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill nextjs-react-typescript -a claude-code

2Manually: put the files in place

~/.claude/skills/nextjs-react-typescript/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nextjs-react-typescript/

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

Similar skills

Everything for Frontend and UI →

From the same set214

fastapi-python Tells the agent how to write FastAPI code: async I/O, Pydantic v2 models, early returns and router layout. Useful when you build a Python API. CX Codex +1 13,900installs web-scraping A skill that tells your agent which Python library to reach for on a given site, and how to keep the crawl from breaking or getting blocked. CX Codex +1 4,500installs computer-vision-opencv A skill that keeps your agent inside the conventions of OpenCV and PyTorch work: filters, feature matching, video pipelines, tracking. Useful when the repo already deals with frames. CX Codex +1 3,800installs framer-motion Tells your agent which properties to animate in Motion and which ones wreck layout. Useful when the project already runs React and TypeScript. CX Codex +1 3,000installs chrome-extension-development Walks your agent through Manifest V3 extension work: manifest, service worker, content scripts, popup UI, and Chrome Web Store publishing. CX Codex +1 2,800installs mysql-best-practices A skill that gives the agent rules for MySQL schema design, indexing and query optimization. Useful when it writes migrations or debugs a slow query. CX Codex +1 2,700installs odoo-development A skill that turns your AI agent into an Odoo developer: Python ORM models, XML views, access rules, module layout. CX Codex +1 2,300installs expo-react-native-typescript A skill that hands your agent a rulebook for Expo, React Native and TypeScript work: file layout, navigation, state, testing. CX Codex +1 2,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor