cs-checkpoint-version
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "cs-checkpoint-version":https://skillpi.com/zh/skills/deepskill-d6a0e815c03eb30032ddc53462c756b64c122e8971cf81065c6dfefce08068e2。安装前核对上游来源和版本:https://github.com/ChenShuo2004/cs-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于在用户要求保存当前仓库版本、创建回退点或恢复之前检查点时的操作指南。适用于在风险编辑前保留已暂存/未暂存/未跟踪文件、检查点脏工作树更改,并在需要时方便回退或恢复检查点的场景。触发词示例包括“$cs-checkpoint-version”、“保存当前版本”、“回退点”、“checkpoint”、“rollback”、“restore checkpoint”。
介绍来源: third_party · ChenShuo2004 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- <!-- CS Skills · 陈硕 | portable skill entry | https://github.com/ChenShuo2004/cs-skills -->
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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"版本历史
-
v0.7.0
GitHub ↗
原版更新说明
本地与 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 ↗
原版更新说明
# 更新日志 ## 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。
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决 Git 工作流中风险操作前的状态保存刚需
- 面向开发者群体的通用实用工具
- 功能定位清晰,非测试或壳工具
亮点
- 触发词覆盖中英文关键表述
- 边界清晰,无歧义风险
- 包含典型使用场景关键词
亮点
- Phase/步骤划分清晰
- 包含端到端示例和脚本调用
- frontmatter 完整规范
亮点
- 参数定义清晰明确
- 覆盖主要异常场景处理
- 不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
读取本地文件
限定到你选择的文件或项目目录;避免读取无关的个人资料、密钥和配置文件。
主文档提及 · 第 63 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 40, 69, 111 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。