Encodes safe git operation rules — no force-push to main, always branch, always review before merge.
67
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
This skill is the standing safety contract for all git operations. It is always-on — load it in every coding, homelab, and documentation session where any git command may be executed.
Prevent irreversible or destructive git actions. Enforce branching discipline, review gates, and credential hygiene across all repositories in the pvnkmnk ecosystem.
OpenCode / Codex: Invoke git-safe-ops
Freebuff: /skill git-safe-ops
git push --force on a protected branch is forbidden. Use --force-with-lease on feature branches only, and only when you understand what you are overwriting.main or master unless the repo is explicitly configured for trunk-based development and the user confirms.git diff main and confirm the changeset with the user before merging.fix, update, wip without context. Format: type: short summary\n\nOptional body..env files with real values committed to any branch. Check with git diff --staged before committing if credentials are in scope.git clean -fdx, git reset --hard, and branch deletion require explicit user confirmation.git tag -a vX.Y.Z).Stop and confirm with the user if:
--force flag is being considered..env, secrets.*, or credential file is within the staged changeset.git log --oneline origin/branch..HEAD to user for review.homelab-safe-ops — infrastructure safety gate (parallel always-on)tdd-loop — commit discipline during test-driven developmentrefactor-with-tests — branching discipline during refactor sessionsmemory-layer-bridge — log significant repo decisions to Obsidian0f62e6b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.