There are two methods one with scenes included which is the following:

SKIRT COLLIDER

https://www.perryleijten.com/en/works/skirtColliderRD
This one has sample scenes

And the base for all the work

https://www.lilingliu.com/post/skirt-rig-with-auto-collision