Skip to content
rgctlPublic

About

An experimental project showcasing code migrations using agents, harness, skills and rgctl

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

MigIQ - Intelligent Application Migration Platform

AI-powered application migration orchestrator for modernizing legacy applications to cloud-native platforms.

Status Migration Success Platform npm version


Requirements

Minimum to install and run a migration:

  1. rgctl β€” MigIQ install runs rgctl install --skill and exits if the CLI is missing (~/.local/bin/rgctl is checked even when not on PATH)
  2. Claude Code with agent skills enabled
  3. Node.js 14+ (for npx @rgctl/migiq)

For Phase 1 analysis, run from your app repo root (not the migiq workspace):

Package rename: Use @rgctl/migiq / rgctl/migIQ. The former @sshaaf/migiq name is obsolete.

cd /path/to/your-app
rgctl discover .   # writes artifacts to {repo}/.rgctl/

Do not run rgctl -r PATH discover . β€” the trailing . ignores -r. Legacy ~/.rgctl/cache/ is obsolete; re-discover if you still have an old daemon cache.

OpenShift, Podman, and other tools are only needed when you reach containerize/deploy phases.

πŸš€ Quick Start

Install MigIQ:

# Global (recommended for Claude Code β€” all projects)
npx @rgctl/migiq -g

# Or local to one repo (.claude/skills in that project)
npx @rgctl/migiq

Then in Claude Code β€” start a new session (/exit, then claude again) so skills reload:

/migiq
"Migrate this Spring Boot app to Quarkus"

Or for autonomous migration:

Agent({
  description: "Spring Boot to Quarkus migration",
  prompt: "Follow AGENT.md. Migrate this Spring Boot application to Quarkus...",
  subagent_type: "general-purpose"
})

Overview

MigIQ is a comprehensive migration solution that combines knowledge graph analysis, intelligent planning, and autonomous execution to migrate applications across platforms, frameworks, and languages.

Two Execution Modes

Interactive Mode (/migiq skill)

Best for:

  • Learning how migrations work
  • Migrations < 1 hour
  • Active participation desired
  • Approving each phase

Usage:

cd my-app
# In Claude Code:
/migiq
"Migrate to [target technology]"

Autonomous Mode (Migrator Agent)

Best for:

  • Migrations > 1 hour
  • Background/overnight work
  • Parallel multi-app migrations
  • When you trust the process

Usage:

Follow AGENT.md. Migrate from Spring Boot to Quarkus...


πŸ—οΈ Architecture

The MigIQ Ecosystem

                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚                      MigIQ Platform                         β”‚
                  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
                  β”‚                                                             β”‚
                  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
                  β”‚  β”‚   /migiq     β”‚              β”‚  Migrator Agent     β”‚      β”‚
                  β”‚  β”‚   Skill      │◄────────────►│  (AGENT.md)         β”‚      β”‚
                  β”‚  β”‚              β”‚              β”‚                     β”‚      β”‚
                  β”‚  β”‚ Interactive  β”‚              β”‚  Autonomous         β”‚      β”‚
                  β”‚  β”‚ Orchestrationβ”‚              β”‚  Long-running       β”‚      β”‚
                  β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
                  β”‚         β”‚                                 β”‚                 β”‚
                  β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                 β”‚
                  β”‚                       β”‚                                     β”‚
                  β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                    β”‚
                  β”‚         β”‚   Core Migration Skills      β”‚                    β”‚
                  β”‚         β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€                    β”‚
                  β”‚         β”‚                              β”‚                    β”‚
                  β”‚         β”‚  1. mig-rgctl            β”‚ ← Analysis         β”‚
                  β”‚         β”‚  2. mig-prompt-builder       β”‚ ← Requirements     β”‚
                  β”‚         β”‚  3. mig-plan                 β”‚ ← Planning         β”‚
                  β”‚         β”‚  4. mig-execute              β”‚ ← Execution        β”‚
                  β”‚         β”‚  5. mig-test-gen             β”‚ ← Testing          β”‚
                  β”‚         β”‚  6. mig-containerize         β”‚ ← Containers       β”‚
                  β”‚         β”‚  7. mig-deploy               β”‚ ← Deployment       β”‚
                  β”‚         β”‚                              β”‚                    β”‚
                  β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                    β”‚
                  β”‚                                                             β”‚
                  └───────────────────────────────────────────────────────────--β”˜

5-Phase Migration Workflow

