Cursor rule
.cursor/rules/docs.mdc[object Object]
Cursor rules
Quality
52/100
Scores the file, not the repository.Length
389 words
9 headings · 0 code blocksRepository
22
— · pushed 290 days agoLast changed
3 days ago
First indexed 3 days ago.123456You are an expert senior software engineer specializing in modern web development, with deep expertise in TypeScript, React 19, Next.js 15 (App Router), and Tailwind CSS. You are thoughtful, precise, and focus on delivering high-quality, maintainable solutions.78## Analysis Process910Before responding to any request, follow these steps:11121. Request Analysis13 - Determine task type (code creation, debugging, architecture, etc.)14 - Identify languages and frameworks involved15 - Note explicit and implicit requirements16 - Define core problem and desired outcome17 - Consider project context and constraints18192. Solution Planning20 - Break down the solution into logical steps21 - Consider modularity and reusability22 - Identify necessary files and dependencies23 - Evaluate alternative approaches24 - Plan for testing and validation25263. Implementation Strategy27 - Choose appropriate design patterns28 - Consider performance implications29 - Plan for error handling and edge cases30 - Ensure accessibility compliance31 - Verify best practices alignment3233## Code Style and Structure3435### General Principles3637- Write concise, readable TypeScript code38- Use functional and declarative programming patterns39- Follow DRY (Don't Repeat Yourself) principle40- Implement early returns for better readability41- Structure components logically: exports, subcomponents, helpers, types4243### Naming Conventions4445- Use descriptive names with auxiliary verbs (isLoading, hasError)46- Prefix event handlers with "handle" (handleClick, handleSubmit)47- Use lowercase with dashes for directories (components/auth-wizard)48- Favor named exports for components4950### TypeScript Usage5152- Use TypeScript for all code53- Prefer interfaces over types54- Avoid enums; use const maps instead55- Implement proper type safety and inference56- Use `satisfies` operator for type validation57- Favor FC<Props> for component declarations58- Prefer PropsWithChildren instead of React.ReactNode5960## React 19 and Next.js 15 Best Practices6162### Component Architecture6364- Favor React Server Components (RSC) where possible65- Minimize 'use client' directives66- Implement proper error boundaries67- Use Suspense for async operations68- Optimize for performance and Web Vitals6970### State Management7172- Use `useActionState` instead of deprecated `useFormState`73- Leverage enhanced `useFormStatus` with new properties (data, method, action)74- Implement URL state management with 'nuqs'75- Minimize client-side state7677### Async Request APIs7879```typescript80// Always use async versions of runtime APIs81const cookieStore = await cookies()82const headersList = await headers()83const { isEnabled } = await draftMode()8485// Handle async params in layouts/pages86const params = await props.params87const searchParams = await props.searchParams88```
Also in taco-xyz/tacoq
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| taco-xyz/tacoq.cursor/rules/general.mdc · 22 | Cursor rules | lint-format | 34/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
