Heuristic: if
教 is the live verb taking an object ("teach Chinese", "teach class"), use jiāo. If it sits inside a noun compound or names a religion, use jiào. Exceptions are few —
教书 and
教学 (when meaning "to teach as a profession") keep jiāo because the verb sense dominates.