install-hook
Install a native git pre-push hook that enforces this repo's account in every terminal — not just inside a Claude session.
Skill by brunomilani
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/brunomilani-install-hook
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/install-hook
What's inside
- Skill name
install-hook- Description
- 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'.
- License
- MIT
- Instructions
- 18 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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.
```bash
"${CLAUDE_PLUGIN_ROOT}"/scripts/run.sh install-hook
```
- The hook runs `guise use` (GitHub: `gh auth switch` · Bitbucket/GitLab: pin the
SSH key) then `guise validate`, and aborts the push if the account can't be made
correct.
- It never clobbers an existing non-guise `pre-push` hook — it reports and stops.
- Remove it with `"${CLAUDE_PLUGIN_ROOT}"/scripts/run.sh uninstall-hook`.From brunomilani/guise, MIT.
More from brunomilani/guise
- 0.470score
init
brunomilani
Set up guise for this repository — detect the repo and provider, read any project policy, and choose the account this repo should use.
SkillCFreshness: CClaude Code +9 - 0.466score
use
brunomilani
Activate the account configured for this repository.
SkillCFreshness: CClaude Code +9 - 0.466score
choose
brunomilani
Change which GitHub account this repository uses.
SkillCFreshness: CClaude Code +9 - 0.466score
git-sync
brunomilani
Apply the saved account's git user.name and user.email to this repository's local git config (git config --local).
SkillCFreshness: CClaude Code +9 - 0.466score
reset
brunomilani
Remove the locally-saved GitHub account choice for this repository.
SkillCFreshness: CClaude Code +9 - 0.466score
status
brunomilani
Show the guise status for the current repository — configured GitHub account, active gh account, git identity, policy, and validation results.
SkillCFreshness: CClaude Code +9 - 0.463score
validate
brunomilani
Validate that the active GitHub account, git identity, and project policy all match what this repository expects.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 4, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/brunomilani/guise
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from brunomilani
- 0.470score
init
brunomilani
Set up guise for this repository — detect the repo and provider, read any project policy, and choose the account this repo should use.
SkillCFreshness: CClaude Code +9 - 0.466score
use
brunomilani
Activate the account configured for this repository.
SkillCFreshness: CClaude Code +9 - 0.466score
choose
brunomilani
Change which GitHub account this repository uses.
SkillCFreshness: CClaude Code +9 - 0.466score
git-sync
brunomilani
Apply the saved account's git user.name and user.email to this repository's local git config (git config --local).
SkillCFreshness: CClaude Code +9 - 0.466score
reset
brunomilani
Remove the locally-saved GitHub account choice for this repository.
SkillCFreshness: CClaude Code +9 - 0.466score
status
brunomilani
Show the guise status for the current repository — configured GitHub account, active gh account, git identity, policy, and validation results.
SkillCFreshness: CClaude Code +9
Cite this page
install-hook skill. Agent Mart. https://agentmart.dev/skills/brunomilani-install-hook (last updated 2026-10-24)