code-change-undo-revert
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-undo-revert" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bdfde84538397f964c83ef027129093eacefa0aac0e85acada10291c295ad454. 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
Safely undo or revert code changes. Used when a user requests undoing, reverting, rolling back, restoring, recovering, returning, or removing recent changes, or when comparing current work to previous checkpoints to restore a prior state.
Introduction source: third_party · TheGoat395 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Restore requested code changes or checkpoints.
- 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-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
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
- 触发词覆盖完整:undo/revert/roll back/restore/recover/go back/compare checkpoint
- 边界清晰:强调需结合上下文判断 rollback intent
- 避免误触:要求 surrounding request 建立 rollback intent
Highlights
- 5步工作流清晰完整:Inspect→Choose→Avoid→Apply→Verify
- 包含具体命令示例和最佳实践
- frontmatter 完整,文档结构规范
Areas to improve
-
description 写错位置 Reported severity: Minor
顶层 frontmatter 中 description 为空,实际描述内容在 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter 中,保持规范统一
Highlights
- 使用标准 git 命令,参数正确
- 覆盖主要异常场景:用户/助手变更混合处理
- 强调避免破坏性命令,提供安全确认机制
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 37
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.