Script Request: HIDE SKILL TYPE IN SKILL MENU

Good morning / Afternoon / evening , everyone.

I am in need of your assistance once again.

Is it possible to create a script that hides a skill type of my choice from the actor's skill list on the menu, even if the actor has skills of that skill type AND even if I had added that skill type to the actor on the database.

Any help is appreciated.
Is it possible to create a script that hides a skill type of my choice from the actor's skill list on the menu, even if the actor has skills of that skill type AND even if I had added that skill type to the actor on the database.
Is it the same skill type for all actors or just one?
for all of them, just make it so that it becomes invisible in the skill menu. I'm using it for a specific purpose.
invisible in the skill menu
Good to go.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Hide Skill Type in Menu      ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Hide Specific Skill Types           ║    05 May 2021     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Specify which skill types to hide in battle or the skill ║
# ║ menu. This applies to everyone.                          ║
# ║ You can specify one or more skill types.                 ║
# ║ Just seperate them with a comma.                         ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use:                       ║
# ║ Free for all uses in RPG Maker      ║
# ╚═════════════════════════════════════╝

module R2_hide_skill_command_in_menu
    Battle_Hide = [1,2] # skill types to hide in battle
    Skill_Menu = [2] # skill types to hide in the skill menu
end

class Window_SkillCommand < Window_Command
  def make_command_list
    return unless @actor
    @actor.added_skill_types.sort.each do |stype_id|
      name = $data_system.skill_types[stype_id]
      add_command(name, :skill, true, stype_id) unless
            R2_hide_skill_command_in_menu::Skill_Menu.include?(stype_id)
    end
  end
end

class Window_ActorCommand < Window_Command
  def add_skill_commands
    @actor.added_skill_types.sort.each do |stype_id|
      name = $data_system.skill_types[stype_id]
      add_command(name, :skill, true, stype_id) unless
            R2_hide_skill_command_in_menu::Battle_Hide.include?(stype_id)
    end
  end
end
Great stuff

Thank you so much for this! If I encounter any issue I will make sure to bump the thread.

Original thread: https://forums.rpgmakerweb.com/threads/script-request-hide-skill-type-in-skill-menu.136221/