Whisk the dry mix: In a medium bowl, whisk oat flour, baking soda, cornstarch, and salt. Set aside.
Cream the butter and sugars: In a large bowl, beat softened butter with brown sugar and granulated sugar until creamy and slightly fluffy, about 2 minutes.
Add egg and vanilla: Beat in the egg and vanilla until smooth.
Scrape the bowl so everything blends evenly.
Combine: Add the dry mix to the wet ingredients. Stir until just combined. If the dough looks dry or crumbly, mix in 1–2 tablespoons of milk until it holds together and looks soft, not sticky.
Fold in chocolate: Gently stir in chocolate chips or chunks.
Chill: Cover and chill the dough for 30–60 minutes to reduce spreading and improve texture.
Preheat and prep: Heat oven to 350°F (175°C).
Line two baking sheets with parchment.
Scoop: Use a 1.5-tablespoon scoop to portion dough balls, spacing 2 inches apart. If you like, press a few extra chips on top.
Bake: Bake for 9–11 minutes until edges are set and centers look slightly underbaked. They’ll finish setting as they cool.
Finish: Let cookies cool on the sheet for 5–7 minutes, then move to a rack.
Sprinkle with flaky salt while warm if you’d like.