Hi there
And welcome to teenhelp!
I'm sorry to hear this is happening to you... :/ I've never skipped class, but I often think about it, and god it's tempting! First of all you have to realize that, your anxiety and depression put aside, attending school is the best option to take. I'm not really sure of how I can help here, but I guess you could try slowly decreasing the number of school days you miss... For example, let's say you usually skip 4 days a week; next week, try only skipping 3; the week after that, 2, then 1, then once a month and so on... I know how hard it is to quit doing something when it's so relieving and simple to do... I guess the only advice I can give is TRY!
I really hope this works out... if you succeed in attending school more often, you'll be very thankful you did so in the future.
Best of luck,
Skye.