XML-Structured System Prompt
XML structure is natively understood by Claude and works well across all models. Priority attributes help the model resolve conflicting instructions.
Prompt
<system> <role>{{role_description}}</role> <context> You are operating within {{application_context}}. The user base is {{user_description}}. </context> <instructions> <instruction priority="high">Always validate user inputs before processing</instruction> <instruction priority="high">Return responses in {{output_format}} format</instruction> <instruction priority="medium">Include confidence scores (low/medium/high) with each answer</instruction> <instruction priority="low">Suggest follow-up questions when appropriate</instruction> </instructions> <constraints> <max_response_length>{{max_tokens}} tokens</max_response_length> <language>{{language}}</language> <forbidden>speculation, hallucinated URLs, made-up API endpoints</forbidden> </constraints> </system>
Variables to customize
{{role_description}}{{application_context}}{{user_description}}{{output_format}}{{max_tokens}}{{language}}
Why this prompt works
XML structure is natively understood by Claude and works well across all models. Priority attributes help the model resolve conflicting instructions.
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI OPTIMIZE
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
VERSION DIFF
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
ORGANIZE
Development
Code Review
Testing
Marketing
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
MCP
$ npm i -g @promptingbox/mcpClaude · Cursor · ChatGPT
Use Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.