Install hook
Install a native git pre-push hook that enforces this repo's account in every terminal — not just inside a Claude session. The hook runs 'guise use' and 'guise validate' before each push and aborts on mismatch. Use when the user wants pushes to always go through the correct account even from a plain shell, or after another terminal ran 'gh auth switch'.From its SKILL.md
npx -y skills add brunomilani/guise --skill install-hookAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, as published. Nobody here has run it
guise: install-hook
The Claude Code PreToolUse hook only sees commands run inside a Claude session.
A developer pushing from their own terminal — after a gh auth switch somewhere
else — bypasses guise entirely. This installs a native git pre-push hook so the
repo's account is forced before every push, from any terminal.
"${CLAUDE_PLUGIN_ROOT}"/scripts/run.sh install-hook
- The hook runs
guise use(GitHub:gh auth switch· Bitbucket/GitLab: pin the SSH key) thenguise validate, and aborts the push if the account can't be made correct. - It never clobbers an existing non-guise
pre-pushhook — it reports and stops. - Remove it with
"${CLAUDE_PLUGIN_ROOT}"/scripts/run.sh uninstall-hook.