Hello Friend, Good that you are seeking a help. Such habits is a sign of anxiety. When you are anxious and thinking too much, you tend to do bitting nails, picking skin, shaking legs etc without your consciousness .
Best thing to control such habits is first find out the reason for your anxiety. With few behavioral changes and excersise you can slowly overcome this issue.
Next Steps
Feel free to reach out to me online for further evaluation and recommendation