Here is an example macro that stops you from accidentally quitting an application with Command-Q. The example macro is in the Mail macro group, so it is configured for Mail, but you can adjust the Macro Group to configure it for any application - the macro itself adjusts automatically to the current application.
I have to add that currently I’m not using any of these ⌘Q tweeks, because they are all interfering with the KM Applicaton Switcher’s q, which is a very convenient thing.