When a patent agency writes a patent application for others, does it need to prove that the inventor really has this invention?

No need.

You don't need to make a product or an object to apply for a patent, as long as it is theoretically feasible.

In other words, the technical scheme is expressed completely and clearly in words or drawings.

As long as the technical problems can be solved.

Neither the agent nor the patent office examiner needs proof.