I fully understand how you feel at the moment. It's not the case you're a bad programmer. As someone mentioned it could be down to a number of factors. You could be just burnt out and need a break. Alternatively you can always decide to work on something outside of work that can help sharpen your skills. Currently at my place I got moved from doing bug fixes/client work to doing testing. I feel as though my development skills are no longer being put to use and I want to say something but do not know how to. But the best thing I do and recommend you do is try not to let it get you down and keep actively learning.