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-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.
os, sys, json, pathlib, shutil). Requires no pip install commands or network requests.settings.json.YYYYMMDD_HHMMSS.bak) before every configuration edit.--rollback command cleans up all created symlinks/junctions and restores settings from the latest backup.Ensure that the new agy CLI is installed on your computer and has run at least once so the standard profile directories are initialized.
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
Migrate all missing skills and Model Context Protocol (MCP) configs automatically in bulk:
./agy_migrator.py --all
Instantly revert modifications, remove directory links, and restore the latest settings backup:
./agy_migrator.py --rollback
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.
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.
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.
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
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
We enforce absolute safety via strict Test-Driven Development (TDD). To run the test suite:
python3 -m unittest discover -s tests -p "test_*.py"
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:
AGENTS.md guidelines to package and test your custom skills before submitting them for integration.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.