/engineering:git-safetyfrom gener8v engineering workflow
Approval gate for git commands that destroy work or skip checks: force-push, --no-verify, signing bypass, reset --hard, clean -f, discarding uncommitted edits, branch or tag deletion, rewriting pushed commits and push --mirror. Each one needs the user's explicit approval at that moment; an earlier approval never carries over. Also covers a secrets check before a commit and what to do when a secret is already committed. Use before any of these commands, or when asked to 'force push', 'skip the hooks', 'throw away my changes' or 'delete that branch'. Not for normal branching (git-branching) or the PR flow (github-pr-merge).
Ships in gener8v engineering workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Some git commands destroy work that git cannot always give back, or skip the checks that a team relies on. Do not run them without approval.
Before you run a gated command, get approval that meets all of these conditions:
These are not approval:
When the user approves a list, the approval covers that exact list only.
Show four things, then stop and wait:
Command: git push --force-with-lease origin feat/42-login
Destroys: the 2 commits on origin/feat/42-login that are not on your local branch
Recovery: only from someone else's clone, or the GitHub PR's commit list
Safer: push a new commit instead
| Command | What it can destroy | Try this first |
|---|---|---|
git push --force, -f, --force-with-lease, +<ref> | Commits on the remote that other people have | A new commit, or git revert |
--no-verify / -n on commit or push; HUSKY=0; changing core.hooksPath | The checks that the hooks run | Fix the cause of the hook failure |
--no-gpg-sign, -c commit.gpgsign=false | The signature requirement | Fix the signing setup |
git reset --hard | Uncommitted edits; commits that nothing else points to | git stash push -u, or git reset --keep |
git clean -f, -fd, -fdx | Untracked files. There is no undo. | git clean -n to list them first |
git checkout -- <path>, git restore <path>, git stash drop, git stash clear | Uncommitted edits | git stash push -u |
git branch -d / -D, git push origin --delete <branch>, git push origin :<branch> | A branch, and on the remote, other people's access to it | Leave it; ask the owner |
git tag -d, git push origin --delete <tag>, moving a tag | A release reference that builds and users rely on | Make a new tag |
git commit --amend, git rebase, git filter-repo, git reset on commits that are already pushed | History that others pulled | A new commit, or git revert |
git push --mirror | Every ref on the remote that is not local | Push the specific branch |
gh pr merge --admin | Branch protection on the base branch | Get the required reviews and checks |
Amending or rebasing commits that you have not pushed is not gated. Check with git status -sb or git log origin/<branch>..HEAD first.
If the user asks for one of these, explain the effect. Ask them to run it themselves if they still want it.
Most "lost" commits are still in the reflog for some time:
git reflog -n 30
git branch rescue/<slug> <sha>
Tell the user before you try a recovery. Do not run more destructive commands to "clean up" first.
Before a commit that touches configuration, environment files, keys or credentials, follow resources/secrets-check.md. That file also says what to do when a secret is already committed or pushed.
engineering:git-branching and engineering:github-pr-merge send risky steps to this skill.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gener8v/gener8v.claude-skills.engineering --plugin engineeringOther plugins' skills for the same job
11 skills in this plugin
/development-commandsFind and run a project's test, lint, type-check, build and dev-server commands, read the results correctly, and seed a throwaway database when UI work needs realistic data. Never seeds the project's real or default database. Use before 'run the tests', 'lint this', 'does it build', 'start the app so I can see it', 'seed some demo data', and before you claim that a change works. Not for deployment or CI pipeline design; use the project's own deploy tooling for those./documentation-bootstrapCreate or top up a project's documentation set: list what exists, let the user choose which document types to add, collect one shared fact sheet from the code, write the documents (in parallel when there are several), then check them against each other and against the code. Use when asked to 'bootstrap the docs', 'start the documentation', 'we have no README or ARCHITECTURE', or 'fill in the missing docs'. Not for the per-commit update of existing documents (documentation-sync), and not for gener8v pipeline documents (gener8v:brownfield and gener8v:planning make those)./documentation-syncBefore a commit, find every document that describes what the change touched and update it in the same commit, or confirm in one line that no document needs a change. Catches stale text, missing documentation and facts kept in two places. Use before any commit or PR, and when asked 'are the docs up to date', 'update the docs for this change' or 'did I miss a README change'. Not for creating a documentation set or filling large gaps (documentation-bootstrap), and not for gener8v pipeline documents under .gener8v/, which the pipeline skills own.