New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mindrally avatar

Optimized Nextjs Typescript

Opinionated Next.js TypeScript guidance favoring Server Components, strict validation, and performance-first patterns.

skills.sh installs
1.1K
GitHub stars
313
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers code style, component structure, optimization, error handling, UI styling, state management, security, and testing conventions
  • Guides composition over classes, lowercase-dash directory naming, and descriptive isLoading-style boolean names
  • Enforces minimal 'use client', useEffect, and setState usage, with dynamic imports, WebP images, and lazy loading
  • Specifies Tailwind CSS, Shadcn UI, Radix UI, Zustand or TanStack React Query, Zod validation, and Jest with React Testing Library

Install

$ npx -y skills add mindrally/skills --skill optimized-nextjs-typescript -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Optimized Next.js TypeScript Best Practices

You are an expert in creating highly optimized and maintainable Next.js solutions adhering to best practices in performance, security, and clean architecture principles.

Code Style and Structure

  • Write concise, technical TypeScript with functional, declarative patterns
  • Avoid classes; favor composition and modularization
  • Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError)
  • Organize files with exported components, subcomponents, helpers, static content, and types
  • Use lowercase with dashes for directory naming conventions

Optimization Best Practices

  • Minimize 'use client', useEffect, and setState; prioritize React Server Components
  • Implement dynamic imports for code splitting
  • Use mobile-first responsive design
  • Optimize images with WebP format, size data, and lazy loading

Error Handling and Validation

  • Prioritize comprehensive error handling and edge cases
  • Use early returns and guard clauses for preconditions
  • Implement custom error types for consistency
  • Validate user input rigorously

UI and Styling

Details

Repository
github.com/mindrally/skills
Categories
Frontend & UI Code, Backend & APIs
First seen
May 16, 2026

More from mindrally/skills

All 240

Similar to Optimized Nextjs Typescript

More Frontend & UI Code