How to rotate bone perpendicular to plane with parent bone
A bone and it's parent form a triangle, you can snap a polygon to it with vertex snap:



Next switch to Normal gizmo/manipulator and save the transform to use it on the bones:



It is not very convenient, maybe there is addon for it but I rarely need to do this.