跳到正文
cccskills
免费在 GitHub 公开

version-check

Compare the installed Claude Code version with release notes and recent bug reports to decide whether to stay, update, or use a specific version. Recommendations account for reported problems, relevant fixes, and how Claude Code was installed.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Recommend which Claude Code version to run, or whether to update. Use when asked which Claude Code version is best/safe, whether to update now, whether a recent release is buggy, or what changed since the installed version.

集成工具RedditPlaywright
查看安装方法

适用场景

  • Deciding whether to update Claude Code
  • Checking reports of problems in a recent release
  • Choosing a version to roll back to
  • Testing whether a new model requires a client update

包含的文件(1)

  • SKILL.md7.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Claude Code version check

The goal is a recommendation: stay put, update, or pin to a specific version. Claude Code ships latest very frequently (often 1-2x/day), so "best version" is a moving target and the answer is usually a range, not a single build.

Heuristics (read first)

  • stable lags latest and is NOT an LTS. The npm stable dist-tag is just a pointer that trails latest by a handful of patch releases. It can even sit behind an important fix release, so "stable" does not mean "most bugs fixed." Don't blindly recommend @stable.
  • Quiet version = good sign. If nobody is complaining about a recent release, that's a positive signal. A loud pile-on about a specific build is the thing to avoid.
  • Version comparisons are the strongest signal. Posts where people compare builds ("X broke Y, rolled back to Z") tell you exactly which release to avoid.
  • Stay ~a day behind the bleeding edge. Avoid a release that's only a few hours old - let others surface same-day regressions first.
  • But a same-day release is fine when the tracker is quiet and it fixes something you're carrying. If a few hours have passed with no cluster of issues, and the changelog shows it fixing a regression that's live in your installed range, taking it is usually better than waiting. Say plainly what you're trading: a few hours of field time instead of a day.
  • The real lever is when you update, not stable-vs-latest. Default Claude Code auto-updates to latest constantly, which is how you drift onto a same-day regression.

1. What's installed vs what's published

claude --version
npm view @anthropic-ai/claude-code dist-tags --json

dist-tags shows latest, stable, and next. Compare against the installed version to see how far ahead/behind each pointer is.

Recent releases and their timestamps (to see how fast things are shipping):

npm view @anthropic-ai/claude-code time --json | python3 -c "import sys,json;d=json.load(sys.stdin);print('\n'.join(f'{k}: {v}' for k,v in list(d.items())[-8:]))"

2. Scan the changelog for regressions in the gap

Fetch the changelog and read the entries between the installed version and latest. Look for "Fixed ... regression in X" lines - if a recent build introduced a regression that has not yet been fixed, that's the one to avoid.

curl -sL https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md | awk '/## <LATEST>/,/## <INSTALLED>/'

(Substitute the two version numbers.) A release that is mostly "Fixed …" after a noisy one is usually a safe landing spot.

