As @CrazyCoder says there is no specific official guide to write a Webstorm plugin. The reason is that all plugins are written in the same way, but you can decide for which IDE it will be available.
I found this post very helpful to start building a Webstorm plugin.