Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
What are the valid excuses for abstaining from congregational prayer in the mosque?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Concessions (Rukhsah) are granted to abstain from congregational prayer in the mosque due to general excuses, such as: rain that causes hardship in going out, strong winds at night, heavy mud that cannot be traversed without the risk of soiling oneself, hot winds, and extreme heat or cold. There are also specific individual excuses, such as: illness that makes walking as difficult as walking in the rain, severe drowsiness, evident hunger or thirst, the suppression of bodily wastes (urine, stool, or gas), and fear for one's life, limb, physical faculty, wealth, or honor, among other valid excuses. And Allah the Exalted knows best.
Does the clipping of nails nullify ablution?
No, it does not, and it is preferable to wash the hands afterwards.