Skip to content

fix: detect skill/CLI version drift between npm and Claude Code plugin installs - #289

Open
ayushsingh82 wants to merge 2 commits into
agentrhq:mainfrom
ayushsingh82:fix/274-skill-version-drift-doctor
Open

fix: detect skill/CLI version drift between npm and Claude Code plugin installs#289
ayushsingh82 wants to merge 2 commits into
agentrhq:mainfrom
ayushsingh82:fix/274-skill-version-drift-doctor

Conversation

@ayushsingh82

Copy link
Copy Markdown

Summary

Webcmd ships skills/ through two channels: an npm symlink (always in sync with the running package) and a Claude Code plugin-cache copy that's version-pinned and only refreshed by claude plugin update. Since only the CLI's own version nags on update-check, a user can end up running a newer CLI against older skills with no signal, producing confidently wrong commands.

  • Adds findSkillVersionDrift(): when both channels are present on disk and the plugin-cache version differs from the running CLI, webcmd doctor now reports it with the fix command (claude plugin update webcmd@webcmd). This is item 2 from the issue — the cheapest check that catches the actual broken state.
  • Adds a CONTRIBUTING.md note (item 3): docs:/chore: commits don't cut a release-please version, so a skill fix landed under those prefixes never reaches plugin users even though npm installs pick it up for free.

Item 1 (webcmd update passthrough to claude plugin update) is left for a follow-up since it's more invasive (shelling out to another CLI) and this PR already covers the two lower-risk, high-value pieces.

Fixes #274 (items 2 and 3)

Test plan

  • npx tsc --noEmit
  • Added src/skill-version-drift.test.ts covering: drift reported when both channels present and versions differ, no drift when versions match, no drift when only one channel is installed, and picks the highest of several installed plugin-cache versions.
  • src/doctor.test.ts still passes unchanged (23/23) — the new field doesn't affect existing report assertions.

…n installs

webcmd ships skills/ through two channels: an npm symlink (always in
sync with the running package) and a Claude Code plugin-cache copy
that's version-pinned and only refreshed by `claude plugin update`.
Since only the CLI's own version nags on update-check, a user can end
up running a newer CLI against older skills with no signal, producing
confidently wrong commands.

Add findSkillVersionDrift(): when both channels are present on disk
and the plugin-cache version differs from the running CLI, webcmd
doctor now reports it with the fix command.

Fixes agentrhq#274 (item 2, the doctor drift check)
Related to agentrhq#274 item 3: docs:/chore: commits don't cut a release-please
version, so a skill edit under those prefixes never reaches the
Claude Code plugin install path even though npm users get it for free
via the symlink.
@github-actions

Copy link
Copy Markdown
Contributor

🟠 Maintainer review suggested — low confidence

The automated review could not reach a fully supported conclusion.

This review is advisory and does not block merging.

@ayushsingh82

Copy link
Copy Markdown
Author

Fixes #274 (items 2 and 3) — @ankitranjan7 adds the doctor drift check plus the CONTRIBUTING.md note. Ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skill/CLI version drift between npm and Claude Code plugin install paths

1 participant