Cocoa is notoriously lumpy. Before adding the dry ingredients to the dough, whisk or sift them together.
Shape pretzels with just-mixed, room-temperature dough. Not enough time? The dough may be refrigerated for a later use, but let it warm to room temperature before handling.
Let the chocolate icing set completely before layering the cookies between waxed paper in an airtight container.