split-to-prs SKILL.md skillA
split-to-prs from riot-org/riot is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add riot-org/riot/split-to-prs@git:20261014.9c3854aPins git:20261014.9c3854a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- riot-org/riot
- Path
crates/riot-kernel/builtin/skills/split-to-prs/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261014.9c3854a, committed Oct 14, 2026
- First version recorded
- Aug 17, 2026
- Size
- 2,510 bytes
- Repository stars
- 22
- License
- a license file GitHub does not identify
把一堆改动拆成几个各自能审的小 PR 时用。先提拆分方案、经用户确认才动 git;动手前先做不碰工作区的可恢复快照,只暂存计划内的文件。.
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
# 拆成小 PR 一堆混在一起的工作(脏工作区、一条大分支、或一个巨型 PR),拆成 几个审得动的小 PR。 `[约束]` 两条硬规则,整个流程都压着: - **方案没经用户确认前,不建分支、不提交、不推送、不开 PR。** - **不销毁用户的工作。** `reset --hard`、`clean -fdx`、删分支、 force-push 一律不做,除非用户明说。 ## 1. 看清现状 对比默认分支,把**已提交的和未提交的**都算进来: ```bash BASE=$(git rev-parse --abbrev-ref origin/HEAD 2>/dev/null) \ || BASE=$(git rev-parse --verify -q origin/main >/dev/null && echo origin/main || echo origin/master) git status --short git log --oneline "$BASE"..HEAD git diff --stat "$BASE"...HEAD ``` `origin/HEAD` 在有些克隆里没设置,所以开头带了回退。 从改动本身和对话历史里恢复意图:这堆工作实际包含几件事。 ## 2. 提方案 切分的判据,按优先级: - **一个 PR 一句话说得清**——标题写不出来的切片是切错了; - **审阅人边界**:有 `CODEOWNERS` 之类的就先看,不同 owner 的 改动别混在一个 PR 里; - 耦合紧的留在一起,别为了小而把一次接口改动和它的调用方拆开 ——那样每个 PR 单独都跑不过 CI。 默认从默认分支各切各的、互相独立;只有依赖是真实的(B 编译依赖 A 的新接口)才叠 stack,并在方案里说明合并顺序。 方案给用户看:每片一个 PR 标题,标题说不清的补一行范围说明。 **等确认。** ## 3. 执行 工作区有未提交的东西时,先做快照——`stash create` 只创建对象 不动工作区,比 `git stash` 安全: ```bash SHA=$(git stash create "pre-split") [ -n "$SHA" ] && git update-ref "refs/backup/pre-split-$(date +%s)" "$SHA" ``` 然后逐片来:从正确的基底建分支,**只暂存这一片计划内的文件** (禁 `git add -A` / `git add .`),提交、推送、开 PR。`gh` 不可用 或没登录时,推完分支把「怎么手动开 PR」告诉用户,不要卡死在这一步。 ## 4. 汇报 …
Read the whole file at its exact version.
How to install
mdr add riot-org/riot/split-to-prs@sha256:b91fd0dc886b1babThe line at the top of this page pins the label git:20261014.9c3854a, 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_ogasfjvbfxs3ke6c)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Aug 17, 2026 and Oct 14, 2026, about one every 58 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261014.9c3854a latest | 2026-10-14 | 9c3854a | 2,510 B | A | view · diff |
| git:20260817.d4dfa41 | 2026-08-17 | d4dfa41 | 2,279 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 (2510 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
riot-org/riot · 22 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_ogasfjvbfxs3ke6c GET https://markdownregistry.com/api/v1/resolve?ref=riot-org/riot/split-to-prs GET https://markdownregistry.com/api/v1/blob/b91fd0dc886b1babba4deb7e51e5e2b4a79ea80762b05e43c04b2d89f8b3a443
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.