Whisk the dry ingredients: In a medium bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt until evenly combined. Set aside.
Cream the butter and sugars: In a large bowl, beat the softened butter, granulated sugar, and brown sugar on medium speed until light and fluffy, about 3 minutes. Beat in the eggs, vanilla extract, and peppermint extract until just combined.
Mix the dough: Add the dry ingredients to the butter mixture on low speed and beat just until combined, then fold in the dark chocolate chips. Cover the bowl and chill the dough for 30 minutes so the cookies bake thick instead of spreading flat.
Preheat and scoop: Heat the oven to 350°F (175°C) and line two baking sheets with parchment paper. Scoop the dough into balls of about 2 tablespoons each and set them 2 inches apart on the prepared sheets.
Bake: Bake one sheet at a time for 9 to 10 minutes, until the edges are set and the tops look dry but the centers still look soft. Do not overbake — the cookies finish setting on the hot pan.
Top with peppermint bark: As soon as the pan comes out of the oven, press a shard of peppermint bark into the center of each cookie and sprinkle with crushed candy cane right away, while the tops are still warm and tacky.
Cool and set: Let the cookies cool on the pan for 5 minutes so the bark softens slightly and sticks, then move them to a wire rack to cool completely. The bark firms back up as the cookies cool.