backward-compatible-frozen-extension

Community

Extend frozen models safely without breaking.

Authorshimo4228
Version1.0.0
Installs0

System Documentation

What problem does it solve?

You need to extend a frozen dataclass or Pydantic model without changing the existing interface or breaking downstream code, preserving backward compatibility.

Core Features & Use Cases

  • Optional new fields with defaults to maintain compatibility, enabling richer data without modifying existing constructors.
  • Parallel paths: old code paths and new, extended data paths can co-exist.
  • Branching orchestrator logic to selectively utilize new fields when available.

Quick Start

Add a new optional field with a default to a frozen dataclass or Pydantic model and adjust the constructors to remain backward-compatible.

Dependency Matrix

Required Modules

None required

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: backward-compatible-frozen-extension
Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#backward-compatible-frozen-extension

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.