[READY][3.8.6][PHRAS-25] Crossdomain command generator

- [x] Add tests
- [x] Add docs