I use etal bot so that's all I can say that this would work for:
[Name] == DivineScepter && ([Quality] == Magic || [Quality] == Rare || [Quality] <= Superior) # [SkillFistOfTheHeavens] >= 3 && [SkillMeditation] >= 1 && [Sockets] == 5
That should work.