In the same way as in Open Terminal in current Xcode project folder
example, you can add clear of derived data folder with hotkey.
Create custom behavior (follow the steps in Open Terminal in current Xcode project folder). But use another script.
Script text:
#!/bin/bash
rm -rf $HOME"/Library/Developer/Xcode/DerivedData/"