It will be part of the better plugin boilerplate as soon I push the update, thus as well included in the https://www.generateplugins.com generator.
I just did not have time yet to push it…
Once we have a doc (read: Plugin Handbook), we can then link to that, and also make examples directly within the doc. We could do a sort of “easiest/best practices” section for that, inside the (future) plugin handbook.