Adjust the oven rack to the middle position and preheat the oven to 350 degrees F.
Add the diced sweet potatoes, spices and two tablespoons of coconut oil to a mixing bowl and stir to combine. Spray a sheet pan with cooking spray, if desired, and add the sweet potato mixture, taking care not to crowd the pan. Roast for 20 minutes, stir, then roast for another 10 minutes until the sweet potatoes are fork tender and slightly crisp on the outside. Increase the oven temperature to 450 degrees F.
As the sweet potatoes roast, heat a cast iron skillet or oven-friendly skillet over medium heat and melt the remaining 1 tablespoon of coconut oil. Sautee the diced onion until tender. Add the sausage and use a spatula to crumble into small pieces as it cooks. Top with red pepper flakes (optional).
Remove the skillet from the heat and add the roasted sweet potatoes, gently stirring to combine. Make 4-6 small wells within the skillet. Crack an egg into a small bowl, check for eggshell and remove as needed, then gently pour into the first well. Repeat this step for the remaining eggs.
Transfer the skillet to the oven. Your cook time will vary depending on how you prefer your eggs. For slightly runny yolks, cook for 10-12 minutes. Cook time for over-medium eggs is closer to 15 minutes.
Remove the skillet from the oven and plate into 4-6 servings. Garnish and serve.