Git guardrails

From neuron-one/GODMODE · View interactive version

Git guardrails is an AI agent skill from the GitHub repository neuron-one/GODMODE. Soft rules for Claude to avoid dangerous git commands (force-push, hard reset, branch -D). Always-active behavioral guardrail. Don't use for hook setup — use git-guardrails-external instead.

How to use this skill

Skill file

Git Guardrails

BLOCK these git commands and suggest safe alternatives:

Blocked Commands

Always Before Destructive Operations

  1. Check if there are uncommitted changes: git status
  2. Create a backup branch: git branch backup-[date]
  3. Confirm with user before proceeding

Never

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.