home / skills / a5c-ai / babysitter / build-system-migrator
This skill migrates legacy build systems to modern tools by converting build files, migrating plugins, and integrating CI/CD for faster, reliable workflows.
npx playbooks add skill a5c-ai/babysitter --skill build-system-migratorReview the files below or copy the command above to add this skill to your agents.
---
name: build-system-migrator
description: Migrate build systems to modern alternatives with build file conversion and CI/CD integration
allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob", "Edit"]
---
# Build 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
```json
{
"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
This skill automates migrating legacy build systems to modern alternatives, converting build files, migrating plugins, and integrating CI/CD changes. It focuses on preserving build logic while reducing manual effort and minimizing disruption to developers. Outputs include a traceable migration artifact and a migration report for review.
The skill analyzes the source build configuration and maps constructs to the target tool using codemods, CLI helpers, and custom rules. It updates dependency declarations, translates plugins and tasks, and produces updated CI/CD pipeline files. It also generates cache and incremental build recommendations and a structured migration artifact for auditing and rollback.
What does the migration artifact include?
It includes translated build files, updated CI configs, a list of migrated and manual plugins, and a JSON migration summary with timestamps and source/target metadata.
Can it handle custom plugins or tasks?
Yes—automated mapping is attempted first; custom plugins/tasks are flagged and documented for manual implementation with suggested replacements when available.
How are caches and incremental builds handled?
The skill adds recommended cache keys, remote cache configuration, and incremental-build settings, plus guidance on invalidation policies and tuning steps.