You can also look how implemented are default plugins, especially flat file one, it's pretty easy
https://github.com/Puchaczov/Musoq/tree/master/Musoq.Schema....