Home / flurdy / agent-skills · skills/rebase/SKILL.md · GitHub

rebase skillA

rebase is agent-read markdown (skill) from flurdy/agent-skills: Rebase the current branch onto an updated main, an updated stacked parent, or main after the parent PR merged. Proves the child-only commit range before rewriting anything; explicit gates for dirty trees, tests, force-push, and PR retargeting..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Rebase

One target-aware workflow for the three rebase situations. The commit range is always
resolved by a read-only helper that refuses to guess; the rebase command is the one it
prints, verbatim.

## Usage

```
/rebase                                   # Infer the target from the recorded parent / PR base
/rebase main                              # Main moved; replay this branch on top
/rebase parent {parent-branch}            # Stacked parent was updated or force-pushed
/rebase merged {old-parent} [--old-tip {sha}]   # Parent PR merged; move onto main, child commits only
```

Use these explicit forms directly; the former target-specific alias skills are retired.

## Requirements

- `git`; `gh` only for target inference, old-tip recovery, and PR retargeting. Without `gh`,
  pass the target explicitly and skip step 9 with `PR base: not checked (gh unavailable)`.
- The helpers under `~/.agents/skills/rebase/scripts/` are read-only except
  `gh-pr-edit-base.sh`, which is only ever run behind the step 9 gate.

## Instructions

### 1. Working tree gate

```bash
git branch --show-current
git status --porcelain
```
…

Read the whole file at its exact version.

How to install

Latest version
mdr add flurdy/agent-skills/rebase@v1.0.0
Exact content
mdr add flurdy/agent-skills/rebase@sha256:bc399c95a0df1c17

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_pqns665kjoekwgff.svg)](https://markdownregistry.com/a/art_pqns665kjoekwgff)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-16 00a1f0c 7,435 BA view · diff
v1.0.02026-09-06 2053822 7,457 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7435 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

GitHub

flurdy/agent-skills · 9 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_pqns665kjoekwgff
GET https://markdownregistry.com/api/v1/resolve?ref=flurdy/agent-skills/rebase
GET https://markdownregistry.com/api/v1/blob/bc399c95a0df1c173b1216fd62e82e698325145efcf2cb1fcb1e962f2b588edf

Your agent 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.

More from flurdy/agent-skills

AGENTS.md agents
flurdy/agent-skills · AGENTS.md
git:20260630.7b39634 · audit B · 9 stars
CLAUDE.md claude
flurdy/agent-skills · CLAUDE.md
git:20260907.23d6b60 · audit A · 9 stars
architect skill
flurdy/agent-skills · skills/architect/SKILL.md · Architecture and implementation planning gate for complex or high-blast-radius work. Produces evidence-backed…
v2.0.1 · audit A · 9 stars
artifact-hygiene skill
flurdy/agent-skills · skills/artifact-hygiene/SKILL.md · Run a local-only, read-only advisory audit of publishable working-tree files and unpublished branch history with…
v0.6.1 · audit A · 9 stars
backlog-groom skill
flurdy/agent-skills · skills/backlog-groom/SKILL.md · Per-bead backlog quality audit — flags thin descriptions, label drift, stale YAGNIs, mis-prioritised nice-to-haves…
v0.1.2 · audit A · 9 stars
beads-check-dolt-migration skill
flurdy/agent-skills · skills/beads-check-dolt-migration/SKILL.md · Detect whether a beads repository needs classic-to-Dolt migration or an in-place Dolt schema upgrade.
v1.1.0 · audit A · 9 stars
beads-migrate-to-dolt skill
flurdy/agent-skills · skills/beads-migrate-to-dolt/SKILL.md · Safely migrate classic Beads data or upgrade a Dolt schema, preserving backups and remote history. Repository aftercare…
v2.0.1 · audit A · 9 stars
beads-setup skill
flurdy/agent-skills · skills/beads-setup/SKILL.md · Preview and separately confirm a fresh repository Beads store with a dedicated private GitHub Dolt remote. Refuses…
v0.1.0 · audit A · 9 stars
beads skill
flurdy/agent-skills · skills/beads/SKILL.md · Shared Beads workflow baseline. Use whenever an agent uses `bd`, manages durable tasks, blockers, or handoffs, resolves…
v0.6.0 · audit A · 9 stars
browser-screenshot skill
flurdy/agent-skills · skills/browser-screenshot/SKILL.md · Take a screenshot of the running web application for visual verification of UI/CSS changes. Use when iterating on…
v1.1.0 · audit A · 9 stars
circleci-status skill
flurdy/agent-skills · skills/circleci-status/SKILL.md · Check CircleCI build status and failed job logs for the current GitHub repository. Use when asked whether CircleCI is…
v1.0.1 · audit A · 9 stars
clean-code skill
flurdy/agent-skills · skills/clean-code/SKILL.md · Format, lint, and fix all warnings across the entire codebase — including test files and pre-existing issues.
v1.1.0 · audit A · 9 stars

Every file in flurdy/agent-skills

Other files named rebase

rebase skill
ronaknnathani/relay · skills/rebase/SKILL.md · Use when you need to rebase the current branch onto main, resolve merge conflicts, and force-push
git:20260629.9a6d3b4 · audit A · 3 stars

Browse by kind, by grade A, or by owner.