What CBT is
Cognitive behavioral therapy looks at how thoughts, feelings and behavior feed each other. If you think "I always mess this up," you avoid the task, which makes you more anxious, which makes you more likely to avoid it next time. CBT helps you notice the loop and interrupt it.
It is one of the most researched therapies there is, with good evidence for anxiety, depression, PTSD and adult ADHD.