Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ufomiao/git-rollback
Interactively rollback Git branch to historical version; lists branches, versions, then executes reset/revert after confirmation
Passed 18 of 22 test cases with the skill, and 7 of 22 without it.
and 14 more in the full report
11 fixed7 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
What is the very first Git action performed during the rollback interactive workflow before listing branches?
| Checked | Without skill | With skill |
|---|---|---|
| The response states that `git fetch --all --prune` is run first. | Missed | Passed |
The instructions your model reads when the skill loads.
目的:安全、可视地将指定分支回滚到旧版本。
默认处于 只读预览 (--dry-run);真正执行需加 --yes 或在交互中确认。
# 纯交互:列出分支 → 选分支 → 列最近 20 个版本 → 选目标 → 选择 reset 或 revert → 二次确认
/git-rollback
# 指定分支,其他交互
/git-rollback --branch feature/calculator
# 指定分支与目标 commit,并用 hard‑reset 一键执行(危险)
/git-rollback --branch main --target 1a2b3c4d --mode reset --yes
# 只想生成 revert 提交(非破坏式回滚),预览即可
/git-rollback --branch release/v2.1 --target v2.0.5 --mode revert --dry-run
| 选项 | 说明 |
|---|---|
--branch <branch> | 要回滚的分支;缺省时交互选择。 |
--target <rev> | 目标版本(commit Hash、Tag、reflog 引用都行);缺省时交互选择近 --depth 条记录。 |
--mode reset|revert | reset:硬回滚历史;revert:生成反向提交保持历史完整。默认询问。 |
--depth <n> | 在交互模式下列出最近 n 个版本(默认 20)。 |
--dry-run | 默认开启,只预览即将执行的命令。 |
--yes | 跳过所有确认直接执行,适合 CI/CD 脚本。 |
git fetch --all --prunegit branch -a(本地+远端,过滤受保护分支)test cases passed, vs 7 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.