claude-skills-sync-migration

Migrate Claude skill-sync workflows between repositories with scripts and hooks.

2|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/Adonis0123/adonis-skills --skill claude-skills-sync-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-skills-sync-migration
Source: https://github.com/Adonis0123/adonis-skills/tree/main/.agents/skills/claude-skills-sync-migration
Command: npx skills add https://github.com/Adonis0123/adonis-skills --skill claude-skills-sync-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Migrating Claude skill-sync workflows between repositories is error-prone and manual, so this skill automates the migration process to ensure a reliable, repeatable setup.

Core Features & Use Cases

  • Generates scripts and hooks to migrate skill-sync capabilities to the target repository's .claude/skills path.
  • Injects package.json scripts/postinstall hooks and ensures an is-ci guard exists for CI environments.
  • Uses an atomic directory-switch strategy to prevent partial migrations and provides rollback if something goes wrong.
  • Use case: moving the entire Claude skills sync setup from one project to another with minimal manual edits and risk.

Quick Start

Run the bootstrap-sync-skills.mjs script from the source repository with appropriate flags to migrate to the target project and verify the results.

Frequently Asked Questions about claude-skills-sync-migration

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

FAQPage Schema
How do I migrate Claude skills from .agents/skills to a new repository?

To migrate Claude skills, run the bootstrap-sync-skills.mjs script from the source repository to copy .agents/skills into the target project's .claude/skills path. This automated process generates sync scripts and injects package.json hooks for reliable setup.

What is the safest way to automate skill-sync workflow migration across projects?

The safest skill-sync workflow migration uses an atomic directory-switch strategy to prevent partial updates. This process includes runtime checks, idempotent updates, and rollback capabilities to ensure a reliable migration without corrupting existing project files.

How do package.json postinstall hooks work with Claude skill-sync scripts?

Package.json postinstall hooks automatically trigger Claude skill-sync scripts during dependency installation. The migration process injects these hooks while ensuring an is-ci guard exists, preventing sync execution in inappropriate CI environments.

Can I use atomic directory switching for idempotent Claude skills updates?

Atomic directory switching supports idempotent Claude skills updates by replacing the entire target directory only after verification passes. If runtime checks fail, the migration automatically rolls back, leaving the original .claude/skills path untouched.

Why does my Claude skills migration fail in CI environments without an is-ci guard?

Claude skills migrations fail in CI without an is-ci guard because postinstall hooks attempt to execute sync scripts during automated builds. The migration process injects this guard to ensure hooks only run locally, preventing unintended side effects in pipelines.

Does migrating Claude skill-sync workflows overwrite existing scripts in the target project?

Migrating Claude skill-sync workflows applies idempotent updates, meaning it safely overwrites or regenerates sync scripts without duplicating entries. The atomic switch strategy ensures existing target files remain intact until the new migration is fully verified.