This skill enforces safe git file operations by mandating git mv/git rm for controlled files and validates status before actions.
npx playbooks add skill ab300819/skills --skill git-safety
该 Skill 旨在确保在 Git 仓库中进行文件操作时的安全性和历史完整性。
mv 命令操作受 Git 跟踪的文件。git mv <old_path> <new_path>。rm 或 rm -rf 操作受 Git 跟踪的文件。git rm <path> 或 git rm -r <path>。当 Agent 准备操作文件时,应遵循以下逻辑:
git ls-files <path>。git mv / git rm。mv / rm。git status 确保工作区是干净的。Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.