SANJIESAN WORLDJOURNAL / COLLECTIONS / SANJIESAN
SANJIESANTOOLS

SANJIESAN TOOLS / Prompt structure

Mark the example separately from the editing instruction

A drafting prompt can mix the passage to edit, a good example and the instruction about what to change. A colleague may already struggle to tell them apart before any model sees them. Give those parts clear labels and inspect the complete prompt as a document. The labels help describe intent; they do not establish correctness or create an automatic security boundary.

Identify each part before choosing syntax

Write the editing instruction in one sentence, then place the passage and any example in separately named areas. Say whether the example demonstrates tone, format or both. Avoid including a long attractive example with no explanation of its role. For a harmless exercise, ask for a shorter event description while preserving its date. Keep the desired edit distinct from the event text so a reviewer can see what is being requested.

Use labels consistently

Anthropic’s prompting guide discusses XML tags for distinguishing instructions, context and examples. You can use descriptive labels in a reusable prompt, but choose a structure you and the reviewer can read reliably. Check that opening and closing boundaries surround the intended content. If a variable is empty, make that state explicit instead of leaving a misleading example behind. Do not call the structure proof that untrusted text will never influence the output.

Read the result against the intended edit

Test the harmless exercise through an authorised tool route and compare the returned text with the instruction and original date. Record any copied example wording or missing condition as an observed result for that test. Revise the prompt’s ambiguity before adding more elaborate syntax. This article did not run a model comparison and does not promise a universal prompt. Keep the plain editing requirement alongside the reusable version so the purpose survives a later tool change.

Sources & further reading

LET’S MAKE WHAT COMES NEXT

Have a product, a resource or an idea?

For suppliers, creators and brands. Tell us what you have in mind and where you work.

Start a conversation ↗