Yanfly AutoPassiveStates - passive that boosts damage if a certain kind of armor or weapon is equipp

I want to make a passive that increases physical damage dealt (or magic depending) if the actor with a given passive skill has a given type of item equipped.

For example Axe Proficiency : while an axe is equipped, gain 15% attack  or

Tactical Prowess: while light armor type armor is equipped gain 15% agility
bump. Still needing to know how to do this.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-autopassivestates-passive-that-boosts-damage-if-a-certain-kind-of-armor-or-weapon-is-equipp.50386/