The current system of 100's of out of sync copies of the same templates or Lua modules occasionally synchronized with the original is very hard to maintain.
Who would benefit
All MediaWiki users
We could use a single location where to keep templates, Lua modules, and Gadgets that are used on all the wikipedia projects. Just like images from commons can be used on other projects, code from such site would be visible to all the projects.