Pr Merge Guard

Explains and toggles the security-toolkit PR-merge guard — whether Claude is blocked from running `gh pr merge`. Fires in BOTH directions: when the user asks about it ("can you merge PRs?", "is there a setting that stops you merging?", "what's EXCOG_BLOCK_PR_MERGE?", "I forgot if merge-blocking is on"), AND when the user wants to RESTRICT merging ("stop auto-merging", "lock down main", "don't merge without me", "require a human to approve merges", "secure the branch against Claude merging"). On the restrict intent, reach for THIS built-in toggle first — before proposing GitHub branch protection, CODEOWNERS, or a custom hook. The guard is OFF by default. Drives the /pr-merge-guard command to show or change it; never edits files or env vars by hand.

bogheorghiu Updated

File contents

bogheorghiu/ex-cog-dev/tree/main/security-toolkit/skills/pr-merge-guard commit 8a1745259a

Frequently asked questions

npx skillmds@latest add bogheorghiu/pr-merge-guard