prompt-x logoprompt-x

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.

01

Claude

XML tags

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>
02

GPT-4

Markdown headers

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...
03

Gemini

Uppercase labels

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...
04

Lovable

Natural prose

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.
05

Raw

Plain text

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

Works with

One prompt. Every platform.

Stop maintaining five versions. Write once, compile everywhere.

Start free.