---
id: git-safety
track: coding
version: 0.0.5
label: advisory
keyword: advise
where: text
sha256: 18db735b96d4c24ca1fd510a36795510465e08a5e5bceede4ccc3fa3ccd08b8d
source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/git-safety
catalog_ref: 1e60d211c1bb767152c6ab0167932da06ab3a10f
---

# Git Safety

git-safety · version 0.0.5

Advisory — Advisory only. It is skill text, and nothing stops a violation. Chock adds friction. It is not a security boundary. 

In a git repo: advisory (The agent reads the text, and nothing stops a violation.)



## What it does

Trigger: force push, hard reset, destructive branch delete, hook bypass, direct main commits. avoid: rewriting remote history, discarding uncommitted work, skipping pre-commit checks. Enforced counterparts: block-destructive-commands (command guard plus pre-push hook), block-no-verify (command guard), protect-main-branch (commit and push gate), limit-diff-size (asks at commit). This rule is the advisory layer over them plus atomic-commit guidance no gate can decide.

## Its label on each agent

- Claude Code (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=claude-code&p=git-safety
- Cursor (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=cursor&p=git-safety
- Codex (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=codex&p=git-safety
- GitHub Copilot (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=copilot&p=git-safety
- Devin (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=devin&p=git-safety
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=git-safety
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=git-safety
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=git-safety
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=git-safety
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=git-safety
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=git-safety

## What it misses

This policy does not state what it misses.

## Latest change

0.0.5 · 2026-10-27 — Title wording only (IR-F40): "Git Safety Rule" is now "Git Safety". The id, guard and tests are unchanged.

## Provenance

- Tested by 0 of 4 cases run automatically
- SHA-256: `18db735b96d4c24ca1fd510a36795510465e08a5e5bceede4ccc3fa3ccd08b8d`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/1e60d211c1bb767152c6ab0167932da06ab3a10f
- Source: https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/base/git-safety (catalog path `base/git-safety`)
- Presets: Safety guidance
- JSON: `/api/coding/policies/git-safety.json`
- Report a problem: https://chock.sh/report/?policy=git-safety&version=0.0.5&page=%2Fcoding%2Fpolicies%2Fgit-safety%2F
