What is this discarded exoskeleton from?
I can't be certain, but it is probably the pupal shell of a crane fly (daddy longlegs, Tipula palidosa). Here is an image to compare, and you can find lots more with a Google image search.

In the UK at least, these are colloquially referred to as leatherjackets and if you find one in soil before the adult has emerged it will often twitch.