In a medium bowl, add the flour, cinnamon, ground ginger, baking powder, salt, cloves, and nutmeg. Mix all the ingredients to combine, set that aside.
In the bowl of a stand mixer, add the butter and brown sugar. Beat on medium speed for 2 minutes until the mixture is light and fluffy.
Add the egg, molasses, and sourdough discard. Mix again for 1 minute.
Carefully add the dry ingredients to the wet ingredients in the stand mixer. Mix for 1 minute on low speed until the dough comes together into a ball.
Wrap the dough ball in plastic wrap and make the dough ball into a disc. Place the cookie dough in the refrigerator for at least an hour, or up to overnight.
When you are ready to bake the cookies, preheat the oven to 350 degrees.
Lightly flour your countertop and place the dough on the flour lined counter. Flour a rolling pin and roll the dough out so the thickness of the dough is about ¼ inch thick.
With your favorite cookie cutters, cut the dough, and place the cut outs onto a parchment lined baking sheet. Bake for 8-12 minutes depending on the thickness of your cookies.
When they are baked, allow them to cool to room temperature on a wire cooling rack and then decorate with royal icing.