← 返回 Skills 市场
skill git - version control for your skills
作者
Wen Licheng
· GitHub ↗
· v0.2.2
· MIT-0
243
总下载
1
收藏
1
当前安装
6
版本数
在 OpenClaw 中安装
/install skill-git
功能描述
Manage AI agent skills with version control to initialize tracking, commit changes with semantic versioning, and revert to previous skill versions.
安全使用建议
This skill appears to do what it says: local version control and merging of skill folders. Before using it, review these points: (1) The SKILL.md expects git and jq but the registry metadata does not list them — install git and jq first. (2) Inspect scripts/sg-init.sh (included in the bundle) before running the init command — it will be executed by the skill. (3) The tool will create .git repositories, perform commits/tags/resets, and may delete tags during reverts; destructive actions require explicit confirmation but will modify your skill folders and ~/.skill-git/config.json. Back up your skills (or let the tool create the /tmp backup) before performing multi-version reverts or merges. (4) The skill reads many local config and plugin files and may read untracked file contents only if you consent; sensitive filenames are blocklisted in many places but double-check for secrets in your skill folders. If those behaviors are acceptable, this skill is coherent with its stated purpose.
功能分析
Type: OpenClaw Skill
Name: skill-git
Version: 0.2.2
This skill bundle implements a local version control system for AI agent skills using Git. It demonstrates strong security awareness by including sensitive filename blocklists (e.g., for .env, .ssh, and credentials) in commit.md, merge.md, and scan.md to prevent accidental data exposure. Additionally, check.md includes a security scanning step specifically designed to detect prompt injection and data exfiltration patterns in other skills. All destructive operations, such as deleting merged folders or reverting to previous versions, require explicit user confirmation, and the logic is strictly aligned with the stated purpose of skill management.
能力评估
Purpose & Capability
The name/description (version control for skills: init, commit, revert, scan, merge, check) match the actions the SKILL.md describes: creating git repos, committing, tagging, reverting, scanning skill markdown, and synthesizing merges. The commands operate on local skill folders and update a local ~/.skill-git/config.json — that aligns with the stated purpose. Minor note: the skill claims no required binaries in the registry metadata, but the runtime instructions explicitly require git and jq.
Instruction Scope
Instructions are detailed and confined to the stated domain: they read SKILL.md and other top-level *.md files, extract rules, run git operations (init/commit/reset/tag/diff), manipulate a local ~/.skill-git cache and config, and prompt the user for destructive actions. They also auto-detect agent via parent process and config files. The tool reads many local config files and may read untracked file contents only with explicit user consent; sensitive filename blocklists are applied in many places. Overall, the steps stay within the version-control/analysis scope.
Install Mechanism
There is no remote install or downloader; this is an instruction-only skill with one included script (scripts/sg-init.sh) that will be executed locally. No external URLs or archive extraction are used. The primary install risk is running the included shell script on the user's machine — you should review its content before execution (it is present in the bundle).
Credentials
The skill does not declare required environment variables in the registry, but the runtime docs require git and jq and reference environment context variables (e.g., CLAUDE_PLUGIN_ROOT, $ARGUMENTS, $PPID). The tool reads and writes many local files under ~/.skill-git and user agent directories (~/.claude, ~/.gemini, ~/.openclaw, etc.). It does not request external API keys or unrelated credentials. The omission of declared binaries/vars is a metadata mismatch but not a functional mismatch with purpose.
Persistence & Privilege
The skill is not always-on and runs only when invoked. It writes to ~/.skill-git (config, cache), may create .git folders and perform git init/commit/tag/reset operations inside users' skill directories, and can copy backups to /tmp. Those privileges are necessary for a local VCS tool, but you should expect it to modify your skill folders and config.json when you confirm operations. Autonomous invocation is allowed by platform default but not an additional flagged privilege.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skill-git - 安装完成后,直接呼叫该 Skill 的名称或使用
/skill-git触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.2
Version 0.2.2 of skill-git
---
Fix 1 — scan.md: Auto-deletion of missing skills → explicit confirmation
Before: On path not found, immediately ran jq del(...) and displayed a post-hoc warning.
After: Collects all missing skills, displays the list, prompts [y/n] once. Deletion only runs if user confirms.
Fix 2 — commit.md: Same pattern, same fix
Before: Auto-removed missing skill directories from config.json without asking.
After: Same gate — show the list, ask [y/n], only delete on explicit confirmation.
Fix 3 — merge.md Step 7b: No sensitive-filename blocklist when copying files
Before: Copied all non-_meta.json, non-backup files (including .env, .key, .pem, etc.) from source skill folders, with no credential check.
After: Added the same comprehensive blocklist used in commit.md as filter 0 (highest priority, applied before _meta.json or conflict checks).
Any blocked file is listed in the Output Summary under Skipped (sensitive filename).
v0.2.1
skill-git 0.2.1 — safety fix
v0.2.0
New commands for advanced skill QA and consolidation:
- Added three new commands: check (for conflicts/security), scan (for semantic overlap), and merge (combine similar skills).
v0.1.2
safety-enhanced in this version .
v0.1.1
- Added a Prerequisites section outlining required tools (git and jq) and installation hints for macOS/Linux.
- Clarified that `init` checks for git, while `commit` and `revert` require jq for updating config.json.
v0.1.0
skill-git 0.1.0 — Initial release
- Introduces version control for AI agent skills with independent git histories per skill folder.
- Supports three main commands: init, commit, and revert, each triggered by keywords or natural language.
- Commits are tagged with semantic versions for easy rollback and recovery.
- Displays a command menu if user intent is unclear.
- Designed for flexible natural language interaction and clear intent routing.
元数据
常见问题
skill git - version control for your skills 是什么?
Manage AI agent skills with version control to initialize tracking, commit changes with semantic versioning, and revert to previous skill versions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 243 次。
如何安装 skill git - version control for your skills?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-git」即可一键安装,无需额外配置。
skill git - version control for your skills 是免费的吗?
是的,skill git - version control for your skills 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
skill git - version control for your skills 支持哪些平台?
skill git - version control for your skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 skill git - version control for your skills?
由 Wen Licheng(@zijinoier)开发并维护,当前版本 v0.2.2。
推荐 Skills