Kan, nice work. If I understand how you did it, whenever Crimson Swath is cast, it basically casts Baroom repeatedly without any checks. That should work. I'll test it in the AM.
I think I have to have Crimson Swath set as a precast to Baroom. The reason is that if Baroom has just been cast when Crimson Swath casts, then Baroom would not recast until after Crimson Swath's duration is up essentially losing the major benefit of the spell. While Crimson Swath shorten's Baroom's recast to 2secs, it doesn't effect previous casts of Baroom. I am not sure it is possible, but if there was a way to check if Baroom is waiting on recast before the Bot casts Crimson Swath, that would be fine. However with your change, I can probably move Baroom to my AE section of the cast order and keep Crimson Swath as a precast. That should work with your new change. Baroom has a 2sec recast while CS is up so even with a few frames delay, it still should cast 4 times.
For Shadow and Double Up, they can be handled in pre or post casts. Both have much shorter (and different) reuses speeds so they are a pain to deal with when trying to time with CS. I think it is a play style decision on how to use those two so it's not worth trying to automate them. I personally like to use Double Up whenever its up (it basically doubles the damage on all CA's while active, 3 if you get the ability doublecast too). I like to use shadow a little a little more strategically.
FYI - when I tested on a few TD's manually, its quite a DPS boost when casting Shadow, Double Up, Crimson Swath, and then chaining Baroom with a few other CA's for 12 sec. If you are interested I can send an ACT dump.
Anyways, much appreciated for the quick turnaround on this.