Agent skill

Code Change Safety Checkpoint

by TheGoat395 in TheGoat395/Codex-Skills

Preserve rollback before materially risky edits. An agent skill from TheGoat395/Codex-Skills.

MITAuto-check passedDevOps & Cloud

Install Code Change Safety Checkpoint

skills CLI
$ npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TheGoat395/Codex-Skills code-change-safety-checkpoint --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TheGoat395/Codex-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-change-safety-checkpoint .claude/skills/code-change-safety-checkpoint && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-change-safety-checkpoint
GitHub stars
126
Token cost
~654 tokens
SKILL.md length
353 words
Files
2
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Preserve rollback before materially risky edits. An agent skill from TheGoat395/Codex-Skills.

  • Works in 5 steps: Inspect state before editing. → Choose the rollback path. → Explain planned edits before changing… → …
  • DevOps & Cloud work in your project
  • SKILL.md covers Trigger, Workflow and Restore Guidance
  • Calls git

What it does

Code Change Safety Checkpoint is an agent skill from TheGoat395/Codex-Skills. Preserve rollback before materially risky edits.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in DevOps & Cloud. It works with Git. The repository describes itself as: Codex-first Agent Skills library for premium frontend, website, motion, accessibility, QA, and handoff workflows. The licence is MIT.

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “/code-change-safety-checkpoint”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Inspect state before editing.
  2. Choose the rollback path.
  3. Explain planned edits before changing files.
  4. Edit narrowly.
  5. Report the restore path.

What it can do on your machine

Read from SKILL.md and the folder at commit feff772. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Change Safety Checkpoint loads about 654 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 353 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~654

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TheGoat395/Codex-Skills at commit feff772, republished under its MIT licence (© TheGoat395). 353 words, ~654 tokens.

Download SKILL.mdSave it as .claude/skills/code-change-safety-checkpoint/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
code-change-safety-checkpoint
description
Preserve rollback before materially risky edits.

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.

    • Follow the current repository/worktree branch policy. Record a recoverable base commit for tracked data; a branch label alone does not preserve uncommitted or untracked files.
    • If the repo has user changes, preserve the affected hunks and untracked targets with an appropriate patch, snapshot or scoped backup when the edit could destroy them. Avoid redundant copies of already protected targets.
    • If there is no git repo or the work involves generated assets, make a timestamped local backup of the files or folders you will touch.
  3. Explain planned edits before changing files.

    • List the main files or directories you expect to edit.
    • Call out any deletion, move, or overwrite.
    • A clear task instruction authorizes routine in-scope edits regardless of its verbs. Ask only for a materially ambiguous destructive target or another genuinely missing authorization.
  4. Edit narrowly.

    • Avoid unrelated refactors.
    • Do not revert user changes unless explicitly requested.
    • Prefer additive changes when the risk is unclear.
  5. Report the restore path.

    • Branch name, backup path, or commit/checkpoint strategy.
    • Commands or steps needed to undo your work.
Show full SKILL.md (41 more words)Show less

Restore Guidance

For git-backed work, useful restore options include:

bash
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.

© TheGoat395, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/code-change-safety-checkpoint of TheGoat395/Codex-Skills.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit feff772

Compare with similar skills

Code Change Safety Checkpoint next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Change Safety Checkpoint compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Change Safety Checkpoint this skillTheGoat395/Codex-Skills126—~654Automated safety check: PassMIT
Meticulous TestFlintSH/Flare135—~1.2kAutomated safety check: PassMIT
Modern Web GuidanceJetBrains/skills3663 repos~1.4kAutomated safety check: PassApache-2.0
Doc Managerluongnv89/skills131—~3.1kAutomated safety check: PassMIT
DeployHouseofmvps/ultraship123—~4.1kAutomated safety check: PassMIT
Repo Mirror Sourcesnetdata/netdata81k—~1.2kAutomated safety check: NotesGPL-3.0

