cs-checkpoint-version
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 "cs-checkpoint-version" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d6a0e815c03eb30032ddc53462c756b64c122e8971cf81065c6dfefce08068e2. Verify the upstream source and version against https://github.com/ChenShuo2004/cs-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
Guidance for saving the current repository version, creating rollback points, or restoring previous checkpoints when requested by the user. Intended for preserving staged/unstaged/untracked files before risky edits, inspecting dirty working-tree changes, and enabling convenient rollback or checkpoint restoration. Trigger phrases include “$cs-checkpoint-version”, “save current version”, “rollback point”, “checkpoint”, “rollback”, “restore checkpoint”.
Introduction source: third_party · ChenShuo2004 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- `scripts/create-checkpoint.ps1` writes: `metadata.json`: branch, HEAD, timestamp, counts, and restore hint `status.txt`: branch-aware short status `status-porcelain.txt`: exact status entries with untracked files expanded `staged.patch`: binary-safe staged diff `unstaged.patch`: binary-safe unstaged diff `untracked-files.txt`: untracked non-ignored file list `untracked.zip`: untracked file archive when untracked files exist `scripts/restore-checkpoint.ps1` resets to the checkpoint HEAD, reapplies staged and unstaged patches, restores untracked files, and creates a `pre-restore` checkpoint when the current worktree is not clean.
- Testing
- Not tested
Browse files
Frontmatter
name: cs-checkpoint-version
description: |
Use when the user asks to save the current repository version, create a rollback point, checkpoint dirty worktree changes, preserve staged/unstaged/untracked files before risky edits, or restore a prior checkpoint. Trigger for "$cs-checkpoint-version", "保存当前版本", "方便回退", "回退点", "checkpoint", "rollback", "restore checkpoint", or similar wording.<!-- CS Skills · 陈硕 | portable skill entry | https://github.com/ChenShuo2004/cs-skills -->
Checkpoint Version
Purpose
Use this skill to create a local, file-based rollback point for one Git repository.
The default goal is safety: preserve the current branch, HEAD, staged diff, unstaged diff, and untracked files without creating a commit or changing the branch.
Rules
- Work in one Git repository root. Confirm with
git rev-parse --show-toplevel. - Create a checkpoint when requested or when this change needs a rollback artifact; do not snapshot every routine edit. Reuse a verified checkpoint only if HEAD, staged/unstaged diffs and untracked inputs have not changed.
- Default to a safe snapshot under
.codex-checkpoints/; do not commit unless the user explicitly asks for a Git checkpoint commit. - Include staged, unstaged, and untracked non-ignored files. Do not include ignored files such as dependencies, builds, caches, or secrets.
- Never restore a checkpoint unless the user explicitly asks to roll back or restore.
- Before restore, preserve the current worktree with a
pre-restorecheckpoint.
Save Workflow
- Inspect the repository:
git rev-parse --show-toplevel
git status --short --branch
-
Pick a short slug from the task, such as
before-refactor,before-release, orcurrent-version. -
Run the bundled script from this skill:
powershell -NoProfile -ExecutionPolicy Bypass -File "<skill-root>\scripts\create-checkpoint.ps1" -Repo "<repo-root>" -Slug "current-version"
- Report:
- checkpoint directory
- branch and HEAD
- whether staged, unstaged, and untracked files were captured
- restore command
Restore Workflow
Use this only after the user explicitly asks to restore a checkpoint.
- Inspect available checkpoints:
Get-ChildItem -Directory "<repo-root>\.codex-checkpoints" | Sort-Object Name -Descending
- Read the checkpoint metadata:
Get-Content "<checkpoint-path>\metadata.json" -Raw
- Restore with the bundled script. The restore request supplies authorization; do not ask again for the same checkpoint. Still preserve pre-restore state and respect the separate CleanUntracked boundary:
powershell -NoProfile -ExecutionPolicy Bypass -File "<skill-root>\scripts\restore-checkpoint.ps1" -Repo "<repo-root>" -Checkpoint "<checkpoint-path>" -Force
Add -CleanUntracked only when the user wants an exact rollback that removes untracked files created after the checkpoint. The restore script excludes .codex-checkpoints/ from git clean.
- Verify after restore:
git status --short --branch
git diff --cached --stat
git diff --stat
Script Outputs
scripts/create-checkpoint.ps1 writes:
metadata.json: branch, HEAD, timestamp, counts, and restore hintstatus.txt: branch-aware short statusstatus-porcelain.txt: exact status entries with untracked files expandedstaged.patch: binary-safe staged diffunstaged.patch: binary-safe unstaged diffuntracked-files.txt: untracked non-ignored file listuntracked.zip: untracked file archive when untracked files exist
scripts/restore-checkpoint.ps1 resets to the checkpoint HEAD, reapplies staged and unstaged patches, restores untracked files, and creates a pre-restore checkpoint when the current worktree is not clean.
Common Mistakes
| Mistake | Correct behavior |
|---|---|
| Treating checkpoint as a commit | Use file snapshots by default; commit only when requested. |
Saving only git diff |
Also capture staged diff and untracked files. |
| Restoring without preserving current state | Let the restore script create pre-restore first. |
| Including ignored outputs | Keep dependencies, build folders, caches, logs, and secrets out. |
| Running restore for a vague request | Ask which checkpoint to restore before changing files. |
Verification
Run the bundled tests after editing the scripts:
powershell -NoProfile -ExecutionPolicy Bypass -File "<skill-root>\tests\cs-checkpoint-version.tests.ps1"Version history
-
v0.7.0
GitHub ↗
Original release notes
本地与 GitHub 默认分支的技能集合此前不一致,旧 Release 也没有完整安装附件。v0.7.0 统一为 22 个任务技能与 1 个执行辅助技能,并提供可直接解压安装的 ZIP。 - README 用 cs-run、cs-writer、cs-clean-code 完成产品介绍、技能选择、调用示例与安装命令核对,中英文入口保持一致。 - 新增跨平台 Node 安装器:内容相同跳过;显式更新先备份,再逐文件 SHA-256 核对。默认安装任务技能,辅助项可按名称安装。 - 保留远端原有网页、代码动画与固定系列视频能力,补齐本地 KAI 封面、口播、分镜、数字人与音频对齐工作流。 - 模型清单、固定版本与官方哈希随包提供;先检查共用缓存,只补缺失文件,权重不随包分发。 本地 23 个已安装入口、205 个技能文件核对一致。统一回归通过;ZIP 解压后默认安装 22 个任务技能、203 个文件,第二次安装全部跳过。完整包附 INSTALL-MANIFEST.json,包文件校验见 SHA256SUMS.txt。 新会话加载与媒体人工验收需单独检查。当前凭据缺少 workflow 权限,新增 CI 工作流留在本地;发布内容已经本地回归验证。 解压后进入 cs-skills-v0.7.0,运行: ```sh node scripts/install-skills.mjs --update node scripts/install-skills.mjs --check ```
-
v0.1.0
GitHub ↗
Original release notes
# 更新日志 ## v0.1.0 · 2026-08-05 CS Skills 的首个公开版本,面向使用 Codex 构建产品、自动化工作流和 SaaS 的独立开发者。 ### 包含内容 - 新增 `cs-run` 主入口,用一句话澄清目标并路由到合适的工作流。 - 整理产品设计、前端开发、代码质量、内容创作、深度调研、视频制作和交付收尾等技能。 - 增加可移植的作者信息、源码地址和兼容性元数据,方便跨 Agent 复用。 - 优化 README、技能展示名和安装指引。 ### 安装 ```text 帮我安装这个 skill:https://github.com/ChenShuo2004/cs-skills/tree/main/cs-run ``` 推荐将整个仓库作为 skill 集合安装,并根据需要启用具体下游 skill。
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 Git 工作流中风险操作前的状态保存刚需
- 面向开发者群体的通用实用工具
- 功能定位清晰,非测试或壳工具
Highlights
- 触发词覆盖中英文关键表述
- 边界清晰,无歧义风险
- 包含典型使用场景关键词
Highlights
- Phase/步骤划分清晰
- 包含端到端示例和脚本调用
- frontmatter 完整规范
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.
-
Read local files
Limit access to selected files or the project directory. Avoid unrelated private records, secrets and configuration files.
Mentioned in main document · lines 63 -
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 40, 69, 111
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
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.