legacy-modernization
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Industrial legacy code modernization, strangler fig migration, monolith decoupling, schema evolution without downtime, and reverse-engineering undocumented codebases.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- KMaruthi2002/universal-llm-skillstheir own version, first seen Oct 25, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- nimadorostkar/Claude-Skills-collection★ 33same name
- KMaruthi2002/universal-llm-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-designSkill
- improve-codebase-architectureSkill
- architectureSkill
- cicdSkill
- cloud-infraSkill
- codebase-navigatorSkill
- code-qualitySkill
- code-reviewSkill
- code-standardsSkill
- configuration-managementSkill
- contract-testingSkill
- dependency-managementSkill
- diagnoseSkill
- documentationSkill
- dynamic-routingSkill
- enterprise-architectureSkill
- enterprise-test-suitesSkill
- git-guardrails-claude-codeSkill
- grill-meSkill
- handoffSkill
- intent-clarificationSkill
- triageSkill
- llm-evalsSkill
- observabilitySkill
- ops-sreSkill
- performance-optimizationSkill
- to-issuesSkill
- playwrightSkill
- to-prdSkill
- setup-pre-commitSkill
- prototypeSkill
- pr-reviewSkill
- ralph-loopSkill
- requirementsSkill
- root-cause-analysisSkill
- security-auditSkill
- security-patchingSkill
- startup-lifecycleSkill
- tddSkill
- testingSkill
- threat-modelingSkill
- to-issuesSkill
- token-efficiencySkill
- to-prdSkill
- ux-designSkill
- write-a-skillSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Never attempt a "Big Bang" rewrite of an industrial legacy application.
- Distinctive: line 36
When dealing with 100k+ lines of undocumented legacy spaghetti code:
- Distinctive: line 39
Before editing a single line, record input/output snapshots of the legacy system across hundreds of real-world scenarios.
- Distinctive: line 50
When modifying legacy schemas touching millions of production records:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Industrial Legacy Code Modernization & Migration Skill
This skill defines the strategy for safely refactoring, decoupling, and migrating mission-critical legacy systems (e.g., COBOL backends, 15-year-old monoliths, stored-procedure-heavy databases, PHP/Java EE stacks, and undocumented C++/C# engines) without production outages.
1. The Strangler Fig Modernization Pattern
Never attempt a "Big Bang" rewrite of an industrial legacy application. Always use the Strangler Fig Pattern:
[Phase 1: Ingress Interception & Routing Proxy]
↳ Direct traffic through an API gateway / reverse proxy (Envoy / Cloudflare / Nginx).
↓
[Phase 2: Shadow Traffic & Dark Launching]
↳ Duplicate live production requests to both the Legacy System and the Modern Microservice.
↳ Compare responses; assert 100% data equality (diff assertions) without returning modern output to clients yet.
↓
[Phase 3: Incremental Traffic Shifting]
↳ Route 1% → 10% → 50% → 100% of read traffic to the new service.
↓
[Phase 4: Legacy Strangling & Decommissioning]
↳ Decommission the legacy code path once all mutations and reads are fully migrated.2. Reverse-Engineering Undocumented Legacy Code
When dealing with 100k+ lines of undocumented legacy spaghetti code:
- Golden Master Characterization Testing:
- Before editing a single line, record input/output snapshots of the legacy system across hundreds of real-world scenarios.
- Lock down behavior with automated characterization test suites.
- Extract Seams & Anti-Corruption Layers (ACL):
- Introduce an Anti-Corruption Layer (ACL) between legacy data structures and modern domain models to prevent legacy naming/type pollution.
- Database Stored-Procedure Extraction:
- Extract raw SQL triggers, cursors, and stored procedures into explicit, version-controlled domain services.
3. Zero-Downtime Database Migration (Expand & Contract)
When modifying legacy schemas touching millions of production records:
[Step 1: Expand]
↳ Add new column/table in parallel; do NOT drop or alter existing legacy columns.
↓
[Step 2: Dual Write]
↳ Application writes to BOTH legacy and new schemas simultaneously; reads still from legacy.
↓
[Step 3: Backfill]
↳ Run background batch migration job to sync historical records into the new schema.
↓
[Step 4: Switch Reads]
↳ Switch application reads to the new schema.
↓
[Step 5: Contract]
↳ Stop writing to the old schema; safely drop deprecated columns/tables after 30 days.4. Legacy Migration Checklist
- Characterization snapshot tests written before refactoring
- Anti-Corruption Layer (ACL) isolates legacy models from new code
- Database migration uses Expand/Contract (zero table locking)
- Shadow traffic diff comparison passes with 0 discrepancy
- Rollback switch/feature flag active in API Gateway
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

