Attack and king safety
Attack the castled king with the g-pawn
Before starting a g-pawn storm, picture both sides of the open file after exchanges. An attack aimed across the board can open a line to your own king.
Worked example
Position in text
White to move. White: pawn g4, pawn h4, pawn f2, rook f1, king g1. Black: king g8, rook h8, pawn f7, pawn g7, knight f6, pawn h6, bishop d5.
FEN: 6kr/5pp1/5n1p/3b4/6PP/8/5P2/5RK1 w - - 0 1
In the short-castled setup 1.g5 attacks the f6-knight, but 1...hxg5 2.hxg5 opens the h-file for Black’s rook on h8. Black can play 2...Rh1#. The bishop on d5 guards h1 and g2; the f1-rook and f2-pawn fill the other adjacent escapes. The attack opened the line the defender needed.
A plausible mistake
Do not stop calculation when your pawn hits a knight. Check forcing captures and which rook is already on the file the exchanges will open.
Try it yourself
Position in text
White to move. White: pawn g4, pawn h4, pawn f2, king c1, rook d1. Black: king g8, rook h8, pawn f7, pawn g7, knight f6, pawn h6, bishop d5.
FEN: 6kr/5pp1/5n1p/3b4/6PP/8/5P2/2KR4 w - - 0 1
Play the same moves with White’s king on c1 and rook on d1. Is 2...Rh1 still check?
Check your answer
No. The rook on d1 blocks the rook’s line before it reaches c1. Black’s rook is still active and may threaten to win material, but the same pawn advance no longer exposes White to that immediate mate. Count the changed lines instead of reusing the previous evaluation.