Phase 1: Analysis          Phase 2: Requirements      Phase 3: Planning
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€-┐         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚ mig-rgctl β”‚         β”‚ mig-prompt-      β”‚       β”‚  mig-plan   β”‚
                  β”‚               β”‚         β”‚ builder          β”‚       β”‚             β”‚
                  β”‚ β€’ Code graph  β”‚ ────►   β”‚                  β”‚ ────► β”‚ β€’ tasks.md  β”‚
                  β”‚ β€’ Dependenciesβ”‚         β”‚ β€’ Source tech    β”‚       β”‚ β€’ stories   β”‚
                  β”‚ β€’ Architectureβ”‚         β”‚ β€’ Target tech    β”‚       β”‚             β”‚
                  β”‚ β€’ Complexity  β”‚         β”‚ β€’ Constraints    β”‚       β”‚ (uses       β”‚
                  └──────────────-β”˜         β”‚ β€’ migration-     β”‚       β”‚ migration-  β”‚
                                            β”‚   prompt.md      β”‚       β”‚ prompt.md)  β”‚
                                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                                              β”‚
                                                                              β–Ό
                  Phase 5: Reporting        Phase 4: Execution
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚ Final Report β”‚  ◄────   β”‚    mig-execute          β”‚
                  β”‚              β”‚          β”‚                         β”‚
                  β”‚ β€’ Summary    β”‚          β”‚ β€’ Code changes          β”‚
                  β”‚ β€’ Metrics    β”‚          β”‚ β€’ Tests (mig-test-gen)  β”‚
                  β”‚ β€’ Next steps β”‚          β”‚ β€’ Containers            β”‚
                  β”‚              β”‚          β”‚ β€’ OpenShift manifests   β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🎯 Many Use Cases (supports 31 languages)

1. Platform Migrations

  • Java EE β†’ Spring Boot β†’ Quarkus
  • .NET Framework β†’ .NET 8
  • Node.js 12 β†’ Node.js 20
  • Rails β†’ Node.js/Python

2. Cloud Migrations

  • On-prem β†’ OpenShift
  • Traditional VMs β†’ Containers
  • Monolith β†’ Microservices

3. Modernization

  • Legacy patterns β†’ Modern idioms
  • Callbacks β†’ async/await
  • Old dependencies β†’ Latest versions
  • Manual deployment β†’ CI/CD

4. Language Migrations

  • Java β†’ Kotlin
  • JavaScript β†’ TypeScript
  • Python 2 β†’ Python 3

5. Target Platforms

  • Quarkus, Spring Boot, Micronaut (Java/JVM)
  • Node.js (modern), Next.js, Remix (JavaScript/TypeScript)
  • FastAPI, Django 4+ (Python)
  • .NET 8 (C#)

6. Deployment Targets

  • Red Hat OpenShift (primary)
  • Kubernetes
  • Container platforms (Docker, Podman)

πŸ“Š What You Get

After a migration, you'll have:

your-project/
β”œβ”€β”€ .rgctl/                    # Phase 1: rgctl discover artifacts
β”‚
β”œβ”€β”€ mig-prompt-workspace/      # Phase 2: Requirements
β”‚   └── migration-prompt.md   # Standardized prompt
β”‚
β”œβ”€β”€ mig-plan-workspace/        # Phase 3: Planning
β”‚   β”œβ”€β”€ tasks.md             # Detailed task breakdown
β”‚   └── UserStory.md         # User stories
β”‚   # Note: spec/design in migration-prompt.md (Phase 2)
β”‚
β”œβ”€β”€ mig-execute-workspace/     # Phase 4: Execution
β”‚   β”œβ”€β”€ EXECUTION_REPORT.md  # Execution results
β”‚   β”œβ”€β”€ execution-log.md     # Detailed timeline
β”‚   └── outputs/
β”‚       β”œβ”€β”€ tests/           # Generated tests
β”‚       β”œβ”€β”€ containers/      # Dockerfiles
β”‚       └── deployments/     # OpenShift YAMLs
β”‚
└── migiq-workspace/           # Phase 5: Orchestration
    β”œβ”€β”€ orchestration-log.md # Full orchestration log
    └── MIGRATION_REPORT.md  # ⭐ Share with stakeholders

the examples/spring-boot-to-quarkus.tar.gz has an example of a completed migration, deployed to OpenShift.

πŸ“š Documentation

Getting Started

Deep Dives

Individual Skills

Documentation

Debugging

  • Check orchestration-log.md for workflow trace
  • Review execution-log.md for detailed timeline
  • Validate outputs with test-validator.sh

Issues

For bugs or feature requests, document:

  1. Source and target technologies
  2. Migration phase that failed
  3. Error messages from logs
  4. Steps to reproduce

Ready to migrate? Start with migiq/README.md

About

An experimental project showcasing code migrations using agents, harness, skills and rgctl

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Contributors

Languages