agentleFS
CohereKnown publishercohere-ai/vllm-skills/skills/detect-upstream-base/SKILL.md

detect-upstream-base

Skill6 starsChanged 5 months agoApache-2.0View on GitHub

Detect the upstream vllm tag (v1) that the current branch is based on. Ensures the upstream remote is configured, fetches tags, and finds the nearest upstream tag reachable from the fork point. Use when you need to identify the upstream base version of the current branch, or when another skill needs v1 detection.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If git describe fails (no reachable tag), fall back to the merge-base SHA:

    line 33
  2. Distinctive:

    Wait for explicit confirmation before returning the value.

    line 43

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

Detect Upstream Base Tag

Determine which upstream vllm tag the current branch is forked from.

Usage

Step 1: Ensure upstream remote

if ! git remote get-url upstream &>/dev/null; then
  git remote add upstream git@github.com:vllm-project/vllm.git
fi
git fetch upstream --tags

Step 2: Detect v1

V1_BASE=$(git merge-base HEAD upstream/main)
V1=$(git describe --tags --abbrev=0 --match="v*" "$V1_BASE" 2>/dev/null)

If git describe fails (no reachable tag), fall back to the merge-base SHA:

V1=${V1:-$V1_BASE}

Step 3: Confirm with user

Present to user: "The current upstream base tag appears to be $V1. Is this correct, or would you like to specify a different tag?"

Wait for explicit confirmation before returning the value.

Output

The confirmed value of V1 (an upstream tag like v0.19.1 or a commit SHA).

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.