Compatibility Error with Equippable Passive Skills scripts

Hello, I feel like this is a common topic that I haven't found a solution for online. (edit to clarify this is for RPG Maker VX Ace if this was not clear)

I am using Yami's Skill Equip + Neon Black's CP Passive Skills + Selchar script patch. I am using them to put together as this works with equipping passive skills. I am running into a "no implicit conversion from nil to integer" error.

Now, I know what this is trying to tell me... sort of. With Selchar's patch, it isn't pulling an integer for $data_skills, but I think it isn't inherently wrong or I'm not sure what is missing as the script looks like it is doing what it's supposed to?

Troubleshooting I've done:
1) Surprisingly, this works fine when I plugged this in and continued on a current save file I was using. The error first came up when I started a new game (opposite of what usually is the problem with these).
2) I started a new project with these three scripts. Interesting enough, this will work, on one condition - No skill can have the Yami tag: "<non equip skill>". As soon as you have one skill with that tag, the error pops up when starting a new game. That would be ok if I would want all my skills to be equippable, but this isn't what I'd prefer, only some.

Anyone have any ideas?

Yami Skill Equip

Neon Black Passive Skills

Selchar Patch (can provide text due to formatting in message)

Thanks for any help!
Bump, any help please!
To reproduce in a new project, I had to give the actor 5 skills and make two of them have the <non equip skill> tag. When printing the contents of equip_skills in Selchar's patch, there's a moment where the last skill changes its ID from 0 to nil (because the actor can only have 3 skills equipped with the available 4 slots by default). I'm still not sure where this actually happens in the code.

So I just added
Code:
    equip_skills.each do |skill_id|
      next unless skill_id #<====== this line here
to the patch.

This time the last skill changed from nil back to 0 again. Band-aid fix, but probably good enough.
Working for me now when I start a new project and continue from my last save. When I fooled around with those lines I couldn't get anywhere, so I really appreciate the help!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-error-with-equippable-passive-skills-scripts.122358/