code-change-safety-checkpoint
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "code-change-safety-checkpoint" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0a956650336d23b748154357f37b16fa3ac36620142a1c22e0fd06b13aaacd69. Verify the upstream source and version against https://github.com/TheGoat395/Codex-Skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Preserve rollback paths before risky code or website changes. Applicable when modifications may involve multiple files, file deletions, overwriting generated outputs, changing user data flows, refactoring shared behavior, or altering deployment configuration where valid code might be lost.
Introduction source: third_party · TheGoat395 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Preserve rollback before materially risky edits.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
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
-
Inspect state before editing.
- Run
git status --short --branchwhen inside a git repo. - Identify changed files that already exist before your work.
- Treat uncommitted user changes as protected.
- Run
-
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.
-
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.
-
Edit narrowly.
- Avoid unrelated refactors.
- Do not revert user changes unless explicitly requested.
- Prefer additive changes when the risk is unclear.
-
Report the restore path.
- Branch name, backup path, or commit/checkpoint strategy.
- Commands or steps needed to undo your work.
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.
Version history
-
v0.2.0
GitHub ↗
Original release notes
Added the public agent-quality collection and expanded the default public core from 70 to 80 skills. Highlights: - Critical and logical thinking, creativity, deep research, and evidence reconciliation - Systematic debugging and fresh verification before completion claims - Bounded agent architecture, memory provenance, and evaluation workflows - Public-neutral packaging with private and machine-specific references removed - Updated catalogs, adapters, release checks, and generated inventories
-
v0.1.2
GitHub ↗
Original release notes
## Codex Premium Website Skills v0.1.2 - Added `COMPATIBILITY.md` with Codex, Claude Code, Cursor, Gemini CLI, and generic `SKILL.md` support levels. - Added `CATALOG.md` as a cleaner audience-facing map of collections and high-value skills. - Added `adapters/` documentation for Claude Code, Cursor project rules, and Gemini CLI context files. - Added Cursor and Gemini CLI adapter files for project-level use. - Updated README, evidence, docs, and usage-signal guidance for broader agent ecosystem adoption.
-
v0.1.1
GitHub ↗
Original release notes
## Codex Premium Website Skills v0.1.1 - Added `EVIDENCE.md` to summarize proof-of-output, workflow estimates, benchmark readiness, and evidence status. - Added maintainer workflow, usage-signal, and measured benchmark template documentation. - Improved install documentation for clone-based and release-archive usage. - Corrected stale benchmark skill references. - Refined public attribution language in `design-motion-principles`. - Added repository hygiene for release artifacts and GitHub language classification.
-
v0.1.0
GitHub ↗
Original release notes
# Changelog All notable changes to Codex Premium Website Skills are documented here. ## [0.1.0] - 2026-07-02 - Initial public release of the curated 70-skill public core. - Added eight installable collections for design direction, frontend implementation, QA, motion, content, and maintainer safety workflows. - Added the local installer with dry-run, selected-collection, and replace-with-backup behavior. - Added the premium website showcase gallery with nine local demo previews. - Added public quality, security, benchmark, contribution, and community-health documentation. - Added automated skill validation through GitHub Actions.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决开发者常见痛点:防止高风险代码修改导致数据丢失
- 覆盖多种实际开发场景,实用性强
- 适用于各类代码仓库和项目维护
Highlights
- 触发条件详细具体,涵盖多种高风险场景
- 边界清晰,不易误触或漏触
- 明确区分应触发和不触发的情况
Highlights
- 结构清晰完整,包含触发条件、工作流程、恢复指导
- 分步骤详细说明执行流程
- 提供具体命令示例和最佳实践
Highlights
- 工具命令明确且标准
- 覆盖主要异常情况处理
- 强调安全操作原则,避免不必要的破坏性操作
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Overwrite or clean a working tree
May replace uncommitted files or remove untracked files. Check git status, commit or back up changes, and confirm target files first.
Mentioned in main document · lines 59
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.