Does the intention (niyyah) of the principal (muwakkil) suffice for the sacrifice (dhabḥ) of the udhiyyah?
Praise be to Allah, and peace and blessings upon our master, the Messenger of Allah.
If a person appoints an agent (wakīl) to perform the slaughter (dhabḥ) on their behalf, the intention (niyyah) of the principal (the one appointing the agent) suffices, and there is no need for the agent to have this intention himself. In fact, even if the agent is unaware that he is performing the sacrifice on someone's behalf as an udhiyyah (sacrificial offering), this does not affect its validity. And Allah, the Most High, knows best.
Is the one offering the sacrifice liable if its meat spoils?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
If the meat (of the sacrifice) spoils due to the negligence of the one offering the sacrifice in preserving it, or due to improper storage, then he is liable to compensate for the portion due to the poor (which is estimated as half a kilogram of meat). If the sacrifice was a vowed (mandatory) one, then he is liable for all of it.
However, if he was not negligent, then there is no liability upon him, because its ruling is the ruling of a trust (like an item left in someone's care). And Allah Almighty knows best.
Is it required for a discerning child to make the intention at night if they wish to fast?
If a discerning child wishes to fast during Ramadan, they must make the intention at night because intention is one of the pillars of fasting, even though fasting is not obligatory for them.
Is it permissible to pay the Zakah (obligatory charity) for settling the debt of a deceased relative?
It is impermissible to pay the Zakah for settling the debt of the deceased since Zakah is paid to eligible recipients who are alive. As for the debts of the deceased, they are to be settled from the estate before dividing it amongst the heirs, but if the deceased didn`t leave an estate, then it is desirable for his/her heirs to settle those debts if they can afford them. And Allah Knows Best.