Prompts are software; treat them like it
If a prompt is a string in a database row, a Notion page, or an inline literal in code, you've given up the basic engineering tools: diff, review, rollback. The 2026 baseline is prompts in source control with semantic versioning, frontmatter metadata, and a version key that production reads.
Versioning shape
- One file per prompt, named
<name>/v<n>.mdor<name>@<n>.prompt. - Frontmatter: id, version, model, owner, last-eval-pass-date, input/output schemas.
- Production reads by versioned key, not by filename glob.
- A bumped version = a new file; old versions stay reachable for rollback.
What this enables
- Diff in PRs.
- Reviewers see the change in context.
- Rollback is instant — flip the version key.
- A/B testing is just "this user gets v_new, that user gets v_old."