X-Y-Z direction: point fingers to $x$, find a way scroll to $y$, your thumb in your fist is pointing at $z$
Cross Product $\vec{A} \times \vec{B}$: pointing four fingers to the direction of $\vec{A}$ with thumb in the palm, then curling four finger to the direction of $\vec{B}$, thumb in the fist is the direction of $\vec{A} \times \vec{B}$
Torque direction: point fingers to the radius $R$, scroll with the force direction $F$, your thumb in your fist is pointing at the torque direction.
Ampere’s Law
The given condition is a straight line of current/magnetic field: point your thumb in your fist to the line’s direction, the scrolling direction of your four fingers is the magnetic field/current direction.
The given condition is a loop of current/magnetic field: scroll your four fingers along the direction of the loop, the pointing direction of thumb is the direction of magnetic field/current.
Motion in the magnetic field: scroll from $v$(Motion of the positive electron, not current and negative electron!) to $B$(in the magnetic field), thumb is the direction of $F/I$