A Git-inspired version control system designed to track edits, run A/B tests, measure quality metrics, and manage rollbacks for AI prompts.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install prompt-version-control
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install prompt-version-control using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Prompt Version Control brings software engineering best practices to prompt engineering by providing a Git-like version control system for AI prompts. It allows developers to treat prompts like code, ensuring that every modification is automatically tracked, versioned, and documented with semantic-aware history. This tool eliminates the guesswork of prompt refinement by introducing automated semantic versioning, structural change tracking, and direct remote synchronization with GitHub or GitLab for seamless team collaboration.
Beyond basic version history, the system empowers developers to maintain high prompt quality through empirical evaluation. By implementing comprehensive diffing engines, LLM-as-judge quality metrics, and structured rollback features, it bridges the gap between manual experimentation and rigorous, production-grade prompt optimization. It guarantees a structured environment where prompt variants can be managed, merged, and deployed with absolute confidence.
Ensure your development environment meets the following requirements:
diff utilityInitialize the repository configuration and set up your initial prompt environment using the following commands:
# Initialize the prompt repository structure
./scripts/prompt-vc.sh init ./my-prompts
# Add a new prompt using a specific template type
./scripts/prompt-vc.sh add email-generator --template generator
# Open the prompt editor
./scripts/prompt-vc.sh edit email-generator
# Compare differences between two recorded versions
./scripts/prompt-vc.sh diff email-generator v0.1.0 v0.2.0
# Inspect the mutation history logs
./scripts/prompt-vc.sh log email-generator
# Run a structured A/B evaluation test
./scripts/prompt-vc.sh test email-generator
# Execute an instant version rollback
./scripts/prompt-vc.sh rollback email-generator --to v0.1.0
The repository structures all parameters, historical backups, and metrics metadata inside a local workspace folder. This structure integrates natively with existing project source trees.
| Path | Description |
|---|---|
.prompt/config.yaml |
Core repository settings, LLM provider settings, and test dataset pathways. |
.prompt/prompts/ |
Directory containing individual prompt source files managed as YAML. |
.prompt/history/ |
Git-compatible version records storing state mutations. |
.prompt/metrics/ |
Aggregated datasets tracking empirical evaluation metrics from testing cycles. |
.prompt/branches/ |
Head and branch pointers representing parallel iteration lines. |
Individual prompt configurations are maintained as validated YAML documents containing the following metadata blocks:
name, version, description, model, temperaturesystem, user_template tracking the underlying instructionsname, data type, and validation constraintsLoading
An AI-powered diagnostic and optimization agent that translates passive experience into highly-quantified achievements designed to bypass applicant tracking systems.

An automated inspection utility that scans, assesses, and generates comprehensive health and optimization reports for Alibaba Cloud RDS MySQL instances.

An advanced content optimization engine that ensures your articles and web pages rank highly on traditional search engines and modern AI search platforms.

A curated collection of battle-tested prompts and prompt engineering frameworks engineered for content creators, crypto founders, and indie hackers.

An advanced AI decision-making framework that cross-references 38 essential Yijing hexagram situations with modern western business strategies to resolve strategic management and market dilemmas.

An automated data intelligence skill that ingests raw datasets, writes and executes custom Python analysis code, and delivers production-grade charts alongside data-backed conclusions.








































