port-a-mod
Skill này làm gì
Skill này port một mod sang phiên bản mới hơn của game hoặc sang một hệ thống mod khác. Nó dành cho modder muốn một mod cũ hoạt động đúng như trước, không bị lệch khỏi bản gốc.
Khi nào nên dùng
- ✓Khi bạn muốn một mod Minecraft hoặc Skyrim cũ chạy được trên phiên bản mới.
- ✓Khi một bản cập nhật game làm hỏng mod và bạn cần chuyển nó sang phiên bản mới.
- ✓Khi bạn muốn chuyển một mod sang mod loader khác mà không làm thay đổi cách chơi của nó.
Liên kết skill
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/port-a-mod/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chuyển mod Forge 1.12 cũ của tôi sang Fabric cho một phiên bản Minecraft mới hơn, giữ nguyên các giá trị cân bằng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent cố định phiên bản gốc, dùng code gốc làm tham chiếu, liệt kê những gì cần thay đổi, rồi port mod từng đơn vị một trong khi kiểm tra từng phần với bản gốc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Port a mod faithfully
When porting an existing mod, the original is the spec. A port rarely fails for lack of code. It fails by drift:
- values recalled from memory or a wiki;
- mechanics borrowed from a later rewrite of the same mod;
- quiet "improvements";
- renderers that look roughly right;
- checks that the original made on the client and the port forgot.
The method below carried a Thaumcraft 4.2.3.5 port from Minecraft 1.7.10 Forge to 1.20.1 Fabric:
- 859 original classes became about 77,000 lines of port code;
- 323 GameTests cover it, and scripted real-client scenarios check what tests can't reach;
- the work spanned many sessions and two agent accounts.
The field note knowledge/games/minecraft/porting-thaumcraft-4-1-7-10-forge-to-minecraft-1-20-1-fabric.md has
its gotchas. Minecraft-specific mappings are in references/minecraft-1-7-10-forge-to-1-20-fabric.md.
Run the mod-any-game loop around this skill (intake, recon, lab, verify, publish, field note). This skill replaces its "vertical slice" step with a long series of slices, one per unit of the original. Bringing one game's content or mechanics into another game is the mashup-mods skill, not this one.
Before you start: the license
The original's code and assets belong to its author. A port is built from them, often from a decompile of them, so the original's license decides what of the port can be published. (This isn't legal advice; when in doubt, ask the author.)
- Find the license of the release you will port: the mod's repository (
LICENSE), its mod page, the files in the jar, or the author's release post. Write it into the status document (section 7), with the link. - An open license (MIT, LGPL, GPL, a Creative Commons license): follow its terms. Keep the copyright notices, credit the author, and use the same license where it requires that (GPL, LGPL, CC BY-SA).
- All rights reserved, no license at all, or a "no ports" clause: publishing anything of the port (a
jar, a public repository, the original's textures or sounds) needs the permission of the author or the
current rights holder. Ask them, and keep their answer (a link or a quote) in the status document. With no
permission, the port stays private.
- Thaumcraft 4, the worked example here, is closed source. In 2014 its author had a decompiled copy taken off GitHub (DMCA notice).
- Tell the user which case it is before starting. A private port for their own pack is their call.
- Credit the original author in the port and in any release, and don't present the port as an official version.
0. Pin one source of truth
- Pin the exact release: the jar, its hash (SHA-1), where it came from and its changelog. For a dead mod line, the last release is usually the right one.
- Use one version as the reference, and only one. A later rewrite with the same name (Thaumcraft 5 and 6
against 4, a "Reborn" or "Legacy" fork) is a different mod.
- The Thaumcraft port started from the wrong base and switched mid-way.
- Weeks later, TC5 meshes, textures, an input handler and a swing hook were still in the code, although every audit had compared gameplay with TC4.
- If the base ever changes, archive the old state, sort every area into keep / adapt / replace / remove, and grep comments and identifiers for the old version's name.
- Write the rule where every future agent reads it: the project's
AGENTS.md(point any agent-specific instructions file at it). Example: "<mod> <version> is the only gameplay source. Keep its values, quirks and observable bugs. Later versions are not references. Do not silently improve gameplay. Never claim a build or test passed unless it ran."
1. Build a private reference
- If the original's source is published (its repository, a sources jar), work from the source at the pinned release's tag, and decompile the jar only to check that the two match.
- Decompile with Vineflower first. Fall back to CFR for the classes it fails on, and count those classes. The reverse-engineering skill has the tools.
- Remap to readable names:
- 1.7.10 Forge jars ship SRG names (
func_12345_a,field_1234_b). Remap them with the MCPstable_12CSVs (methods.csv,fields.csv); a token-replacing script is enough. 1.12 usesstable_39. - On the target side, read the mapped game jar from the loader's cac
- 1.7.10 Forge jars ship SRG names (
Câu hỏi thường gặp
Vì sao bản gốc được coi là đặc tả?
Các bản port thường thất bại vì bị lệch, chẳng hạn dùng giá trị nhớ sai hoặc thay đổi âm thầm, nên bản gốc là tham chiếu cho mọi kiểm tra.
Giấy phép của bản gốc có quan trọng không?
Có. Skill bắt đầu bằng việc kiểm tra giấy phép, vì bản port được xây từ code và tài nguyên của bản gốc.
Skill có hỗ trợ game khác ngoài Minecraft không?
Có. Skill cũng bao gồm các trường hợp như plugin của Skyrim và mod tModLoader.
Chi tiết
Mô tả gốc của tác giả
Port an existing mod to a newer game version or another mod loader while keeping its behaviour, values and quirks. Typical cases are an old Forge 1.7.10 or 1.12 Minecraft mod moving to modern Fabric or NeoForge, a Skyrim LE plugin moving to SE/AE, or a tModLoader 1.3 mod moving to 1.4. It covers pinning one source version, a private decompiled reference, an adaptation matrix, extracting the mod's data with scripts instead of retyping it, porting unit by unit with tests that catch drift, real-client checks, audits against the original, and keeping a long port resumable across sessions and agent
Độ phổ biến
- Sao GitHub
- 9.3k
- Vị trí xếp hạng
- #12290
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
asset-pipeline
9.3kGiúp agent của bạn chuyển tác phẩm tạo ra hoặc vẽ tay thành đúng kích thước, khung hình, bảng màu và định dạng mà game engine tải được.
blitz3d-decomp
9.3kGiúp agent của bạn giải mã một game Blitz3D thành source code dễ đọc và lên kế hoạch port sang engine khác, giữ game gốc làm tài liệu tham chiếu.
fal-assets
9.3kGiúp agent của bạn tạo tác phẩm, hiệu ứng âm thanh, nhạc và mô hình 3D cho game bằng fal.ai, từ sprite và texture đến lời thoại và video.
game-automation
9.3kGiúp agent của bạn chạy một game thật, chụp ảnh màn hình, nhấp chuột và gõ phím trong menu, rồi đọc log, để kiểm thử các mod game của chính nó.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.