Clone the
https://gitlab.com/kicad/libraries/klc standard. This includes a means of checking if a symbol is KLC compliant. In some cases, it is acceptable to be non-compliant but this should be the way, the truth, and the light for looping to create a compliant symbol.
https://gitlab.com/kicad/libraries/kicad-library-tools can also be used to generate symbols if necessary, but this may not be a requirement.