Anthropic Prompt engineering guide

์ž‘์„ฑ์ผ : 10/7/2025

์•คํŠธ๋กœํ”ฝ์˜ ํ”„๋กฌํฌํŠธ ์—”์ง€๋‹ˆ์–ด๋ง ๊ฐ€์ด๋“œ๋ฅผ ์ฝ๊ณ  ์ •๋ฆฌํ•ด๋ณด๋Š” ๊ธ€.

๊ฐ ์›์น™๋“ค์„ ์ค‘์š”๋„ ์ˆœ์„œ๋Œ€๋กœ ๋‚˜์—ดํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

  1. Be Clear and Direct ๋งํฌ
  2. Use Examples
  3. Let Claude Think
  4. Use XML Tags
  5. Give Claude a Role
  6. Prefill Response
  7. Chain Prompts

Be Clear and Direct

ํด๋กœ๋“œ๋ฅผ ๊ฑด๋ง์ฆ์ด ์žˆ์–ด ๊ตฌ์ฒด์ ์ธ ์ง€์‹œ๊ฐ€ ํ•„์š”ํ•œ ์‹ ์ž…์‚ฌ์›์ด๋ผ๊ณ  ์—ฌ๊ธฐ๋ผ๊ณ  ํ•œ๋‹ค.
๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ์šฉ์–ด, ์—…๋ฌด ์Šคํƒ€์ผ, ๊ฐ€์ด๋“œ๋ผ์ธ ๋“ฑ์— ๋Œ€ํ•œ ์ •๋ณด๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์ž˜ ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ด๋Ÿฐ ์ •๋ณด๋“ค์„ ์ œ๊ณตํ•ด์ค˜์•ผ ํ•œ๋‹ค.

  • ์—…๋ฌด์˜ ๊ฒฐ๊ณผ๋ฌผ์ด ์–ด๋””์— ์‚ฌ์šฉ๋ ๊ฒƒ์ธ๊ฐ€?
  • ๊ฒฐ๊ณผ๋ฌผ์˜ ์ˆ˜์šฉ์ž์ธต์€ ๋ˆ„๊ตฌ์ธ๊ฐ€?
  • ์—…๋ฌด์˜ ์ „์ฒด ์›Œํฌํ”Œ๋กœ์šฐ์—์„œ ํ•ด๋‹น ๊ฒฐ๊ณผ๋ฌผ์ด ์–ด๋””์— ์œ„์น˜ํ•ด์žˆ๋Š”๊ฐ€?
  • ๊ถ๊ทน์ ์ธ ์—…๋ฌด์˜ ๋ชฉํ‘œ ์ง€์ ์ด ๋ฌด์—‡์ธ๊ฐ€?
  • ํ•  ์ผ์˜ ๋ชฉ๋ก๋“ค์„ ์ˆœ์„œ๋Œ€๋กœ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๋ฉด ๋” ์ข‹๋‹ค.

Example

Anonymizing customer feedback

unclear

Please remove all personally identifiable information from these customer feedback messages: {{FEEDBACK_DATA}}
  • ๋‹จ์ˆœํžˆ '๊ฐœ์ธ์ •๋ณด'๋ผ๊ณ  ๋ญ‰๋šฑ๊ทธ๋ ค์„œ ์„ค๋ช…ํ–ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋†“์น˜๊ณ  ์ต๋ช…์ฒ˜๋ฆฌ๋ฅผ ํ•˜์ง€ ๋ชปํ•œ ์ •๋ณด๋„ ์ƒ๊ธฐ๊ฒŒ ๋œ๋‹ค.

clear

Your task is to anonymize customer feedback for our quarterly review.

Instructions:
1. Replace all customer names with โ€œCUSTOMER_[ID]โ€ (e.g., โ€œJane Doeโ€ โ†’ โ€œCUSTOMER_001โ€).
2. Replace email addresses with โ€œEMAIL_[ID]@example.comโ€.
3. Redact phone numbers as โ€œPHONE_[ID]โ€œ.
4. If a message mentions a specific product (e.g., โ€œAcmeCloudโ€), leave it intact.
5. If no PII is found, copy the message verbatim.
6. Output only the processed messages, separated by โ€---โ€.

Data to process: {{FEEDBACK_DATA}}
  • ์ด๋ฆ„, ์ด๋ฉ”์ผ, ์ „ํ™”๋ฒˆํ˜ธ๋ฅผ ์ •ํ™•ํžˆ ํŠน์ •ํ•ด ๊ฒฐ๊ณผ๋ฌผ์ด ์–ด๋–ค ํ˜•์‹์ด์–ด์•ผ ํ•˜๋Š”์ง€ ์ •ํ™•ํžˆ ์„ค๋ช…ํ–ˆ๋‹ค.
    • ๊ทธ๋ž˜์„œ ๊ฒฐ๊ณผ๋ฌผ์˜ ๊ฐ€๋…์„ฑ์ด ํ›จ์”ฌ ์ข‹๋‹ค.
    • ๊ทธ๋ฆฌ๊ณ  ๋†“์น˜๋Š” ๊ฐœ์ธ์ •๋ณด๋„ ์—†์—ˆ๋‹ค.

Crafting a marketing email campaign

Vague Prompt

Write a marketing email for our new AcmeCloud features.

Specific Prompt

Your task is to craft a targeted marketing email for our Q3 AcmeCloud feature release.

Instructions:
1. Write for this target audience: Mid-size tech companies (100-500 employees) upgrading from on-prem to cloud.
2. Highlight 3 key new features: advanced data encryption, cross-platform sync, and real-time collaboration.
3. Tone: Professional yet approachable. Emphasize security, efficiency, and teamwork.
4. Include a clear CTA: Free 30-day trial with priority onboarding.
5. Subject line: Under 50 chars, mention "security" and "collaboration".
6. Personalization: Use {{COMPANY_NAME}} and {{CONTACT_NAME}} variables.

Structure:
1. Subject line
2. Email body (150-200 words)
3. CTA button text
  • Write a .... ๋Œ€์‹  Your task is ....๊ฐ€ ๋” ํšจ๊ณผ์ ์ธ๊ฐ€?
  • ํƒ€๊ฒŸ์ธต์„ ๋ช…ํ™•ํ•˜๊ฒŒ ์ง€์ •
  • ๋“ค์–ด๊ฐ€์•ผ ํ•  ๋‚ด์šฉ(3 key new features, CTA, ์ œ๋ชฉ)๊ณผ ๋ฌธ์ฒด๋ฅผ ์„ค์ •