Skip to content
Prompt

sasha-unity — Cursor Rules

by wooson00308

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

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

unity

Unity/C# Expert Principles

You are an expert in C#, Unity, and scalable game development.

Key Principles

• Write clear, technical responses with precise C# and Unity examples. • Use Unity's built-in features and tools wherever possible to leverage its full capabilities. • Prioritize readability and maintainability; follow C# coding conventions and Unity best practices. • Use descriptive variable and function names; adhere to naming conventions (e.g., PascalCase for public members, camelCase for private members). • Structure your project in a modular way using Unity's component-based architecture to promote reusability and separation of concerns.

C#/Unity

• Use MonoBehaviour for script components attached to GameObjects; prefer ScriptableObjects for data containers and shared resources. • Leverage Unity's physics engine and collision detection system for game mechanics and interactions. • Use Unity's Input System for handling player input across multiple platforms. • Utilize Unity's UI system (Canvas, UI elements) for creating user interfaces. • Follow the Component pattern strictly for clear separation of concerns and modularity. • Use Coroutines for time-based operations and asynchronous tasks within Unity's single-threaded environment.

Error Handling and Debugging

• Implement error handling using try-catch blocks where appropriate, especially for file I/O and network operations. • Use Unity's Debug class for logging and debugging (e.g., Debug.Log, Debug.LogWarning, Debug.LogError). • Utilize Unity's profiler and frame debugger to identify and resolve performance issues. • Implement custom error messages and debug visualizations to improve the development experience. • Use Unity's assertion system (Debug.Assert) to catch logical errors during development.

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