Flanking is learned through the Acrobatics skill.

You learn to take advantage of an opponent after evading their attacks. Whenever you dodge, you temporarily have increased critical strike chance, as well as an increased chance to perform any other special attacks you are trained in such as stun, multiple attacks, etc.