config-backup

Back up Claude Code configuration files from ~/.claude/ to a target directory.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/ppx123-web/claude-config --skill config-backup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: config-backup
Source: https://github.com/ppx123-web/claude-config/tree/main/skills/config-backup
Command: npx skills add https://github.com/ppx123-web/claude-config --skill config-backup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The Config Backup Skill helps users save, backup, copy, export, or version control their Claude Code configuration files (commands, skills, agents) from ~/.claude/ to another directory, ensuring easy recovery and migration.

Core Features & Use Cases

  • Back up the three primary Claude Code configuration directories: commands/, skills/, and agents/
  • Support selective backups, automatic target directory creation, and compatibility with rsync or a cp fallback
  • Useful for saving before major changes, migrating to a new machine, sharing a setup with a team, or version controlling configurations

Quick Start

Run the backup script to back up your ~/.claude directory to a target folder.

Frequently Asked Questions about config-backup

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

FAQPage Schema
How do I back up Claude Code configuration files before making major changes?

Back up Claude Code configuration files by running a script that copies commands, skills, and agents from ~/.claude/ to a target directory. It creates directories as needed and reports a summary of copied files and totals.

Can I migrate Claude Code configurations to a new machine using rsync?

Yes, you can migrate Claude Code configurations by backing up ~/.claude/ to a target folder. The backup script uses rsync when available, with a cp fallback, to copy commands, skills, and agents for migration.

What is the best way to export Claude Code agents and skills for team sharing?

Export Claude Code agents and skills for team sharing by backing up the ~/.claude/ directory. The script copies the commands, skills, and agents folders to a target directory and generates a summary of copied files.

Does the Claude Code backup script require rsync to work?

No, rsync is not strictly required to back up Claude Code configurations. The script uses rsync when available for copying files, but automatically falls back to cp to complete the backup operation.

How do I selectively back up Claude Code commands and agents?

You can selectively back up Claude Code commands, skills, and agents from the ~/.claude/ directory. The backup script supports selective backups and automatically creates the necessary target directories before copying.

Why do I need to back up my ~/.claude directory?

Backing up your ~/.claude directory saves your commands, skills, and agents configurations. This ensures easy recovery and migration when version controlling configurations, sharing setups, or moving to a new machine.