YAKjs ships with some basic default plugins to demonstrate how plugins work.
See How to write a plugin to get started with your plugin.
Next: How to write a plugin