Prepare your corn by either grilling it or boiling it, then cutting it off the cob into kernels. If you're using canned corn, drain and rinse it.
Place the corn in a bowl, then add in diced avocado, tomatoes, onion, and cilantro (and optional jalapeno).
In another bowl, whisk together the lime juice, garlic, olive oil, salt, pepper, lime zest, and chili flakes.
Drizzle the dressing over top of the corn salad mixture and toss until well combined.
Let chill in fridge for at least one hour, I prefer at least 4 hours so flavors have time to combine.
Serve cold or at room temperature.