update-claude

Update Claude Code CLI and system prompts to a specified version.

8|1|Updated Jul 16, 2013
One-click install
npx skills add https://github.com/844196/dotfiles --skill update-claude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-claude
Source: https://github.com/844196/dotfiles/tree/main/.claude/skills/update-claude
Command: npx skills add https://github.com/844196/dotfiles --skill update-claude

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, gh, and includes scripts (resource) components.

What problem does it solve?

Claude Code and its system prompts often diverge across environments; this skill automates updating the Claude CLI and the extracted prompts to a chosen version, ensuring consistency.

Core Features & Use Cases

  • Synchronize Claude Code CLI with the latest or a specified version across installations.
  • Update the extracted system prompts (claude-code-system-prompts) in tandem via mise/chezmoi workflow.
  • Handles version validation through npm registry and GitHub releases, with clear error reporting.

Quick Start

Run the update-claude script with latest or a specific X.Y.Z version to update Claude Code.

Frequently Asked Questions about update-claude

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

FAQPage Schema
How do I update Claude Code CLI and system prompts to a specific version?

To update Claude Code CLI and system prompts to a specific version, run the update script with a target version in X.Y.Z format. It synchronizes the CLI and extracted prompts via mise and chezmoi workflows.

Why do my Claude Code system prompts diverge across different environments?

Claude Code system prompts diverge across environments when updates are applied inconsistently. This skill automates synchronizing both the CLI and extracted system prompts to a chosen version, ensuring environmental consistency.

Do I need mise and chezmoi to synchronize Claude Code updates?

Yes, this skill operates within mise and chezmoi workflows to synchronize updates. It also requires curl, jq, and gh to fetch versions from npm and GitHub releases and update configuration files.

How does version validation work when syncing Claude Code CLI?

Version validation for syncing Claude Code CLI works by fetching available versions from the npm registry and GitHub releases. If a specified version is invalid, the skill handles the error by informing the user.

Can I automatically update Claude Code to the latest version using chezmoi?

Yes, you can update Claude Code to the latest version using chezmoi by running the update script with the latest keyword. It updates the CLI and modifies files/.chezmoidata.json accordingly.