Skip to content
Agentmart
Submit a tool

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

IndexedMIT
Write a review

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.

We use your email only for this newsletter. Privacy

About

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'.

Use cases: security

No 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.

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from brunomilani

Cite this page

install-hook skill. Agent Mart. https://agentmart.dev/skills/brunomilani-install-hook (last updated 2026-10-24)