Welcome to Herbert. Please check out the docs here.
Check out the example plugin here.
You can find a full plugin built in Herbert here.
If you are looking for the old version, you can find it here: https://github.com/getherbert/herbert/tree/pre And the docs for that version: http://getherbert.com/pre