02 — Compilation Engine
Write once, compile for any AI platform
One prompt, five formats. Claude expects XML tags. GPT-4 expects Markdown headers. Gemini expects uppercase labels. prompt-x compiles your canonical 9-field prompt into each format automatically.
The reformatting tax
Without compilation
Maintain 3–5 versions of every prompt. Manually reformat when switching platforms. Forget to update one version and get inconsistent results. Spend more time formatting than writing.
With compilation
Write once. Edit once. The compiler produces platform-native output every time. Switch from Claude to GPT-4 in one click. Every version is always in sync because there's only one source.
Five compilation targets
Each target applies platform-specific formatting rules to your canonical prompt. Same content, native structure.
Claude
Claude's attention mechanism natively parses XML tag hierarchies. Each field becomes a semantically labeled block.
Output
<role>Senior technical writer...</role> <task>Write a migration guide...</task> <constraints>No internal codenames...</constraints>
GPT-4
GPT-4 uses Markdown header levels to understand section priority and relationships between instructions.
Output
## Role Senior technical writer... ## Task Write a migration guide... ## Constraints No internal codenames...
Gemini
Gemini responds well to uppercase-labeled sections with clear delimiters between instruction blocks.
Output
ROLE: Senior technical writer... TASK: Write a migration guide... CONSTRAINTS: No internal codenames...
Lovable
Lovable expects conversational instructions. Fields are woven into natural language while preserving all semantic content.
Output
You are a senior technical writer. Your task is to write a migration guide. Do not reference internal codenames.
Raw
Minimal formatting. Key-value pairs with no platform-specific markup. Useful for custom integrations and debugging.
Output
Role: Senior technical writer Task: Write a migration guide Constraints: No internal codenames
Compilation principles
One canonical source
Your prompt is stored once in the 9-field structure. Platform-specific formatting is applied at compile time, never at authoring time.
Lossless compilation
Every field, every variable, every constraint carries through to every platform. Nothing is dropped or simplified during compilation.
Format, not content
The compiler changes structure and syntax — XML tags, Markdown headers, uppercase labels. It never changes your words or meaning.
Details
- Compilation is free and unlimited on all plans
- Variables are preserved through compilation — {{name}} stays {{name}}
- Compiled output updates instantly when you edit the source
- Platform-specific formatting rules maintained by the prompt-x team
Works with
One prompt. Every platform.
Stop maintaining five versions. Write once, compile everywhere.
Start free.
prompt-x