Open with the problem or question this post answers. Why does this matter to your reader? What will they be able to do after reading this that they couldn't do before?
Any context the reader needs before you dive in. Don't assume too much — but don't over-explain either. Pitch it to someone one level below you in the stack.
Explain the main idea. Use concrete examples. If there's code, show it. If there's a process, walk through it step by step.
// Example code block
const example = "Replace this with real code";
What do people get wrong about this? This section is often the most valuable part of a technical post — it shows pattern recognition that only comes from experience.
Three to five bullet points recapping the key takeaways. Someone who skims to the bottom should still get value.