The idea to spontaneously create techniques on the fly was not something he abruptly came up with then and there.
No.
He had come up with it in the middle of battle against Tokugawa Ieyasu when he had felt that his existing techniques were not adequate enough to deal with his opponent. Ieyasu was one of the only people who was able to push him to discover new dimensions of adaptive evolution.
Thanks to him, Rui knew exactly how he wanted to take another step towards accomplishing Project Water.
"I need to create a system of thought that allows me to create new techniques on the fly."
It was an extremely tall ambition.
Techniques took individuality, time, and effort to create. Unless one was an era-defining genius like Ieyasu, it was not something that one could master very easily.
"Still, it is not absolutely impossible." He recalled how he had created Heavenly Divergence in the battle.