To prevent a skid, it is important to avoid braking too hard and turning too quickly.
The safest option is therefore to reduce your speed by letting go of the accelerator, then wait to turn the car back onto the road until your speed is reduced enough for it to be considered safe to do so.