There is no one "right" way to write an outline before writing. However, there are some general guidelines you may find helpful.
One approach is to brainstorm your topic and then create an outline based on the main ideas you want to discuss. Another approach is to do a bit of research on your topic and then develop an outline based on what you have learned.
Whichever approach you take, the goal is to have a clear idea of what you want to say before you start writing. This will help you stay focused and organized as you write.
If you're not sure how to create an outline, there are many resources available to help you, including templates and tutorials. You can also find plenty of examples of outlines online.