Логотип Legacy Modernization

Legacy Modernization

Спільнота
nimadorostkar
legacy-modernization

Use when incrementally modernizing a legacy system without a rewrite. Covers characterization tests, seams, the strangler pattern, and sequencing migrations so the system stays shippable throughout. Trigger on "we should just rewrite it", "migrate off this old framework", "extract a service from the monolith". Do not use for restructuring a single module — see the refactoring skill; for whether to split into services, see the microservices skill.

Огляд

Видавецьnimadorostkar
РепозиторійClaude-Skills-collection
Назва навичкиlegacy-modernization
Зірки
34
Форки
4
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: nimadorostkar. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Legacy Modernization у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/development/legacy-modernization
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection.git /tmp/Claude-Skills-collection
mkdir -p .claude/skills
cp -r /tmp/Claude-Skills-collection/skills/development/legacy-modernization .claude/skills/legacy-modernization
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Legacy Modernization в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Legacy Modernization, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Legacy Modernization не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Legacy Modernization

Purpose

Replace a legacy system incrementally, keeping it in production the entire time. The failure mode this skill exists to prevent is the two-year rewrite that ships nothing and is cancelled.

When to Use

  • A system that works but resists change.
  • Migrating off an unsupported framework, runtime, or vendor.
  • Extracting a service from a monolith.
  • Any proposal that starts with "we should just rewrite it".

Capabilities

  • Characterization testing to capture undocumented behavior.
  • Seam identification and dependency breaking.
  • Strangler-fig migration behind a routing facade.
  • Data migration with dual writes and backfills.
  • Sequencing work so every step is independently shippable.

Inputs

  • The legacy system, its deployment, and its actual traffic patterns.
  • The concrete pain: what change is expensive, and how expensive.
  • Constraints: uptime requirements, data volume, compliance, team capacity.

Outputs

  • A migration plan of independently shippable increments.
  • Characterization tests covering the behavior being preserved.
  • A facade or router that lets old and new coexist.
  • A decommissioning checklist for the old path.

Workflow

  1. Resist the rewrite — Establish what the current system does that a rewrite would have to rediscover. This list is always longer than expected, and it is the argument.
  2. Pin the behavior — Characterization tests at the outermost boundary you can reach: HTTP, CLI, batch output. Record what it does, bugs included.
  3. Introduce a facade — Put a routing layer in front of the capability. Every request now flows through a point you control.
  4. Carve off one capability — Choose the smallest one with clear boundaries. Implement it in the new system. Route a percentage of traffic to it.
  5. Compare, then cut over — Run both and diff the outputs (shadow mode) until you trust the new path. Then flip the route.
  6. Delete the old path — Immediately. A migration that leaves both paths alive has doubled the maintenance burden, not reduced it.
  7. Repeat — Next capability. Each cycle ships.

Best Practices

  • Never begin by changing the database. Data is the hardest thing to migrate and the least reversible — do it last, or behind a repository interface.
  • Shadow traffic is the cheapest confidence you will ever buy. Send real requests to the new path, discard its response, and compare.
  • Feature-flag every cutover so the rollback is a config change, not a deploy.
  • Migrate the highest-churn code first. The legacy code nobody has touched in three years is not what is slowing you down.
  • Keep a written kill list of old code paths, and cross them off. Otherwise the "temporary" fallback lives forever.
  • Do not modernize style, structure, and behavior at once. Preserve behavior; the rest can follow.

Examples

Strangler routing with shadow comparison:

python
async def get_pricing(request: PricingRequest) -> Pricing:
    legacy_result = await legacy_pricing.calculate(request)

    if flags.enabled("pricing.shadow", request.tenant_id):
        try:
            new_result = await pricing_service.calculate(request)
            if new_result != legacy_result:
                logger.warning(
                    "pricing_mismatch",
                    extra={"tenant": request.tenant_id,
                           "legacy": legacy_result.total_cents,
                           "new": new_result.total_cents},
                )
        except Exception:
            logger.exception("shadow_pricing_failed")  # never affects the response

    if flags.enabled("pricing.cutover", request.tenant_id):
        return await pricing_service.calculate(request)

    return legacy_result

Shadow mode surfaces every discrepancy on real traffic before a single user is affected by the new path.

Notes

  • A mismatch rate that will not converge to zero usually means the legacy behavior is not what the spec says. The legacy behavior is the spec.
  • Dual-writing to two data stores requires an idempotency key and a reconciliation job. Without both, they will drift.
  • The decommission is part of the project. A migration is not done when the new path serves traffic; it is done when the old code is deleted.

Поширені запитання

Що робить навичка ШІ Legacy Modernization?

Use when incrementally modernizing a legacy system without a rewrite. Covers characterization tests, seams, the strangler pattern, and sequencing migrations so the system stays shippable throughout. Trigger on "we should just rewrite it", "migrate off this old framework", "extract a service from the monolith". Do not use for restructuring a single module — see the refactoring skill; for whether to split into services, see the microservices skill.

Навіщо використовувати Legacy Modernization у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Legacy Modernization — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Legacy Modernization у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/development/legacy-modernization. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Legacy Modernization?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Legacy Modernization?

Зі скількома забажаєте. У TypingMind ви можете використовувати Legacy Modernization із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Legacy Modernization?

Так. На GitHub цю навичку публікує nimadorostkar за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