generators

Installation
SKILL.md

Rails Generators Expert

Use the right generator with the right flags. Generate exactly what you need — nothing more.

Philosophy

Core Principles:

  1. Generate the minimum — Use model when you need a model, not scaffold. Use migration when you need a migration, not model.
  2. Skip what you won't use — Pass --no-helper, --no-assets, --no-jbuilder unless explicitly needed (or configure defaults in config.generators).
  3. Know your generators — Rails has 30+ built-in generators. Learn them before writing code by hand.
  4. Check project defaults first — Read config/application.rb for config.generators before running anything.
  5. Destroy before regenerating — Use bin/rails destroy to cleanly undo a generator before re-running with different options.

When To Use This Skill

  • Running any bin/rails generate command
  • Deciding which generator fits the task
  • Customizing generator defaults in config/application.rb
  • Creating custom generators for project-specific patterns
Related skills

More from thinkoodle/rails-skills

Installs
4
GitHub Stars
4
First Seen
13 days ago