When is Istikharah (guidance prayer) Du`a offered, before Tasleem (saying asalamu alikum warahmatu allah wa barakatuh to end the prayer), or after it?
It is offered after Tasleem.
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 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.
What is the ruling on one who sees moisture on his clothes and doubts whether it is semen or pre-seminal fluid (madhy)?
Whoever finds moisture upon waking from sleep and doubts whether it is semen or madhy, and cannot distinguish between them, he may choose between them and act according to his choice. If he wishes, he can consider it semen and perform the ritual bath, or consider it madhy, perform ablution, and wash what it has soiled. This is because if he fulfills the requirement of one of them, he is definitively free from it, and the default is his innocence from the other. And Allah the Almighty knows best.