rails
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
- Everyday Rails Testing with RSpec (using fixtures, not factories)
Principles
- Use Rails best practices and conventions
- Use latest gem versions unless Gemfile locks to specific version
- Use Context7 MCP for documentation lookup
- Keep code simple and logical
- Review existing functionality before adding new code
- Never write duplicate methods
Testing Approach
- Use fixtures, not factories
- Write model specs, request specs, and system specs
- Use Capybara + Cuprite for system specs
- Use VCR for external HTTP calls
- Only test features worth testing
- Never test Rails internals (associations, built-in validations)
Workflow
- Write detailed plans with clarifying questions first
- Wait for review before implementing
- Only implement when explicitly asked
- Reference relevant spec and implementation files
- Only write tests when specifically instructed
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
More from aviflombaum/claude-code-in-avinyc
ux-ui
UX/UI design principles for clean, intuitive interfaces. Use when designing layouts, improving usability, planning information architecture, or ensuring accessibility. Triggers on "user experience", "usability", "information architecture", "accessibility", "interaction design".
12interview
Interview about a plan file to refine it through in-depth questioning. Use when you have a plan that needs validation, refinement, or deeper exploration before implementation. Triggers on "interview me about", "refine this plan", "question this spec".
9tailwind
Tailwind CSS patterns, utilities, and component styling for Rails. Use when styling with Tailwind, creating responsive layouts, or building UI components. Triggers on "tailwind", "style with", "css classes", "responsive layout".
9write
Write technical blog posts, tutorials, and documentation in Flatiron School's engaging style. Use for explaining code patterns, debugging stories, or turning complex topics into clear narratives. Triggers on "write a blog post", "tutorial about", "explain how", "technical writing".
8hotwire
Hotwire, Turbo, and Stimulus patterns for Rails. Use when implementing JavaScript interactions, Turbo Frames/Streams, or Stimulus controllers. Triggers on "stimulus controller", "turbo frame", "turbo stream", "hotwire", "rails javascript".
8write-test
Writes comprehensive RSpec tests for Rails applications. Use when writing model specs, request specs, system specs, job specs, mailer specs, channel specs, or storage specs. Triggers on "write tests for", "add specs to", "test the User model", "create request specs", "write RSpec", "add test coverage".
8