Surface excavation will produce [[rock shards]] on some actions. The probability seems to be around 25%.
NOTE: Mining on a shallow slope is dangerous since you are basically mining straight down and so are probably gonna dig yourself into a pit. A slope of 10+ is probably safe (estimate).
=== Tunnel excavation ===