Cook the penne or rigatoni (1 pound) according to the package directions.
Heat the olive oil (2 tablespoons) in a skillet over medium-high heat. Add the chicken breasts (2) pieces in a single layer and sprinkle with salt and freshly ground black pepper. Allow it to cook, without stirring, until golden, about 2 minutes. Stir the chicken around to brown it on all sides. Remove to a plate.
In the same skillet over medium-high heat, add the garlic (2 cloves) and onion (1 large) and stir immediately to start cooking. Cook until the onions are deep golden, stirring occasionally, 2-3 minutes.
Reduce the heat to low and pour in the marinara sauce, crushed red pepper flakes (1/2 teaspoon), and water (1/2 cup). Stir until the onions and garlic are mixed in, then add the chicken back to the skillet. Add the parsley (2 tablespoons) and stir to combine. Bring to a simmer and cook, stirring occasionally, for 7-8 minutes.
Make sure the sauce is bubbly and very hot, then gently stir in the mozzarella (8 ounces). Let sit, undisturbed, until you can see that the mozzarella is very soft, 2-3 minutes.
Drain the pasta and pour it onto a platter. Drizzle with a little olive oil. Immediately sprinkle on the parmesan shavings (1/4 cup). Pour on the sauce, sprinkle with grated Parmesan cheese and the chiffonade of basil (12 leaves) and serve immediately!