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".

来源信息

仓库
bibendi/starmap
最近来源活动
2026年3月30日 21:08
检测到的 SKILL.md 语言
英语
星标
4
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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
在 GitHub 查看