This is a dev feature for our beloved plugin authors.
With this commit https://github.com/discourse/discourse/commit/ef36fdfb64a06b91503b5ad270daebda96d00201 you can now use rails generators to create plugins:
rails g plugin --help rails g plugin DiscourseRacoon
This will create a complete discourse plugin skeleton in your plugins directory:
It’s currently doing very few things #pr-welcome on this if you see things to improve or options to add.
Thanks @david for pushing me to write this as a generator.