Default Battle System snippet: Hide Skill Window on target selection

Good Morning / Day / Afternoon / Evening everyone.

I have a request for a script snippet.

Is it possible to hide the skill window altogether when selecting the target. the Default battle system maintains the window even after selecting the skill.

Is it possible to hide it completely when you are selecting the target?

I would really appreciate this.
Answered on discord. Might as well as put the code here
Code:
class Scene_Battle
  alias on_skill_ok_hide on_skill_ok
  def on_skill_ok
    @skill_window.hide
    on_skill_ok_hide
  end
  
  alias on_item_ok_hide on_item_ok
  def on_item_ok
    @item_window.hide
    on_item_ok_hide
  end
  
  alias on_actor_cancel_show on_actor_cancel
  def on_actor_cancel
    on_actor_cancel_show
    @skill_window.show if @actor_command_window.current_symbol == :skill
    @item_window.show if @actor_command_window.current_symbol == :item
  end
  
  alias on_enemy_cancel_show on_enemy_cancel
  def on_enemy_cancel
    on_enemy_cancel_show
    @skill_window.show if @actor_command_window.current_symbol == :skill
    @item_window.show if @actor_command_window.current_symbol == :item
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/default-battle-system-snippet-hide-skill-window-on-target-selection.120628/