add plugin.yml generation and auto-permissions