How to get the angle of the slope the player is facing?

Here it is…

From a higher angle with an orthographic camera, you can see how the adjusted yaw differs more easily:

When the player faces directly up or across the slope, the arrows match exactly in yaw… it’s the in-between rotations where the yaw deviation occurs.