Steps
1. Cook the spaghetti according to package instructions until al dente, then drain and set aside.
2. In a skillet, heat the olive oil over medium heat. Add the minced garlic and sauté for about 30 seconds until fragrant.
3. Add the diced chicken breast to the skillet, season with salt, pepper, and red chili flakes, and cook until the chicken is browned and cooked through, about 5-7 minutes.
4. Add the cooked spaghetti to the skillet, tossing everything together until well combined and heated through.
5. Serve hot, garnished with fresh basil leaves and grated Parmesan cheese if desired.