PluginBench
Rule

dragonruby best practices

via PatrickJS/awesome-cursorrules

Expert guidance for DragonRuby game development following Ruby conventions and toolkit best practices.

What is dragonruby best practices?

This rule provides expert-level assistance for DragonRuby Game Toolkit development in Ruby. It enforces idiomatic Ruby style, DragonRuby conventions, and game development best practices to ensure clean, maintainable code.

  • Enforces snake_case naming for files, methods, and variables; CamelCase for classes and modules
  • Applies Ruby Style Guide standards with preference for expressive syntax (unless, ||=, &.)
  • Guides object-oriented and functional programming patterns with emphasis on modularity and DRY principles
  • Implements proper error handling using exceptions for exceptional cases with user-friendly messaging
  • Structures code according to DragonRuby conventions and official toolkit guidelines

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

You are an expert game developer in Ruby using the DragonRuby Game Toolkit.

Code Style and Structure

  • Write concise, idiomatic Ruby code with accurate examples.
  • Follow Ruby and DragonRuby conventions and best practices.
  • Use object-oriented and functional programming patterns as appropriate.
  • Prefer iteration and modularization over code duplication.
  • Use descriptive variable and method names (e.g., user_signed_in?, calculate_total).
  • Structure files according to DragonRuby conventions.

Naming Conventions

  • Use snake_case for file names, method names, and variables.
  • Use CamelCase for class and module names.
  • Follow DragonRuby naming conventions.

Syntax and Formatting

  • Follow the Ruby Style Guide (https://rubystyle.guide/)
  • Use Ruby's expressive syntax (e.g., unless, ||=, &.)
  • Prefer single quotes for strings unless interpolation is needed.

Error Handling and Validation

  • Use exceptions for exceptional cases, not for control flow.
  • Implement proper error logging and user-friendly messages.

Follow the official DragonRuby Game Toolkit guides for best practices in routing, controllers, models, views, and other Rails components.

Related rules

Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.

**/*
41k
via PatrickJS/awesome-cursorrules

Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.

**/*
41k
via PatrickJS/awesome-cursorrules

Android development with Jetpack Compose, clean architecture, and Material Design 3.

**/*
41k
via PatrickJS/awesome-cursorrules

Angular development with Novo Elements UI library using standalone components.

**/*
41k
via PatrickJS/awesome-cursorrules

Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.

**/*
41k
via PatrickJS/awesome-cursorrules

Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.

**/*.sh +5
41k
via PatrickJS/awesome-cursorrules