I would like to ask whether it is necessary to have specific qualifications to apply for a patent, just like

It is the inventor's right to apply for a patent. As long as your invention meets the requirements of applying for a patent, you can apply, and you don't need any pork. Whether to entrust a patent agency to act as an agent depends mainly on your convenience. For example, applying for a patent is like a lawsuit, and a patent agency is like a law firm. The parties can conduct the lawsuit completely by themselves, but the parties are unfamiliar with the law and litigation procedures, which is more laborious and has a relatively low chance of winning the lawsuit. Law firms (lawyers) are specialized in this line, and they are familiar with starting a lawsuit. Please ask a lawyer to help you with the lawsuit. You don't have to work hard yourself, and the success rate is high, but the disadvantage is that you have to charge agency fees.