The spec is the version of the plugin. If you don’t specify it, the latest version is used.
So, you’ll end up with
<plugin name="my-plugin" />
Cordova, via VoltBuilder, will look up my-plugin in npmjs.com and get the information there about where to retrieve it. You’ll need to let us know the name of your plugin to we can add it to the Approved list.