Designing LLM inputs so outputs are accurate, structured, and repeatable. Start with prompt-design, then read by topic.

Start here

  • prompt-design: Core rules for reliable prompts: specificity, system vs user content, tags, examples, ordering, and evals.
  • prompt-migration: Checklist for moving prompts to a newer model: rejected parameters, outdated instructions, effort sweep.

Structure and output

  • context-engineering: Assemble, order, and budget the whole context window, not just the prompt.
  • prompt-templates: Template skeleton with delimiters, named placeholders, and versioned files.
  • output-constraints: Format, length, escape hatches, and validate-then-retry for prose output.
  • prompt-chaining: Split multi-step work into narrow prompts with typed hand-offs.

Reasoning models

  • reasoning-model-prompting: Prompt reasoning models with goals, set effort and thinking levels, reserve output headroom.
  • chain-of-thought: When prompted chain-of-thought helps, and when built-in thinking replaces it.

Production hardening

  • system-prompts: What belongs in the system prompt, structure, and versioning.
  • role-framing: Role, audience, and tone lines; calibration and anti-sycophancy rules.
  • few-shot: Examples vs rules, writing examples, and rebalancing the mix.
  • structured-output: Schema-enforced JSON, supported schema subsets, validation.
  • prompt-injection-defense: System-level injection controls for tool-using agents.

Glossary anchors