Productivity blogger Maneesh Sethi is working on a bracelet device that can be programmed to give you an electric shock if you indulge in a bad habit or fail to perform a good one.
It's not available yet but he already has a fund of $100,000 to work with and may crowdfund the rest.
While it's easy to see how it could work for certain things, like waking you up or making sure that you stand up at least once an hour, I'm not sure how it could tell, for instance, whether you've written your 1000 words for the day or been nicer to your mother-in-law.
Sethi did have an interesting forerunner, kind of a proof of concept: he hired someone to followh him around at work and slap him if he went on social sites instead of getting to work.
I imagine quite a few people have spouses who would be willing to do that for free--no electronics required.
If you're interested in being notified when it's available you can sign up at www.pavlok.com.