/safety-pack:git-safety-netfrom safety-pack
Use before a large edit, refactor, rename across many files, bulk change, multi-file change or risky experiment in a git repository, especially when uncommitted edits exist, or when the user says "don't break anything", "I'm scared of losing my work" or "undo that". Sets a checkpoint so any change can be undone, and keeps work off the main branch.
Ships in safety-pack. 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.
None: SKILL.md is the whole skill.
Make the work undoable before you start. Use git. Add no other tool.
git status. If the working tree has changes the user did not ask you to touch, tell them. Do not mix them into your work.git branch --show-current. If it is the default branch (main or master), create a branch first: git switch -c <type>/<short-name>.git tag checkpoint/<short-name>. A tag changes nothing in the history and costs nothing.git reset --hard, git checkout -- ., git clean -fd or git push --force unless the user asks. They destroy work that has no copy.| Goal | Command |
|---|---|
| See what changed since the checkpoint | git diff checkpoint/<short-name> |
| Undo one commit, keep history | git revert <hash> |
| Throw away the branch and go back | git switch main, then git branch -D <branch> (confirm with the user first) |
| Recover a lost commit | git reflog, then git switch -c rescue <hash> |
Before any command that deletes work, say what it deletes and ask.
For the wider plan, use the rollback-plan skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub iah-uch/clanker-pack --plugin safety-pack6 skills in this plugin
/db-migration-safeUse when changing a database schema or data - adding, renaming or dropping a table or column, changing a column type, writing a migration file, running a backfill, or resetting a database. Makes the change safe: backup first, small reversible steps, a dry run, and a way back./deploy-recipesUse when the user wants to deploy, publish, host or put an app online - to Vercel, Netlify, Cloudflare, Fly.io, Railway, Render, a VPS or any other host. Gives a provider-neutral pre-deploy gate, environment-variable rules and a post-deploy check. Uses the host's current docs for provider commands./explain-the-diffUse when the user asks "what did you change", "what did you just do", "explain this diff", "is this safe to accept" or "what could break", or when a change touches many files and the user does not read code. Explains the real diff in plain language, with the risk of each change./rollback-planUse before a risky or hard-to-undo change - a deploy, a migration, a dependency upgrade, a large refactor, a config or environment change - or when the user asks "how do I undo this", "what if it breaks" or "is there a way back". Writes a short rollback plan and checks that the way back works./ship-checklistUse before you say a feature is done, before a commit or push, before a deploy, or when the user says "ship it", "is this ready", "can I publish this" or "check my work". Checks the diff for leaked secrets, missing auth, unvalidated input, unsafe dependencies and missing tests. Reports each result in plain language.