01 - Preheat the oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, baking soda, baking powder, salt, cinnamon, nutmeg, and cloves until well blended.
03 - In a large bowl, beat the butter, brown sugar, and granulated sugar together until light and creamy.
04 - Add eggs one at a time, beating well after each addition. Mix in vanilla extract until incorporated.
05 - Gradually stir in the dry ingredients until just combined. Be careful not to overmix.
06 - Fold in oats, raisins, diced apple, and walnuts (if using) until evenly distributed throughout the dough.
07 - Scoop heaping tablespoons of dough onto the prepared baking sheets, spacing them about 2 inches apart to allow for spreading.
08 - Bake for 11 to 13 minutes, or until the edges are golden and centers are set but still soft to the touch.
09 - Let cookies cool on the baking sheet for 5 minutes before transferring to a wire rack to cool completely.