Preheat the oven to 375°F (190°C). In a small bowl, stir together flour, baking soda, and baking powder. Set aside.
In a large bowl, cream together the butter and sugar until smooth. Beat in the egg, vanilla, and almond extract. Gradually blend in the dry ingredients. Add buttermilk as needed to make the dough soft, not wet.
Roll out dough on a lightly floured surface to 1/4 inch thick. Cut into star shapes with a cookie cutter.
Place cookies 1 inch apart on ungreased cookie sheets. Bake for 8 to 10 minutes, or until edges are golden. Cool on wire racks.
Once cool, decorate with red, white, and blue icing and sprinkles.