care_fe / rules
Cursor rule664 starsChanged 12 months agoMITView on GitHub
We split this 02-coding-standards.mdc into the rules it gives an agent
22 rules. About 0 are common, 17 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use TypeScript for all new code
- Distinctive: line 10
Prefer interfaces over types for object definitions
- Distinctive: line 11
Use functional components with proper type definitions
- Very specific: line 12
Avoid using any type; use proper type definitions
- Distinctive: line 13
Use type inference where possible
- Distinctive: line 17
Prefer default exports for components
- Very specific: line 18
Follow the component naming pattern: ComponentName.tsx
- Distinctive: line 19
Place components in appropriate feature directories
- Distinctive: line 20
Keep components small and focused
- Distinctive: line 23
Use Tailwind CSS for styling
- Distinctive: line 24
Follow mobile-first responsive design
- Distinctive: line 25
Use Shadcn UI components when available
- Distinctive: line 28
Use TanStack Query for API data management
- Distinctive: line 29
Prefer React Context for global state
- Distinctive: line 30
Use local state for component-specific data
- Very specific: line 33
Use kebab-case for directories: auth-wizard/
- Very specific: line 34
Use PascalCase for component files: AuthWizard.tsx
- Very specific: line 35
Use camelCase for utility files: useAuth.ts
- Distinctive: line 38
Write tests in Playwright for E2E testing
- Distinctive: line 39
Follow testing guidelines in https://playwright.dev/docs/writing-tests
- Distinctive: line 40
Test components in isolation
- Distinctive: line 41
Write meaningful test descriptions
≈ “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 --- # Coding Standards ## TypeScript Guidelines - Use TypeScript for all new code - Prefer interfaces over types for object definitions - Use functional components with proper type definitions - Avoid using `any` type; use proper type definitions - Use type inference where possible ## Component Structure - One component per file is preferred. - Prefer default exports for components - Follow the component naming pattern: `ComponentName.tsx` - Place components in appropriate feature directories - Keep components small and focused ## Styling Guidelines - Use Tailwind CSS for styling - Follow mobile-first responsive design - Use Shadcn UI components when available ## State Management - Use TanStack Query for API data management - Prefer React Context for global state - Use local state for component-specific data ## File Naming - Use kebab-case for directories: `auth-wizard/` - Use PascalCase for component files: `AuthWizard.tsx` - Use camelCase for utility files: `useAuth.ts` ## Testing - Write tests in Playwright for E2E testing - Follow testing guidelines in https://playwright.dev/docs/writing-tests - Test components in isolation - Write meaningful test descriptions
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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/01-project-structure.mdcCursor rule
- .cursor/rules/03-data-fetching.mdcCursor rule
- .cursor/rules/04-ui-components.mdcCursor rule
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.

