01 - Preheat oven to 350 degrees Fahrenheit and line two baking sheets with parchment paper.
02 - Whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, ginger, and cloves in a medium bowl until evenly mixed.
03 - Using an electric mixer or whisk, cream granulated sugar, brown sugar, and softened butter until light and fluffy.
04 - Beat in pumpkin purée, egg, and vanilla extract into the creamed sugar and butter mixture until fully combined.
05 - Gradually add dry ingredients to wet mixture, stirring just until incorporated without overmixing.
06 - Fold in chocolate chips or walnuts if desired, ensuring even distribution.
07 - Drop heaping tablespoons of dough roughly 2 inches apart onto prepared baking sheets.
08 - Bake for 13 to 15 minutes until edges turn golden and centers are set.
09 - Let cookies cool on baking sheets for 5 minutes, then transfer to wire racks to cool completely.