There are a few example macros in the macros/ directory of the slic directory.