β Claude XML Tag Builder
Structure prompts with XML tags Β· nest, reorder, preview
claudkit.com
π§©
Tag builder
π instructions
π context
π examples
π€ output_format
β οΈ constraints
π€ persona
+ Add custom
No tags yet. Click a template or add custom.
π Clear all
π Plain text
Tokens β
0
ποΈ
Preview & copy
<?xml?> tags will appear here
π Copy XML
π Copy plain
β Copied!
π Best practices
When to use XML tags:
separate instructions, context, examples, constraints β improves Claudeβs adherence.
Naming:
lowercase, hyphenated (e.g.
output_format
). Keep consistent.
Few-shot:
use
<example>
tags with input/output pairs.
Role-play:
define persona with
<persona>
tag.
Nesting:
use indent buttons to create hierarchy (simulated).