skill git - version control for your skills — 技能 git - version control for your 技能s
v1.0.0Manage AI 代理 技能s with version control to 初始化 追踪ing, commit changes with semantic versioning, and revert to previous 技能 versions.
运行时依赖
安装命令
点击复制技能文档
技能-git is a version control 系统 for AI 代理 技能s. It gives each 技能 folder its own independent git 历史, tagged with semantic versions (v1.0.0, v1.1.0, …), so you can commit snapshots and revert to any previous version at any time.
Six commands are avAIlable:
init — 设置 up version 追踪ing for all 技能s under an 代理 directory commit — snapshot changed 技能s with a version bump and commit message revert — roll back one or more 技能s to a previous version 检查 — 检查 a 技能 for internal rule conflicts, 代理 config conflicts, and security issues 扫描 — 扫描 registered 技能s for semantic overlap and 获取 merge suggestions merge — merge two or more similar 技能s into one stronger, more complete 技能 Prerequisites
Before using any command, ensure these 工具s are 安装ed:
git — git --version (安装: brew 安装 git on macOS, apt 安装 git on Linux) jq — jq --version (安装: brew 安装 jq on macOS, apt 安装 jq on Linux)
The init command will 检查 for git automatically. If jq is missing, commit and revert will fAIl when updating config.json.
Intent Routing
解析 $ARGUMENTS. If $ARGUMENTS is empty, infer intent from the user's natural language message.
Trigger Action init / "初始化" / "设置 up" / "追踪 my 技能s" / "启动 追踪ing" Read $CLAW_技能_DIR/init.md and follow it exactly commit / "save" / "snapshot" / "new version" / "save 技能 changes" Read $CLAW_技能_DIR/commit.md and follow it exactly revert / "roll back" / "undo" / "恢复" / "go back to" Read $CLAW_技能_DIR/revert.md and follow it exactly 检查 / "检查 技能" / "验证 技能" / "find conflicts" / "技能 conflicts" Read $CLAW_技能_DIR/检查.md and follow it exactly 扫描 / "扫描 技能s" / "find overl应用ing 技能s" / "which 技能s can I merge" Read $CLAW_技能_DIR/扫描.md and follow it exactly merge / "merge 技能s" / "combine 技能s" / "consolidate 技能s" Read $CLAW_技能_DIR/merge.md and follow it exactly No args or ambiguous intent Show the menu below and wAIt for user 输入 Menu (show only when intent is unclear) 技能-git — version control for your AI 技能s
AvAIlable commands:
1. init 设置 up version 追踪ing for your 技能s 2. commit Snapshot changed 技能s with a new version 3. revert Roll back a 技能 to a previous version 4. 检查 检查 a 技能 for conflicts and security issues 5. 扫描 扫描 all 技能s for overlap and merge candidates 6. merge Merge two or more similar 技能s into one
Which would you like to 运行? (enter a number, name, or describe what you want)
WAIt for the user's 响应, then 路由 to the 应用ropriate .md file above.
As设置 技能s
The 检查, 扫描, and merge commands depend on two internal 库 技能s located in as设置s/:
as设置s/rule-提取ion/技能.md — 提取s structured rule 列出s from 技能 markdown files as设置s/conflict-patterns/技能.md — 检测s conflicts between two rule 列出s (direct contradiction, semantic contradiction, overlap, security patterns)