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

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

Support bot prompt split into XML blocksExample: migrating a customer support bot prompt
  1. systemBlock 1Tier-one Acme Tech assistant resolving billing inquiries
  2. personaBlock 2Empathetic, concise, technically accurate, never guesses
  3. constraintsBlock 3Under 100 words, verify account ID, escalate refunds over 50 dollars
  4. rulesBlock 4Acknowledge, check account, resolve or escalate, close politely

Example for: migrating a customer support bot prompt. <system> You are a tier-one support assistant for Acme Tech. Your goal is to resolve billing inquiries quickly while maintaining a professional tone. </system> <persona> You are empathetic, concise, and technically accurate. You never guess if information is missing. </persona> <constraints> - Respond in under 100 words. - Always verify the user account ID before discussing payment data. - If a refund request exceeds 50 dollars, escalate to a manager. - Do not offer discounts not listed in the standard price sheet. </constraints> <rules> 1. Acknowledge the user issue first. 2. Check the account status in the database. 3. Provide a clear path to resolution or escalation. 4. End with a polite closing statement. </rules>

Written by AI from this prompt. Your results will vary.

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

Major AI Models

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.

Major AI ModelsClaude

Compress Production Prompts to Reduce Token Usage and Latency

Compress high-volume system instructions into concise directives, showing exact deletions and estimated token savings.

Major AI ModelsClaude

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.

Major AI Models

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.

Major AI Models

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.

Major AI Models

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.