Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

git-guardrails

// Install Claude Code PreToolUse hooks that block destructive git/shell commands before they execute — force-push to protected branches, `git reset --hard` of unstaged work, `git push --no-verify`, and `rm -rf` paths that escape the worktree. Smart-merges into the project's `.claude/settings.json` and writes one guardian script. Trigger when the user says "/git-guardrails", asks to harden Claude Code against destructive git commands, or is about to run `/night` unattended for the first time.

$ git log --oneline --stat
stars:٩٢
forks:١٣
updated:٣٠ أبريل ٢٠٢٦ في ١٥:٠١
SKILL.md
readonly