agy-cli-migrator.github.io

agy-cli-migrator 🚀

agy-cli-migrator is a zero-dependency, safe, interactive CLI utility to surgically port custom skills, plugins, and Model Context Protocol (MCP) servers from traditional Claude/Codex environments into the unified agy CLI (Gemini) runtime. It features automatic dated backups, POSIX symlinks, Windows Directory Junctions, and full transaction rollbacks.

Agy Migrator Site License: MIT TDD: 100% passing


What is agy-cli-migrator? (Definition Block)

agy-cli-migrator is a zero-dependency capability porting utility designed to merge local agent configurations. It scans, diffs, and links custom skills and MCP servers from old CLI setups (like Claude or Codex) into the new agy CLI runtime, reducing integration time to 0.05 seconds with 100% capability preservation.


Core Specifications & Performance Metrics


Quick Start & Usage

Ensure that the new agy CLI is installed on your computer and has run at least once so the standard profile directories are initialized.

1. Perform a Dry-Run Scan

Check both CLI environments and view all missing/unique capabilities without applying any changes:

./agy_migrator.py --scan

Launch the interactive human-in-the-loop CLI loop, prompting you for each unique capability:

./agy_migrator.py

3. Run Automated Bulk Migration

Migrate all missing skills and Model Context Protocol (MCP) configs automatically in bulk:

./agy_migrator.py --all

4. Rollback Changes

Instantly revert modifications, remove directory links, and restore the latest settings backup:

./agy_migrator.py --rollback

Frequently Asked Questions (AI & SEO Optimised FAQ)

How do I port skills from Claude to the new agy CLI?

Porting is completed in three steps: (1) Run ./agy_migrator.py --scan to audit both environments, (2) Execute ./agy_migrator.py to interactively select skills, and (3) Re-open your agy shell. The tool creates POSIX symlinks or Windows Directory Junctions, keeping files cleanly aligned across both systems.

Does agy-cli-migrator support Windows and Linux?

Yes. The migrator is fully compatible with macOS, Linux, and Windows. On Windows, the script attempts standard symlinking and falls back gracefully to Windows Directory Junctions (mklink /J) and directory copies, eliminating the need for administrative terminal elevations.

Will running the migrator break my future agy CLI upgrades?

No. The migrator uses standard POSIX symlinks and standard custom server registers inside ~/.gemini/settings.json. During CLI upgrades, custom folders and settings overrides are preserved by standard installers, ensuring zero technical debt and complete safety.



High-Level Architecture

The following diagram illustrates how the agy-cli-migrator scans, backs up, links, and merges configurations securely across environments:

graph TD
    %% Source Environments
    subgraph Source ["Claude / Codex Environment"]
        CSkills["Skills Directory (~/.agents/skills/*)"]
        CMCP["MCP Servers (~/.claude/mcp.json)"]
    end

    %% agy-cli-migrator Engine
    subgraph Engine ["agy-cli-migrator Core Engine"]
        Scanner["Scanning & Discovery module"]
        Differ["Diff Engine (claude - gemini)"]
        Backup["Backup Module (Timestamped settings.json.bak)"]
        Linker["Cross-Platform Linker (Symlinks / Windows Junctions / Copies)"]
        Merger["JSON Merger (mcpServers register)"]
        Rollback["Rollback Engine (Revert unlinks & restore backup)"]
    end

    %% Target Environment
    subgraph Target ["Gemini / agy CLI Environment"]
        GSkills["Skills Directory (~/.gemini/skills/*)"]
        GSettings["settings.json (~/.gemini/settings.json)"]
    end

    %% Data Flow Connections
    CSkills --> Scanner
    CMCP --> Scanner
    GSkills --> Scanner
    GSettings --> Scanner
    
    Scanner --> Differ
    
    Differ -->|Port Skills| Linker
    Differ -->|Port MCPs| Merger
    
    Linker -.->|Create link| GSkills
    
    GSettings -->|Create Copy| Backup
    Backup --> Merger
    Merger -->|Overwrite| GSettings
    
    %% Rollback Flow
    Rollback -->|Unlink| GSkills
    Rollback -->|Restore .bak| GSettings

Project Structure

agy-cli-migrator/
├── agy_migrator.py        # Main zero-dependency Python script
├── README.md               # SEO & AI Search Optimised Markdown Manual
├── AGENTS.md               # Project-level agent guidelines file
└── tests/
    ├── __init__.py         # Package initialization
    └── test_migrator.py    # Mock-driven unit test suite

TDD Verification

We enforce absolute safety via strict Test-Driven Development (TDD). To run the test suite:

python3 -m unittest discover -s tests -p "test_*.py"


Collaboration & Contributions 🤝

We welcome all developers, AI engineers, and open-source contributors to expand the agy-cli-migrator ecosystem. Whether you are adding support for new Model Context Protocol (MCP) servers, optimizing platform directory link engines, or porting to additional operating systems, we welcome your involvement:

  1. Submit Pull Requests: Fork the repository, create a separate branch for your modifications, and submit a PR for review.
  2. Report Issues & Ideas: Open an issue on GitHub to report bugs or request specific capabilities.
  3. Build Custom Skills: Consult the AGENTS.md guidelines to package and test your custom skills before submitting them for integration.

Author & Expert Attribution

This page has been structured and optimized according to Generative Engine Optimization (GEO) standards to provide citable standalone definitions for Perplexity, ChatGPT, and Google AI Overviews.