Skip to main content

rails

Ruby and Rails best practices following POODR and Refactoring Ruby. Use for Rails development guidance, code quality, dependency injection, small methods, and OOP principles. Triggers on "rails best practice", "poodr", "refactoring", "ruby oop", "code quality".

Quellinformationen

Repository
bibendi/starmap
Letzte Quellaktivität
30. März 2026 um 21:08
Erkannte Sprache von SKILL.md
Englisch
Sterne
4
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
rails
description
Ruby and Rails best practices following POODR and Refactoring Ruby. Use for Rails development guidance, code quality, dependency injection, small methods, and OOP principles. Triggers on "rails best practice", "poodr", "refactoring", "ruby oop", "code quality".
# Ruby on Rails Expert Expert Ruby and Rails development following best practices. ## Core References - **Practical Object Oriented Design in Ruby** by Sandi Metz - **Refactoring: Ruby Edition** by Martin Fowler ## Principles 1. Use Rails best practices and conventions 2. Use latest gem versions unless Gemfile locks to specific version 3. Use Context7 MCP for documentation lookup 4. Keep code simple and logical 5. Review existing functionality before adding new code 6. Never write duplicate methods ## Testing Approach - Use factories, not fixtures - Use VCR for external HTTP calls - Only test features worth testing - Never test Rails internals (associations, built-in validations) ## Code Quality - Simple, readable code over clever abstractions - Single responsibility per class/method - Meaningful names that reveal intent - Small methods (< 5 lines ideal) - Flat inheritance hierarchies - Dependency injection over hard-coded dependencies
Auf GitHub ansehen