Attack and king safety
King safety when castling rights are gone
With castling rights gone, compare each step of a king-and-rook regrouping with the opponent’s forcing replies. You cannot assume a three-move plan is safe because its destination is safe.
Worked example
Position in text
White to move. White: king e1, rook h1. Black: rook a8, king g8, pawn h7.
FEN: r5k1/7p/8/8/8/8/8/4K2R w - - 0 1
The intended route can be 1.Kf2 h6 2.Rf1 h5 3.Kg1, placing the rook on f1 before the king steps onto g1. But Black does not have to wait: after either 1.Kf2 or 2.Rf1, ...Ra2+ is legal because rank two is empty. After 3.Kg1, ...Ra1 is not check because the rook on f1 blocks the line; it would attack that rook instead.
A plausible mistake
Do not put the king on g1 and then try to slide the h1-rook through it to f1. Also check where the open enemy file lets a rook enter with tempo during the walk.
Try it yourself
Position in text
White to move. White: pawn c2, king e1, rook h1. Black: rook a8, king g8, pawn h7.
FEN: r5k1/7p/8/8/8/8/2P5/4K2R w - - 0 1
White now has a pawn on c2. After 1.Kf2 Ra2, is it check? Does this prove the whole regrouping safe?
Check your answer
No immediate check: the c2-pawn blocks the line from a2 to f2. But the pawn itself is attacked, and the rook can try to clear the line or switch ranks. Recheck each stage rather than choosing the rest of the walk automatically.