Similar skills

  • Meticulous Test

    FlintSH/Flare

    Run a Meticulous test run after implementing a frontend change, then hand off to the meticulous-review skill to classify each visual change as intended or unintended.

    135 GitHub stars~1.2k tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Modern Web Guidance

    JetBrains/skills

    Official

    Search tool for modern web development best practices. An agent skill from JetBrains/skills.

    366 GitHub starsUsed in 3 repos~1.4k tokens
    DevOps & CloudAuto-check passed
  • Doc Manager

    luongnv89/skills

    Generate or update docs to match the code, citing each claim to path:line and asking on ambiguity; runbook docs also get a check-only validation script.

    131 GitHub stars~3.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Deploy

    Houseofmvps/ultraship

    Pre-flight checks then deploy. An agent skill from Houseofmvps/ultraship.

    123 GitHub stars~4.1k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check passed
  • Repo Mirror Sources

    netdata/netdata

    Inspect Netdata-org source checkouts under NETDATAREPOSDIR, or set up and synchronize that mirror when requested.

    81k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • CI Failure Triage and Repair

    Chachamaru127/claude-code-harness

    Diagnoses failing CI pipelines and tests, deciding first whether the test or the implementation is at fault, and hands hard cases to a dedicated fixer subagent.

    3.2k GitHub starsUsed in 1 repo~1.1k tokens
    DevOps & CloudAuto-check: notes

More from TheGoat395/Codex-Skills

All 23 skills in this repo
  • Premium Visual Reference Library

    TheGoat395/Codex-Skills

    Find references, Viktor Oddy and MotionSites. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~867 tokensUpdated 29 days ago
    Auto-check passed
  • Agent Evaluation Operations

    TheGoat395/Codex-Skills

    Evaluate agent and skill behavior or routing. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~1.5k tokensUpdated 29 days ago
    Auto-check passed
  • Creativity

    TheGoat395/Codex-Skills

    Generate original ideas or escape fixation. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~1.2k tokensUpdated 29 days ago
    Auto-check passed
  • Final Client Handoff

    TheGoat395/Codex-Skills

    Prepare verified ownership and delivery notes. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~477 tokensUpdated 29 days ago
    Auto-check passed
  • Visual Regression Lab

    TheGoat395/Codex-Skills

    Compare captures; stitch lazy/animated pages. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~516 tokensUpdated 29 days ago
    Auto-check passed
  • Web Reference Research

    TheGoat395/Codex-Skills

    Analyze selected sources: Viktor or MotionSites. An agent skill from TheGoat395/Codex-Skills.

    126 GitHub stars~475 tokensUpdated 29 days ago
    Auto-check passed

Works with

Questions about Code Change Safety Checkpoint

What does Code Change Safety Checkpoint do?

Preserve rollback before materially risky edits. An agent skill from TheGoat395/Codex-Skills. Code Change Safety Checkpoint is an agent skill from TheGoat395/Codex-Skills. Preserve rollback before materially risky edits.

When should I use Code Change Safety Checkpoint?

Code Change Safety Checkpoint fits situations like: devOps & Cloud work in your project.

How do I install Code Change Safety Checkpoint in Claude Code?

Run `npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint -a claude-code`. Or copy the skill folder (skills/code-change-safety-checkpoint in TheGoat395/Codex-Skills) into .claude/skills/code-change-safety-checkpoint in your project. Claude Code loads it when a task matches its description.

How do I install Code Change Safety Checkpoint in Codex?

Run `npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint -a codex`. Or copy the skill folder (skills/code-change-safety-checkpoint in TheGoat395/Codex-Skills) into .agents/skills/code-change-safety-checkpoint in your project. Codex loads it when a task matches its description.

Can I use Code Change Safety Checkpoint in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TheGoat395/Codex-Skills --skill code-change-safety-checkpoint -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-change-safety-checkpoint, .gemini/skills/code-change-safety-checkpoint, .github/skills/code-change-safety-checkpoint and .opencode/skills/code-change-safety-checkpoint in your project.

What does Code Change Safety Checkpoint need to run?

Going by SKILL.md and its folder, Code Change Safety Checkpoint needs the command-line tools its instructions call (git).

Does Code Change Safety Checkpoint access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Change Safety Checkpoint safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Change Safety Checkpoint use?

Code Change Safety Checkpoint is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Change Safety Checkpoint use?

About 654 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Change Safety Checkpoint?

Skills that share tags, products or a category with Code Change Safety Checkpoint: Meticulous Test (FlintSH/Flare, 135 stars), Modern Web Guidance (JetBrains/skills, 366 stars), Doc Manager (luongnv89/skills, 131 stars) and Deploy (Houseofmvps/ultraship, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Change Safety Checkpoint?

TheGoat395 (a GitHub user) maintains it in TheGoat395/Codex-Skills, which has 126 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 11, 2026.

Source: TheGoat395/Codex-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.