PROMPTSAnatomy of a production system prompt
Role, context, rules, tools, format, fallbacks and examples. A section-by-section guide to writing system prompts that behave predictably at scale.
PROMPTSStructured output without JSON mode: 7 patterns that hold up
Schemas in the prompt, sentinels, validate-and-repair loops and smaller output shapes. Patterns that make any model return parseable data.
PROMPTSFew-shot examples that don’t backfire
Models copy examples more faithfully than instructions, including their mistakes. How to pick, order and test few-shot examples that help.
PROMPTSThe "red-team yourself" prompt: self-critique that works, and when it backfires
Asking a model to attack its own draft can catch real errors, or talk it out of a right answer. What the research says, and the variants worth using.
PROMPTSSystem prompt templates for production: six copy-ready examples
Support, extraction, grounded Q&A, code review, summaries and classification. Templates you can adapt, with the failure each line prevents.
PROMPTSPrompting for citations that actually check out
Source IDs, quote-then-answer, automatic quote checks and a real "not found" path. How to make every claim traceable and verify it in code.
PROMPTSDecomposition prompts for long, messy tasks
One giant prompt fails in ways you cannot see. Chaining, map-reduce and plan-then-execute turn long tasks into steps you can test and fix.
PROMPTSWhy "don't do X" instructions fail, and what to write instead
Telling a model what not to do often plants the idea. Why negative instructions misfire, and five rewrites that work better.