agentleFS
CohereKnown publishercohere-ai/vllm-skills/skills/auto-rebase/SKILL.md

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

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
  1. Very specific:

    Check whether a newer upstream vllm release exists and, if so, rebase the current fork branch onto it automatically.

    line 12
  2. Distinctive:

    Verify required tools are installed and authenticated before starting.

    line 19
  3. Very specific:

    If gh auth status fails, prompt the user to run gh auth login and wait for confirmation before proceeding.

    line 26
  4. Distinctive:

    If v1 == v2 (already up to date), report that and stop.

    line 73
  5. Distinctive:

    Ask: "A new release $V2 is available.

    line 75
  6. Distinctive:

    Wait for confirmation before proceeding.

    line 77
  7. Very specific:

    Before invoking rebase-assistant, gather the remaining required inputs:

    line 81
  8. Distinctive:

    Verification checks: Ask the user which checks to run after rebase.

    line 83
  9. Distinctive:

    Follow the full rebase-assistant workflow (analyze b1, back it up, create

    line 101
  10. Distinctive:

    If the branch already exists on the remote and needs a force push:

    line 123

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 --tags

List 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"
    done

Alternatively, 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:

  1. Verification checks: Ask the user which checks to run after rebase. Examples:
    • .venv/bin/python -m pytest tests/path/to/test.py -v
    • pre-commit run --all-files
  2. Reference commit (optional): A known-good commit where checks pass. Defaults to HEAD on 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 HEAD

If the branch already exists on the remote and needs a force push:

git push origin HEAD --force-with-lease

Warn 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.py
Auto-rebase to the latest upstream tag. Run pre-commit and transcription tests.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.