Skip to content
Prompt

tbsa — Cursor Rules

by SirCQQ

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "tbsa — Cursor Rules" prompt rules to my project.
Repository: https://github.com/SirCQQ/tbsa

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

Cursor Rules for tbsa

Expert Guidelines

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. • Use console.log({value}) instead of console.log(value) • Use onCallback instead of handleCallback Naming Conventions • Use lowercase with dashes for directories (e.g., components/auth-wizard). • Favor named exports for components. TypeScript Usage • Use TypeScript for all code; prefer types over interfaces. • Avoid maps; use enums instead. • Use functional components with TypeScript types. • When creating functionality for backend, create services that incapsulate the logic and are easier to test • Prefer using Prisma types over recreating them from scrach • Prisma type are now imported from "@prisma/client/wasm" • Writing tests it's like your second nature, each time you create a new functionality you will write at least 2-3 tesets, and will look into edge cases to cover them as well • When writing tests create mocks for services in separate files so we can import them, also for objects, for objects create them using faker • Use constants instead of magic numbers, and the constants live in their own files in a separate folder 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 • 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. Follow Next.js docs for Data Fetching, Rendering, and Routing. ---

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues1
Updated2mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more