cafe3310/git-snapshot-rollback
存档当前的失败尝试分支,并安全回退到特定历史提交
npx skills add https://github.com/cafe3310/public-agent-skills --skill git-snapshot-rollback
此技能通过自动化脚本确保在回退 Git 提交时,不仅保留了当前的尝试(Snapshot),还通过 ARCHIVE.md 构建了一个可追溯的决策链表。
run_shell_command 调用技能内置脚本:python3 <path_to_skill>/scripts/rollback.py <Target_Commit> "<Reason>" --pushpython3 <path_to_skill>/scripts/rollback.py <Target_Commit> "<Reason>"archive/{current_branch}/YYYY-MM-DD-HH-mm 分支。ARCHIVE.md 记录。git reset --hard。ARCHIVE.md 并提交回退记录。ARCHIVE.md 是否已正确记录了本次回退的双向链接。ARCHIVE.md 的具体格式,请参考 references/log-format.md。git reset --hard 来放弃大量工作。ARCHIVE.md 中的历史记录。Take cafe3310/git-snapshot-rollback from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.