How to use custom registry checks

Hello,
Has someone used custom vulnerability checks? Writing vulnerability checks | Nexpose Documentation
I am looking in finding how to create specific checks for registry keys Common vulnerability check examples | Nexpose Documentation - want to determine the assets where Excel macro is enabled - HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\excel\security

I am looking in specific steps how to create and check these custom check