See R6RS Libraries, for more information on how to define R6RS libraries, and their integration with Guile modules.