In the page Community Builder: Tools, there is a number of utilities: Load Sample Data, Load Canvas Layout, Synchronize UsersCheck Community Builder Database, etc..
I would want to insert mine into this page. I understood globally the mechanism but I did not find all of the solution because the launched scripts are not stored in the database.