Melt the butter in a light-colored skillet over medium heat. Keep swirling for 5 to 6 minutes, until it foams, the bits on the bottom turn golden brown and it smells nutty. Pour it into a large bowl, scraping in the brown bits, and cool for 10 minutes.
Whisk the coconut sugar into the warm brown butter for 30 seconds. Then whisk in the egg and vanilla until glossy.
Stir in the almond flour, oat flour, baking soda, sea salt and cinnamon until no dry spots remain. Fold in most of the chopped chocolate, saving a few chunks for the tops.
Cover the bowl and chill the cookie dough for 30 minutes. Meanwhile, heat the oven to 350°F and line a baking sheet with parchment paper.
Scoop 12 balls of dough, about 2 tablespoons each, onto the sheet, 2 inches apart. Press the saved chocolate chunks on top.
Bake for 10 to 12 minutes, until the edges are golden and the centers still look a little soft. Sprinkle with flaky salt right away.
Cool the cookies on the pan for 10 minutes so they set, then move them to a rack.