Steps for creating custom small-actions to use in plugin?

discourse-assign is probably the best example of this:

And then some stuff to add the icon / content

https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6#L158-L169