With this geometry node setup you can generate geometry from a profile and a path curve. It is a bit like the mesh to curve but better. Because the cuts don't get distorted! The cuts behave like you know it from the shear modeling operator.
Get it on gumroad: https://clemensbeute.gumroad.com/l/shear