learn to feather the brakes and not just snatch them. you are your own ABS
practice hard braking while riding on smooth dry pavement in a straight line without obstacles.
practice a lot, the more you do the more natural it is. during optimal braking on pavement in a straight line, your back tire is almost airborne, ALL the weight is on the front wheel, and its doing all the stopping.
if you're on a fat tire bike, or even a medium tire hybrid, its pretty hard to lock the front wheel and skid, its easier on really skinny high pressure tires.