config-schema-migrator
CommunityEvolve config schemas, ensure backward compatibility.
Software Engineering#pydantic#migration#configuration#yaml#environment variables#schema evolution#backward compatibility
Authorblueman82
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Evolving Pydantic configuration schemas while maintaining backward compatibility, handling environment variables, and providing automated migration paths is challenging. This skill provides patterns to manage config changes gracefully, preventing breaking changes and simplifying updates.
Core Features & Use Cases
- Backward-Compatible Schema Evolution: Add new config sections and fields without breaking existing configurations.
- Type Discrimination: Implement discriminated unions for flexible configuration of different types (e.g., CLI vs. HTTP adapters).
- Environment Variable Substitution: Securely inject secrets and dynamic values from environment variables into your config.
- Automated Migration Scripts: Create robust Python scripts to automatically update old config files to new formats, including backups.
- Use Case: Migrate an existing
config.yamlfrom a legacycli_toolssection to a newadapterssection, automatically addingtype: clito each entry, without requiring manual edits from users.
Quick Start
To migrate your config.yaml from the deprecated cli_tools format to the new adapters format, run the provided migration script:
python scripts/migrate_config.py config.yaml
Dependency Matrix
Required Modules
pydanticpyyamlpython-dotenv
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: config-schema-migrator Download link: https://github.com/blueman82/ai-counsel/archive/main.zip#config-schema-migrator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.