version-check

A command that checks whether the installed agent-flow plugin matches the latest available version. It reads the local plugin registry to identify the installed copy.

In plain words
What is it for?
Use it from any directory to inspect the installed version and receive an installation command when agent-flow is not installed.
Why use it?
It shows whether the plugin is missing, current, outdated, or impossible to check because the registry is absent or invalid.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/asysta-act/agent-flow/version-check
Any agent
npx skills add asysta-act/agent-flow --skill version-check
Clone the repo
git clone --depth 1 https://github.com/asysta-act/agent-flow

Made for: Claude Code, Codex.

Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.02319
Opus 5 $0.00006 $0.01159
Sonnet 5 $0.00002 $0.00464
Haiku 4.5 $0.00001 $0.00232

Measured 2d ago against content hash fc07131c7013, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

version-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/version-check/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Version Check

Check whether the installed plugin version is up to date. Works from any directory.

Plugin Identity

Key Value
Plugin agent-flow
Marketplace agent-flow
Legacy names CLAUDE-agents

All steps below use {plugin} and {marketplace} from this table.

Steps

Part A: Installed Plugin Status (always runs)

  1. Read ~/.claude/plugins/installed_plugins.json.

    • If the file does not exist → report: "Claude Code plugin registry not found at ~/.claude/plugins/installed_plugins.json. No plugins installed — run /plugin install first." and STOP.
    • If the file is empty or is not valid JSON → report: "Plugin registry at ~/.claude/plugins/installed_plugins.json is empty or corrupt — cannot parse." and STOP.
    • Search for the plugin: find any key in plugins that starts with {plugin}@. If no match, also search for keys starting with any name in Legacy names (e.g. CLAUDE-agents@). Prefer {plugin}@{marketplace} if it exists; otherwise use the first match.
    • If no matching key found → report: "{plugin} plugin is not installed. Run: /plugin install {plugin}@{marketplace}" and STOP.
    • Read version and installPath from the matched entry. Store as installed_version, install_path, and note the actual registry key as registry_key.
    • If registry_key does not equal {plugin}@{marketplace} → warn: "Plugin is registered under {registry_key} instead of {plugin}@{marketplace}. Consider reinstalling: /plugin uninstall {plugin} then /plugin install {plugin}@{marketplace}"
  2. Verify install_path exists on disk.

    • If it does not exist → warn: "Install path {install_path} does not exist — plugin may need reinstalling. Run: /plugin uninstall {plugin} then /plugin install {plugin}@{marketplace}". Continue to step 3.
  3. Determine the latest available version from remote.

    • Determine the remote URL to query. Try these sources in order (first success wins):
      1. If CWD is a git repo AND Part B will activate (.claude-plugin/plugin.json exists with matching name) → use git remote get-url origin from CWD. This is the most reliable source (uses the developer's configured SSH/HTTPS auth).
      2. Otherwise → read {install_path}/.claude-plugin/plugin.json and extract the repository field.
      3. If neither source yields a URL → report: "Remote version check skipped — no remote URL available." Skip to step 4 (show installed version only).
    • Before running the remote call, check whether the URL is a placeholder. This check applies to source-2 only (plugin.json repository); source-1 (user git remote) is trusted by definition.
      # RFC 2606 reserved TLD fast-fail:
      # source-2 only; HTTPS-only scope; SSH SCP-style deferred (no source-1 check)
      # Extract hostname from URL, then match (test|example|invalid|localhost) as last DNS label
      # or as the bare host. Path-anchored matching avoids false positives where a reserved
      # label appears in a path component (e.g. github.com/foo.invalid/bar).
      # Match alternation kept inline for harness compatibility: (test|example|invalid|localhost)
      host=$(echo "$remote_url" | sed -E 's|^[a-z]+://([^/]+).*|\1|' | sed -E 's|^[^@]+@||' | sed -E 's|:[0-9]+$||')
      host="${host%.}"  # strip RFC 1034 trailing dot
      last_label=$(echo "$host" | awk -F. '{print $NF}')
      if [ "$last_label" = "test" ] || [ "$last_label" = "example" ] || [ "$last_label" = "invalid" ] || [ "$last_label" = "localhost" ] \
         || [ "$host" = "test" ] || [ "$host" = "example" ] || [ "$host" = "invalid" ] || [ "$host" = "localhost" ]; then
        echo "Remote version check skipped — plugin.json \`repository\` field is a placeholder. Set it to a real URL."
        exit 0
      fi
      
      The boundary anchor (/|:|$) is implicit in the hostname-extract step — the host is delimited by / or end-of-string after the scheme, so the URL parser handles boundary detection.
    • Run:
      timeout 10 git ls-remote --tags {remote_url} 'refs/tags/v*' 2>/dev/null | grep -v '\^{}' | sort -t/ -k3 -V | tail -1
      
      If timeout is not available, omit it and run git ls-remote directly.
    • If the command fails (network error, SSL error, auth failure, timeout) → report: "Cannot reach remote repository. Showing installed version only." Skip to step 4.
    • If the output is empty (no tags, or no tags matching v*) → report: "No version tags found on remote repository. Showing installed version only." Skip to step 4.
    • Extract the version string from the tag reference (e.g., refs/tags/v5.5.15.5.1). Store as remote_version.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 120 lines · 12 tokens per session scan A fc07131c7013

Subscribe to this mod's changes

version-check is a skill published in the GitHub repository asysta-act/agent-flow (12 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 2,319 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.