3. Community sentiment (valuable - do this, don't skip it)

GitHub issues (primary - reliable and fetchable)

The most dependable signal. Search recent open bug reports, sorted by reactions:

gh api -X GET search/issues \
  -f q="repo:anthropics/claude-code is:issue is:open created:>=<DATE> label:bug" \
  -f sort=reactions -f per_page=25 \
  --jq '.items[] | "\(.created_at[:10]) +\(.reactions.total_count) c\(.comments) #\(.number) \(.title)"'

(Set <DATE> to ~3 days before today.) A version regression shows up as a cluster of high-reaction issues filed right after a release. Single reports with 0-1 reactions are noise, not a signal - the tracker always has a steady trickle of those.

Cross-reference titles against the changelog gap: if a top issue is already addressed by a fix/flag in latest, that build is safer, not riskier. Mostly minor or server-side (API 500/529) issues = quiet release = good sign.

To judge a release that's only hours old, drop label:bug and is:open and set the date to today - you want everything filed since it shipped, before anyone has triaged or labeled it.

Also check whether the issues are even about the CLI. Clusters about Claude Desktop or the VS Code extension say nothing about whether a Claude Code CLI build is safe.

Reddit (secondary - reachable via the DuckDuckGo hop)

r/ClaudeAI version-comparison threads are valuable, but Reddit now hard-blocks every direct automated route - curl (host + container), the WebSearch crawler (denied by user-agent), AND a cold Playwright navigation (network-security challenge page). The reliable way in is the reddit-fetch skill's DuckDuckGo-hop unlock: navigate Playwright to a html.duckduckgo.com/html/?q=site:reddit.com/r/ClaudeAI+... result redirect once, which sets a session cookie, then direct .json navigation works:

https://www.reddit.com/r/ClaudeAI/search.json?q=claude+code+update+broke+OR+regression&restrict_sr=on&sort=new&t=week&limit=25

Apply the heuristics above: a positive or quiet recent-update thread is reassuring; a high-score "X is broken" thread names the build to skip.

4. Test the claim instead of arguing about it

When the question is "do I actually need this release to get X" - usually a new model - just run it. A new model is server-side, so it often works on an older client; what the older client gets wrong is the metadata around it.

claude -p "Reply with exactly: ok" --model <model-id> --output-format json 2>&1 \
  | python3 -c "import sys,json;u=json.load(sys.stdin)['modelUsage'];print(json.dumps({m:{'contextWindow':v['contextWindow'],'costUSD':v['costUSD']} for m,v in u.items()},indent=2))"

modelUsage is the honest answer: it names the model that actually served the turn (ignore the Haiku row, that's the background helper) and reports the contextWindow the client is applying. A new model responding on an old client but showing a 200000 window where the changelog promises 1000000 means the model works and the client is capping it - which is a concrete, checkable reason to update rather than a vague one.

Re-run the same command after updating to confirm the number moved.

5. Recommend

  • If the installed version is in the recent, well-received range and nothing in the gap regressed: stay put, don't chase a release that's only hours old.
  • If there's a known regression in a build, recommend the last good version and pin/rollback to it.
  • For anyone who's been burned: disable the auto-updater and update deliberately (the repo's setup script does this), rather than religiously tracking @stable.

Installing a specific version - check how it was installed first

npm install -g @anthropic-ai/claude-code@X.Y.Z is not universal. On a native install it fails with EEXIST: file already exists /Users/<you>/.local/bin/claude, because that path is a symlink into ~/.local/share/claude/versions/ that npm won't overwrite. Don't --force past it - that replaces the native launcher with an npm shim.

ls -la "$(command -v claude)"   # symlink into ~/.local/share/claude/versions/ = native install
  • Native install → claude install X.Y.Z (same command for rollback)
  • npm install → npm install -g @anthropic-ai/claude-code@X.Y.Z

Either way, confirm with claude --version afterwards - a package manager reporting success is not the same as the launcher pointing at the new build.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

gha

免费

Investigate failed GitHub Actions jobs using logs and recent runs. Receive a report explaining the actual failure trigger, recurrence, any verified breaking commit, and existing pull requests that may fix the issue.

中文简介正在准备中。当前显示英语简介。

  • Finding the actual cause of a failed job
  • Checking whether failures are intermittent or recurring
  • Identifying the commit that introduced a failure
ykdojo/claude-code-tips1万2026年9月25日 更新

Create a new Claude Code session from the later half of the current conversation. Keep recent work while reducing conversation tokens, then receive a command to resume the copied session directly.

中文简介正在准备中。当前显示英语简介。

  • Continuing a long conversation with its later half
  • Reducing tokens while keeping recent work
  • Resuming a copied session with a direct command
ykdojo/claude-code-tips1万2026年9月25日 更新

handoff

免费

Create or update a HANDOFF.md document with the goal, progress, successful and failed approaches, and next steps. It gives an agent in a fresh conversation the context needed to continue the work.

中文简介正在准备中。当前显示英语简介。

  • Preparing to continue work in a fresh conversation
  • Handing ongoing work to another agent
  • Recording approaches that failed
ykdojo/claude-code-tips1万2026年9月25日 更新

Summarize popular Hacker News stories or find discussions on a specific topic. Get article highlights, scores, comment counts, and recurring discussion themes, including agreement, criticism, and related debates.

中文简介正在准备中。当前显示英语简介。

  • Reviewing the top ten Hacker News stories
  • Summarizing an article and its discussion
  • Finding Hacker News discussions on a topic
ykdojo/claude-code-tips1万2026年9月25日 更新

Search across public and private GitHub repositories using local copies and ripgrep, a text search tool. Find which repository or file contains an implementation, phrase, or setting, with results drawn from the default branch.

中文简介正在准备中。当前显示英语简介。

  • Find which repository contains an implementation
  • Locate configuration files across repositories
  • Search private repositories for a phrase
ykdojo/claude-code-tips1万2026年9月25日 更新

Create a new Claude Code session containing only the last quarter of the current conversation. Preserve the most recent work, reduce conversation tokens, and get a command to resume the copied session directly.

中文简介正在准备中。当前显示英语简介。

  • Continuing with only the last quarter of a conversation
  • Reducing tokens while keeping the most recent work
  • Resuming a copied session with a direct command
ykdojo/claude-code-tips1万2026年9月25日 更新

查看 ykdojo 的全部技能

报告此技能的问题