commit-own-changes SKILL.md skillA
commit-own-changes from john-walks-slow/rabbit-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add john-walks-slow/rabbit-skills/commit-own-changes@git:20261006.6e3c0b4Pins git:20261006.6e3c0b4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- john-walks-slow/rabbit-skills
- Path
.apm/skills/commit-own-changes/SKILL.md- Versions recorded
- 6
- Latest version
- git:20261006.6e3c0b4, committed Oct 6, 2026
- First version recorded
- Jul 24, 2026
- Size
- 4,450 bytes
- Repository stars
- 27
- License
- none declared
基于 git-hunk 提交改动,防止带入其他无关的未提交修改。事关安全,在执行任何 `git add`,`git commit` 命令前 **必须** 使用本技能。例外:若你当前在单独 worktree 中工作,则无需使用本技能。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# commit-own-changes
基于 git-hunk 精准选择提交范围,防止带入其他无关的未提交修改。
## 依赖
本技能依赖 [git-hunk](https://github.com/wkentaro/git-hunk)(按 hunk 精选提交范围)。
安装:
```bash
pip install git-hunk
```
安装后 `git-hunk` 命令可用(`git-hunk list` / `git-hunk show <id>` / `git-hunk stage <id>`)。详见 <https://github.com/wkentaro/git-hunk>。
## 工作流程
1. **获取锁**
防止同一时间其他 Agent 进行 Git 操作:
```bash
{skill_dir}/scripts/git-lock.sh acquire <task-id> /path/to/repo # Linux/macOS:显式传仓库路径(或先 cd 进仓库)
```
```powershell
{skill_dir}\scripts\git-lock.ps1 -Action acquire -TaskId <task-id> -RepoDir <repo> # Windows
```
`<task-id>` 建议用本次任务的极简英文 summary,如 `fix-login-crash`、`add-dark-mode`。获取锁和释放锁时必须使用同一 ID。
**重要:** acquire 会自动等待直到上一个锁释放;请不要设置超时时间,耐心等待。禁止手动检查/删除锁文件。禁止跳过本步骤进行后续操作。
**重要:** 必须在目标仓库内调用(或显式传仓库路径)——脚本按调用者 cwd 解析 `.git`,从非仓库目录调用会把锁写到错误位置(2026-09-25 实战:曾静默在文件系统根创建 `/agent.lock`,导致目标仓库互斥完全失效且遗留 5 分钟死锁)。
若 acquire 执行失败(输出不包含 `acquired`),立即中止提交,向用户报告异常。
2. **列举修改状态**
确认有哪些 hunk 是需要提交的:
```powershell
git status # 确认仓库状态
git-hunk list # 全部 hunk
git-hunk list <files...> # 或只看特定文件的 hunk
```
可以使用 `show` 确认 hunk 的内容:
```powershell
git-hunk show <hunk_ids...>
```
3. **清除暂存区**
防止过去残留的暂存项干扰本次提交:
…Read the whole file at its exact version.
How to install
mdr add john-walks-slow/rabbit-skills/commit-own-changes@sha256:328177c12da0dc06The line at the top of this page pins the label git:20261006.6e3c0b4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_y3tt7xpg7xtpv7gl)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Jul 24, 2026 and Oct 6, 2026, about one every 15 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261006.6e3c0b4 latest | 2026-10-06 | 6e3c0b4 | 4,450 B | A | view · diff |
| git:20260915.c34e588 | 2026-09-15 | c34e588 | 3,992 B | A | view · diff |
| git:20260806.9b7a047 | 2026-08-06 | 9b7a047 | 3,680 B | A | view · diff |
| git:20260731.ddf6a81 | 2026-07-31 | ddf6a81 | 3,585 B | A | view · diff |
| git:20260725.231f8ad | 2026-07-25 | 231f8ad | 2,661 B | A | view · diff |
| git:20260724.eba32ae | 2026-07-24 | eba32ae | 3,585 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4450 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
john-walks-slow/rabbit-skills · 27 stars · license none declared · pushed 2026-11-02 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_y3tt7xpg7xtpv7gl GET https://markdownregistry.com/api/v1/resolve?ref=john-walks-slow/rabbit-skills/commit-own-changes GET https://markdownregistry.com/api/v1/blob/328177c12da0dc0668412de36cf72d620a2138bb776c9b4592b779da008b67f8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.