What I like to do is to listen to the backing track over and over again, while singing a solo. I feel like I would get the best ideas and get rid of all the licks that I'd play automatically if I don't have the instrument in my own hands.
You could also try transcribing solos that you like and analyse how they develop. As Jonathan said below, a sense of structure is quite important, it's not only about getting as fast as possible from point A to point B, or putting licks together! Also, that would allow you to actually write something that a guitar player could play! That's an instrument that allows a lot of expression, but which also comes to its limitations at higher speed.