The only way to do it is to do it: by writing, writing, writing.
Writing is like a bird-watcher watching for birds: the stories are there: you just have to train yourself to look for them.
Sometimes the characters develop almost without your knowing it. You find them doing things you hadn't planned on, and then I have to go back to page 42 and fix things. I'm not recommending it as a way to write. It's very sloppy, but it works for me.
I do, however, think it would be difficult to write books I don't like to read.
I have no writing habit. I work when I feel like it, and I work when I have to - mostly the latter.