Skunky beer refers to the smell that is emitted from beer that has been lightstruck. This occurs when beer is exposed to light for extended periods of time, causing the reaction and breakdown of molecules that contribute to the bitterness in beer derived by the hops (the smell does dissipate when poured into a glass). The best way to avoid it is to keep your beer stored in a cool, dark place and drink it soon after opening.