[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79HM28GJ2BZWPQ20NP70P77":3,"skill-same:01M79HM28GJ2BZWPQ20NP70P77":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M79HM28GJ2BZWPQ20NP70P77","PromptGit Local Prompt Version Control",null,"Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.","knownasnaffy\u002Fprompthound","knownasnaffy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64461700?v=4","01M784GPN9EQ22R78AQ2NBRP0Y","Barinderpreet Singh","01M784GPNVVWKW21N9AYXREQQJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"PromptGit Local Prompt Version Control\"\ndescription: \"Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.\"\nauthor: \"@TheShadowRose\"\nversion: \"1.0.2\"\ntags: [\"version-control\", \"prompts\", \"diff\", \"rollback\", \"history\", \"local\"]\nlicense: \"MIT\"\n---\n\n\n\n\n### Permission Setup Review\n\n`python scripts\u002F_init_dirs.py` is an optional setup helper for the `PromptGit Local Prompt Version Control` skill. It may apply broad filesystem permissions for compatibility. Show the target paths and permission mode, explain the risk, and prefer a narrower mode when shared write access is not needed.\n\n# PromptGit Local Prompt Version Control\n\nGit for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.\n\n---\n\n**Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again.**\n\nPromptGit gives you version control for AI prompts � system prompts, task prompts, templates, snippets. Save versions with notes, compare changes, tag your best ones, rollback bad edits, and search your entire prompt library. All local, zero dependencies, works offline.\n\n---\n\n## The Problem\n\nYou're refining an AI prompt. You change a few words. Suddenly it doesn't work as well. What did you change? Can you get the old version back? You have no idea because you just overwrote it.\n\nOr you have 47 variations of \"good system prompt\" scattered across text files, Google Docs, and Notion. Which one actually works? When was it last updated? Who knows.\n\n## What PromptGit Does\n\n### Version Control for Prompts\n- Save versions with timestamps and notes\n- Never lose a good prompt again\n- See exactly what changed between versions\n- Rollback to any previous version instantly\n\n### Organization & Search\n- Categories (system, task, template, snippet)\n- Tags (best, testing, production, deprecated)\n- Search by keyword, tag, date range, or regex\n- Find similar prompts automatically\n\n### Diff & Compare\n- Side-by-side diffs between any two versions\n- See exactly what changed (unified diff format)\n- A\u002FB comparison mode with notes field for results\n\n### Export & Share\n- Export prompts as portable JSON\n- Share with version history or current version only\n- Import prompts from others\n- Export to markdown for documentation\n\n---\n\n## Quick Start\n\n```bash\n# Save your first prompt\necho \"You are a helpful assistant...\" | python3 prompt_git.py save assistant-v1 --note \"First version\"\n\n# Make changes and save a new version\necho \"You are a helpful and friendly assistant...\" | python3 prompt_git.py save assistant-v1 --note \"Added 'friendly'\"\n\n# See version history\npython3 prompt_git.py versions assistant-v1\n\n# Compare versions\npython3 prompt_git.py diff assistant-v1 abc123 def456\n\n# Rollback to a previous version\npython3 prompt_git.py rollback assistant-v1 abc123\n```\n\n---\n\n## Usage Guide\n\n### Save a Prompt\n\n```bash\n# From stdin\necho \"Your prompt here\" | python3 prompt_git.py save my-prompt --note \"Initial version\"\n\n# From file\npython3 prompt_git.py save my-prompt --file prompt.txt --note \"v2 with examples\"\n\n# With category and tags\npython3 prompt_git.py save system-prompt \\\n  --category system \\\n  --tag best \\\n  --tag production \\\n  --note \"Production system prompt\"\n```\n\n### View Prompts\n\n```bash\n# List all prompts\npython3 prompt_git.py list\n\n# Filter by category\npython3 prompt_git.py list --category system\n\n# Filter by tag\npython3 prompt_git.py list --tag best\n\n# Get current version\npython3 prompt_git.py get my-prompt\n\n# Get specific version\npython3 prompt_git.py get my-prompt --version abc123\n```\n\n### Version History\n\n```bash\n# See all versions\npython3 prompt_git.py versions my-prompt\n\n# Output:\n? def456 � 2026-02-21T15:30:00 � Added examples [production]\n  abc123 � 2026-02-21T10:00:00 � Initial version []\n\n# The arrow (?) marks the current version\n```\n\n### Diff Versions\n\n```bash\n# Compare two versions\npython3 prompt_git.py diff my-prompt abc123 def456\n\n# Output shows unified diff:\n--- my-prompt (abc123)\n+++ my-prompt (def456)\n@@ -1,2 +1,3 @@\n You are a helpful assistant.\n+Please provide examples.\n```\n\n### Rollback\n\n```bash\n# Rollback to a previous version\npython3 prompt_git.py rollback my-prompt abc123\n\n# This makes abc123 the current version\n# The newer version (def456) is not deleted, just not current\n```\n\n### Tag Versions\n\n```bash\n# Tag a version\npython3 prompt_git.py tag my-prompt abc123 best\n\n# Tag meanings are up to you:\n# - best: Best-performing version\n# - testing: Under testing\n# - production: Currently in production\n# - deprecated: Don't use this\n# - experimental: Risky\u002Funtested\n```\n\n### Search\n\n```bash\n# Search content by keyword\npython3 prompt_search.py search \"helpful assistant\"\n\n# Search by tag\npython3 prompt_search.py tag best\n\n# Search by date range\npython3 prompt_search.py date --start 2026-02-01 --end 2026-02-21\n\n# Regex search\npython3 prompt_search.py regex \"assistant|helper\"\n\n# Find recent prompts\npython3 prompt_search.py recent --limit 10\n\n# Find similar prompts\npython3 prompt_search.py similar my-prompt --threshold 0.6\n\n# Repository stats\npython3 prompt_search.py stats\n```\n\n### Export & Import\n\n```bash\n# Export a prompt (current version only)\npython3 prompt_export.py export my-prompt output.json\n\n# Export with full history\npython3 prompt_export.py export my-prompt output.json --history\n\n# Export as markdown\npython3 prompt_export.py export my-prompt output.md --markdown\n\n# Export multiple prompts\npython3 prompt_export.py export-multi bundle.json --names prompt1 prompt2 prompt3 --history\n\n# Import a prompt\npython3 prompt_export.py import shared-prompt.json\n\n# Import and overwrite existing\npython3 prompt_export.py import shared-prompt.json --overwrite\n```\n\n---\n\n## Use Cases\n\n### 1. **Prompt Engineering Iteration**\nSave every version as you refine your prompt. See what changed. Rollback if something breaks. Never lose a good version.\n\n### 2. **A\u002FB Testing Prompts**\nSave version A, save version B, tag with results. Compare diffs to see exactly what changed between the winner and loser.\n\n### 3. **Team Prompt Sharing**\nExport your best prompts. Share the JSON file. Team imports it. Everyone has the same version, with full history if you want.\n\n### 4. **System Prompt Library**\nOrganize all your system prompts by category. Tag the ones that work best. Search across all of them when you need inspiration.\n\n### 5. **Audit Trail**\nSee when a prompt was changed, what changed, and what note was left. Perfect for compliance or debugging \"when did this break?\"\n\n### 6. **Template Management**\nSave reusable templates (e.g., \"email writer\", \"code reviewer\"). Pull them when needed. Never rewrite from scratch.\n\n---\n\n## Storage Structure\n\n```\n~\u002F.promptgit\u002F\n  index.json          # Prompt metadata (names, categories, tags, current versions)\n  prompts\u002F\n    my-prompt\u002F\n      versions.json   # Version history for this prompt\n      abc123.txt      # Content for version abc123\n      def456.txt      # Content for version def456\n    another-prompt\u002F\n      versions.json\n      xyz789.txt\n```\n\nAll human-readable, grep-friendly JSON and text files. No binary blobs.\n\n---\n\n## Configuration\n\nSee `config_example.json` for reference constants and example values\n\n```python\n# Change storage location\nSTORAGE_DIR = '\u002Fpath\u002Fto\u002Fyour\u002Fprompts'\n\n# Define your own categories\nDEFAULT_CATEGORIES = ['system', 'task', 'template', 'snippet', 'general']\n\n# Suggested tags\nSUGGESTED_TAGS = ['best', 'testing', 'production', 'deprecated']\n\n# Similarity threshold for \"find similar\" search\nSIMILARITY_THRESHOLD = 0.5\n```\n\nSee `config_example.json` for all options.\n\n---\n\n## Examples\n\n### Example 1: Refining a System Prompt\n\n```bash\n# Initial version\necho \"You are a helpful assistant.\" | \\\n  python3 prompt_git.py save assistant --category system --note \"v1\"\n\n# After testing, add more detail\necho \"You are a helpful assistant. Provide concise answers.\" | \\\n  python3 prompt_git.py save assistant --note \"v2: added conciseness\"\n\n# Hmm, too concise. Rollback\npython3 prompt_git.py rollback assistant \u003Cv1-version-id>\n\n# Try a different approach\necho \"You are a helpful assistant. Provide detailed, thoughtful answers.\" | \\\n  python3 prompt_git.py save assistant --note \"v3: detailed instead\" --tag testing\n\n# This one works! Tag it\npython3 prompt_git.py tag assistant \u003Cv3-version-id> best\npython3 prompt_git.py tag assistant \u003Cv3-version-id> production\n```\n\n### Example 2: Sharing Prompts with a Team\n\n```bash\n# Export your best system prompt\npython3 prompt_export.py export my-system-prompt team-prompt.json --history\n\n# Teammate imports it\npython3 prompt_export.py import team-prompt.json\n\n# Now they have the full history and can see how it evolved\npython3 prompt_git.py versions my-system-prompt\n```\n\n### Example 3: Finding What Broke\n\n```bash\n# Prompt stopped working. When?\npython3 prompt_git.py versions my-prompt\n\n# Output shows versions with timestamps\n# Pick two versions: one that worked, one that didn't\npython3 prompt_git.py diff my-prompt \u003Cgood-version> \u003Cbroken-version>\n\n# Diff shows exactly what changed\n# Fix it and save a new version\n```\n\n---\n\n## What's Included\n\n| File | Purpose |\n|------|---------|\n| `prompt_git.py` | Main version control (save, get, diff, rollback, tag) |\n| `prompt_search.py` | Search and browse (keyword, tag, date, regex, similar) |\n| `prompt_export.py` | Export\u002Fimport (JSON, markdown, bundles) |\n| `config_example.json` | Configuration template |\n| `README.md` | This file |\n| `LIMITATIONS.md` | What it doesn't do |\n| `LICENSE` | MIT License |\n\n---\n\n## Requirements\n\n- Python 3.7+\n- **Zero external dependencies** (stdlib only)\n- Works on Linux, macOS, Windows\n\n---\n\n## Python API\n\nUse PromptGit in your own scripts:\n\n```python\nfrom prompt_git import PromptRepository\n\n# Initialize repo\nrepo = PromptRepository(storage_dir='~\u002F.promptgit')\n\n# Save a prompt\nversion_id = repo.save(\n    'my-prompt',\n    'You are a helpful assistant.',\n    note='Initial version',\n    category='system',\n    tags=['testing']\n)\n\n# Get current version\nversion = repo.get_version('my-prompt')\nprint(version.content)\n\n# List all prompts\nprompts = repo.list_prompts(category='system')\n\n# Diff two versions\ndiff = repo.diff('my-prompt', version_a_id, version_b_id)\nprint(diff)\n```\n\n---\n\n## quality-verified\n\n\n---\n\n## FAQ\n\n**Q: Does it sync across devices?**  \nA: No. It's local-only. But you can export\u002Fimport to share manually, or put `~\u002F.promptgit` in a synced folder (Dropbox, Git, etc.).\n\n**Q: Can I use it with Git?**  \nA: Yes! The storage directory is just JSON and text files. You can version the whole thing with Git if you want meta-version-control.\n\n**Q: What about collaborative editing?**  \nA: Not built-in. Export\u002Fimport is the collaboration model. For real-time collab, use a shared folder or Git.\n\n**Q: Does it work with images or multimodal prompts?**  \nA: Text only. If your multimodal prompt has a text component, you can save that.\n\n**Q: How do I delete a prompt?**  \nA: Currently, no delete command (by design � version control shouldn't delete easily). You can manually delete the folder in `~\u002F.promptgit\u002Fprompts\u002F`.\n\n---\n\n## License\n\nMIT � See `LICENSE` file.\n\n---\n\n## Author\n\n**Shadow Rose**\n\nBuilt for AI users who are tired of losing good prompts to accidental overwrites and bad edits.\n\n\n---\n\n## ?? Disclaimer\n\nThis software is provided \"AS IS\", without warranty of any kind, express or implied.\n\n**USE AT YOUR OWN RISK.**\n\n- The author(s) are NOT liable for any damages, losses, or consequences arising from \n  the use or misuse of this software � including but not limited to financial loss, \n  data loss, security breaches, business interruption, or any indirect\u002Fconsequential damages.\n- This software does NOT constitute financial, legal, trading, or professional advice.\n- Users are solely responsible for evaluating whether this software is suitable for \n  their use case, environment, and risk tolerance.\n- No guarantee is made regarding accuracy, reliability, completeness, or fitness \n  for any particular purpose.\n- The author(s) are not responsible for how third parties use, modify, or distribute \n  this software after purchase.\n\nBy downloading, installing, or using this software, you acknowledge that you have read \nthis disclaimer and agree to use the software entirely at your own risk.\n\n\n**DATA DISCLAIMER:** This software processes and stores data locally on your system. \nThe author(s) are not responsible for data loss, corruption, or unauthorized access \nresulting from software bugs, system failures, or user error. Always maintain \nindependent backups of important data. This software does not transmit data externally \nunless explicitly configured by the user.\n\n---\n\n## Support & Links\n\n| | |\n|---|---|\n| ?? **Bug Reports** | TheShadowyRose@proton.me |\n| ? **Ko-fi** | [ko-fi.com\u002Ftheshadowrose](https:\u002F\u002Fko-fi.com\u002Ftheshadowrose) |\n| ?? **Gumroad** | [shadowyrose.gumroad.com](https:\u002F\u002Fshadowyrose.gumroad.com) |\n| ?? **Twitter** | [@TheShadowyRose](https:\u002F\u002Ftwitter.com\u002FTheShadowyRose) |\n| ?? **GitHub** | [github.com\u002FTheShadowRose](https:\u002F\u002Fgithub.com\u002FTheShadowRose) |\n| ?? **PromptBase** | [promptbase.com\u002Fprofile\u002Fshadowrose](https:\u002F\u002Fpromptbase.com\u002Fprofile\u002Fshadowrose) |\n\n*Built with [OpenClaw](https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw) � thank you for making this possible.*\n\n---\n\n??? **Need something custom?** Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. ? [Hire me on Fiverr](https:\u002F\u002Fwww.fiverr.com\u002Fs\u002FjjmlZ0v)\n\n## Security Notes\n\n- **Input sanitization enforced (v1.0.2+):** Prompt names are validated before use as filesystem path components. Names containing .., \u002F, \\, or null bytes are rejected with a ValueError. The resolved path is verified to stay within the repository directory. This prevents path traversal via crafted prompt names or malicious import files.\n- **Import safety:** When importing JSON exports, the name field is sanitized using the same validation before any file operations occur. Do not import JSON from untrusted sources.\n- **Concurrent access:** No file locking is implemented. Avoid running multiple PromptGit processes against the same repository simultaneously.","### Permission Setup Review\n\n`python scripts\u002F_init_dirs.py` is an optional setup helper for the `PromptGit Local Prompt Version Control` skill. It may apply broad filesystem permissions for compatibility. Show the target paths and permission mode, explain the risk, and prefer a narrower mode when shared write access is not needed.\n\n# PromptGit Local Prompt Version Control\n\nGit for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.\n\n---\n\n**Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again.**\n\nPromptGit gives you version control for AI prompts � system prompts, task prompts, templates, snippets. Save versions with notes, compare changes, tag your best ones, rollback bad edits, and search your entire prompt library. All local, zero dependencies, works offline.\n\n---\n\n## The Problem\n\nYou're refining an AI prompt. You change a few words. Suddenly it doesn't work as well. What did you change? Can you get the old version back? You have no idea because you just overwrote it.\n\nOr you have 47 variations of \"good system prompt\" scattered across text files, Google Docs, and Notion. Which one actually works? When was it last updated? Who knows.\n\n## What PromptGit Does\n\n### Version Control for Prompts\n- Save versions with timestamps and notes\n- Never lose a good prompt again\n- See exactly what changed between versions\n- Rollback to any previous version instantly\n\n### Organization & Search\n- Categories (system, task, template, snippet)\n- Tags (best, testing, production, deprecated)\n- Search by keyword, tag, date range, or regex\n- Find similar prompts automatically\n\n### Diff & Compare\n- Side-by-side diffs between any two versions\n- See exactly what changed (unified diff format)\n- A\u002FB comparison mode with notes field for results\n\n### Export & Share\n- Export prompts as portable JSON\n- Share with version history or current version only\n- Import prompts from others\n- Export to markdown for documentation\n\n---\n\n## Quick Start\n\n```bash\n# Save your first prompt\necho \"You are a helpful assistant...\" | python3 prompt_git.py save assistant-v1 --note \"First version\"\n\n# Make changes and save a new version\necho \"You are a helpful and friendly assistant...\" | python3 prompt_git.py save assistant-v1 --note \"Added 'friendly'\"\n\n# See version history\npython3 prompt_git.py versions assistant-v1\n\n# Compare versions\npython3 prompt_git.py diff assistant-v1 abc123 def456\n\n# Rollback to a previous version\npython3 prompt_git.py rollback assistant-v1 abc123\n```\n\n---\n\n## Usage Guide\n\n### Save a Prompt\n\n```bash\n# From stdin\necho \"Your prompt here\" | python3 prompt_git.py save my-prompt --note \"Initial version\"\n\n# From file\npython3 prompt_git.py save my-prompt --file prompt.txt --note \"v2 with examples\"\n\n# With category and tags\npython3 prompt_git.py save system-prompt \\\n  --category system \\\n  --tag best \\\n  --tag production \\\n  --note \"Production system prompt\"\n```\n\n### View Prompts\n\n```bash\n# List all prompts\npython3 prompt_git.py list\n\n# Filter by category\npython3 prompt_git.py list --category system\n\n# Filter by tag\npython3 prompt_git.py list --tag best\n\n# Get current version\npython3 prompt_git.py get my-prompt\n\n# Get specific version\npython3 prompt_git.py get my-prompt --version abc123\n```\n\n### Version History\n\n```bash\n# See all versions\npython3 prompt_git.py versions my-prompt\n\n# Output:\n? def456 � 2026-02-21T15:30:00 � Added examples [production]\n  abc123 � 2026-02-21T10:00:00 � Initial version []\n\n# The arrow (?) marks the current version\n```\n\n### Diff Versions\n\n```bash\n# Compare two versions\npython3 prompt_git.py diff my-prompt abc123 def456\n\n# Output shows unified diff:\n--- my-prompt (abc123)\n+++ my-prompt (def456)\n@@ -1,2 +1,3 @@\n You are a helpful assistant.\n+Please provide examples.\n```\n\n### Rollback\n\n```bash\n# Rollback to a previous version\npython3 prompt_git.py rollback my-prompt abc123\n\n# This makes abc123 the current version\n# The newer version (def456) is not deleted, just not current\n```\n\n### Tag Versions\n\n```bash\n# Tag a version\npython3 prompt_git.py tag my-prompt abc123 best\n\n# Tag meanings are up to you:\n# - best: Best-performing version\n# - testing: Under testing\n# - production: Currently in production\n# - deprecated: Don't use this\n# - experimental: Risky\u002Funtested\n```\n\n### Search\n\n```bash\n# Search content by keyword\npython3 prompt_search.py search \"helpful assistant\"\n\n# Search by tag\npython3 prompt_search.py tag best\n\n# Search by date range\npython3 prompt_search.py date --start 2026-02-01 --end 2026-02-21\n\n# Regex search\npython3 prompt_search.py regex \"assistant|helper\"\n\n# Find recent prompts\npython3 prompt_search.py recent --limit 10\n\n# Find similar prompts\npython3 prompt_search.py similar my-prompt --threshold 0.6\n\n# Repository stats\npython3 prompt_search.py stats\n```\n\n### Export & Import\n\n```bash\n# Export a prompt (current version only)\npython3 prompt_export.py export my-prompt output.json\n\n# Export with full history\npython3 prompt_export.py export my-prompt output.json --history\n\n# Export as markdown\npython3 prompt_export.py export my-prompt output.md --markdown\n\n# Export multiple prompts\npython3 prompt_export.py export-multi bundle.json --names prompt1 prompt2 prompt3 --history\n\n# Import a prompt\npython3 prompt_export.py import shared-prompt.json\n\n# Import and overwrite existing\npython3 prompt_export.py import shared-prompt.json --overwrite\n```\n\n---\n\n## Use Cases\n\n### 1. **Prompt Engineering Iteration**\nSave every version as you refine your prompt. See what changed. Rollback if something breaks. Never lose a good version.\n\n### 2. **A\u002FB Testing Prompts**\nSave version A, save version B, tag with results. Compare diffs to see exactly what changed between the winner and loser.\n\n### 3. **Team Prompt Sharing**\nExport your best prompts. Share the JSON file. Team imports it. Everyone has the same version, with full history if you want.\n\n### 4. **System Prompt Library**\nOrganize all your system prompts by category. Tag the ones that work best. Search across all of them when you need inspiration.\n\n### 5. **Audit Trail**\nSee when a prompt was changed, what changed, and what note was left. Perfect for compliance or debugging \"when did this break?\"\n\n### 6. **Template Management**\nSave reusable templates (e.g., \"email writer\", \"code reviewer\"). Pull them when needed. Never rewrite from scratch.\n\n---\n\n## Storage Structure\n\n```\n~\u002F.promptgit\u002F\n  index.json          # Prompt metadata (names, categories, tags, current versions)\n  prompts\u002F\n    my-prompt\u002F\n      versions.json   # Version history for this prompt\n      abc123.txt      # Content for version abc123\n      def456.txt      # Content for version def456\n    another-prompt\u002F\n      versions.json\n      xyz789.txt\n```\n\nAll human-readable, grep-friendly JSON and text files. No binary blobs.\n\n---\n\n## Configuration\n\nSee `config_example.json` for reference constants and example values\n\n```python\n# Change storage location\nSTORAGE_DIR = '\u002Fpath\u002Fto\u002Fyour\u002Fprompts'\n\n# Define your own categories\nDEFAULT_CATEGORIES = ['system', 'task', 'template', 'snippet', 'general']\n\n# Suggested tags\nSUGGESTED_TAGS = ['best', 'testing', 'production', 'deprecated']\n\n# Similarity threshold for \"find similar\" search\nSIMILARITY_THRESHOLD = 0.5\n```\n\nSee `config_example.json` for all options.\n\n---\n\n## Examples\n\n### Example 1: Refining a System Prompt\n\n```bash\n# Initial version\necho \"You are a helpful assistant.\" | \\\n  python3 prompt_git.py save assistant --category system --note \"v1\"\n\n# After testing, add more detail\necho \"You are a helpful assistant. Provide concise answers.\" | \\\n  python3 prompt_git.py save assistant --note \"v2: added conciseness\"\n\n# Hmm, too concise. Rollback\npython3 prompt_git.py rollback assistant \u003Cv1-version-id>\n\n# Try a different approach\necho \"You are a helpful assistant. Provide detailed, thoughtful answers.\" | \\\n  python3 prompt_git.py save assistant --note \"v3: detailed instead\" --tag testing\n\n# This one works! Tag it\npython3 prompt_git.py tag assistant \u003Cv3-version-id> best\npython3 prompt_git.py tag assistant \u003Cv3-version-id> production\n```\n\n### Example 2: Sharing Prompts with a Team\n\n```bash\n# Export your best system prompt\npython3 prompt_export.py export my-system-prompt team-prompt.json --history\n\n# Teammate imports it\npython3 prompt_export.py import team-prompt.json\n\n# Now they have the full history and can see how it evolved\npython3 prompt_git.py versions my-system-prompt\n```\n\n### Example 3: Finding What Broke\n\n```bash\n# Prompt stopped working. When?\npython3 prompt_git.py versions my-prompt\n\n# Output shows versions with timestamps\n# Pick two versions: one that worked, one that didn't\npython3 prompt_git.py diff my-prompt \u003Cgood-version> \u003Cbroken-version>\n\n# Diff shows exactly what changed\n# Fix it and save a new version\n```\n\n---\n\n## What's Included\n\n| File | Purpose |\n|------|---------|\n| `prompt_git.py` | Main version control (save, get, diff, rollback, tag) |\n| `prompt_search.py` | Search and browse (keyword, tag, date, regex, similar) |\n| `prompt_export.py` | Export\u002Fimport (JSON, markdown, bundles) |\n| `config_example.json` | Configuration template |\n| `README.md` | This file |\n| `LIMITATIONS.md` | What it doesn't do |\n| `LICENSE` | MIT License |\n\n---\n\n## Requirements\n\n- Python 3.7+\n- **Zero external dependencies** (stdlib only)\n- Works on Linux, macOS, Windows\n\n---\n\n## Python API\n\nUse PromptGit in your own scripts:\n\n```python\nfrom prompt_git import PromptRepository\n\n# Initialize repo\nrepo = PromptRepository(storage_dir='~\u002F.promptgit')\n\n# Save a prompt\nversion_id = repo.save(\n    'my-prompt',\n    'You are a helpful assistant.',\n    note='Initial version',\n    category='system',\n    tags=['testing']\n)\n\n# Get current version\nversion = repo.get_version('my-prompt')\nprint(version.content)\n\n# List all prompts\nprompts = repo.list_prompts(category='system')\n\n# Diff two versions\ndiff = repo.diff('my-prompt', version_a_id, version_b_id)\nprint(diff)\n```\n\n---\n\n## quality-verified\n\n\n---\n\n## FAQ\n\n**Q: Does it sync across devices?**  \nA: No. It's local-only. But you can export\u002Fimport to share manually, or put `~\u002F.promptgit` in a synced folder (Dropbox, Git, etc.).\n\n**Q: Can I use it with Git?**  \nA: Yes! The storage directory is just JSON and text files. You can version the whole thing with Git if you want meta-version-control.\n\n**Q: What about collaborative editing?**  \nA: Not built-in. Export\u002Fimport is the collaboration model. For real-time collab, use a shared folder or Git.\n\n**Q: Does it work with images or multimodal prompts?**  \nA: Text only. If your multimodal prompt has a text component, you can save that.\n\n**Q: How do I delete a prompt?**  \nA: Currently, no delete command (by design � version control shouldn't delete easily). You can manually delete the folder in `~\u002F.promptgit\u002Fprompts\u002F`.\n\n---\n\n## License\n\nMIT � See `LICENSE` file.\n\n---\n\n## Author\n\n**Shadow Rose**\n\nBuilt for AI users who are tired of losing good prompts to accidental overwrites and bad edits.\n\n\n---\n\n## ?? Disclaimer\n\nThis software is provided \"AS IS\", without warranty of any kind, express or implied.\n\n**USE AT YOUR OWN RISK.**\n\n- The author(s) are NOT liable for any damages, losses, or consequences arising from \n  the use or misuse of this software � including but not limited to financial loss, \n  data loss, security breaches, business interruption, or any indirect\u002Fconsequential damages.\n- This software does NOT constitute financial, legal, trading, or professional advice.\n- Users are solely responsible for evaluating whether this software is suitable for \n  their use case, environment, and risk tolerance.\n- No guarantee is made regarding accuracy, reliability, completeness, or fitness \n  for any particular purpose.\n- The author(s) are not responsible for how third parties use, modify, or distribute \n  this software after purchase.\n\nBy downloading, installing, or using this software, you acknowledge that you have read \nthis disclaimer and agree to use the software entirely at your own risk.\n\n\n**DATA DISCLAIMER:** This software processes and stores data locally on your system. \nThe author(s) are not responsible for data loss, corruption, or unauthorized access \nresulting from software bugs, system failures, or user error. Always maintain \nindependent backups of important data. This software does not transmit data externally \nunless explicitly configured by the user.\n\n---\n\n## Support & Links\n\n| | |\n|---|---|\n| ?? **Bug Reports** | TheShadowyRose@proton.me |\n| ? **Ko-fi** | [ko-fi.com\u002Ftheshadowrose](https:\u002F\u002Fko-fi.com\u002Ftheshadowrose) |\n| ?? **Gumroad** | [shadowyrose.gumroad.com](https:\u002F\u002Fshadowyrose.gumroad.com) |\n| ?? **Twitter** | [@TheShadowyRose](https:\u002F\u002Ftwitter.com\u002FTheShadowyRose) |\n| ?? **GitHub** | [github.com\u002FTheShadowRose](https:\u002F\u002Fgithub.com\u002FTheShadowRose) |\n| ?? **PromptBase** | [promptbase.com\u002Fprofile\u002Fshadowrose](https:\u002F\u002Fpromptbase.com\u002Fprofile\u002Fshadowrose) |\n\n*Built with [OpenClaw](https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw) � thank you for making this possible.*\n\n---\n\n??? **Need something custom?** Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. ? [Hire me on Fiverr](https:\u002F\u002Fwww.fiverr.com\u002Fs\u002FjjmlZ0v)\n\n## Security Notes\n\n- **Input sanitization enforced (v1.0.2+):** Prompt names are validated before use as filesystem path components. Names containing .., \u002F, \\, or null bytes are rejected with a ValueError. The resolved path is verified to stay within the repository directory. This prevents path traversal via crafted prompt names or malicious import files.\n- **Import safety:** When importing JSON exports, the name field is sanitized using the same validation before any file operations occur. Do not import JSON from untrusted sources.\n- **Concurrent access:** No file locking is implemented. Avoid running multiple PromptGit processes against the same repository simultaneously.",{"name":5,"tags":25,"author":32,"license":15,"version":33,"description":7},[26,27,28,29,30,31],"version-control","prompts","diff","rollback","history","local","@TheShadowRose","1.0.2","main","c52d4f98d93fb20c8e316f773e3b6dbfca1569c3","dataset\u002Fcase_04326",1,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound","https:\u002F\u002Fgithub.com\u002Fknownasnaffy","https:\u002F\u002Fbarinderpreet.com\u002F","My IDE is louder than my social life.","2026-10-26 21:36:33",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add knownasnaffy\u002Fprompthound --skill \"PromptGit Local Prompt Version Control\"",{"tool":49,"command":50},"bunx","bunx skills add knownasnaffy\u002Fprompthound --skill \"PromptGit Local Prompt Version Control\"",{"tool":52,"command":53},"pnpm","pnpm dlx skills add knownasnaffy\u002Fprompthound --skill \"PromptGit Local Prompt Version Control\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002FSKILL.md",true,[57,63,68,72,78,82,86,90],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"config_example.json","REFERENCE","参考文档",527,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002Fconfig_example.json",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":16},"LICENSE.md","LICENSE","许可证",1068,{"path":69,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":70,"sourceHtmlUrl":71},"LIMITATIONS.md",6127,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002FLIMITATIONS.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"prompt_export.py","SCRIPT","脚本",11358,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002Fprompt_export.py",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"prompt_git.py",17173,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002Fprompt_git.py",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"prompt_search.py",13397,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002Fprompt_search.py",{"path":87,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":88,"sourceHtmlUrl":89},"README.md",12776,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002FREADME.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002F_init_dirs.py",591,"https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_04326\u002Fscripts\u002F_init_dirs.py",[95,103,110,117,124,131],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":20},"01M79QGA852YYFNT5CJ5B4EG1N","EmailDigest Daily Email Summary for Agents","Smart email categorizer and digest formatter for agents. Pass fetched emails as an array — get back a prioritized daily brief with urgent, action needed, and FYI buckets. Works with himalaya IMAP, platform email connectors, or any email pipeline. All processing is local.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05511\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05511\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M79QFY0CF5SD7WECYX2AVEQY","git-log-summary","生成Markdown格式的Git提交记录摘要报告。使用场景：当用户需要按照Markdown格式输出git仓库的详细统计信息时使用此技能。输出内容包括：项目信息、分支信息、提交统计、作者统计、最近提交记录、分支信息和提交类型统计等，全部以标准Markdown格式呈现。","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05508\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M79QFNAS19464YTYMNH1SS06","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05506\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M79QFKR83ZM3P8Q3P94M50EE","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05504\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M79QFFX7CPX0YC072KR7TP0R","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05503\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":20},"01M79QFDQ7DF52KY565KW0PW0P","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002Fknownasnaffy\u002Fprompthound\u002Fblob\u002Fmain\u002Fdataset\u002Fcase_05502\u002FSKILL.md",[],[]]