Compile-time hook that materializes command metadata from module attributes and validates command definitions.