Simple visuals + everyday analogies + copy-paste templates that turn anyone into a confident prompter β whether you write code or just chat with ChatGPT.
If this helps you finally write prompts that work β drop a β. It helps more people find it.
Everyone's using AI, but most people are leaving 80% of its power on the table β because nobody taught them how to ask. The guides out there are either academic papers or "10 magic prompts" clickbait.
This repo sits in the middle. Every technique gets:
- π§ An "Explain Like I'm 5" analogy β the one-liner you'll actually remember
- πΌοΈ A simple diagram β see how the technique works, don't just read it
- π§ "How it actually works" β for when you're ready to go deeper
- π A real-world example β where it actually helps
No PhD required. No prior coding needed. Just better results from the AI you already use.
Lost? Start here. Follow the arrows to the right tool for your task.
flowchart TD
Start(["π€ What do you need?"]) --> Facts{"Needs real or<br/>current facts?"}
Facts -->|Yes| G["π Grounding<br/>(+ ReAct for live data)"]
Facts -->|No| Hard{"Hard reasoning,<br/>math or logic?"}
Hard -->|Yes| CoT["π Chain-of-Thought<br/>(+ Self-Consistency if critical)"]
Hard -->|No| Fmt{"Need a strict<br/>output format?"}
Fmt -->|Yes| OF["π§Ύ Output Formatting<br/>(+ Output Priming)"]
Fmt -->|No| Style{"Specific tone<br/>or expertise?"}
Style -->|Yes| Role["π Role Prompting"]
Style -->|No| Odd{"Unusual or<br/>custom task?"}
Odd -->|Yes| FS["π Few-Shot<br/>(show examples)"]
Odd -->|No| ZS["π― Zero-Shot<br/>(just ask clearly)"]
style G fill:#dcfce7,stroke:#22c55e,color:#14532d
style CoT fill:#dcfce7,stroke:#22c55e,color:#14532d
style OF fill:#dcfce7,stroke:#22c55e,color:#14532d
style Role fill:#dcfce7,stroke:#22c55e,color:#14532d
style FS fill:#dcfce7,stroke:#22c55e,color:#14532d
style ZS fill:#dcfce7,stroke:#22c55e,color:#14532d
| # | Technique | One-liner |
|---|---|---|
| 1 | π― Zero-Shot Prompting | Just ask β no examples needed. |
| 2 | π Few-Shot Prompting | Show 2β3 examples and let it copy the pattern. |
| 3 | π Role Prompting | Give the AI a job title before you ask. |
| 4 | π Clear Instructions | Vague in, vague out β be specific. |
| 5 | π§Ύ Output Formatting | Tell it the shape you want: list, table, JSON. |
| 6 | π¦ Constraints & Negatives | Set the boundaries it can't cross. |
| 7 | βοΈ Output Priming | Start the answer for it; it finishes the pattern. |
| 8 | πΌοΈ Multimodal Prompting | Prompt with images, not just words. |
| # | Technique | One-liner |
|---|---|---|
| 9 | π Chain-of-Thought | Ask it to "think step by step." |
| 10 | πͺ Step-Back Prompting | Get the general principle first, then the answer. |
| 11 | π§ Least-to-Most | Solve the easy sub-problems first, then climb. |
| 12 | π³ Tree of Thoughts | Explore several branches, keep the best. |
| 13 | π³οΈ Self-Consistency | Ask a few times, take the majority answer. |
| 14 | π Self-Critique & Reflection | Have it grade and fix its own work. |
| 15 | π Iterative Refinement | Treat the first answer as a draft, then steer. |
| 16 | π Grounding (Answer from Context) | Make it answer only from facts you supply. |
| # | Technique | One-liner |
|---|---|---|
| 17 | π§ Delimiters & Structure | Fence off your content so it's never confused. |
| 18 | βοΈ Prompt Chaining | Break big jobs into a chain of small prompts. |
| 19 | π ReAct (Reason + Act) | Think β act β observe β repeat. |
| 20 | πͺͺ System Prompt | The hidden rulebook behind every AI app. |
| 21 | πͺ Meta-Prompting | Ask the AI to write your prompt for you. |
| 22 | π§± Prompt Templates | Write it once with blanks, reuse forever. |
| # | Technique | One-liner |
|---|---|---|
| 23 | π Avoiding Hallucinations | Stop the AI from confidently making things up. |
| 24 | π‘οΈ Prompt Injection | The sneaky attack every prompter should know. |
If you remember nothing else, remember this:
- Be specific. Say who it's for, how long, and what format. (more)
- Give an example when the format is unusual. (more)
- Assign a role. "You are a..." reshapes the whole answer. (more)
- For hard problems, say "think step by step." (more)
- Iterate. The first reply is a draft, not the final word. (more)
This is the companion to AI for Beginners β Visual Edition β 32 core AI concepts (LLM, token, embedding, RAGβ¦) explained the same visual way. Learn what AI is there, learn how to talk to it here.
Got a clearer analogy or a technique we're missing? PRs are warmly welcome β see CONTRIBUTING.md. You don't need to be an expert; if you can explain something simply, you can contribute.
Made for everyone who's tired of mediocre AI answers.
If it helped you, a β goes a long way. π§ π