code-change-safety-checkpoint
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "code-change-safety-checkpoint":https://skillpi.com/zh/skills/deepskill-0a956650336d23b748154357f37b16fa3ac36620142a1c22e0fd06b13aaacd69。安装前核对上游来源和版本:https://github.com/TheGoat395/Codex-Skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在进行有风险的代码或网站修改前,保留回滚路径。适用于可能涉及多文件修改、删除文件、覆盖生成输出、更改用户数据流程、重构共享行为或修改部署配置等有丢失有效代码风险的场景。
介绍来源: third_party · TheGoat395 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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.
版本历史
-
v0.2.0
GitHub ↗
原版更新说明
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 ↗
原版更新说明
## 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 ↗
原版更新说明
## 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 ↗
原版更新说明
# 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.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决开发者常见痛点:防止高风险代码修改导致数据丢失
- 覆盖多种实际开发场景,实用性强
- 适用于各类代码仓库和项目维护
亮点
- 触发条件详细具体,涵盖多种高风险场景
- 边界清晰,不易误触或漏触
- 明确区分应触发和不触发的情况
亮点
- 结构清晰完整,包含触发条件、工作流程、恢复指导
- 分步骤详细说明执行流程
- 提供具体命令示例和最佳实践
亮点
- 工具命令明确且标准
- 覆盖主要异常情况处理
- 强调安全操作原则,避免不必要的破坏性操作
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
覆盖或清理工作区
可能覆盖未提交文件或清除未跟踪文件。先查看 git status,提交或备份改动,确认目标文件后再操作。
主文档提及 · 第 59 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。