Git Guardrails
Use when configuring repository-scoped safeguards that detect and gate destructive or externally visible Git commands before execution.
Install
npx skills add sandbaseai/workbuddy-skill --skill git-guardrailsgit clone --depth 1 https://github.com/sandbaseai/workbuddy-skill.git /tmp/workbuddy-skill
mkdir -p ~/.claude/skills
cp -r /tmp/workbuddy-skill/skills/git-guardrails ~/.claude/skills/git-guardrailsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Git Guardrails Use this Skill when a repository needs a visible safety layer around Git commands. Guardrails should prevent accidental data loss, credential exposure, or unreviewed external changes while preserving an explicit path for authorized work. They are policy enforcement, not a replacement for branch protection, code review, backups, or human ownership. ## Define scope and authority Inspect repository instructions, supported hook/policy mechanisms, branch protection, CI gates, and the user's declared workflow before writing configuration. Prefer repository-scoped policy over global configuration. Record the policy owner, protected refs, allowed actors, audit location, and recovery method. Never install global hooks or modify another project without explicit authorization. Classify commands by effect: - **Destructive local**: `reset --hard`, `clean -f/-fd`, `checkout .`, `restore .`, deleting branches, overwriting uncommitted files, or rewriting history. - **External/irreversible**: `push`, especially force pushes, tag deletion, remote deletion, or commands that publish credentials or artifacts. - **Potentially unsafe**: scripts from repository content, credential helpers, submodule changes, hooks, or commands whose target is unresolved. - **Read-only**: status, diff, log, show, ls-files, and bounded inspection that does not execute repository-provided code.
Details
- Skill name
git-guardrails- Repository
- sandbaseai/workbuddy-skill
- Path
skills/git-guardrails/SKILL.md- License
- MIT
- Repo updated
- 8 September 2026
FAQ
What does the Git Guardrails skill do?
Use when configuring repository-scoped safeguards that detect and gate destructive or externally visible Git commands before execution.
How do I install the Git Guardrails skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add sandbaseai/workbuddy-skill --skill git-guardrails. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Git Guardrails popular?
It lives in sandbaseai/workbuddy-skill, which has 9 GitHub stars and 3 forks.
Related skills
Access Control Security Best Practices
9sandbaseai/workbuddy-skill
Design, review, implement, and verify least-privilege access controls across users, services, tenants, resources, and administrative workflows.
Accessibility Review
9sandbaseai/workbuddy-skill
Use when reviewing a web interface or interaction for semantic, keyboard, focus, screen-reader, ARIA, and contrast accessibility risks.
Acquire Codebase Knowledge
9sandbaseai/workbuddy-skill
Use when the user asks to map, document, or onboard into an existing codebase and needs evidence-backed architecture, structure, conventions, integrations, testing, and concerns documentation.
Github Actions Efficiency
9sandbaseai/workbuddy-skill
Use when auditing GitHub Actions runtime, CI cost, wasted runs, caching, concurrency, path filters, matrix breadth, duplicate coverage, or job critical paths.
Git Advanced
5Sagargupta16/claude-skills
Use when performing complex git operations -- rebasing, cherry-picking, resolving merge conflicts, bisecting bugs, managing stashes, cleaning history, or working with monorepos. Goes beyond basic commit/push/pull.
Github Actions Hardening
9sandbaseai/workbuddy-skill
Use when reviewing, authoring, auditing, or hardening GitHub Actions workflows for trigger trust, expression injection, token permissions, action supply chain, secrets, outputs, OIDC, and runner exposure.
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.