prompt-versioning
Installation
SKILL.md
Prompt Versioning
Prompts are code. They should be versioned, tested, reviewed, and deployed with the same rigor as software. Treating prompts as casual text that anyone can edit leads to quality regressions, inconsistent behavior, and debugging nightmares.
Why Version Prompts
- Accountability: Know who changed what and when
- Rollback: Revert to a previous version when a change causes problems
- Testing: Compare performance of different versions
- Collaboration: Multiple people can work on prompts without overwriting each other
- Audit trail: Understand how the prompt evolved and why
Versioning Practices
- Source control: Store prompts in version control (Git, etc.), not in application configuration
- Meaningful commits: Each change should explain what was changed and why
- Change categories: Classify changes as bug fixes, improvements, new features, or experiments
- Review process: Prompt changes should be reviewed before deployment, like code reviews
- Semantic versioning: Major changes (behavioral shift), minor changes (new capability), patches (bug fixes)
Testing Prompt Changes
Before deploying a prompt change:
- Regression testing: Run the golden test set against the new version. Did anything get worse?
- Targeted testing: Test the specific scenario the change was designed to improve
- Edge case testing: Test edge cases related to the change
- A/B testing: For significant changes, run both versions in production and compare