I explain the gritty details here:
Final requirements:
Edited n questions within 12 hours of posting an answer (that's 12 hours before or after answering), where:
- The question was asked by someone other than the answerer
- Neither the questions nor the answers are deleted
- The questions are not closed
- The answers score > 0
- The question edits changed either body, titles, or both
If n >= 1, an Explainer badge (bronze) is awarded.
If n >= 50, a Refiner badge (silver) is awarded.
If n >= 500, an Illuminator badge (gold) is awarded.
Each badge can be awarded only once per person, per site.
If you're interested in the implementation, this SEDE query is roughly what's being run.
tl;dr: answer a question, then edit the question. Or edit the question and then answer it. If your answer then gets voted > 0, it'll count toward a badge.