---
id: git-safety
track: coding
version: 0.0.6
label: advisory
keyword: advise
where: text
sha256: 39a14043e47fb14022ed5e5674ba194d2b80be47c8dd04f33b8733896ab25843
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/git-safety
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Git Safety

git-safety · version 0.0.6

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.6 · 2026-11-09 — Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run oldest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash.

## Provenance

- Tested by 0 of 4 cases run automatically
- SHA-256: `39a14043e47fb14022ed5e5674ba194d2b80be47c8dd04f33b8733896ab25843`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/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.6&page=%2Fcoding%2Fpolicies%2Fgit-safety%2F
