Cerebro plugin is just a javascript module. All you need is to write a function, that takes one object and call a function from arguments with your results.
You should have installed node and npm. If you don't have it: follow this instructions.
You can create your plugin from scratch, but I'd suggest you to use boilerplate. In this case you can focus on source of your plugin, not on tools around it.
Links:
- Create plugin from boilerplate;
- Plugin structure;
- Cerebro tools;
- Styles for you plugin previews;
- Share your plugin;
- Examples;
- Create plugin from scratch.