State conditional skill use

I want to have a suite of stealth skills that can only be used when the user has a specific state active. I am using Yanfly's Skill Core and want to use custom show requirements, but am new to Javescript and unsure what the syntax is for what I want to do.
Code:
<Custom Requirement>
value = user._states.contains(id)
</Custom Requirement>

Original thread: https://forums.rpgmakerweb.com/threads/state-conditional-skill-use.88881/