About comet-safe-delivery
comet-safe-delivery is a skill for safely preparing and carrying out Git delivery after explicit user authorization. It limits staging to confirmed paths, checks staged changes, and verifies commit and push outcomes; it never publishes to npm.
Key features
- 01Require explicit authorization for Git delivery
- 02Check branch, upstream, worktrees, and target paths
- 03Stage only confirmed paths
- 04Review staged changes and run pre-commit hooks
- 05Verify commit, push, and remote state
Use cases
- 01Preparing a confirmed change for commit
- 02Delivering changes from a mixed working tree
- 03Checking repository and remote status after a push
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ rpamis/ comet --skill comet-safe-deliveryAfter installing, type/comet-safe-deliveryin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEComet 安全交付
先读取 ../comet-github/references/maintainer-contract.md。只有用户明确授权后才执行 Git 交付动作;本 Skill 永远不会发布到 npm。
交付前检查
- 记录当前分支、upstream、
git status --short --branch和git worktree list --porcelain。 - 检查 diff,确定准确的目标路径。如果与无关改动重叠,先确认范围。
- 确认目标分支和 remote,不要静默切换分支或改变交付目标。
- 涉及子模块时,先确认子模块自己的分支/状态;得到授权交付时,先提交子模块,再更新父仓库 gitlink。
暂存与验证
- 只暂存明确的目标路径;混合工作区中不要使用宽泛的暂存命令。
- 检查
git diff --cached --name-status、git diff --cached --stat和git diff --cached --check。 - 让仓库 pre-commit hook 正常运行。如果 hook 修改了暂存内容,重新检查暂存文件名和 diff。
- 使用带类型前缀的提交信息,例如
fix: ...、docs: ...或chore: ...。
交付
只提交已确认的暂存范围,只推送用户明确指定的分支和 remote。完成后验证本地状态、commit SHA、upstream 关系和远端分支 SHA。分别报告 commit、push 和线上 CI 状态。
除非另行要求,不创建 PR、不合并远端分支、不删除分支、不移除 worktree、不改写历史。删除 worktree 或分支前,确认关联关系、准确目标和可恢复性;不得强制删除宽泛或未解析的路径。
Comments
Markdown supported