git-guardrails-opencode

Installation
SKILL.md

Git Guardrails For opencode

Sets up opencode permission.bash rules that deny destructive git commands before they execute.

What Gets Blocked

  • git push and force-push variants
  • git reset --hard
  • git clean -f / git clean -fd
  • git branch -D
  • git checkout . / git restore .

Steps

1. Ask Scope

Ask the user: install for this project only (opencode.json) or all projects (~/.config/opencode/opencode.json)?

2. Edit Config

Installs
3
First Seen
May 14, 2026
git-guardrails-opencode — ecology9191/skills