How do I write system prompts that stick?

Put the most important instructions at the start AND end of the system prompt (primacy and recency effects). Use clear formatting like numbered lists. Repeat critical constraints. Test with adversarial inputs to see if the model breaks character.

When to use this

When building chatbots or assistants that need to maintain consistent behavior.

When to skip this

For one-off prompts where you don't need persistent behavior.

Moderate
Extracted: 2024-02-04 Verified: 2024-02-05