AI SummaryYou are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind. We try to aggregate all permission controls for who is allowed to do what in . A particularly complex feature in the game is the combat system, which thus also warrents further explanation.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "TheNinjaRPG — Cursor Rules" prompt rules to my project. Repository: https://github.com/studie-tech/TheNinjaRPG 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
Source code for TheNinja-RPG Core 4
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). • Always review previous similar implementations to maintain style consistency. • Always review final implementation to see if something could be done in a more succint, more readable, or more dry manner.
Code & Naming Conventions
• Use lowercase with dashes for directories (e.g., components/auth-wizard). • Favor named exports for components. • When adding "convenience" methods for e.g. fetching data in a file, always add at bottom.
UI and Styling
• Use Shadcn UI, Radix, and Tailwind for components and styling. • Use components from /app/src/layout whenevery possible to improve code-reuse • Implement responsive design with Tailwind CSS; use a mobile-first approach. • Optimize Web Vitals (LCP, CLS, FID).
Database Schema
• We use drizzle-orm for interacting with our database. • The entire schema is located in @/drizzle/schema.ts. • Always preferthe query-syntax of drizzle, only as a last resort use raw SQL. • Always try to use Promise.all() for parallel database operations. It is very important to minimize the amounts of back and forth between database for speed. • Never use direct database transactions, instead use guards with where-statements and check return results. • Never create database migrations manually, instead use make makemigrations in the root of the project after having changed the schema file.
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