I can't give you values that would work best for your game as I wouldn't know, but you could try something like this. This allows the Skill to decrease in damage as durability drops:
updated
updated
JavaScript:
a.atk * (a.weapons()[0].durability / a.weapons()[0].durMax) - b.def