home/coding/prompt-engineer-master

Prompt Engineer Master

GPTClaudeDeepSeek··1,271 copies·updated 2026-07-14
prompt-engineer-master.prompt
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 SKELETON

when 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