The Tcllib contains a package to safely manage plugins to applications called plugin.
You can find the documentation at:
http://tcllib.sourceforge.net/doc/pluginmgr.html
Category Tcllib | Category Package