skills apply states with passive

how can i make a passive state make your skills apply effect without having to go to each skill individually.
Something like this

<Custom Conclude Effect>
if (action.isSkill()) {
target.addState(29);
}
}
</Custom Conclude Effect>
this obviously doesn't work but something like this.

Also if a skill targets party members it shouldn't apply the effect.
never mind i found a way, this.item().stypeId.

Original thread: https://forums.rpgmakerweb.com/threads/skills-apply-states-with-passive.177376/