To make a custom outfit that requires being unarmed, give it a name ending in c=unequip weapon; unequip offhand. There might be an error message that breaks automation if one of those slots is empty already, I'm not in a position to test at the moment.