npx skills add smithery/mindrally --skill optimized-nextjs-typescript
mindrally/skills
optimized-nextjs-typescript
Optimized Next.js TypeScript best practices with modern UI/UX, focusing on performance, security, and clean architecture
Installation
npx skills add mindrally/skills --skill optimized-nextjs-typescript
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `pr…
253.4K installsBest practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies…
12.6K installsGenerate a complete MCP server project in TypeScript using the MCP TypeScript SDK v2 (@modelcon…
12K installsScaffold a minimal local LangGraph agent in TypeScript by following the official quickstart. Us…
2.2K installsScaffold a minimal local LangChain agent in TypeScript by following the official quickstart. Us…
2.1K installsAlso in this package
Other skills from mindrally/skills · top by installs.
npx skills add mindrally/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md1,878 B -
docs
SUMMARY.md1,842 B
History
- First seen on skills.sh
- First recorded snapshot · 952 installs
SKILL.md
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
- Leverage modern frameworks: Tailwind CSS, Shadcn UI, Radix UI
- Maintain consistent, responsive design patterns
State and Data Management
- Use Zustand or TanStack React Query for state and data fetching
- Implement Zod for schema validation
Security and Performance
- Apply proper error handling and input validation
- Follow performance optimization techniques for load times and rendering
Testing and Documentation
- Write Jest and React Testing Library unit tests
- Include JSDoc comments for IDE intellisense
- Document complex logic clearly