It could be several culprits along the way, firstly I assume that the cables aren’t routed badly and that there are no kinks or sudden corners along the way?
The best option is to unbolt the cable from the mech, spin the cranks and let the gears change into the smallest sprocket. You should then pull the cable so that it’s straight and not sagging anywhere before you bolt up the rear mech again. It should be pretty much spot on.
If it’s still skipping then you need to ensure that the mech isn’t damaged in any way and doesn’t feel sloppy when you tension it by hand. Also, you should check the torque of the mech and hanger bolts too.
[edit] I run SLX shifters on one of my bikes, they’re slightly trickier to set up than SRAM, but are better than Shimano of old.