How to make a plugin?

There are plugin examples on the wiki/docs

Or download the Rama VictoryLibrary Plugin. Delete the functions code and rename the plugin and start your own library