Chock.sh Build your plugin

Policies

Git Safety

Git Safety: what it does, its label on each agent, what it misses, and examples.

Catalog policy git-safety, version 0.0.5, labelled advisory on Claude Code.

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.

On each agent

AgentLabelWhat it does there
Claude CodeAdvisoryAdvisory only. It is skill text, and nothing stops a violation
CursorAdvisoryAdvisory only. It is skill text, and nothing stops a violation
CodexAdvisoryAdvisory only. It is skill text, and nothing stops a violation
GitHub CopilotAdvisoryAdvisory only. It is skill text, and nothing stops a violation
DevinAdvisoryAdvisory only. It is skill text, and nothing stops a violation
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot graded yet for Factory Droid

What it misses

This policy does not state what it misses.

More

Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.