To write stand-up comedy, you need to write, edit, and revisit your ideas often. You can choose a personal story, an out-of-the-ordinary experience, or a relatable topic as the basis of your jokes. You can approach your jokes like stories, with characters, situations, and punchlines. You can also use the Rule of Threes, which is a technique of listing two things that make sense together, and then breaking the pattern with a funny third thing.

Here are some steps you can follow to write stand-up comedy:
1. Start by watching other comedians at work. Try focusing on one stand-up comedian you admire. Look through their original material. Focus on the words they use and how they deliver them. Then track how they progressed as a comedian throughout the years. Pay attention to how they perform as well.
2. Determine your topic. This will be your entry point into writing.
3. Write down everything that comes to mind about your topic. Don't worry about being funny yet.
4. Edit your material. Cut out anything that doesn't work or that doesn't fit with your theme.
5. Revisit your material often. Keep refining it until it's perfect.