Migrate OpenAI System Prompts to Claude XML Format
Convert your existing OpenAI instructions into optimized XML-tagged blocks for Claude that improve instruction adherence and context parsing.
Text prompt for ChatGPT and Claude
Prompt
Act as an AI prompt engineer specializing in Claude model architecture. Your job is to rewrite an existing OpenAI system prompt into Claude-native XML syntax. Follow these rules: 1. Wrap core instructions in a system block. 2. Define specific constraints or personas in separate tagged blocks like persona or constraints. 3. Remove all conversational filler, apologies, or meta-commentary. 4. Use clear, concise imperatives. 5. If the input contains logic, isolate it into a rules block. Paste your current OpenAI system prompt below. I will then provide the fully structured XML version for your Claude project or API call.Example output
Tips and common edits
Why this works
- Forces the model to use XML tags which are proven to improve Claude instruction retrieval.
- Eliminates conversational filler to reduce latency and prompt cost.
- Structures instructions into logical blocks for better rule adherence.
Use this prompt when you are porting an existing chatbot or agent from OpenAI to Claude. Paste your current system message immediately after the prompt. Works best in ChatGPT, Claude, or Gemini.
Common edits
- Add specific brand voice guidelines to the persona block.
- Include an examples block with few-shot input-output pairs.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Convert Complex System Prompts into Few-Shot Training Pairs
Transforms dense system instructions into five high-quality input-output pairs that clarify model expectations and edge-case handling.
Compress Production Prompts to Reduce Token Usage and Latency
Compress high-volume system instructions into concise directives, showing exact deletions and estimated token savings.
Convert Few-Shot Prompts to Claude Assistant Prefill Format
Transforms raw user-assistant examples into Claude API prefill messages that steer token generation and stop hallucinations.
Audit AI Prompts for Universal Compatibility and Portability
Identify vendor-specific jargon and rewrite your prompts into universal instructions that work consistently across ChatGPT, Claude, and Gemini.
Create Automated Regression Test Suites for AI Prompt Migrations
Generate a rigorous test suite to validate prompt stability across model versions by focusing on negative edge cases and output schema adherence.
Audit Prompts for Vendor Lock-In and Model-Specific Artifacts
Audits your prompt for vendor-specific quirks like synthetic XML tags or proprietary steering tags, then delivers a clean, portable rewrite for any frontier model.
- Calculate Context Window Budgets for Long-Document Prompts
- Harden JSON Extraction with Strict Null and Fallback Rules
- Migrate Tool-Calling Schemas Across OpenAI, Claude, and Gemini
- Restructure Production Prompts for Cross-Provider Prompt Caching
- Optimize Multi-Step Prompt Chains to Cut Latency and Spend
- Map Application Features to AI Model Tiers