Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a large mixing bowl, combine the mashed sweet potatoes, rolled oats, almond flour, maple syrup, melted coconut oil, and vanilla extract. Mix until well combined.
Add the ground cinnamon, baking powder, and salt to the mixture. Stir until everything is evenly incorporated.
If using, fold in the raisins or chocolate chips and chopped nuts.
Using a spoon or cookie scoop, drop tablespoon-sized portions of the dough onto the prepared baking sheet, spacing them about 2 inches apart.
Flatten each cookie slightly with the back of the spoon.
Bake in the preheated oven for 15-20 minutes, or until the edges are lightly golden.
Allow the cookies to cool on the baking sheet for 5 minutes before transferring them to a wire rack to cool completely.