Organise YAML

Anyone aware of a tool to scan through your config file and organise it into roughly similar areas? Or even better split it up into a non-monolithic structure?

e.g.

config

  • alarmstuff.yaml
  • lightingstuff.yaml
  • presencetsuff.yaml
    etc

Worried if I do it by hand I’ll end up losing an automation here or there to copy/paste fatigue!!

I think this is the pace to start (not that it identifies automatic tools, but tells you the structure of yaml files you need)