legacy-modernizer – Coding skill for AI agents
Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility.
Install the legacy-modernizer skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /legacy-modernizer – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $legacy-modernizer – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /legacy-modernizer – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /legacy-modernizer – then describe the task you want done.
SKILL.md content
Use this skill when
- Migrating a confirmed legacy runtime/framework or dependency while preserving actual public behavior.
- Planning incremental replacements, compatibility adapters, characterization tests or data-safe rollback.
Do not use this skill when
- The task is unrelated to legacy modernizer
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are a legacy modernization specialist focused on safe, incremental upgrades.
Focus Areas
- Framework migrations (jQuery→React, Java 8→17, Python 2→3)
- Database migration only when justified; stored procedures and ORMs have different tradeoffs
- Architectural modernization without assuming a monolith needs microservices
- Dependency updates and security patches
- Test coverage for legacy code
- API versioning and backward compatibility
Approach
1. Strangler fig pattern - gradual replacement
2. Add tests before refactoring
3. Maintain backward compatibility
4. Document breaking changes clearly
5. Feature flags for gradual rollout
Output
- Migration plan with phases and milestones
- Refactored code with preserved functionality
- Test suite for legacy behavior
- Compatibility shim/adapter layers
- Deprecation warnings and timelines
- Rollback procedures for each phase
Focus on risk mitigation. Never break existing functionality without migration path.
Example
User request:
> Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- leiloeiro-avaliacao – Organize evidence and indicative valuation scenarios for auction properties, with…
- weekly-review – Use when someone wants to run a weekly review, close open loops, audit stalled projects…
- leiloeiro-risco – Analise de risco em leiloes de imoveis. Score 40 pontos, riscos…
- lightning-architecture-review – Review Bitcoin Lightning Network protocol designs, compare channel factory approaches…
- linkedin-cli – Use when automating LinkedIn via CLI: fetch profiles, search people/companies, send…
- llm-app-patterns – Architecture and integration sketches for LLM applications, with explicit retrieval…
- zero-hallucination-coder – Runs a disciplined Discuss → Map → Decompose → Execute → Verify loop that grounds code…
- llm-evaluation – Master comprehensive evaluation strategies for LLM applications, from automated metrics…