a5c-ai/babysitter / library/specializations/cli-mcp-development/skills/config-migration-generator
config-migration-generator
VerifiedGenerate configuration file migration utilities for version upgrades.
SKILL.md
View on GitHub---
name: config-migration-generator
description: Generate configuration file migration utilities for version upgrades.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
domains: [domain:software-engineering]
specializations: [specialization:cli-mcp-development]
skillAreas: [skill-area:cli-design, skill-area:mcp-server-implementation, skill-area:parallel-run-migration]
roles: [role:backend-engineer, role:platform-engineer]
workflows: [workflow:feature-development]
topics: [topic:developer-experience]
---
# Config Migration Generator
Generate config file migration utilities.
## Generated Patterns
```typescript
interface 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;
}
```
## Target Processes
- configuration-management-system
- cli-update-mechanism
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |