All attack skills deal attack damage, but some of them will also deal non-attack damage.
There are four kinds of damage in PoE:
- Spell Damage (dealt by spells, base damage comes from gem)
- Attack Damage (dealt by attacks, base damage comes from weapon/unarmed)
- Secondary Damage (hit damage which isn't either of the other two, stuff like corpse explosions are generally secondary damage)
- Damage Over Time
They have no overlap, no damage is more than one of those things.
So Prodigious Defence applies to attack damage specifically, which is damage from hits that is based on your weapon.
Advance Guard applies to any damage dealt with an attack skill, even if that damage isn't attack damage - it could be secondary damage (the corpse explosion on infernal blow, which is based on the enemy's life, not your weapon), or damage over time (such as if the attack ignites an enemy). Both of those would be examples of damage that isn't attack damage but is dealt by an attack skill.
Similarly, not all damage dealt by a spell is spell damage - damage over time isn't spell damage, and spells that blow up corpses use secondary damage for that.