invoicely / rules
Cursor rule923 starsChanged 5 months agoMITView on GitHub
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. Code Style and Structure - Write concise, technical TypeScript code with accurate examples. - Use functional and declarative programming patterns; avoid classes. - Prefer iteration and modularization over code duplication. - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError). - Structure files: exported component, subcomponents, helpers, static content, types. - Follow seprate export const component name like don't "export const Button…
We split this nextjs-cursor-rule.mdc into the rules it gives an agent
20 rules. About 0 are common, 18 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Write concise, technical TypeScript code with accurate examples.
- Distinctive: line 10
Use functional and declarative programming patterns.
- Distinctive: line 11
Prefer iteration and modularization over code duplication.
- Distinctive: line 12
Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Distinctive: line 14
Follow seprate export const component name like don't "export const Button = () => {}" make it do like "const Button = () => {} export { …
- Distinctive: line 15
Don't use default exports.
- Very specific: line 18
use name.client.tsx for file having "use client" or its a client component so add (.client.tsx) in end of file name.
- Distinctive: line 19
Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Distinctive: line 24
Use TypeScript for all code.
- Distinctive: line 25
Avoid enums; use maps instead.
- Distinctive: line 26
Use functional components with TypeScript interfaces.
- Distinctive: line 29
Use the "function" keyword for pure functions.
- Distinctive: line 30
Avoid unnecessary curly braces in conditionals.
- Distinctive: line 34
Use Shadcn UI, Radix, and Tailwind for components and styling.
- Distinctive: line 40
Use dynamic loading for non-critical components.
- Distinctive: line 44
Use 'nuqs' for URL search parameter state management.
- Distinctive: line 48
Use only for Web API access in small components.
- Distinctive: line 49
Avoid for data fetching or state management.
- Distinctive: line 52
use <type>(required scope any related to commit file): single title for commit without description
- Very specific: line 55
Follow Next.js docs for Data Fetching, Rendering, and Routing.
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description:
globs:
alwaysApply: false
---
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
Code Style and Structure
- Write concise, technical TypeScript code with accurate examples.
- Use functional and declarative programming patterns; avoid classes.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Structure files: exported component, subcomponents, helpers, static content, types.
- Follow seprate export const component name like don't "export const Button = () => {}" make it do like "const Button = () => {} export { Button }"
- Don't use default exports.
Naming Conventions
- use name.client.tsx for file having "use client" or its a client component so add (.client.tsx) in end of file name.
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Favor named exports for components.
- For all Zod Type must include "Zod" in front of every type of interace example "InvoiceSchema" should be "ZodInvoiceSchema".
TypeScript Usage
- Use TypeScript for all code; prefer interfaces over types.
- Avoid enums; use maps instead.
- Use functional components with TypeScript interfaces.
Syntax and Formatting
- Use the "function" keyword for pure functions.
- Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.
- Use declarative JSX.
UI and Styling
- Use Shadcn UI, Radix, and Tailwind for components and styling.
- Implement responsive design with Tailwind CSS; use a mobile-first approach.
Performance Optimization
- Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC).
- Wrap client components in Suspense with fallback.
- Use dynamic loading for non-critical components.
- Optimize images: use WebP format, include size data, implement lazy loading.
Key Conventions
- Use 'nuqs' for URL search parameter state management.
- Optimize Web Vitals (LCP, CLS, FID).
- Limit 'use client':
- Favor server components and Next.js SSR.
- Use only for Web API access in small components.
- Avoid for data fetching or state management.
Github Commit Syntax
- use <type>(required scope any related to commit file): single title for commit without description
Follow Next.js docs for Data Fetching, Rendering, and Routing.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- .agents/skills/composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/react-hook-form/AGENTS.mdAGENTS.md
- .agents/skills/zod/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- bash-defensive-patternsSkill
- better-auth-best-practicesSkill
- vercel-composition-patternsSkill
- drizzle-ormSkill
- email-and-password-best-practicesSkill
- frontend-designSkill
- neon-postgresSkill
- next-best-practicesSkill
- next-cache-componentsSkill
- next-upgradeSkill
- nodejs-backend-patternsSkill
- nodejs-best-practicesSkill
- organization-best-practicesSkill
- vercel-react-best-practicesSkill
- react-hook-formSkill
- seoSkill
- shadcnSkill
- tailwind-css-patternsSkill
- tailwind-v4-shadcnSkill
- turborepoSkill
- two-factor-authentication-best-practicesSkill
- typescript-advanced-typesSkill
- ai-sdkSkill
- zodSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

