Assuming your front mech is set up correctly, what sprocket are you on and how old is your drivetrain?
My commuter has started to slip a little, but mostly just when I back pedal in big ring and big sprocket (so generally just when putting the bike away, getting it out).
I’ve been puzzling over it for a couple of weeks, but looked at the chainline yesterday and decided that it’s probably a worn chainring/chain/sprocket thing.
Since I can’t really afford to replace it all just yet my remedy will be to use the little ring and middle of the block more for lower speeds, to try to straighten the chainline and stop the chain skipping off. Should reduce wear also.