Works for me all the time
I've never fucked up my eggs & this is what I do.
When I boil, I add a pinch of salt.
After boiling for 10 minutes, I transfer from boiling hot water to a bowl of ice cold water - then I start to peel under running warm water.
Applied physics of thermal shock & contraction.