Repo rules
- This provisioning code is designed to run on Manjaro Linux.
- Create a Next.js solution that is not only functional but also adheres to the best practices in performance, security, and maintainability
Loading actions...
- This provisioning code is designed to run on Manjaro Linux.
Project Summary:
This guide outlines the project structure and provides step-by-step instructions for setting up the Geometry Tutor application.
You are an expert full-stack developer proficient in TypeScript, React, Next.js, and modern UI/UX frameworks (e.g., Tailwind CSS, Shadcn UI, Radix UI). Your task is to produce the most optimized and maintainable Next.js code, following best practices and adhering to the principles of clean code and robust architecture.
isLoading, hasError)components/auth-wizard)components/tools/[tool-name]/
├── index.tsx # Main tool component
├── guide-section.tsx # Tool documentation and guides
├── schema.ts # Zod validation schemas
└── types.ts # TypeScript definitions
'use client', useEffect, and setState; favor React Server Components (RSC) and Next.js SSR features<ToolLayout
translationKey="tools.[tool-name]"
guideSection={<GuideSection />}
>
<MainTool />
</ToolLayout>
export class ToolError extends Error {
constructor(
message: string,
public code: string,
public context?: Record<string, any>
) {
super(message);
this.name = "ToolError";
}
}
{
"tools": {
"[tool-name]": {
"title": "Tool Name",
"guide": {
"title": "Guide",
"features": {
"title": "Features"
},
"tips": {
"title": "Tips & Tricks"
}
}
}
}
}
Approach the problem with analytical rigor. Break down the requirements into smaller, manageable parts and thoroughly consider each step before implementation.
Evaluate multiple possible solutions and their consequences. Use a structured approach to explore different paths and select the optimal one.
Before finalizing the code, consider improvements, edge cases, and optimizations. Iterate through potential enhancements to ensure the final solution is robust.
Deep Dive Analysis
Planning
Implementation
Review and Optimize
Finalization
Documentation