Preheat and prep: Set your oven to 350°F (175°C) and line a baking sheet with parchment paper. The parchment prevents sticking and helps the bottoms brown evenly without burning.
Mix the wet ingredients: In a large bowl, combine 1 cup mashed sweet potato, 1 egg, ⅓ cup maple syrup, 2 tablespoons melted coconut oil, and 1 teaspoon vanilla extract. Stir until smooth and uniform. The sweet potato should be fully incorporated with no streaks — if you see lumps, mash them against the side of the bowl with your spoon. Make sure your coconut oil isn't piping hot when you add the egg, or you'll end up with scrambled egg bits. Warm but not hot is the sweet spot.
Add the dry ingredients: Stir in 1½ cups rolled oats, ½ cup almond flour, 1 teaspoon cinnamon, ¼ teaspoon nutmeg, ¼ teaspoon baking soda, and ¼ teaspoon salt. Mix until just combined — over-mixing will make the cookies tough. The dough will be thick and slightly sticky, similar to a drop cookie dough.
Fold in the optional add-ins: If you're using ⅓ cup chopped pecans and ⅓ cup raisins (or your preferred combo), fold them in gently with a spatula. Distribute evenly so every cookie gets a little crunch and a little sweetness.
Scoop and shape: Scoop about 2 tablespoons of dough per cookie onto the prepared baking sheet, spacing them about 2 inches apart. Slightly flatten each mound with the back of your spoon or your fingers — they won't spread much on their own, so flattening helps them bake evenly. When I'm tired, I skip the flattening step, and the cookies come out more domed but still taste great. Do what works for you.
Bake: Place the sheet in the oven and bake for 12 to 15 minutes, until the cookies are set around the edges and golden on the bottom. The tops will look matte, not shiny, and the centers should feel firm when lightly pressed. If you tap one gently with your finger and it springs back slightly, it's done. If it feels wet or jiggly, give it another minute or two.
Cool completely: Transfer the baking sheet to a wire rack and let the cookies cool on the sheet for 5 minutes. Then move them directly to the wire rack to cool completely. This step is crucial — they firm up significantly as they cool. I know it's tempting to eat one warm, but it will fall apart in your hands. Trust me, I've done it. Wait the full time.