claude-version-bump-reuse

Align Claude Code version references using package.json as the source of truth.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/liuyu520/cc_source --skill claude-version-bump-reuse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-version-bump-reuse
Source: https://github.com/liuyu520/cc_source/tree/main/.claude/skills/claude-version-bump-reuse
Command: npx skills add https://github.com/liuyu520/cc_source --skill claude-version-bump-reuse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically aligns Claude Code version references by treating package.json as the single source of truth.

Core Features & Use Cases

  • Uses package.json as the authoritative version owner for the repository.
  • Propagates the version through MACRO.VERSION via src/bootstrapMacro.ts and the CLI entrypoints.
  • Validates consistency by checking version outputs with bun run version and bun run dev:restore-check --version.

Quick Start

Update package.json first, then run the verification commands to confirm the new version is reflected across CLI and docs.

Frequently Asked Questions about claude-version-bump-reuse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Claude Code version references after a release bump?

To sync Claude Code version references, update package.json first and then propagate the new version through MACRO.VERSION via src/bootstrapMacro.ts to align code, docs, and CLI outputs across the repository.

How does package.json act as the single source of truth for versioning?

Package.json serves as the single source of truth by acting as the authoritative version owner, pushing the defined semver string through bootstrap macros to overwrite all downstream CLI and documentation references.

What's the best way to verify version consistency after updating package.json?

The best way to verify version consistency is by running bun run version and bun run dev:restore-check --version to confirm the new version string is reflected across CLI entrypoints and documentation outputs.

Does the version propagation path require manual edits to CLI entrypoints?

No, the version propagation path automates CLI entrypoint updates by routing the package.json version through src/bootstrapMacro.ts into MACRO.VERSION, eliminating manual file edits during release bumps.

Why are my Claude Code docs showing a different version than package.json?

Docs show a different version because the propagation path from package.json to MACRO.VERSION has not been executed or validated, requiring you to run the synchronization process and verify with bun run version.

Can I use this automated version bump workflow for standard semver projects?

This workflow is tailored for Claude Code projects using a specific macro bootstrapping path, so standard semver projects without src/bootstrapMacro.ts may not benefit from this automated synchronization approach.