In the bowl of a stand mixer, whisk together flour, cocoa, confectioners’ sugar, and salt. Add cold butter; using the paddle attachment, beat at low speed until mixture resembles coarse meal. Add egg and egg yolk; beat until combined and a dough forms.