auto-rebase
Skill6 starsChanged 5 months agoApache-2.0View on GitHub
Automatically check for new upstream vllm releases and rebase the current fork branch onto the latest one. Orchestrates detect-upstream-base and rebase-assistant end-to-end. Use when the user asks to check for upstream updates, auto-rebase to the latest release, or keep the fork up to date.
- Commits and pushes
In this repository4 other files it gives its agents.
- detect-upstream-baseSkill
- install-vllmSkill
- local-test-runnerSkill
- rebase-assistantSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Check whether a newer upstream vllm release exists and, if so, rebase the current fork branch onto it automatically.
- Distinctive: line 19
Verify required tools are installed and authenticated before starting.
- Very specific: line 26
If gh auth status fails, prompt the user to run gh auth login and wait for confirmation before proceeding.
- Distinctive: line 73
If v1 == v2 (already up to date), report that and stop.
- Distinctive: line 75
Ask: "A new release $V2 is available.
- Distinctive: line 77
Wait for confirmation before proceeding.
- Very specific: line 81
Before invoking rebase-assistant, gather the remaining required inputs:
- Distinctive: line 83
Verification checks: Ask the user which checks to run after rebase.
- Distinctive: line 101
Follow the full rebase-assistant workflow (analyze b1, back it up, create
- Distinctive: line 123
If the branch already exists on the remote and needs a force push:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Auto Rebase
Check whether a newer upstream vllm release exists and, if so, rebase the
current fork branch onto it automatically. Uses the same notation as
rebase-assistant: v1/v2 for upstream tags, b1/b2 for the
branch before/after rebase.
Step 0: Prerequisites
Verify required tools are installed and authenticated before starting.
# gh CLI — needed to query upstream releases
gh auth status 2>/dev/null || echo "ERROR: gh not authenticated"If gh auth status fails, prompt the user to run gh auth login and wait
for confirmation before proceeding. The git-tag fallback in Step 2 works
without gh, but release metadata (pre-release flags, release notes) is
only available through the GitHub API.
Step 1: Detect Current Upstream Base
The current branch is b1. Use the detect-upstream-base skill to
identify v1 — the upstream tag that b1 is based on. See
detect-upstream-base.
Confirm v1 with the user before proceeding.
Step 2: Check for New Upstream Releases
Fetch the latest tags and compare against v1.
git fetch upstream --tagsList upstream release tags newer than v1:
git tag --list "v*" --sort=-version:refname \
| while read -r tag; do
git merge-base --is-ancestor "upstream/$V1" "$tag" 2>/dev/null \
&& [ "$tag" != "$V1" ] \
&& echo "$tag"
doneAlternatively, use gh for a cleaner check:
gh release list --repo vllm-project/vllm --limit 10 \
| awk '{print $1}'Pick the latest stable release as the candidate v2. Skip pre-release or release-candidate tags unless the user opts in.
Present to user:
- Current base: v1
- Latest upstream release: v2
- Release notes link:
https://github.com/vllm-project/vllm/releases/tag/$V2
If v1 == v2 (already up to date), report that and stop.
Ask: "A new release $V2 is available. Proceed with rebase?"
Wait for confirmation before proceeding.
Step 3: Collect Rebase Inputs
Before invoking rebase-assistant, gather the remaining required inputs:
- Verification checks: Ask the user which checks to run after rebase.
Examples:
.venv/bin/python -m pytest tests/path/to/test.py -vpre-commit run --all-files
- Reference commit (optional): A known-good commit where checks pass.
Defaults to
HEADon b1.
Step 4: Rebase
Invoke the rebase-assistant skill with the collected inputs:
- v1: from Step 1
- v2: from Step 2
- Verification checks: from Step 3
- Reference commit: from Step 3 (if provided)
See rebase-assistant.
Follow the full rebase-assistant workflow (analyze b1, back it up, create b2, rebase onto v2, resolve conflicts, verify b2).
Step 5: Summarize and Push
Once rebase-assistant completes, present a final summary:
- b1 (original branch): preserved as backup
- b2 (rebased branch): now based on v2
- Previous base: v1 → New base: v2
- Custom commits replayed: count and brief description
- Conflicts resolved: list of files and decisions (from rebase-assistant)
- Verification results: pass/fail for each check, with log paths
- Backup branch: name for rollback to b1 if needed
Then ask: "Push b2 to origin?"
If yes:
git push origin HEADIf the branch already exists on the remote and needs a force push:
git push origin HEAD --force-with-leaseWarn the user before force-pushing and wait for explicit confirmation.
Usage Examples
Check if there's a new upstream vllm release and rebase onto it.
Checks: pytest tests/entrypoints/openai/correctness/test_transcription_api_correctness.pyAuto-rebase to the latest upstream tag. Run pre-commit and transcription tests.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

