ANSWER:

If it adds value to the Muslims and helps them to progress, this is beneficial knowledge.

Is knowledge that I learn in school, like how to build a robot, beneficial knowledge, because I heard Hadiths of the Prophet (peace be upon him) saying that he said that seeking knowledge is like jihad, but does this refer to stuff I also learn in school or only knowledge about the deen, How do I make my niyyah/intention for the sake of Allah in these matters?

Knowledge & Propagation |