I assume that there is no way in the Stats Editor to do this directly. In the column SkillProperty you need to add a new status, which you need to create somewhere in StatusData (maybe in Status_CONSUME).
Then, through the scripts you need to catch this status and add the necessary skills through the commands.
I found out about this here:
https://docs.larian.game/Skill_creationThere is a large list of commands here:
http://larian.com/forums/ubbthreads.php?ubb=showflat&Number=605357Unfortunately, I don't t know the details. It would be great if someone explained this in detail.