01 - Preheat the oven to 400°F (200°C). Lightly grease a 9x13-inch baking dish with olive oil or cooking spray.
02 - Bring a large pot of generously salted water to a rolling boil. Add the penne or rigatoni and cook according to package directions until al dente. Drain well and set aside.
03 - While the pasta cooks, heat 1 tbsp olive oil in a large skillet over medium-high heat. Add the diced chicken breasts, season generously with salt and pepper, and cook for 6–7 minutes, stirring occasionally, until golden brown and cooked through (internal temperature reaches 165°F). Remove from heat and set aside.
04 - In a large mixing bowl, combine the drained pasta, seared chicken, basil pesto, heavy cream, milk, and half of the shredded mozzarella. If using cherry tomatoes or baby spinach, fold them in now. Toss everything together until evenly coated.
05 - Transfer the pasta mixture into the prepared baking dish, spreading it into an even layer. Sprinkle the remaining mozzarella and all of the grated Parmesan evenly over the top.
06 - Bake on the center rack for 20 minutes, or until the cheese is melted, bubbly, and golden brown in spots. If a deeper crust is desired, broil for the final 2–3 minutes, watching carefully to prevent burning.
07 - Remove from the oven and let the bake stand for 5 minutes to set. Garnish with fresh basil leaves if desired, then serve warm.