01 - Preheat oven to 350°F. Line a baking sheet with parchment paper.
02 - In a medium bowl, whisk together almond flour, coconut flour, baking powder, salt, cinnamon, ginger, cardamom, cloves, nutmeg, and black pepper.
03 - In a large bowl, cream the softened butter and erythritol until light and fluffy.
04 - Beat in the egg and vanilla extract until combined.
05 - Gradually mix the dry ingredients into the wet mixture until a dough forms.
06 - Fold in chopped nuts, if using.
07 - Scoop tablespoon-sized amounts of dough, roll into balls, and place on the prepared baking sheet. Flatten each ball slightly with your hand or a fork.
08 - Bake for 12-15 minutes, or until the edges are lightly golden.
09 - Allow the cookies to cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.