Cook pasta according to package instructions. Drain; set aside to cool. Once cooled, add the pasta to a large bowl. Add the corn, blackbeans, tomatoes, bell pepper and cilantro. Stir together.
In a small bowl, whisk together mayonnaise, lime juice, chili powder, cumin and salt.
Add the dressing to the pasta salad. Stir to combine.
Refrigerate covered until ready to serve. Add the avocado and red pepper flakes (if desired) just before serving.