In a pot of boiling salted water, cook the spaghetti for 10 minutes.
The spaghetti should be drained but some of the pasta water should be kept aside.
In a skillet, heat the olive oil.
After the garlic, asparagus, and mushrooms have been sautéed for 5 minutes, they should be tender.
Adding the shrimp to the skillet and seasoning with red pepper flakes is the next step
Let it cook for 5 minutes.
You can add a few tablespoons of pasta water if the liquid is needed.
Combine the pesto sauce and the parmesan cheese.
Add the pesto to the shrimp and stir well.
After 5 minutes, remove from the heat
Serve with spaghetti