I’ve created a template for Safe module development. It uses foundry, and it has a simple module as an example.
Here it is on https://github.com/bxmmm1/safe-module-template
It contains a simple module that swaps the owner of a safe.
For those of you that don’t know, Foundry is a smart contract development toolchain. You can read their docs for more information.