To test or distribute your module you need to package it.
Modules can exist in two forms:
Uncompressed In this form a module is just a directory in the ToME file system. You need to create a subdirectory in /game/modules/ and put your module files in it. This form is great for module makers, since it is very easy to tweak.
Compressed Compressed modules are zip files. They must have the file extension .team. The zip file correspond to the directory of an uncompressed module. This means module.lua must be at the zip file *ROOT*. One can see this as module.team/module.lua instead of module/module.lua for uncompressed modules. This form is very good for distributing your module as the user does not have to unzip it or do anything. Just drop the file in /game/modules/ or pass the file as an argument to ToME:tome -M"/path/to/module/module.team"
ToME Wiki