Prompting an AI is not about knowing how to code. It is about knowing how to explain. I like this four-part approach and it works well for me. As you use it more you will develop your own tricks. Pay attention to what is missing in the results you get, that is your signal to improve.
-
The roleTell the AI what kind of expert to act as and give it a mood or visual reference. "You are a web designer helping me build my personal website. Make it feel like a sunny Sunday morning in the park, warm and joyful." The more specific the feeling, the more personality the result will have.
-
The contextWhat already exists? What tools are you using? Paste your PRD here so the AI has the full picture of what you are building before it starts.
-
The taskWhat do you want the AI to build? Start with the full structure using your PRD, then use follow-up prompts to refine section by section. The more specific you are about what you want to see, the closer the result will be to what you have in mind.
-
The constraintWhat should it not do? For example: no extra pages you did not ask for, no features outside what is in your PRD, no made-up text to fill in the spaces. Telling the AI what to avoid helps it make fewer assumptions and gives you more control over the output.
MY PRD
Here is what happened when I ran this prompt for Marta's website. You will see the first result and a couple of refinements.
Using your PRD from SOP 01, write a prompt with all four parts: role, context, task, constraint. Use your own project as the starting point. Then open your AI coding assistant (Claude, ChatGPT, or any other), paste it, and see what comes back. Remember you can be as creative as you want with the mood. For my own website I used "nights in Seoul" as the visual reference. You can already see the first version of your website. Is it not exciting what you just did on your own?