legacy-modernizer – skill Lập trình cho agent AI
Tái cấu trúc mã nguồn cũ, di chuyển framework lỗi thời và triển khai hiện đại hóa từng bước. Xử lý nợ kỹ thuật, cập nhật dependency và khả năng tương thích ngược.
Cài skill legacy-modernizer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /legacy-modernizer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $legacy-modernizer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /legacy-modernizer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/legacy-modernizer-413dc.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /legacy-modernizer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- leiloeiro-avaliacao – Tổ chức bằng chứng và các kịch bản định giá tham khảo cho bất động sản đấu giá, với giới…
- weekly-review – Dùng khi ai đó muốn chạy đánh giá hàng tuần, khép các việc còn mở, rà soát dự án và cam…
- leiloeiro-risco – Phân tích rủi ro đấu giá bất động sản. Thang điểm 40 điểm, rủi ro pháp lý/tài chính/vận…
- lightning-architecture-review – Đánh giá thiết kế giao thức Bitcoin Lightning Network, so sánh các cách tiếp cận channel…
- linkedin-cli – Dùng khi tự động hóa LinkedIn qua CLI: lấy hồ sơ, tìm người/công ty, gửi tin nhắn, quản…
- llm-app-patterns – Phác thảo kiến trúc và cách tích hợp cho ứng dụng LLM, với ranh giới rõ ràng cho truy…
- zero-hallucination-coder – Chạy vòng lặp kỷ luật Discuss → Map → Decompose → Execute → Verify (Thảo luận → Lập bản…
- llm-evaluation – Nắm vững các chiến lược đánh giá toàn diện cho ứng dụng LLM, từ chỉ số tự động đến đánh…