build-system-migrator
npx machina-cli add skill a5c-ai/babysitter/build-system-migrator --openclawBuild System Migrator Skill
Migrates build systems to modern alternatives, handling build file conversion, plugin migration, and CI/CD integration.
Purpose
Enable build modernization for:
- Build file conversion
- Plugin migration
- Dependency management migration
- CI/CD integration
- Cache optimization
Capabilities
1. Build File Conversion
- Convert build configurations
- Migrate between tools
- Preserve build logic
- Handle custom tasks
2. Plugin Migration
- Map plugin equivalents
- Configure replacements
- Handle custom plugins
- Document gaps
3. Dependency Management Migration
- Convert dependency declarations
- Handle version management
- Migrate lockfiles
- Manage repositories
4. CI/CD Integration
- Update pipeline configurations
- Adapt build commands
- Handle caching
- Optimize parallelization
5. Cache Optimization
- Configure build caches
- Set up remote caching
- Handle cache invalidation
- Optimize cache keys
6. Incremental Build Setup
- Configure incremental builds
- Handle change detection
- Optimize rebuild time
- Manage artifacts
Tool Integrations
| From/To | Tools | Integration Method |
|---|---|---|
| Maven -> Gradle | Gradle init | CLI |
| Webpack -> Vite | Manual/Codemods | CLI |
| Make -> Bazel | Manual | Config |
| npm -> pnpm | pnpm import | CLI |
| Lerna -> Nx | Nx migrate | CLI |
| Turborepo | turbo init | CLI |
Output Schema
{
"migrationId": "string",
"timestamp": "ISO8601",
"source": {
"buildTool": "string",
"version": "string"
},
"target": {
"buildTool": "string",
"version": "string"
},
"artifacts": {
"buildFile": "string",
"configFiles": [],
"ciConfig": "string"
},
"plugins": {
"migrated": "number",
"manual": "number"
}
}
Integration with Migration Processes
- build-system-modernization: Primary migration tool
Related Skills
configuration-migrator: Config conversion
Related Agents
build-pipeline-migrator: CI/CD migration
Source
git clone https://github.com/a5c-ai/babysitter/blob/main/plugins/babysitter/skills/babysit/process/specializations/code-migration-modernization/skills/build-system-migrator/SKILL.mdView on GitHub Overview
Build System Migrator modernizes projects by converting build configurations, migrating plugins, and updating dependencies, while integrating CI/CD pipelines. It also optimizes caching and supports incremental builds to speed up future changes.
How This Skill Works
The skill analyzes the source build configurations, performs build file conversions to the target toolchain, maps and configures plugins, migrates dependency declarations and lockfiles, and updates CI/CD configurations. It preserves the original build logic, handles custom tasks, and adds cache optimization and incremental build setup.
When to Use It
- Migrating from Maven to Gradle using Gradle init
- Converting Webpack configurations to Vite via Manual/Codemods
- Migrating Make-based projects to Bazel with Manual/Config
- Migrating npm projects to pnpm using pnpm import
- Lerna -> Nx migration using Nx migrate
Quick Start
- Step 1: Inventory the current build system and choose a target tool (e.g., Maven to Gradle)
- Step 2: Run build file conversion, plugin mapping, and dependency updates for the project
- Step 3: Update CI/CD configs, enable caching, and validate with incremental builds
Best Practices
- Inventory all build files, plugins, and dependency declarations before starting
- Map plugins carefully and document gaps for custom plugins
- Preserve core build logic during conversion and test thoroughly
- Validate lockfiles and dependency resolutions after migration
- Update CI/CD pipelines first and optimize caching and parallelism
Example Use Cases
- Maven -> Gradle migration using Gradle init
- Webpack -> Vite migration using Manual/Codemods
- Make -> Bazel migration via Manual
- npm -> pnpm migration using pnpm import
- Lerna -> Nx migration using Nx migrate