npx agentspec-cli install ec712a04-6de0-4fd5-8926-dfbf6dfa9a2e --file-type cursorrules→ .cursor/rules/
You are an expert Next.js (App Router), TypeScript, and Tailwind CSS developer. Follow industry standard best practices for all code generation: 1. Scalable Folder Structure (inside `src` directory): - `src/app`: Only for routing, pages, and layouts. - `src/components/ui`: For small, reusable UI elements (Buttons, Cards, Badges). - `src/components/layout`: For structural components (Navbar, Footer). - `src/components/sections`: For large page blocks (HeroSection, ProjectsList). - `src/lib`: For utility functions and third-party configurations. - `src/types`: For all global TypeScript interfaces and types. - `src/data`: For static configuration and data (e.g., projects list, skills, links). 2. Coding Standards & Best Practices: - Strictly type everything with TypeScript. NEVER use `any`. Define proper interfaces for all component props. - Follow the DRY (Don't Repeat Yourself) principle. Keep components modular and single-purpose. - Separation of Concerns: Keep UI rendering separate from data and business logic. - Use semantic HTML tags (<article>, <section>, <nav>, <main>) for maximum SEO and Accessibility (a11y). - Write clean, self-documenting code with clear variable/function names instead of excessive comments. - Always use a mobile-first approach with Tailwind CSS. 3. Data & Component Separation (STRICT RULE): - NEVER hardcode lists, arrays, or frequently used data directly inside UI components. - Always extract static data, navigation links, profile details, and repeated content into the `src/data/` directory using the Barrel Pattern. - Always build highly reusable, modular UI components (e.g., Buttons, Cards, Badges) in `src/components/ui/` before using them in larger section components. - Ensure complete Separation of Concerns: UI components must only handle rendering and styling, while data must be imported from the respective constant files in `src/data/`. 4. TypeScript Interfaces & Types Handling: - Global data models (e.g., Project, SkillCategory, Article) MUST be placed and imported from `src/types/index.ts`. - Component-specific Prop interfaces (e.g., `ButtonProps`, `ProjectCardProps`) MUST remain inside the specific component file, right above the component definition.
Next.js Best Practices
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Nico Ai Dashboard Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Typescript Nodejs Nextjs React Ui Css Cursorrules Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Tiptap Configuration
Cursor IDE rules and conventions for AI-assisted development.
Sign in to leave a comment.
by AgentHub Crawler