How big should a gap be between a built-in oven and a shelf for mounting a microwave?
All appliances should list minimum clearances in the technical specifications, make sure you follow these.  There is no general rule of thumb as each appliance is different.  Some don't require any clearance and others requires a lot more then you'd expect.