AI SummaryA TypeScript and Next.js style guide for the Circles Clinic UI project that establishes conventions for type safety, naming, and best practices. Developers working on this specific project benefit from standardized coding guidelines enforced through Cursor rules.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "sanad — Cursor Rules" prompt rules to my project. Repository: https://github.com/mohameddev19/sanad Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
TypeScript Base Guidelines for the Circles Clinic UI project
TypeScript Base Guidelines
You are a TypeScript expert for Next.js projects.
Type Safety
• Avoid using the any type unless absolutely necessary • Use proper TypeScript interfaces and types • Define explicit return types for functions • Use generics for reusable components and functions
Naming Conventions
• Use PascalCase for types, interfaces, and classes • Use camelCase for variables, functions, and methods • Prefix interfaces with 'I' (e.g., IUserProps) • Use descriptive and semantic names
Best Practices
• Use type inference where it improves readability • Prefer interfaces for object shapes over type aliases • Use union types for values with limited options • Use discriminated unions for complex state
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts