In a large skillet over medium heat, add olive oil and sauté the chopped onion until translucent, about 3-4 minutes.
Add the cubed chicken to the skillet, seasoning with garlic powder, Cajun seasoning, crushed red pepper flakes, salt, and pepper. Cook until the chicken is browned and cooked through, about 5-7 minutes.
Stir in the diced tomatoes and bell peppers. Cook for another 3-4 minutes until the vegetables are tender. Remove from heat.
In a large bowl, combine the cooked spaghetti, cream cheese, and half of the shredded cheddar cheese. Mix until well combined.
Add the chicken and vegetable mixture to the spaghetti and mix gently until everything is evenly coated.
Transfer the mixture into a greased 9x13 inch casserole dish. Sprinkle the remaining cheddar cheese on top.
Cover the casserole with foil and bake in the preheated oven for 20 minutes.
Remove the foil and bake for an additional 10-15 minutes, or until the cheese is bubbly and golden brown.
Once done, let it cool slightly before serving. Sprinkle with sliced green onions for garnish.
Notes
Adjust the crushed red pepper flakes to suit your spice preference.