Agent skill

Squad Version Check

by kubefleet-dev in kubefleet-dev/kubefleet

Internals of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator…

Apache-2.0Auto-check passedDevOps & Cloud

Install Squad Version Check

skills CLI
$ npx skills add kubefleet-dev/kubefleet --skill squad-version-check -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kubefleet-dev/kubefleet squad-version-check --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kubefleet-dev/kubefleet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/squad-version-check .claude/skills/squad-version-check && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
squad-version-check
GitHub stars
162
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
540 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Apache-2.0

At a glance

Internals of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator…

  • Works in 3 steps: HTML comment: <!-- version: {version}… → Identity line: - Version: {version} → Greeting instruction: backtick-quoted…
  • DevOps & Cloud work in your project
  • SKILL.md covers What This Skill Covers, Package & Registry Facts, Version Stamping Mechanism and squad upgrade Behavior, plus 5 more sections
  • Calls npm, node and pnpm

What it does

Squad Version Check is an agent skill from kubefleet-dev/kubefleet. Internals of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud. It works with npm. The repository describes itself as: KubeFleet is an open-source Kubernetes multi-cluster application management solution. The licence is Apache-2.0.

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “Use the squad-version-check skill to internal of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs…”
  • “/squad-version-check”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. HTML comment: <!-- version: {version} --> (must be on the line immediately after frontmatter ---)
  2. Identity line: - Version: {version}
  3. Greeting instruction: backtick-quoted Squad v{version}

What it can do on your machine

Read from SKILL.md and the folder at commit ea05fcb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • node
    • pnpm
    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, pnpm and yarn, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Squad Version Check loads about 1.6k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 540 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kubefleet-dev/kubefleet at commit ea05fcb, republished under its Apache-2.0 licence (© kubefleet-dev). 540 words, ~1,568 tokens.

Download SKILL.mdSave it as .claude/skills/squad-version-check/SKILL.md (or your agent's skills folder).
name
squad-version-check
description
Internals of how @bradygaster/squad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.
confidence
medium
domain
squad-internals
source
Discovered by Data; validated in bradygaster/squad#1173 recon (2026-05-26).

SKILL: Squad CLI Internals — Version Stamping & Upgrade Mechanics

Confidence: medium Discovered by: Data Date: 2026-05-26 Validated in: Issue #1173 recon (bradygaster/squad)


What This Skill Covers

Reusable knowledge about how @bradygaster/squad-cli stamps its version into squad.agent.md, how squad upgrade works, what it preserves vs. overwrites, and how to probe the npm registry for the latest version from a coordinator prompt.


Package & Registry Facts

  • Package name: @bradygaster/squad-cli
  • Registry: npm (public)
  • CLI binary: squad (registered via package.json#bin.squad)
  • Node version requirement: Node ≥22.5.0 (ESM-only codebase)

Version Stamping Mechanism

Source file: dist/cli/core/version.js

Three functions:

getPackageVersion()

Walks up from the compiled JS file to find package.json. Returns pkg.version. Works from both dist/cli/core/version.js and a bundled root cli.js. Returns '0.0.0' as fallback if not found.

stampVersion(filePath, version)

Mutates squad.agent.md in three places:

  1. HTML comment: <!-- version: {version} --> (must be on the line immediately after frontmatter ---)
  2. Identity line: - **Version:** {version}
  3. Greeting instruction: backtick-quoted `Squad v{version}`

Called by: both init and upgrade — after copying the template to the destination.

readInstalledVersion(filePath)

Reads the stamped version back from squad.agent.md:

  1. First tries HTML comment format: /<!-- version: ([0-9.]+(?:-[a-z]+(?:\.\d+)?)?) -->/
  2. Falls back to old frontmatter format: /^version:\s*"([^"]+)"/m
  3. Returns '0.0.0' on any error

squad upgrade Behavior

Source file: dist/cli/core/upgrade.js

What gets overwritten:
  • squad.agent.md — full overwrite from template, then stampVersion()
  • Files with overwriteOnUpgrade: true in TEMPLATE_MANIFEST: casting JSON files, template .md files, copilot-instructions.md (if @copilot enabled)
  • GitHub Actions workflows — from templates/workflows/; non-npm projects get type-aware stubs
  • Runs runMigrations() after file copy
