Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate configuration file migration utilities for version upgrades.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 2% | 0% |
Generate config file migration utilities.
typescriptinterface Migration { version: string; up: (config: any) => any; down: (config: any) => any; } const migrations: Migration[] = [ { version: '2.0.0', up: (config) => ({ ...config, server: { host: config.host, port: config.port }, version: '2.0.0', }), down: (config) => ({ host: config.server?.host, port: config.server?.port, version: '1.0.0', }), }, ]; export function migrateConfig(config: any, targetVersion: string): any { let current = config; for (const migration of migrations) { if (semver.gt(migration.version, config.version) && semver.lte(migration.version, targetVersion)) { current = migration.up(current); } } return current; }
Other measured skills in the registry, with their headline benchmark lift.