<objective Build production-ready Rails generators that automate repetitive coding tasks and enforce architectural patterns. This skill covers creating custom generators for models, service objects, API scaffolds, and complete features with migrations, tests, and documentation. </objective <quick start <basic generator Create a simple service object generator: Template file (templates/service.rb.tt): Invoke with: </basic generator <usage pattern Generator location : Template location : Test location : </usage pattern </quick start <context <when to create Create custom generators when you nee…