C.W.K.
Stream
Lesson 01 of 10 · published

Prompt versioning — string 아니라 git

~14 min · production, versioning

Level 0수련생
0 XP0/100 lessons0/14 achievements
0/120 XP to next level120 XP to go0% complete

Prompt이 software; 그렇게 다뤄

Prompt이 database row의 string, Notion 페이지, 또는 코드의 inline literal이면 basic engineering tool 포기한 거: diff, review, rollback. 2026 baseline은 source control에 prompt, semantic versioning, frontmatter metadata, production이 read하는 version key.

Versioning shape

  • Prompt당 한 파일, <name>/v<n>.md<name>@<n>.prompt로 명명.
  • Frontmatter: id, version, model, owner, last-eval-pass-date, input/output schema.
  • Production이 versioned key로 read, filename glob X.
  • Bumped version = 새 파일; rollback 위해 옛 version reachable 유지.

이게 enable하는 것

  • PR에서 diff.
  • Reviewer가 context에서 변경 봐.
  • Rollback이 instant — version key flip.
  • A/B testing이 그냥 "이 user는 v_new, 저 user는 v_old."

Code

Frontmatter 박힌 prompt·markdown
---
id: support.draft_reply
version: 8
model: claude-opus-4-7
owner: customer-experience
input_schema: schemas/support_input.json
output_schema: schemas/support_output.json
last_eval_pass: 2026-04-30
changelog: tightened refusal language for out-of-scope pricing
---

You are a support agent for ACME...

{{user_message}}

External links

Exercise

한 production prompt를 inline string literal에서 frontmatter 박힌 versioned 파일로 옮겨. Production이 version key로 read. Rollback work verify.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.