"How to Write Good," by Michael O'Donohue. Best tip ever: At the end, have all the characters run over by a truck; if it's a story about truckers, have them run over by a big truck. Never failed yet. (Yes, it's a joke. National Lampoon. And they had an issue with spoilers and had to say "no joke" for the end of "Lonely are the Brave.") But originally, Gene Roddenberry thought of having the series end with the Enterprise blown up. (Which wouldn't have been fatal should, as it did, the series rose from the ashes. Heinlein, in "The Rolling Stones," had the family pay their bills by a series on subetheric TV which they finally ended by having the hero at the bottom of an ocean on Jupiter, tied up and running out of oxygen, with menacing methane monsters closing in (no, they didn't know what they were). When they had to resume the series, the hero was just about to explain how he got out of this when an alert was rung and he ran off. So, if Roddenberry had blown up the Enterprise, in the first movie, as Admiral Kirk was about to explain, there would be a red alert.
Yes, writing tips from a comedy writer and the dean of science fiction. Can get any better than that.
Seriously, I often refer to Ronald Tobias' "20 Master Plots (And How to Build Them.)" And I ignore Stephen King.