What is PRESERVED:
  • team.md, routing.md, decisions.md, ceremonies.md (user-owned)
  • agents/*/history.md (individual agent memory)
  • .squad/config.json — never touched; stateBackend survives intact
  • User-added files not in TEMPLATE_MANIFEST
Self-upgrade path (selfUpgradeCli()):

Detects npm/pnpm/yarn via npm_execpath and npm_config_user_agent. Runs:

  • npm: npm install -g @bradygaster/squad-cli@latest
  • pnpm: pnpm add -g @bradygaster/squad-cli@latest
  • yarn: yarn global add @bradygaster/squad-cli@latest Use @insider tag for insider builds.
compareSemver(a, b) utility (in upgrade.js):

Returns -1/0/1. Handles pre-release: strips pre-release for base comparison, then treats pre-release as less than release (e.g., 0.9.5-insider.1 < 0.9.5). Can be ported directly if needed in prompt logic.


Show full SKILL.md (218 more words)Show less

.squad/config.json — What It Holds

json
{
  "version": 1,
  "stateBackend": "worktree"
}

Other optional fields added by the coordinator at runtime:

  • defaultModel — global model override for all agent spawns
  • agentModelOverrides.{agentName} — per-agent model override

The file is read-only from the upgrade path's perspective. Only the coordinator writes to it (for model preferences).


Version-Check Probe (npm Registry)

Use this one-liner from inside a coordinator prompt to fetch dist-tags:

npm view @bradygaster/squad-cli dist-tags --json
  • Timeout: 5 seconds. If no response within 5 seconds, abandon and show normal greeting.
  • On success: extract dist-tags[channel] (e.g., dist-tags["insider"]).
  • On any error (network failure, registry unreachable, parse error): show normal greeting.

Upstream OS-Specific Cache

The CLI (self-update.ts) writes latest version info to an OS-specific path with a 24h TTL.

One-liner to read the upstream cache:

node -e "const p=require('path'),o=require('os');const b=process.env.APPDATA||(process.platform==='darwin'?p.join(o.homedir(),'Library','Application Support'):p.join(o.homedir(),'.config'));const f=p.join(b,'squad-cli','update-check.json');try{const d=JSON.parse(require('fs').readFileSync(f,'utf8'));const age=Date.now()-d.checkedAt;if(age<86400000)console.log(JSON.stringify(d));else console.log('STALE')}catch{console.log('MISS')}"

Output semantics:

  • Valid JSON {"latestVersion":"X.Y.Z","checkedAt":N} → cache hit; use latestVersion
  • STALE → cache expired (older than 24h); treat as no data
  • MISS → cache missing or corrupt; treat as no data

OS-specific cache path:

  • Windows: %APPDATA%\squad-cli\update-check.json
  • Linux: ~/.config/squad-cli/update-check.json
  • macOS: ~/Library/Application Support/squad-cli/update-check.json

Repo-Local Cache Convention: .squad/.cache/version-check.json

Used by coordinator for insider/preview channels (the upstream cache only stores latest).

Schema:

json
{
  "checkedAt": "2026-05-26T14:13:28.492Z",
  "currentVersion": "0.9.6-insider.2",
  "channel": "insider",
  "channelVersion": "0.9.7-insider.1"
}

TTL: 24 hours from checkedAt. Gitignore: .squad/.cache/ is listed in .gitignore — cache files are never committed.


Key File Paths (installed CLI)

PurposePath
Version utilitiesdist/cli/core/version.js
Upgrade logicdist/cli/core/upgrade.js
Init logicdist/cli/core/init.js
Template manifestdist/cli/core/templates.js
Copilot install helperdist/cli/copilot-install.js
squad.agent.md templatetemplates/squad.agent.md.template
Session init referencetemplates/session-init-reference.md
All templatestemplates/

© kubefleet-dev, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/squad-version-check of kubefleet-dev/kubefleet.

Open the folder on GitHubat commit ea05fcb

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in kubefleet-dev/kubefleet, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Squad Version Check next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Squad Version Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Squad Version Check this skillkubefleet-dev/kubefleet1621 repos~1.6kAutomated safety check: PassApache-2.0
OmniRoute Backup and Sync CLIdiegosouzapw/OmniRoute74k—~948Automated safety check: PassMIT
Repo Hygiene Scan and FixQwenLM/qwen-code28k—~1.7kAutomated safety check: PassApache-2.0
Reflexo ReleaseMyriad-Dreamin/typst.ts1.2k—~1.5kAutomated safety check: PassApache-2.0
CI Pipeline Synthesizerkajisho5/ffmpeg-skill1.9k1 repos~1.1kAutomated safety check: PassMIT
GitHub Actions Supply Chain Pinningasyncapi/generator1.1k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • OmniRoute Backup and Sync CLI

    diegosouzapw/OmniRoute

    Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files.

    74k GitHub stars~948 tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Scheduled CI skill that scans a repository for small, certain docs, test and code hygiene issues and fixes them on one branch with a commit per finding.

    28k GitHub stars~1.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated 13 days ago
    DevOps & CloudAuto-check passed
  • CI Pipeline Synthesizer

    kajisho5/ffmpeg-skill

    Generate GitHub Actions CI/CD pipeline configurations for automated building and testing of library and package projects.

    1.9k GitHub starsUsed in 1 repo~1.1k tokens
    DevOps & CloudAuto-check passed
  • A skill your agent uses when editing, adding, or reviewing any file under .github/workflows/, or when a CI step installs a CLI tool (npm i -g, npx, pipx, uses: /setup-).

    1.1k GitHub stars~1.9k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Sentry Miniapp SDK

    lizhiyao/sentry-miniapp

    Full Sentry SDK setup for Mini Programs — error monitoring, tracing, offline cache, source maps.

    686 GitHub stars~5k tokensUpdated today
    DevOps & CloudAuto-check passed

More from kubefleet-dev/kubefleet

All 11 skills in this repo
  • Cross Squad

    kubefleet-dev/kubefleet

    Coordinating work across multiple Squad instances — discovery, delegation, and disambiguation when the user says 'squad' (the product) vs casual English 'group of agents'.

    162 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Iterative Retrieval

    kubefleet-dev/kubefleet

    Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation.

    162 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Coordinator Response Mode

    kubefleet-dev/kubefleet

    Selecting WHO handles work is the Routing table; selecting HOW they handle it (Direct, Lightweight, Standard, Full) is Response Mode.

    162 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Cross Squad Communication

    kubefleet-dev/kubefleet

    Protocol for sending queries, delegating tasks, and sharing context between independent Squad instances across different repositories

    162 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Reflect

    kubefleet-dev/kubefleet

    Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes.

    162 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Squad

    kubefleet-dev/kubefleet

    Squad's command catalog and interactive menu. An agent skill from kubefleet-dev/kubefleet.

    162 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Works with

Categories

Questions about Squad Version Check

What does Squad Version Check do?

Internals of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator…. Squad Version Check is an agent skill from kubefleet-dev/kubefleet. Internals of how @bradygaster/squad-cli stamps its version, how squad upgrade works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.

When should I use Squad Version Check?

Squad Version Check fits situations like: devOps & Cloud work in your project.

How do I install Squad Version Check in Claude Code?

Run `npx skills add kubefleet-dev/kubefleet --skill squad-version-check -a claude-code`. Or copy the skill folder (.github/skills/squad-version-check in kubefleet-dev/kubefleet) into .claude/skills/squad-version-check in your project. Claude Code loads it when a task matches its description.

How do I install Squad Version Check in Codex?

Run `npx skills add kubefleet-dev/kubefleet --skill squad-version-check -a codex`. Or copy the skill folder (.github/skills/squad-version-check in kubefleet-dev/kubefleet) into .agents/skills/squad-version-check in your project. Codex loads it when a task matches its description.

Can I use Squad Version Check in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kubefleet-dev/kubefleet --skill squad-version-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/squad-version-check, .gemini/skills/squad-version-check, .github/skills/squad-version-check and .opencode/skills/squad-version-check in your project.

What does Squad Version Check need to run?

Going by SKILL.md and its folder, Squad Version Check needs the command-line tools its instructions call (npm, node, pnpm and yarn). Our summary lists: Node.js.

Does Squad Version Check access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Squad Version Check safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Squad Version Check use?

Squad Version Check is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Squad Version Check use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Squad Version Check?

Skills that share tags, products or a category with Squad Version Check: OmniRoute Backup and Sync CLI (diegosouzapw/OmniRoute, 74k stars), Repo Hygiene Scan and Fix (QwenLM/qwen-code, 28k stars), Reflexo Release (Myriad-Dreamin/typst.ts, 1.2k stars) and CI Pipeline Synthesizer (kajisho5/ffmpeg-skill, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Squad Version Check?

kubefleet-dev (a GitHub organization) maintains it in kubefleet-dev/kubefleet, which has 162 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

Source: kubefleet-dev/kubefleet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.