code-realign

Community

Realign persisted state with confidence.

Authorwebdevcody
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you safely rename or remap a domain model’s persisted enum/state vocabulary when the meaning changes, preventing corrupted data and inconsistent behavior across code and stored rows.

Core Features & Use Cases

  • Scope verification: Distinguishes a realignment (meaning change + persisted data migration) from a refactor (behavior preserved) or cleanup (no requirement change).
  • Explicit value mapping: Produces an old_value → new_value table with support for collapsed mappings, dropped values, and newly introduced states.
  • Migration-first execution plan: Guides you through renaming at the type root, sweeping via type checking, hunting non-typed string leaks, and migrating persisted data using the project’s migration conventions.
  • Safety guardrails: Enforces “never inline data migrations” and “never start editing before the mapping is agreed” to avoid hybrid vocabularies and untracked rewrites.

Quick Start

Ask the AI to realign your domain enum/state by mapping the old persisted values to the new business meanings, then updating types, sweeping string leaks, and creating a versioned migration to remap stored rows.

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: code-realign
Download link: https://github.com/webdevcody/go-mailing-list/archive/main.zip#code-realign

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 471,000+ vetted skills library on demand.