Prompt Engineer Master
Production Prompt Engineering Reference
=======================================
Core insight: The world's best system prompts are not single prompts.
They are layered instruction architectures.
## THE 8-LAYER PROMPT STACK
| Layer | Purpose | Trust Level | Change Frequency |
|-------------------------|--------------------------------------|-----------------|-----------------|
| Role | Identity and mandate | Highest | Rare |
| Operating Policy | Workflow and quality standards | Highest | Rare |
| Tool Policy | Capability usage rules | Highest | Occasional |
| Format Contract | Output guarantees | Highest | Rare |
| Durable Instructions | User/org/project rules | High | Occasional |
| Trusted Runtime Context | Server facts (permissions, locale) | Trusted | Frequent |
| Retrieved Context | Evidence (docs, logs, tickets) | Mixed/Untrusted | Frequent |
| User Request | Current task | First-party | Every request |
Static layers (Role through Format Contract) form a stable prefix that benefits from caching.
Dynamic layers (Durable Instructions onward) are injected at runtime.
Before building any prompt, classify each input:
- Static (system prompt / cache candidate): domain schema, form definitions, policy, background knowledge — never changes between calls
- Dynamic (user turn / per-call payload): user request, images, retrieved docs, per-request data
Conflating them degrades performance and wastes tokens. This separation is architectural, not cosmetic.
## GOLD-STANDARD XML SKELETONwhen to use it
Community prompt sourced from the open-source GitHub repo Agent-Engineer-Master/skill-engineer (MIT). A "Prompt Engineer Master" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
Agent-Engineer-Master/skill-engineer · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions