Is it a condition for I‘tikaf to be performed in the mosque?
Yes, for I‘tikaf to be valid, it must be performed in a mosque. I‘tikaf is not valid if performed at home or elsewhere.
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 is the ruling on someone who is uncertain whether he omitted one of the ab‘āḍ of the prayer, such as being uncertain whether he omitted the first tashahhud?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The ab‘āḍ include the middle tashahhud and the qunūt in Fajr prayer — for which sujūd as-sahw (the prostration of forgetfulness) is prescribed if left out. Whoever is uncertain, during the prayer, whether he omitted one of these elements, should proceed on the assumption that he did not perform it, and should perform sujūd as-sahw accordingly.
It is stated in ‘Umdat as-Sālik (p. 63): "If he is uncertain... whether he omitted a specific ab‘āḍ element, or whether he performed sujūd as-sahw, or whether he prayed three or four rak‘ahs — he proceeds on the assumption that he did not do it, and performs sujūd as-sahw."
The original principle (al-aṣl) for someone uncertain about [having performed] the first tashahhud is that he assumes he did not perform it. And Allah, the Exalted, knows best.
What should one who doubts the validity of his ablution and performs it frequently do?
Whoever doubts the validity of his ablution after finishing it, his ablution is valid. This is because the default is the validity of the ablution, and because doubt after finishing an act of worship doesn`t affect its validity. And Allah the Almighty knows best.