Skill 3.3.3
Implement version control for prompts by using Git repositories
Key Concepts
Prompts are stored as files rather than strings embedded in code: for example a Prompty file, which combines model settings and a templated prompt in one file, or Jinja templates loaded by the application. Placeholders such as {{question}} and {{context}} are filled at run time, so the same file serves every request.
Changes go through pull requests, where a workflow runs the evaluation dataset against the changed prompt and posts the scores, and the merge is blocked if they fall below thresholds. Releases are tagged, the application loads the prompt version that was deployed, and the version is recorded in traces, so a quality change in production can be linked to a prompt commit and reverted.