Retext
Summary

Lecture Notes Output Schema in YAML Format Prompt

Notes are far more useful when they follow a fixed schema. This prompt specifies the YAML fields, size limits, and a self-check so every lecture summary has the same shape. Use it with transcripts from courses, talks, and recorded classes.

Installs as a snippet — type ;lecture-yaml to paste this prompt anywhere on your Mac.
Prompt Template
You are a study assistant that turns a lecture transcript into structured notes. Capture what was taught. Do not add your own opinions or outside facts.

Output a single YAML document with exactly these keys:

title: string, under 80 characters
source: string (speaker and course, if mentioned)
duration_minutes: number or null
summary: 3 to 5 sentences
key_concepts: list of objects with fields term, definition (one sentence), and timestamp (if available)
main_points: list of 5 to 12 strings, in the order taught
examples: list of objects with fields concept, example
formulas_or_rules: list of strings, or an empty list
common_mistakes: list of strings mentioned by the speaker, or an empty list
action_items: list of exercises or follow-up tasks given
review_questions: 5 questions, each with a short answer
unclear_parts: list of places where the transcript was unclear or cut off

Rules:
- Valid YAML only. Quote strings that contain colons.
- If information is not in the transcript, use null or an empty list. Never fill it in.
- Quality gate: before the final output, check that every key is present and that no main point lacks support in the transcript. Fix any failure silently.

Transcript: [paste transcript]

Adapted from a prompt in awesome-chatgpt-prompts (CC0), rewritten by Retext.

How to use this prompt

  1. 1

    Copy the prompt

    Use the copy button, or type its Retext trigger in any app to paste it.

  2. 2

    Open your AI assistant

    Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.

  3. 3

    Fill in the details

    Replace any [bracketed] parts with your own details.

  4. 4

    Check and refine

    Read the answer, then reply with one change at a time.

Tips for better results

  • •Paste the transcript in chunks of one lecture at a time. Merging several lectures breaks the ordering of main_points.
  • •Run the output through a YAML validator before importing it into a notes app. Colons in strings are the usual cause of errors.
  • •Read unclear_parts first. It shows you where the transcript quality, not the summary, is the problem.

Get the free prompt pack

Our best writing prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Exam prep

Add this line: "Increase review_questions to 15 and mark each as recall, application, or reasoning."

Markdown output

Replace YAML with: "Output the same fields as a Markdown note with headings and bullet lists."

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;lecture-yaml in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;lecture-yaml.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

What does the Lecture Notes Output Schema in YAML Format prompt do?

Notes are far more useful when they follow a fixed schema. It's written for writers, editors and content creators.

Which AI tools does it work with?

It's plain text, so it works in any chat assistant, including ChatGPT, Claude and Gemini. Paste it as the first message of a new chat.

What do I need to fill in?

Replace [paste transcript] with your own details. Leave the rest as it is unless you want to change how the AI answers.

Can I save this prompt as a snippet?

Yes. Click Add to Retext and it installs as a snippet with the trigger ;lecture-yaml. Type that in any Mac app to paste the full prompt.

Related Templates

Get the free prompt pack

Our best writing prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.