What do you mean by "the skill works"? This is a condition for a state.
If you mean state:
It's working for me. The state is applied when leader has the id 3, then removed when the leader does not have the id 3.
Make sure that your <Passive State: x> notetag is ONLY on the actor with id 3 for this state.
Here's the condition also with that other condition about learning a skill:
<Custom Passive Condition>
if ($gameParty.leader() && $gameParty.leader().actorId() === 3 && $gameParty.leader().isLearnedSkill(26)) {
condition = true;
}
else {
condition = false;
}
</Custom Passive Condition>
Replace 26 with the skill id.