Below is the documentation part, in short, what you're looking for is line like

/hotbar action <action name> 1 3

That'd put the action with <action name> to your hotbar 1, into slot 3. For making macros, open the macro window (in menu, or with command /macros) and then select any number on the left portion of the screen, that's the macro slot you'll be using, then write your macro on the right side window. In your case, you want 5 lines that follow the example I gave to you. Then drag the macro icon from the left grid to somewhere where you'll use it from. Then make another one that sets the other set of skills you wanted.


/hotbar [subcommand]

→Edit and configure hotbar settings.

>>Subcommands
 action "action name" [#1] [#2]
  Set the specified action to slot [#2] in hotbar [#1]. If [#2] is omitted, the action will be set to the lowest-numbered slot available. If both [#1] and [#2] are omitted, the action will be set to the lowest-numbered slot available on the lowest-numbered hotbar available. This applies to all of the following subcommands.
 general "general action name" [#1] [#2]
  Set the specified general action to slot [#2] in hotbar [#1].
 item "item name" [#1] [#2]
  Set the specified item to slot [#2] in hotbar [#1].
 emote "emote name" [#1] [#2]
  Set the specified emote to slot [#2] in hotbar [#1].
 companion "companion action name" [#1] [#2]
  Set the specified companion action to slot [#2] in hotbar [#1].
 pet "action name" "pet name" [#1] [#2]
  Set the specified pet action to slot [#2] in hotbar [#1].
 minion "minion name" [#1] [#2]
  Set the specified minion to slot [#2] in hotbar [#1].
 mount "mount name" [#1] [#2]
  Set the specified mount to slot [#2] in hotbar [#1].
 enemysign "enemy sign name" [#1] [#2]
  Set the specified enemy sign to slot [#2] in hotbar [#1].
 waymark "waymark name" [#1] [#2]
  Set the specified waymark to slot [#2] in hotbar [#1].