Prompt Engineering
Module 2: Advanced Patterns & Real Work
2.5 Building Your Prompt Library

2.5: Building Your Prompt Library

What You'll Learn

  • Why a prompt library turns one-time learning into lasting value
  • The four parts of a good library prompt
  • How to test and refine a prompt before you save it
  • A simple way to organize your library, plus a meta-prompt for building new ones

Key Concepts

Write Once, Use Forever

Most people rewrite the same prompts from scratch every week. A prompt library holds your best, tested prompts, ready to paste in with a few blanks filled.

Anatomy of a Library Prompt

  1. A name: what it does, like "Weekly Status Report Generator"
  2. The prompt itself: ready to use, with [PLACEHOLDERS] for the parts that change
  3. When to use it: the situation it's built for
  4. Customization notes: what to adjust in different situations

Using Everything You've Learned

Library prompts combine the whole course: the five dimensions of specificity, role assignment, few-shot examples, chain-of-thought, output formatting, and decomposition for multi-step work.

Keep the System Simple

A single text file or document you'll actually open beats an elaborate system you won't. The lesson helps you choose one that fits how you work.

The Meta-Prompt

You'll get a prompt that helps you write new library prompts, so you can keep adding to your library after the course ends.

The Exercise

This is the most personalized lesson in the course. You'll pick the five tasks you use AI for most, fully build, test, and refine your first library prompt with your AI tutor, then build a second one more independently.

How to Start

This lesson is taught interactively by your AI. Download the course materials, open your AI tool (Claude, ChatGPT, or similar), and say:

start lesson 2.5

MIT 2026 © Nextra.