Install PuerTS for Unity
Skill này làm gì
Skill hướng dẫn cài đặt các gói PuerTS vào dự án Unity. Skill dành cho lập trình viên Unity muốn chạy JavaScript hoặc TypeScript bên trong trò chơi hoặc ứng dụng của họ.
Khi nào nên dùng
- ✓Khi bạn muốn thêm PuerTS vào một dự án Unity.
- ✓Khi bạn cần chọn đúng phiên bản PuerTS và các gói đi kèm.
- ✓Khi bạn muốn cài PuerTS từ một gói phát hành hoặc đường dẫn git.
Liên kết skill
https://github.com/Tencent/puerts/blob/master/unity/skills/install-puerts-for-unity/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
“Cài PuerTS phiên bản 3.0.2 vào dự án Unity của tôi và bao gồm gói Node.js.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hỏi bạn muốn phiên bản nào, tìm các tệp lưu trữ phát hành cho phiên bản đó và giải thích các phụ thuộc. Sau đó skill hướng dẫn bạn cài đặt các gói bằng tệp tải về hoặc đường dẫn git, và thiết lập Editor Assistant nếu cần.
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.
Install PuerTS for Unity
This skill guides you through downloading and installing PuerTS packages into a Unity project.
⚠️ Important: Always ask the user which PuerTS version they want to install if they haven't specified one. The version number follows the Core package's version (e.g.,
3.0.2).
1. Release Page & Version
- The release download page URL pattern is:
For example:https://github.com/Tencent/puerts/releases/tag/Unity_v{VERSION}https://github.com/Tencent/puerts/releases/tag/Unity_v3.0.2
⚠️ Important — Version Numbers Inside Archives: The version number in the release page URL (e.g.,
Unity_v3.0.2) is based on the Core package version. However, the version numbers inside each.tar.gzfilename may differ — each package follows its own versioning cadence. You may need to download/parse the release page HTML to determine the exact filenames available.
2. Available Packages
Each release page may contain the following .tar.gz archives, each corresponding to a UPM package:
| Archive File | UPM Package | Has Native Plugins | Always Available |
|---|---|---|---|
PuerTS_Core_{ver}.tar.gz |
com.tencent.puerts.core |
✅ Yes | ✅ Yes |
PuerTS_Lua_{ver}.tar.gz |
com.tencent.puerts.lua |
✅ Yes | ✅ Yes |
PuerTS_Nodejs_{ver}.tar.gz |
com.tencent.puerts.nodejs |
✅ Yes | ✅ Yes |
PuerTS_Python_{ver}.tar.gz |
com.tencent.puerts.python |
✅ Yes | ✅ Yes |
PuerTS_Quickjs_{ver}.tar.gz |
com.tencent.puerts.quickjs |
✅ Yes | ✅ Yes |
PuerTS_V8_{ver}.tar.gz |
com.tencent.puerts.v8 |
✅ Yes | ✅ Yes |
PuerTS_Webgl_{ver}.tar.gz |
com.tencent.puerts.webgl |
❌ No | ✅ Yes |
PuerTS_Agent_{ver}.tar.gz |
com.tencent.puerts.agent |
❌ No | ❌ Not every release |
PuerTS_MCP_{ver}.tar.gz |
com.tencent.puerts.mcp |
❌ No | ❌ Not every release |
Notable Package Features
com.tencent.puerts.agent: Provides an Agent framework for building LLM agents, and also includes an Agent-based Editor Assistant for Unity.com.tencent.puerts.mcp: Provides an MCP (Model Context Protocol) framework, and also includes an MCP-based Editor Assistant for Unity.
Both the
agentandmcppackages offer an Editor Assistant variant. See Section 5 for how to handle user requests like "install PuerTS Editor Assistant".
3. Package Dependencies
⚠️ Important: Packages have dependency relationships. When a user requests to install a package, you must ensure all of its dependencies are also installed.
Dependency Rules
com.tencent.puerts.coreis the foundational package — all other packages depend on it.com.tencent.puerts.agentdepends oncom.tencent.puerts.core+com.tencent.puerts.v8com.tencent.puerts.mcpdepends oncom.tencent.puerts.core+com.tencent.puerts.v8+com.tencent.puerts.agent- All backend packages (
com.tencent.puerts.v8,com.tencent.puerts.lua,com.tencent.puerts.nodejs,com.tencent.puerts.python,com.tencent.puerts.quickjs,com.tencent.puerts.webgl) depend oncom.tencent.puerts.core
Dependency Graph
com.tencent.puerts.core (required by all)
├── com.tencent.puerts.v8
│ ├── com.tencent.puerts.agent
│ │ └── com.tencent.puerts.mcp
│ └── com.tencent.puerts.mcp
├── com.tencent.puerts.nodejs
├── com.tencent.puerts.lua
├── com.tencent.puerts.python
├── com.tencent.puerts.quickjs
└── com.tencent.puerts.webgl
Examples of Automatic Dependency Resolution
| User requests to install | Must also install |
|---|---|
agent |
core, v8 |
mcp |
core, v8, agent |
mcp + agent |
core, v8 |
v8 |
core |
lua |
core |
4. Installation Methods
4.1 Download & Extract Method (Required for packages with native plugins)
The following packages contain compiled native binary plugins and must be installed by downloading from the release page:
com.tencent.puerts.corecom.tencent.puerts.luacom.tencent.puerts.nodejscom.tencent.puerts.pythoncom.tencent.puerts.quickjscom.tencent.puerts.v8
Steps:
- Go to
https://github.com/Tencent/puerts/releases/tag/Unity_v{VERSION} - Download the required
.tar.gzfile(s) (e.g.,PuerTS_Core_3.0.2.tar.gz) - Extract the archive — it will produce a directory (e.g.,
core/) co
Câu hỏi thường gặp
Skill có hỏi bạn muốn phiên bản nào không?
Có. Skill sẽ hỏi phiên bản nếu bạn chưa đưa ra.
Các gói được cài đặt như thế nào?
Skill có thể cài từ các tệp lưu trữ đã tải về hoặc từ một URL git.
Số phiên bản dựa trên gói nào?
Số phiên bản theo gói Core.
Chi tiết
Mô tả gốc của tác giả
Guide for downloading and installing PuerTS UPM packages into a Unity project — covers version selection, package dependencies, download/extract and git URL installation methods, and Editor Assistant setup.
repo: Tencent/puerts
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14377
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
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á.