smart-rebase SKILL.md skillA
smart-rebase from sd0xdev/sd0x-harness is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add sd0xdev/sd0x-harness/smart-rebase@git:20260923.b735e49Pins git:20260923.b735e49 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- sd0xdev/sd0x-harness
- Path
skills/smart-rebase/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260923.b735e49, committed Sep 23, 2026
- First version recorded
- Mar 5, 2026
- Size
- 37,393 bytes
- Repository stars
- 194
- License
- MIT
Smart partial rebase for squash-merge repositories. Auto-detect which commits to keep/drop when base branch was squash-merged into target. Use when: user says 'rebase', 'partial rebase', 'base already merged', 'smart rebase', or /smart-rebase. Not for: simple git rebase (the developer runs it — no skill executes rebase for them), merge conflict resolution (use /merge-prep), branch switching (the developer runs git checkout). Output: rebase plan table + a shell-quoted git rebase --onto command…
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
# Smart Rebase — Partial Rebase for Squash-Merge Repos
Analyze branch history → identify squash-merged commits → generate precise `git rebase --onto` command.
## When NOT to Use
- Simple `git rebase` without squash-merge complexity — **the developer runs it**; no skill runs
`rebase` for them, this one included, and the one credential that reaches it is the user's own
message naming that execution (§ Permissions). "Use git directly" is an instruction to the human,
and this list is read by the dispatcher before § Permissions loads, so it says so here
- Merge conflict resolution (use `/merge-prep`)
- Branch management or switching — the developer runs the git command
- Cherry-picking specific commits (use `git cherry-pick`)
## Core Problem
In squash-merge repositories, when a feature branch is based on another branch that was already squash-merged:
```
main: A ─── S (squash merge of B1+B2+B3) ─── ...
↑
feature: A ─ B1 ─ B2 ─ B3 ─ F1 ─ F2 ─ F3
↑ drop (in S) ↑ keep (unique)
```
Need: `git rebase --onto main B3 feature` to keep only F1-F3.
## Permissions
…Read the whole file at its exact version.
How to install
mdr add sd0xdev/sd0x-harness/smart-rebase@sha256:97a58dae1219bd52The line at the top of this page pins the label git:20260923.b735e49, 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_iaqzck4ilcnpghk4)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Mar 5, 2026 and Sep 23, 2026, about one every 50 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260923.b735e49 latest | 2026-09-23 | b735e49 | 37,393 B | A | view · diff |
| git:20260923.262d614 | 2026-09-23 | 262d614 | 36,812 B | A | view · diff |
| git:20260822.2d4e39b | 2026-08-22 | 2d4e39b | 36,068 B | A | view · diff |
| git:20260319.7b83b52 | 2026-03-19 | 7b83b52 | 6,352 B | A | view · diff |
| git:20260305.485687d | 2026-03-05 | 485687d | 6,352 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 (37393 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
sd0xdev/sd0x-harness · 194 stars · license MIT · pushed 2026-10-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_iaqzck4ilcnpghk4 GET https://markdownregistry.com/api/v1/resolve?ref=sd0xdev/sd0x-harness/smart-rebase GET https://markdownregistry.com/api/v1/blob/97a58dae1219bd52c29b73a28ad316d446f755b1c4dd043a757df81f94ac845b
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.