Conditions for a kingside attack
The Art of the Checkmate, by Renaud and Kahn, is the first annotated game collection I will work through when I finish the Circles (does anyone have the pgn of this book?). It has a lot of the same material as one of the most useful chess books I've ever read, How to beat your dad at chess, but all in the context of annotated games. In the following excerpt, they describe the conditions that tell you to look for a Kingside attack.
[I]f such an attack is to take place, certain preliminary conditions have to be fulfilled:Simple, to the point, and helpful. These are the kinds of principles I am starting to use to explain many of the tactics I encounter in Phase 5 of CTB.
1) The castled position must show a weakness
There are two kinds of weaknesses:
a) Permanent and irrevocable ones, such as the advance of one of the Pawns protecting the castled position (KBP, KKtP, KRP).
b) Temporary ones, such as the removal of Pieces which defend the castled position. For instance, the removal of the King's Knight or one of the Pieces which protect the King's Knight; King's Bishop on K2; QKt on Q2; Queen on Q1.
2) The possibility of expoiting such a weakened position
For this it is necessary to have:
a) Open lines (files, ranks, or diagonals) on the castled position of the opponent.
b) Pieces on these open lines.
c) More Pieces for the attack than the opponent has for the defense. It is immaterial whether the Defender's total number of Pieces is superior to the Attacker's; the important point is that these Pieces have neither the time nor the opportunity to reach the defensive spot.
These are the principles which will constantly be used. They are equally applicable to positional and tactical play. In fact, they rule the conduct of the game.