What is a Prompt?
The exact wording to get exactly what you want from an AI.
A prompt is the primary way you communicate with an AI. It is a set of instructions or a query provided to a Large Language Model (LLM) to elicit a specific, high-quality response. Think of it as 'coding in English.' The more precise and structured your prompt, the better the AI's output will be.
Unlike traditional software commands, prompts are written in natural language. But that doesn't mean 'anything goes.' Crafting a great prompt is a skill — one that separates people who get mediocre AI results from those who get extraordinary ones.
Anatomy of a Good Prompt
1. Role: Tell the AI who it is. (e.g., 'You are a Senior React Developer with 10 years of experience.')
2. Context: Give necessary background. (e.g., 'I am building a Next.js e-commerce site.')
3. Task: State clearly what needs to be done. (e.g., 'Create a reusable Button component.')
4. Constraints: Define boundaries. (e.g., 'Use TypeScript. Do not use any external libraries.')
5. Output Format: Specify how you want the result. (e.g., 'Return only the code block, no explanation.')
Pro Tip
Start your prompts with a role assignment. 'Act as a...' or 'You are a...' dramatically improves AI output quality because it sets the right context frame for the model.
