Preheat your oven to 375°F and grease a 9x13 casserole dish so the baked chicken spaghetti won’t stick while it bakes.
Bring a large pot of water to a boil, cook 10 ounces of spaghetti until al dente, then drain thoroughly so the noodles hold their shape under the sauce.
While the pasta cooks, melt ¼ cup of butter in a large skillet over medium heat and add a small chopped onion. Cook 4 to 5 minutes until the onion is soft and translucent.
Stir in 2 minced garlic cloves, 1 teaspoon of Italian seasoning, ¼ teaspoon of salt, and ¼ teaspoon of pepper, cooking 30 seconds until the garlic aroma fills your kitchen.
Sprinkle in ¼ cup of flour and stir for 1 minute, then slowly pour in 1½ cups of chicken broth while stirring. Add 4 ounces of cream cheese and 1 cup of shredded cheddar, stirring until the mixture is smooth and creamy.
Turn off the heat, stir in a drained 14.5 ounce can of diced tomatoes, then add the cooked spaghetti and 2 cups of rotisserie chicken. Mix until every noodle is coated and the chicken is evenly mixed throughout.
Transfer the mixture to your prepared dish, top with the remaining 1 cup of cheddar and ¼ cup of Parmesan, and bake at 375°F for 25 to 30 minutes until the cheese is bubbly and lightly browned at the edges.