there are some scripts on github that are used to populate constraints for Wikibase Quality extensions:
https://github.com/WikidataQuality
anything that we actually need and use should be moved to gerrit so stuff is less spread across many places and easier to find.