Preheat the oven to 175°C and line 2 baking sheets with parchment paper. Set aside a large piping bag fitted with a large open star tip if making swirled cookies.
In a large mixing bowl, beat the softened butter and granulated sugar for 2 to 3 minutes until smooth, creamy, and slightly lighter in color. Mix in the egg yolk, vanilla extract, and almond extract until fully combined.
Add the all-purpose flour, cornstarch, and fine salt to the bowl. Mix on low speed just until the dough starts to come together, then add the whole milk and continue mixing until a soft, pipeable dough forms with no dry pockets.
Transfer the dough to the prepared piping bag and pipe 24 cookies onto the lined baking sheets, spacing them about 4 centimeters apart. If the dough feels too soft to hold its shape, refrigerate the piped trays for 15 minutes before baking.
Bake the cookies for 12 to 15 minutes, rotating the pans halfway through, until the edges are lightly golden. Let the cookies cool on the baking sheets for 5 minutes, then transfer them to a wire rack to cool completely.
Place the semisweet chocolate and neutral oil in a heatproof bowl. Melt gently over a pan of barely simmering water or in short microwave intervals, stirring until smooth.
Dip one side or half of each cooled cookie into the melted chocolate, letting the excess drip off. Sprinkle the chocolate-dipped portion with the finely chopped pistachios before the chocolate sets.
Place the finished cookies on parchment or a wire rack until the chocolate is fully set, then arrange and serve.