Skip to content
Prompt

mrswaffles — Cursor Rules

by Nader-Kojok

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 "mrswaffles — Cursor Rules" prompt rules to my project.
Repository: https://github.com/Nader-Kojok/mrswaffles

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 mrswaffles

Type System

• Prefer interfaces over types for object definitions • Use type for unions, intersections, and mapped types • Avoid using any, prefer unknown for unknown types • Use strict TypeScript configuration • Leverage TypeScript's built-in utility types • Use generics for reusable type patterns

Naming Conventions

• Use PascalCase for type names and interfaces • Use camelCase for variables and functions • Use UPPER_CASE for constants • Use descriptive names with auxiliary verbs (e.g., isLoading, hasError) • Prefix interfaces for React props with 'Props' (e.g., ButtonProps)

Code Organization

• Keep type definitions close to where they're used • Export types and interfaces from dedicated type files when shared • Use barrel exports (index.ts) for organizing exports • Place shared types in a types directory • Co-locate component props with their components

Functions

• Use explicit return types for public functions • Use arrow functions for callbacks and methods • Implement proper error handling with custom error types • Use function overloads for complex type scenarios • Prefer async/await over Promises

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated10mo 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