/cortex-modernization:legacyfrom cortex-modernization
Guides incremental modernization of production systems using strangler fig, branch by abstraction, characterization tests, and feature-flagged migration with rollback.
Ships in cortex-modernization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Incremental migration of running systems. The constraint that shapes every decision here: the system is in production and must keep working while it changes.
Order matters more than the individual techniques — each step exists to make the next one safe.
Characterize before changing. Write tests that pin current behaviour, bugs included. You are not testing what the code should do; you are recording what it does, so a behaviour diff becomes visible. When an assertion looks wrong, that is the point — write it down and say so:
def test_domestic_lightweight():
order = {"weight": 5, "destination": "domestic", "priority": False}
# Current behaviour: nothing charged under 10kg. Looks like a bug —
# pin it here, fix it as its own change after the migration lands.
assert calculate_shipping_cost(order) == 0.0
Golden-master or approval tests (approvaltests, syrupy) get coverage over gnarly code fastest, because they capture output wholesale instead of requiring you to understand it first.
Then check the net actually holds: run a mutation tester over the code you are about to change. Characterization suites routinely look thorough and still miss the exact branch you're about to touch — surviving mutants tell you where, before an incident does.
Insert a seam. Branch by abstraction: introduce an interface over the thing you're replacing, and route all callers through it while it still delegates to the old code. This is a no-op change you can ship and verify on its own.
Build the replacement behind the seam, dark or flagged off. It isn't serving traffic yet, so it can be wrong.
Shift traffic incrementally with a flag — internal users, then a percentage, then all. Each step is reversible in the time it takes to flip the flag, which is the property that makes this safe. Name the rollback trigger as a metric and a threshold before each ramp ("error rate above 0.5% for five minutes → back to the previous percentage"). Deciding what counts as bad while it is happening is how a ramp turns into an argument instead of a rollback.
Delete the old path only after the new one has run clean in production for long enough to cover its slow cases — month-end jobs, seasonal peaks, the annual report. Deleting early is how you discover a code path nobody remembered.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub alexander-danilenko/cortex-claude-code-plugins --plugin cortex-modernizationOther plugins' skills for the same job