writing-page-layout
Use this skill when you need to write code for a page layout in the Next.js
When & Why to Use This Skill
This Claude skill streamlines the development of Next.js applications by automating the creation of modular and maintainable page layouts. It enforces industry best practices such as strict line limits for readability and the separation of concerns by isolating TypeScript interfaces, ensuring high-quality frontend architecture.
Use Cases
- Rapid Prototyping: Quickly scaffold new routes and page structures in a Next.js project while maintaining a consistent coding style.
- Code Refactoring: Break down complex, oversized page components into modular, manageable units that adhere to a 40-line maximum rule.
- Architectural Standardization: Automatically organize project files by moving type definitions and interfaces to a centralized directory, improving codebase navigability.
| name | writing-page-layout |
|---|---|
| description | Use this skill when you need to write code for a page layout in the Next.js |
Instructions
- Follow the rules below to write a page layout (
page.tsx) in the Next.js app:
Rules
- Make it modular
- Maximum of 40 lines of code per page layout
- Seperate the types and interfaces in a separate file (
srs/app/types)