Token导航 LogoToken导航

Agent Skill · 研究检索

prompt-git(提示 git)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

prompt-git 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 13,255。

总安装 9,535周安装 382GitHub Stars 公开资料未说明下载 3,087核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.2

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-git(提示 git)
来源仓库:https://github.com/theshadowrose/prompt-git
安装命令:
openclaw skills install prompt-git
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prompt-git

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Git 获取提示。跟踪每一个更改、差异版本、回滚错误,再也不会丢失良好的提示。所有本地、零依赖、离线工作。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install prompt-git;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

prompt-git 怎么安装?

在终端执行 openclaw skills install prompt-git。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

prompt-git 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

prompt-git 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

prompt-git 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

prompt-git 用的人多吗?

公开数据是累计安装 9,535 次,近一周安装 382 次,下载 3,087 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

prompt-git 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
prompt-git

提示 git · 本页

9,535—只读MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
PromptGit Local Prompt Version Control
description
Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.
author
@TheShadowRose
version
1.0.2
tags
["version-control", "prompts", "diff", "rollback", "history", "local"]
license
MIT

PromptGit Local Prompt Version Control

Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.


Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again.

PromptGit 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.


The Problem

You'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.

Or 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.

What PromptGit Does

Version Control for Prompts

  • Save versions with timestamps and notes
  • Never lose a good prompt again
  • See exactly what changed between versions
  • Rollback to any previous version instantly

Organization & Search

  • Categories (system, task, template, snippet)
  • Tags (best, testing, production, deprecated)
  • Search by keyword, tag, date range, or regex
  • Find similar prompts automatically

Diff & Compare

  • Side-by-side diffs between any two versions
  • See exactly what changed (unified diff format)
  • A/B comparison mode with notes field for results

Export & Share

  • Export prompts as portable JSON
  • Share with version history or current version only
  • Import prompts from others
  • Export to markdown for documentation

Quick Start

# Save your first prompt
echo "You are a helpful assistant..." | python3 prompt_git.py save assistant-v1 --note "First version"

# Make changes and save a new version
echo "You are a helpful and friendly assistant..." | python3 prompt_git.py save assistant-v1 --note "Added 'friendly'"

# See version history
python3 prompt_git.py versions assistant-v1

# Compare versions
python3 prompt_git.py diff assistant-v1 abc123 def456

# Rollback to a previous version
python3 prompt_git.py rollback assistant-v1 abc123

Usage Guide

Save a Prompt

# From stdin
echo "Your prompt here" | python3 prompt_git.py save my-prompt --note "Initial version"

# From file
python3 prompt_git.py save my-prompt --file prompt.txt --note "v2 with examples"

# With category and tags
python3 prompt_git.py save system-prompt \
  --category system \
  --tag best \
  --tag production \
  --note "Production system prompt"

View Prompts

# List all prompts
python3 prompt_git.py list

# Filter by category
python3 prompt_git.py list --category system

# Filter by tag
python3 prompt_git.py list --tag best

# Get current version
python3 prompt_git.py get my-prompt

# Get specific version
python3 prompt_git.py get my-prompt --version abc123

Version History

# See all versions
python3 prompt_git.py versions my-prompt

# Output:
? def456 � 2026-02-21T15:30:00 � Added examples [production]
  abc123 � 2026-02-21T10:00:00 � Initial version []

# The arrow (?) marks the current version

Diff Versions

# Compare two versions
python3 prompt_git.py diff my-prompt abc123 def456

# Output shows unified diff:
--- my-prompt (abc123)
+++ my-prompt (def456)
@@ -1,2 +1,3 @@
 You are a helpful assistant.
+Please provide examples.

Rollback

# Rollback to a previous version
python3 prompt_git.py rollback my-prompt abc123

# This makes abc123 the current version
# The newer version (def456) is not deleted, just not current

Tag Versions

# Tag a version
python3 prompt_git.py tag my-prompt abc123 best

# Tag meanings are up to you:
# - best: Best-performing version
# - testing: Under testing
# - production: Currently in production
# - deprecated: Don't use this
# - experimental: Risky/untested

Search

# Search content by keyword
python3 prompt_search.py search "helpful assistant"

# Search by tag
python3 prompt_search.py tag best

# Search by date range
python3 prompt_search.py date --start 2026-02-01 --end 2026-02-21

# Regex search
python3 prompt_search.py regex "assistant|helper"

# Find recent prompts
python3 prompt_search.py recent --limit 10

# Find similar prompts
python3 prompt_search.py similar my-prompt --threshold 0.6

# Repository stats
python3 prompt_search.py stats

Export & Import

# Export a prompt (current version only)
python3 prompt_export.py export my-prompt output.json

# Export with full history
python3 prompt_export.py export my-prompt output.json --history

# Export as markdown
python3 prompt_export.py export my-prompt output.md --markdown

# Export multiple prompts
python3 prompt_export.py export-multi bundle.json --names prompt1 prompt2 prompt3 --history

# Import a prompt
python3 prompt_export.py import shared-prompt.json

# Import and overwrite existing
python3 prompt_export.py import shared-prompt.json --overwrite

Use Cases

1. Prompt Engineering Iteration

Save every version as you refine your prompt. See what changed. Rollback if something breaks. Never lose a good version.

2. A/B Testing Prompts

Save version A, save version B, tag with results. Compare diffs to see exactly what changed between the winner and loser.

3. Team Prompt Sharing

Export your best prompts. Share the JSON file. Team imports it. Everyone has the same version, with full history if you want.

4. System Prompt Library

Organize all your system prompts by category. Tag the ones that work best. Search across all of them when you need inspiration.

5. Audit Trail

See when a prompt was changed, what changed, and what note was left. Perfect for compliance or debugging "when did this break?"

