Code change safety checkpoint

From TheGoat395/Codex-Skills · View interactive version

Code change safety checkpoint is an AI agent skill from the GitHub repository TheGoat395/Codex-Skills. Preserve rollback before materially risky edits.

How to use this skill

Skill file

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:

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.
  1. Choose the rollback path.
  1. Explain planned edits before changing files.
  1. Edit narrowly.
  1. Report the restore path.

Restore Guidance

For git-backed work, useful restore options include:

git status --short
git diff
git restore path/to/file
git switch main

Use destructive restore commands only when explicitly requested. Never run git reset --hard as a casual cleanup step.

For local backups, explain the backup folder and which files can be copied back.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.