OPOS: Skill for Claude Code

.claude/skills/check-for-updates/SKILL.md

check-for-updates is a skill for Claude Code from Koroqe/OPOS. It costs 29 tokens per session (1,680 once invoked), scanned A, original, MIT.

A background check that compares the version your project uses with the newer version available from its source repository.

In plain words
What is it for?
Use it to detect newer releases, optionally include pre-release versions, or run a manual update check.
Why use it?
It prevents you from missing updates without interrupting normal work. It checks at most once every six hours unless you request an immediate check.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Koroqe/OPOS's own configuration. It tells Claude Code how to work on OPOS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OPOS configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/agent/workspace/OPOS.

View source ↗ Koroqe/OPOS
Reuse

Borrowing it

Nothing to install: this file belongs to Koroqe/OPOS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Koroqe/OPOS/main/.claude/skills/check-for-updates/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Koroqe/OPOS

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-for-updates

README.md
[![agentmods](https://agentmods.dev/badge/skills/koroqe/opos/check-for-updates/github.svg)](https://agentmods.dev/skills/koroqe/opos/check-for-updates)
Your own site
<a href="https://agentmods.dev/skills/koroqe/opos/check-for-updates"><img src="https://agentmods.dev/badge/skills/koroqe/opos/check-for-updates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check-for-updates

Your own site · 80×15
<a href="https://agentmods.dev/skills/koroqe/opos/check-for-updates"><img src="https://agentmods.dev/badge/skills/koroqe/opos/check-for-updates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,680 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00029 $0.01680
Opus 5 $0.00015 $0.00840
Sonnet 5 $0.00006 $0.00336
Haiku 4.5 $0.00003 $0.00168

Measured 8d ago against content hash 064d27377ed3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

check-for-updates 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 8d 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.

.claude/skills/check-for-updates/SKILL.md · 61 lines

How it starts

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

check-for-updates

When to use

Invoked automatically as step 1 of task-register, task-update, task-complete, and (v0.8.1) as part of the chief-of-staff First-touch protocol on session open — so consumers whose daily rhythm does not go through the task-lifecycle skills still get the notice. Adopters can invoke manually via /check-for-updates --force to force a fresh check, or /check-for-updates --include-prerelease to consider pre-release tags.

The skill is cheap (one gh api call cached 6h) and silent unless an update is available — it does not block or interfere with the parent skill's normal flow.

Inputs

  • force (optional bool; default false): bypass the 6h cache and check upstream now.
  • include_prerelease (optional bool; default false): include pre-release tags in the latest-check.

Steps

  1. Resolve repo root via git rev-parse --show-toplevel.
  2. Read <repo-root>/.copier-answers.yml. Extract _commit (current pinned tag) and _src_path (upstream URL). If missing: print one-line warning (.copier-answers.yml not found — was this repo scaffolded with copier?) and exit 0. Do NOT fail the parent skill.
  3. Read <repo-root>/.claude/.last-update-check. If timestamp < 6h old AND --force is false, exit 0 silently. Skip history write in this fast path (no value, just bloat — see step 8).
  4. Classify _src_path and resolve the upstream source. Four shapes are recognised:
    • Remote GitHubgh:owner/repo, [email protected]:owner/repo(.git), https://github.com/owner/repo(.git). Extract <owner>/<repo> (strip prefix, strip trailing .git). This is the portable, recommended shape.
    • Local path (v0.8.1) — an absolute or relative filesystem path that exists and contains a .git directory (e.g. /home/agent/workspace/OPOS, produced when the consumer was scaffolded from a local clone via copier copy <path> ...). Resolve the latest tag directly from that clone: git -C "<path>" tag --sort=-v:refname | grep -v -- '-' | head -1 (drop grep -v -- '-' when --include-prerelease). Print a one-line portability warning every time this branch is taken: ⚠️ .copier-answers.yml _src_path is a local path (<path>) — updates only work on this machine. Consider re-pointing it to gh:<owner>/<repo>. (The warning is deliberately loud: a local _src_path silently breaks the update loop on every other machine, CI runner, or second consumer.)
    • Local path that does NOT exist — print ⚠️ .copier-answers.yml _src_path (<path>) does not exist on this machine — update loop is broken here; re-point _src_path to the upstream GitHub URL. and exit 0. This IS a meaningful event: write the history entry (step 8) with outcome: failure.
    • Anything else (unparseable) — print ⚠️ check-for-updates: cannot parse _src_path '<value>' — expected gh:owner/repo, a GitHub URL, or a local clone path. and exit 0; write the history entry with outcome: failure. Never fail silently on a parse error — a broken checker must be distinguishable from "you are up to date" (v0.8.1: this was the root cause of a consumer sitting two releases behind with no signal).
  5. Fetch the latest tag (Remote GitHub shape only; the local-path shape already resolved it in step 4):
    • Default (no --include-prerelease): gh api repos/<owner>/<repo>/releases --jq '[.[] | select(.prerelease == false)] | first | .tag_name' — fetches the full list, filters out prereleases, takes the first (newest). No leading slash on the endpoint: under Git-Bash/MSYS on Windows a leading /repos/... is rewritten to a Windows path (C:/Program Files/Git/repos/...) and gh api fails with "invalid API endpoint".
    • With --include-prerelease: gh api repos/<owner>/<repo>/releases/latest --jq '.tag_name'.
    • On network/rate-limit/auth failure: silent exit 0 (no history entry — silent skips are not meaningful events). Note the distinction from step 4: network failures are transient and silent; configuration failures (unparseable / non-existent _src_path) are permanent and loud.
  6. Compare the latest tag to _commit. If they differ, print to stdout: ℹ️ OPOS-core <new-tag> is available (you're on <current>). Run /sync-from-core to apply.
  7. Write <repo-root>/.claude/.last-update-check with the current ISO timestamp + the latest tag observed. Format: YYYY-MM-DDTHH:MM:SSZ <tag> on one line.
  8. Write history entry ONLY IF (a) an update was found in step 6, OR (b) --force was passed. Skip on silent "no update" runs to avoid filling history/ with hundreds of empty entries per week. This is the conditional-history-write rule documented explicitly.

Read the full file on GitHub · 61 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 61 lines · 29 tokens per session scan A 064d27377ed3

Subscribe to this mod's changes

check-for-updates is a skill published in the GitHub repository Koroqe/OPOS (2 stars, last pushed 7d ago), licensed MIT. It adds 29 tokens to every session and 1,680 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-31.