
Optimized Nextjs Typescript
This is a comprehensive prompt for building modern Next.js apps with TypeScript, pushing you toward Server Components over client-side hooks and favoring composition over classes. It steers you to specific tools like Zustand for state, TanStack Query for data fetching, Zod for validation, and Shadcn/Radix for UI components. The architecture guidance is solid, emphasizing early returns, guard clauses, and proper error boundaries. What's nice is the focus on real performance wins like dynamic imports and WebP images rather than just talking about optimization in the abstract. If you're spinning up a new Next.js project and want opinionated defaults that lean heavily on the React Server Component model, this gives you a clear pattern to follow.
- skills.sh installs
- 1K
- GitHub stars
- 302
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mindrally/skills --skill optimized-nextjs-typescript --agent claude-codeInstalls into .claude/skills of the current project.
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, andsetState; 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
Sponsors
Details
- Repository
- github.com/mindrally/skills
- Categories
- Frontend Development, Security, Code Review & Quality, Debugging, Design & UI/UX
- First seen
- May 16, 2026
More from mindrally/skills
All 240- Clean Architecture1K
- Scipy Best Practices1K
- Numpy Best Practices1K
- Elasticsearch Best Practices1K
- Python1K
- Nlp Natural Language Processing1K
- Ui Design1K
- Internationalization I18n1K
- Python Cybersecurity Tool Development1K
- Java994
- Typescript994
- Zustand State Management993
- Python Uv992
- Sequelize983
- Pixi Js976
- React976
- Nestjs Clean Typescript974
- Deep Learning972
- Security Best Practices967
- Django Python965
- Gcp Development965
- Java Spring Development959
- Flutter953
- Unity946