#XML tags#input boundaries#prompt structure

Separate Data from Instructions

Independent PiSkill directory guide. The original prompt remains hosted by Anthropic Courses.

What does this prompt do?

Uses structural delimiters to distinguish untrusted or variable input data from the instructions the model should follow.

Primary use case

Safely place documents or user content inside a reusable instruction template.

Expected output

A response based on clearly delimited source data.

Inputs or variables

  • instructions
  • source data

Related prompts

← Back to Prompt Directory