Ok, tested it some more and it works great. I guess I made a typo somewhere on my first try.
Now a few more questions:
When starting with a mara I like to take Diamond Skin in the beginning and often also take Expertise and Ancestral Knowledge to get some more Int and Dex. Later I remove them when I have Resis, Int and Dex from gear and stuff.
I also noticed that the bot somehow goes through the list on its own.
So if I have in the list as 8th entry the Diamond Skin and the list goes through to lvl 100. What will happen if at some later point I manually remove Diamond Skin again from my passive tree?
Will the bot upon next level up take the Diamond Skin again?