skills/golem-powers/git-guardian/SKILL.md
Safety gate for destructive git operations. Invoke before force-push, reset --hard, branch -D/delete, checkout ., restore ., clean -f, or any commit/push while on main/master. NOT for: normal git add, commit on feature branches, log, diff, status, stash.
npx skillsauth add etanhey/golems git-guardianInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Prevents git footguns by checking blast radius, uncommitted state, and branch safety before any destructive operation.
Invoke this skill when about to run ANY of these:
| Operation | Risk |
|-----------|------|
| git push --force / git push -f | Overwrites upstream history |
| git reset --hard | Destroys local changes permanently |
| git branch -D / git branch -d | May lose unmerged commits |
| git checkout . / git restore . | Destroys uncommitted local changes |
| git clean -f / git clean -fd | Permanently deletes untracked files |
| git rebase on a shared branch | Rewrites shared history |
| Commit or push while on main/master | Pollutes main branch history |
| --no-verify on any command | Bypasses safety hooks |
For every destructive operation, run these checks in order:
git branch --show-current
main or master: STOP. Do not proceed with force-push, reset --hard, or unprotected commits. Redirect to a feature branch.git pull --rebase and git merge are safe on main.git status --short
git stash list
Before executing, show:
⚠️ Git Guardian — [OPERATION] on [BRANCH]
Commits to be lost: [N commits, with short hashes + messages]
Files to be lost: [list of modified/untracked files]
Branch status: [merged | UNMERGED — N commits only here]
Upstream: [N commits ahead/behind origin/branch]
Proceed? [y/N]
Only proceed after explicit user confirmation — or if user explicitly says "yes, proceed", "force it", "I know".
--force / -f)main/master unconditionally.git log origin/<branch>..HEAD --oneline to show what will be overwritten.--force-with-lease as a workaround to silently bypass this check.reset --hard)git log HEAD~<N>..HEAD --oneline to list commits being dropped.git status --short to show uncommitted work that will be lost.-D / -d)git branch --merged to check if the branch is merged.git reflog.". or path)-f)git clean -n (dry run) to list files that would be deleted..env* or secret-looking files prominently.main/mastermain or master.git checkout -b feat/<name>"--no-verify--no-verify.main/master under any circumstances.--no-verify to bypass hooks./pr-loop step 5 — git-guardian's branch check is a prerequisite to commit; pr-loop handles CodeRabbit review./pr-loop — calls git-guardian before any force-push during rebase/fixup cycle.git worktree — worktrees always operate on non-main branches; git-guardian still applies for reset/clean inside worktrees.development
Create, edit, and verify golem-powers skills using the standard SKILL.md structure, workflow files, adapters, templates, and eval fixtures. Use for new skills, structural edits, workflows/adapters, and pre-deploy validation. NOT for invoking existing skills, superpowers skills, or skill-creator agent workflows.
testing
Extract structured knowledge from any video source — YouTube URLs or local screen recordings. YouTube → gems workflow (yt-dlp transcript → keyword hotspots → frame extract → brain_digest → structured gems). Screen recordings → QA workflow (reuses /qa-video stalker pipeline). Use when user shares a YouTube link wanting deep extraction with frames, shares a .mov/.mp4 for QA processing, says "extract from video", "video gems", "process this recording", or mentions gem extraction from video content.
testing
Use when running or reviewing any recurring monitor loop for merge queues, worker queues, collab tails, or agent completion. Enforces drive-to-completion ticks: every tick must query live state with `!`, classify whether real progress happened, and then dispatch, verify-and-decrement, or escalate-park. Triggers on: monitor loop, /loop, recurring tick, keep monitoring, silent autonomous, merge gate, blocked review, no-progress loop.
tools
MeHayom freelance client management — daily updates, decision tracking, time logging. Use when drafting Yuval updates, logging scope changes, tracking hours, or any MeHayom client communication. Triggers: 'draft Yuval update', 'client update', 'daily update', 'log decision', 'track time', 'mehayom'.