What is required to add a plugin or a possible integration of a tool into kicad

I wanted to know what is the procedure of adding an integration of my tool into kicad