Safe code migration rename split deprecate and refactor
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill code-migration-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Code Migration Patterns?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-code-migration-patterns)More formats (shields.io, HTML) on the badges page.
---
name: code-migration-patterns
description: "Safe code migration rename split deprecate and refactor"
---
# Code Migration Patterns
## Rename Symbol
1. Add deprecated alias pointing to new name
2. Update all internal references
3. Remove old name in next release
```python
import warnings
def old_name():
warnings.warn("Use new_name", DeprecationWarning)
return new_name()
```
## Split Module
1. Create new module with extracted code
2. Re-export from old module with deprecation
3. Update imports gradually
## Safe Steps
1. Add deprecation warnings
2. Run: python -Wd
3. Fix all warnings
4. Remove deprecated code in next version
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!