Pour the almond flour, cinnamon, xanthan gum, baking powder and salt into a bowl and mix thoroughly. Beat the butter with a mixer for 2-3 minutes, add the sweetener and continue beating until light and fluffy. Then, add the egg and stir for another minute. Add the dry mixture in two strokes, mixing with a mixer on low speed. Wrap the dough in clingfilm and place in the refrigerator for at least an hour.
Preheat the oven to 180°C (350°F). Roll out the dough between two sheets of parchment paper. Remove the top layer of parchment paper and use a ruler to cut the dough into squares. Transfer the parchment paper with the pastry to a tray and place in the freezer for 10 minutes.
Take the dough out of the freezer and bake for 8-12 minutes until golden. Brush the finished flakes with melted butter and sprinkle with cinnamon. Although, you can do this before baking for a more "crunchy" result). Cool for about 10 minutes at room temperature, transfer to a rack to cool and let stand for a couple of hours. Store in an airtight container for up to 5 days