Agent skill · Code Review & Quality

code-change-safety-checkpoint

Preserve a rollback path before risky code or website edits. Use when changes may touch many files, delete files, overwrite generated output, alter user work, refactor shared behavior, modify deployment config, or otherwise risk losing working code.

TheGoat395github.com/TheGoat395GitHub ↗
claude-codecodexcursorMIT
Install
npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/code-change-safety-checkpoint/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 115
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Code Change Safety Checkpoint Use this skill before risky edits. The goal is simple: make sure there is a credible way back before changing files. ## Trigger Use when: - the user asks for website, app, repo, or code changes with nontrivial blast radius - files may be deleted, moved, regenerated, overwritten, or mass-edited - the repo has uncommitted changes - the work touches shared behavior, routing, deployment config, generated assets, or build tooling - the user specifically asks for backup, checkpoint, rollback protection, or protection from accidental destructive changes Do not run heavy backup steps for tiny read-only analysis or single-line edits unless the user asks. ## Workflow 1. Inspect state before editing. - Run `git status --short --branch` when inside a git repo. - Identify changed files that already exist before your work. - Treat uncommitted user changes as protected. 2. Choose the rollback path. - If the repo is clean, create a new branch for substantial work. - If the repo has user changes, avoid overwriting them and describe the risk. - If there is no git repo or the work involves generated assets, make a timestamped local backup of the files or folders you wi

What's inside
Steps it walks through
  1. Trigger
  2. Workflow
  3. Restore Guidance
Commands it runs
git status --short
git diff
git restore path/to/file
git switch main
More from Codex-Skills
All skills →
About this skill
What does the code-change-safety-checkpoint skill do?

Preserve a rollback path before risky code or website edits. Use when changes may touch many files, delete files, overwrite generated output, alter user work, refactor shared behavior, modify deployment config, or otherwise risk losing working code.

How do I install it?

Run `npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From TheGoat395/Codex-Skills, a repository with 115 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going