
Git Guardrails Claude Code
by mattpocockc55ee46073edNo licenseListed Oct 8, 2026Updated Oct 8, 2026
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
- c55ee46073edCurrentcommit c55ee46Published Oct 8, 2026
Source and attribution
Source:mattpocock/skillsinskills/misc/git-guardrails-claude-codeat commitc55ee46
License: No license
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from mattpocock/skills

Chief Of Staff
mattpocock
Coordinates subagents and schedules to pursue a long-running goal in one session.

Writing For Agents
mattpocock
A reference on writing documents that AI agents consume, such as skills, AGENTS.md and CLAUDE.md files.

Wait What
mattpocock
Re-pitches a confusing message using Simplified Technical English and the project's ubiquitous language.

To Questionnaire
mattpocock
Turns a decision the user cannot answer alone into a Markdown questionnaire for someone else to fill in.

Teach
mattpocock
Teaches a user a topic over multiple sessions, producing HTML lessons, reference sheets and learning records in a workspace.

Handoff
mattpocock
Compacts the current conversation into a handoff document so a fresh agent can continue the work.
More in Security

Dpop Adoption
Guides implementation of OAuth 2.0 DPoP (RFC 9449) sender-constrained refresh tokens for Google's OAuth platform.

Secops Triage
Guides SOC analysts through triaging Google SecOps security alerts, from investigation to closure or escalation.

Secops Investigate
Guides SOC analysts through deep security incident and entity investigations in Google SecOps using UDM queries and timelines.

Secops Hunt
Guides proactive threat hunting in Google SecOps using UDM queries, IoC lookback, prevalence and outlier analysis.

Secops Cases
Manages Google Security Operations SOAR cases across their lifecycle via MCP tools.

Iam Helper For Privileged Access Management
Guides Google Cloud Privileged Access Manager entitlement CRUD, temporary access requests, and grant approval workflows.