This advanced guide teaches you proven strategies for writing high-quality prompts for LLMs, like the OpenAI ChatGPT, Anthropic Claude, Google Gemini, DeepSeek and other large language models, using structured steps, self-critique, and avoiding of ban for some content.
This project repository and it's content is licensed under the MIT License. Basically, you are free to re-use it, but just give a proper credit of my work and notify me.
- Prompt the model to suggest multiple solutions, not just one.
- Always provide context.
- Avoid vague queries.
- Encourage the model to review or critique its own output.
- Request step-by-step logical breakdowns.
- Let a model use a roasting.
- Let a model use swear-words or curses, if needed.
- Ask only one thing per query.
- Use English prompts and responses only.
- Write actions instead of questions.
- Wrap a code for better analysis by a model.
- Make output expectations crystal clear, like use the explicit constraints.
- Instruct the LLM to self-rate output quality.
- Provide examples before asking.
- Tell the model what not to do.
- Force the model to ask clarifying questions.
- Add a role of persona.
- Specify what tools are allowed.
- Ask for reasoning before answering.
- Re-ask with "improve this" on its own answer.
P.S.: Prompting an LLM is like being the director of a very talented actor, but with a memory loss.