What is a system prompt?

A system prompt is the hidden instruction layer models read before user messages. It defines persona, safety rules, and formatting. In API integrations it maps to the `system` role; in ChatGPT custom GPTs it is the core “Instructions” field.

Flat system prompts become hard to maintain. Structuring them into sections — and linting for contradictions — reduces drift when product policies change.