Preheat the oven to 375°F (190°C).
Bring a large pot of salted water to a boil.
Cook the thin spaghetti until al dente according to package directions. Drain and set aside.
Season the chicken breasts with Italian seasoning, salt, and black pepper.
Heat olive oil in a large oven-safe skillet over medium-high heat.
Add the chicken and cook until golden on both sides and the center reaches 165°F (74°C).
Transfer the chicken to a cutting board and let rest briefly, then cut into bite-size pieces.
Reduce the skillet heat to medium and add the butter.
Add the diced onion and cook until softened.
Add the minced garlic and cook briefly until fragrant.
Sprinkle in the flour and stir continuously for about 1 minute.
Slowly whisk in the chicken broth.
Add the milk and simmer gently until the sauce begins to thicken.
Reduce the heat to low and stir in the softened cream cheese until smooth.
Add the cheddar cheese and stir until melted.
Add the diced chicken and tomatoes with green chilies.
Add the cooked spaghetti and toss until evenly coated.
Spread everything evenly in the skillet.
Sprinkle mozzarella cheese over the top.
Transfer the skillet to the oven and bake for 10 to 15 minutes until melted and bubbly.
Remove from the oven and rest for about 5 minutes.
Garnish with chopped parsley and red pepper flakes before serving.