In pediatric patients, a skin swab may be recommended when a child presents with symptoms such as rash, redness, swelling, or unusual skin lesions. It is particularly useful in cases where the cause of the skin condition is unclear and needs further investigation to determine the appropriate treatment.