The KiCad library FAQ says “Many files in the KiCad library are generated from script sources.”
Where can I find those scripts? In particular, I’m wondering if the terminal block footprints were generated by a script. I need a terminal block which isn’t currently in the library, and if there is a script that generates them, that would make it easier.