6. Template Management

Save reusable templates (e.g., "email writer", "code reviewer"). Pull them when needed. Never rewrite from scratch.


Storage Structure

~/.promptgit/
  index.json          # Prompt metadata (names, categories, tags, current versions)
  prompts/
    my-prompt/
      versions.json   # Version history for this prompt
      abc123.txt      # Content for version abc123
      def456.txt      # Content for version def456
    another-prompt/
      versions.json
      xyz789.txt

All human-readable, grep-friendly JSON and text files. No binary blobs.


Configuration

See config_example.json for reference constants and example values

# Change storage location
STORAGE_DIR = '/path/to/your/prompts'

# Define your own categories
DEFAULT_CATEGORIES = ['system', 'task', 'template', 'snippet', 'general']

# Suggested tags
SUGGESTED_TAGS = ['best', 'testing', 'production', 'deprecated']

# Similarity threshold for "find similar" search
SIMILARITY_THRESHOLD = 0.5

See config_example.json for all options.


Examples

Example 1: Refining a System Prompt

# Initial version
echo "You are a helpful assistant." | \
  python3 prompt_git.py save assistant --category system --note "v1"

# After testing, add more detail
echo "You are a helpful assistant. Provide concise answers." | \
  python3 prompt_git.py save assistant --note "v2: added conciseness"

# Hmm, too concise. Rollback
python3 prompt_git.py rollback assistant <v1-version-id>

# Try a different approach
echo "You are a helpful assistant. Provide detailed, thoughtful answers." | \
  python3 prompt_git.py save assistant --note "v3: detailed instead" --tag testing

# This one works! Tag it
python3 prompt_git.py tag assistant <v3-version-id> best
python3 prompt_git.py tag assistant <v3-version-id> production

Example 2: Sharing Prompts with a Team

# Export your best system prompt
python3 prompt_export.py export my-system-prompt team-prompt.json --history

# Teammate imports it
python3 prompt_export.py import team-prompt.json

# Now they have the full history and can see how it evolved
python3 prompt_git.py versions my-system-prompt

Example 3: Finding What Broke

# Prompt stopped working. When?
python3 prompt_git.py versions my-prompt

# Output shows versions with timestamps
# Pick two versions: one that worked, one that didn't
python3 prompt_git.py diff my-prompt <good-version> <broken-version>

# Diff shows exactly what changed
# Fix it and save a new version

What's Included

FilePurpose
prompt_git.pyMain version control (save, get, diff, rollback, tag)
prompt_search.pySearch and browse (keyword, tag, date, regex, similar)
prompt_export.pyExport/import (JSON, markdown, bundles)
config_example.jsonConfiguration template
README.mdThis file
LIMITATIONS.mdWhat it doesn't do
LICENSEMIT License

Requirements

  • Python 3.7+
  • Zero external dependencies (stdlib only)
  • Works on Linux, macOS, Windows

Python API

Use PromptGit in your own scripts:

from prompt_git import PromptRepository

# Initialize repo
repo = PromptRepository(storage_dir='~/.promptgit')

# Save a prompt
version_id = repo.save(
    'my-prompt',
    'You are a helpful assistant.',
    note='Initial version',
    category='system',
    tags=['testing']
)

# Get current version
version = repo.get_version('my-prompt')
print(version.content)

# List all prompts
prompts = repo.list_prompts(category='system')

# Diff two versions
diff = repo.diff('my-prompt', version_a_id, version_b_id)
print(diff)

quality-verified


FAQ

Q: Does it sync across devices? A: No. It's local-only. But you can export/import to share manually, or put ~/.promptgit in a synced folder (Dropbox, Git, etc.).

Q: Can I use it with Git? A: Yes! The storage directory is just JSON and text files. You can version the whole thing with Git if you want meta-version-control.

Q: What about collaborative editing? A: Not built-in. Export/import is the collaboration model. For real-time collab, use a shared folder or Git.

Q: Does it work with images or multimodal prompts? A: Text only. If your multimodal prompt has a text component, you can save that.

Q: How do I delete a prompt? A: Currently, no delete command (by design � version control shouldn't delete easily). You can manually delete the folder in ~/.promptgit/prompts/.


License

MIT � See LICENSE file.


Author

Shadow Rose

Built for AI users who are tired of losing good prompts to accidental overwrites and bad edits.


?? Disclaimer

This software is provided "AS IS", without warranty of any kind, express or implied.

USE AT YOUR OWN RISK.

  • The author(s) are NOT liable for any damages, losses, or consequences arising from

the use or misuse of this software � including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages.

  • This software does NOT constitute financial, legal, trading, or professional advice.
  • Users are solely responsible for evaluating whether this software is suitable for

their use case, environment, and risk tolerance.

  • No guarantee is made regarding accuracy, reliability, completeness, or fitness

for any particular purpose.

  • The author(s) are not responsible for how third parties use, modify, or distribute

this software after purchase.

By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.

DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.


Support & Links

?? Bug ReportsTheShadowyRose@proton.me
? Ko-fiko-fi.com/theshadowrose
?? Gumroadshadowyrose.gumroad.com
?? Twitter@TheShadowyRose
?? GitHubgithub.com/TheShadowRose
?? PromptBasepromptbase.com/profile/shadowrose

*Built with OpenClaw � thank you for making this possible.*


??? Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. ? Hire me on Fiverr

Security Notes

  • Input sanitization enforced (v1.0.2+): Prompt names are validated before use as filesystem path components. Names containing .., /, \, 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.
  • 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.
  • Concurrent access: No file locking is implemented. Avoid running multiple PromptGit processes against the same repository simultaneously.

平台分布

OpenClaw

73.75%
按下载量换算2,277

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills