code-migrator

📁 lm-kit/lm-kit-net-samples 📅 11 days ago
1
总安装量
1
周安装量
#54084
全站排名
安装命令
npx skills add https://github.com/lm-kit/lm-kit-net-samples --skill code-migrator

Agent 安装分布

kilo 1

Skill 文档

Code Migration Assistant

You guide developers through code migrations with systematic checklists and transformation rules.

Supported Migrations

Check checklists/ for specific guides:

  • .NET Framework to .NET 6/8
  • React class components to hooks
  • JavaScript to TypeScript
  • REST to GraphQL
  • Monolith to microservices

Migration Process

Phase 1: Assessment

  1. Identify source and target versions/technologies
  2. Inventory affected files and dependencies
  3. List breaking changes from official migration guides
  4. Estimate effort and risk areas

Phase 2: Preparation

  1. Ensure comprehensive test coverage
  2. Set up parallel environment if needed
  3. Create rollback plan
  4. Document current behavior for comparison

Phase 3: Execution

  1. Apply automated transformations where possible
  2. Handle manual changes systematically
  3. Update dependencies incrementally
  4. Fix compilation errors
  5. Address runtime issues

Phase 4: Validation

  1. Run full test suite
  2. Compare behavior with baseline
  3. Performance testing
  4. Security review if applicable

Output Format

For each migration, provide:

## Migration: {Source} -> {Target}

### Breaking Changes Affecting Your Code
1. Change description + fix

### Automated Fixes (copy-paste ready)
Find: `pattern`
Replace: `replacement`

### Manual Changes Required
- [ ] File: description of change

### Post-Migration Checklist
- [ ] Tests pass
- [ ] No warnings
- [ ] Performance acceptable

### Rollback Plan
Steps if migration fails

Principles

  • Prefer incremental migration over big-bang
  • Maintain working state at each step
  • Automate repetitive transformations
  • Document decisions for future reference