Preheat the oven to 350°F and line two baking sheets with parchment paper.
In a bowl, whisk together flour, baking powder, baking soda, and salt. Set aside.
In a separate bowl, cream together softened butter, brown sugar, and granulated sugar until fluffy.
Mix in egg yolks, vanilla extract, and almond extract until pale and fluffy.
Add flour mixture and ground almonds, mixing until just combined.
Scoop dough into balls, make an indent in each, and fill with frangipane. Top with sliced almonds.
Bake for 12-13 ½ minutes until golden brown.
Use a cookie cutter to shape the cookies while warm.
Let cool, then dust with powdered sugar before serving.
Enjoy these delicious almond cookies with a cup of coffee or tea!