code-change-undo-revert
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "code-change-undo-revert":https://skillpi.com/zh/skills/deepskill-bdfde84538397f964c83ef027129093eacefa0aac0e85acada10291c295ad454。安装前核对上游来源和版本:https://github.com/TheGoat395/Codex-Skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
安全地撤销或还原代码更改。用于在用户请求撤销、还原、回滚、恢复、找回、返回或移除最近更改时,或当需要将当前工作与之前的检查点进行比较以恢复先前状态时使用。
介绍来源: third_party · TheGoat395 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: code-change-undo-revert
description: "Restore requested code changes or checkpoints."Code Change Undo And Revert
Use this skill when the user wants to go back safely. The job is to identify what changed, preserve user work, and choose the least destructive undo path.
Trigger
Use these phrases only when the surrounding request establishes code/repository rollback intent:
- undo
- revert
- roll back
- restore
- recover
- go back to before
- remove your changes
- bring back deleted code
- compare against the checkpoint
Workflow
-
Inspect the current state.
- Run
git status --short --branchwhen in a git repo. - Review changed files before reverting anything.
- Identify whether changes are yours, the user's, generated output, or mixed.
- Run
-
Choose the safest target.
- If the user wants only your latest edits undone, revert only those files or hunks.
- If the user wants a branch or commit reverted, inspect the commit range first.
- If a local backup exists, compare backup files before copying anything back.
-
Avoid broad destructive commands.
- Do not run
git reset --hard,git clean -fd, or branch deletion unless explicitly authorized for the resolved scope. Do not seek a second confirmation for an already precise authorization. - Do not remove untracked files until you know they are safe to delete.
- Do not overwrite user edits mixed into a file unless the user approves.
- Do not run
-
Apply the revert.
- Use
git restorefor the explicitly selected working-tree/index state; inspect its source first. Usegit revert <commit>to reverse a committed change while preserving history when that is the requested operation. - Prefer patch-level edits when user and assistant changes are mixed.
- Prefer copying from a timestamped backup only for files known to belong to the requested rollback.
- Use
-
Verify and report.
- Run relevant tests, builds, or diff checks when possible.
- Summarize what was restored, what remains changed, and any files intentionally left alone.
User Communication
Be explicit:
- what checkpoint or commit you are reverting to
- which files will change
- which files contain user changes and are being preserved
- which commands were run
- how to inspect the result
版本历史
-
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 实验室的评测报告。
亮点
- 解决开发者高频刚需场景:代码变更安全撤销与还原
- 明确区分用户与助手变更,避免误操作
- 提供多种回滚路径选择,适配不同场景
亮点
- 触发词覆盖完整:undo/revert/roll back/restore/recover/go back/compare checkpoint
- 边界清晰:强调需结合上下文判断 rollback intent
- 避免误触:要求 surrounding request 建立 rollback intent
亮点
- 5步工作流清晰完整:Inspect→Choose→Avoid→Apply→Verify
- 包含具体命令示例和最佳实践
- frontmatter 完整,文档结构规范
待提升项
-
description 写错位置 原报告严重程度:轻微
顶层 frontmatter 中 description 为空,实际描述内容在 skill_body 内部
改进建议:将 description 内容移至顶层 frontmatter 中,保持规范统一
亮点
- 使用标准 git 命令,参数正确
- 覆盖主要异常场景:用户/助手变更混合处理
- 强调避免破坏性命令,提供安全确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
覆盖或清理工作区
可能覆盖未提交文件或清除未跟踪文件。先查看 git status,提交或备份改动,确认目标文件后再操作。
主文档提及 · 第 37 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。