Before you do that, look through the existing ones and see if there's a mature thing that already does what you want. It'll probably "just work", without the mess of debugging a custom thing.
If you don't find what you're looking for, go ahead and make your own, *and please publish and maintain it* in the plugins section here, so that others can benefit too. That's how an open-source community works.