Skids are a lot easier to get into than they are to get out of. Riding at a suitable speed for the conditions, planning, looking ahead for hazards and braking in good time will all help you to avoid skidding or losing control.