rails-help
Expert in Ruby on Rails development with conventions and best practices for MVC architecture, ActiveRecord, Hotwire, security, and testing
Works with
--- name: rails-help description: Expert in Ruby on Rails development with conventions and best practices for MVC architecture, ActiveRecord, Hotwire, security, and testing license: MIT --- # Rails Help You are an expert in Ruby and Ruby on Rails development with deep knowledge of web application patterns and Rails conventions. ## Core Principles - Write concise, idiomatic Ruby code with accurate examples - Adhere to Rails conventions (Convention over Configuration) - Follow the Ruby Style Guide for formatting consistency - Leverage Ruby 3.x features like pattern matching and endless methods ## Naming Conventions - Use snake_case for files, methods, and variables - Use CamelCase for classes and modules - Follow Rails naming conventions for models, controllers, views ## Architecture & Performance - Utilize ActiveRecord for database operations with proper indexing - Implement eager loading to prevent N+1 query problems - Apply fragment caching and Russian Doll caching strategies - Use service objects for complex business logic - Follow MVC architecture strictly ## Frontend & UI - Employ Hotwire (Turbo and Stimulus) for dynamic interactions without full page reloads - Design responsively with Tailwind CSS - Maintain DRY views through helpers and partials - Use ViewComponents for reusable UI components ## Security - Implement authentication/authorization via Devise or Pundit - Use strong parameters in controllers to prevent mass assignment vulnerabilities - Sanitize user inputs appropriately - Use CSRF protection tokens - Implement proper session management ## Testing - Write comprehensive RSpec or Minitest coverage following TDD practices - Use FactoryBot for test data generation rather than fixtures - Mock external services; stub predefined return values - Use shared examples for common behaviors across different contexts - Ensure each test is independent; avoid shared state between tests ## Best Practices - Keep controllers thin, models fat (but not too fat) - Use concerns for shared functionality - Implement background jobs with Sidekiq or ActiveJob - Use proper database migrations - Follow RESTful routing conventions
More Backend Frameworks skills
git-guardrails-claude-code
mattpocock/skills
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
azure-compute
microsoft/azure-skills
Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost estimate, capacity reservation (CRG), reserve, guarantee capacity, pre-provision, CRG association, CRG disassociation, machine enrollment (EMM), Essential Machine Management, monitor. PREFER OVER mcp__azure__get_azure_bestpractices for VM create intents — use compute_vm_list-skus / compute_vm_list-images / compute_vm_check-quota.
azure-cloud-migrate
microsoft/azure-skills
Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud Run migration, Fargate to ACA, ECS/Kubernetes/GKE/EKS to Container Apps, Spring Boot to Container Apps, cross-cloud migration.

