Start from the problem.

Different kinds of work, one method: understand what is actually going wrong, decide what it needs, build exactly that.