explaingit

trigaten/learn_prompting

4,696MDXAudience · generalComplexity · 1/5Setup · easy

TLDR

Learn Prompting is a free website and guide teaching anyone how to write better prompts for AI tools like ChatGPT, from basic techniques to advanced methods, with no technical background required.

Mindmap

mindmap
  root((Learn Prompting))
    What it does
      Prompt engineering
      AI education
      Free courses
    Topics
      Basic techniques
      Advanced methods
      AI red teaming
    Audience
      Beginners
      Non technical users
      Developers
    Tech Stack
      MDX
      Node.js
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Learn prompt engineering techniques to get more accurate and useful answers from ChatGPT or Claude.

USE CASE 2

Take a free structured course on generative AI to understand how to apply it in your daily work.

USE CASE 3

Contribute a new prompting technique, translation, or correction to the open-source guide for other learners.

Tech stack

MDXNode.js

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

Learn Prompting is a free educational resource that teaches people how to communicate effectively with AI tools like ChatGPT. The repository holds the source files for the website at learnprompting.org, which includes written guides, structured courses, and workshops aimed at anyone who wants to get better results from generative AI systems. The main offering is a free prompt engineering guide that has been cited by OpenAI and Google. Prompt engineering refers to the skill of writing instructions or questions that get AI models to produce more accurate, useful, or specific outputs. The guide covers techniques ranging from basic to advanced, and is meant to be accessible even to people without a technical background. Beyond the free guide, the team behind the site has published 15 paid and free courses on generative AI topics, run workshops at companies including OpenAI, Microsoft, and Deloitte, and organized a competition called HackAPrompt, described as the largest AI red-teaming event held so far. Red teaming in this context means trying to find ways to get AI systems to behave unexpectedly or produce harmful outputs, which helps researchers understand their weaknesses. The team has also published a research paper surveying prompting techniques across the field. The GitHub repository itself is the content source for the website, written in MDX, a format that mixes Markdown text with interactive components. Contributors can suggest new content, fix mistakes, translate materials into other languages, or submit artwork. Running the site locally for development requires Node.js and a few standard setup steps described in the README. The project was started in 2022 and has grown through community contributions.

Copy-paste prompts

Prompt 1
Using chain-of-thought prompting from Learn Prompting, write a prompt that walks GPT-4 through a multi-step reasoning problem one step at a time.
Prompt 2
Apply the few-shot prompting technique from Learn Prompting to make Claude summarize customer support tickets in a consistent format every time.
Prompt 3
Show me how to use role prompting to make an AI act as a technical writing editor and give structured feedback on my draft.
Prompt 4
What is AI red teaming and how does the HackAPrompt competition work to find unexpected behaviors in AI models?
Open on GitHub → Explain another repo

← trigaten on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.