PuerTS Agent Development Guide
하는 일
이 스킬은 Unity에서 PuerTsAgent 프레임워크로 AI 에이전트를 만드는 가이드입니다. Unity 프로젝트 안에서 LLM 에이전트를 실행하려는 게임과 앱 개발자를 위한 스킬입니다.
사용하는 경우
- ✓PuerTS로 Unity 프로젝트 안에 LLM 에이전트를 만들고 싶을 때.
- ✓에이전트의 시스템 프롬프트, 스킬, 내장 모듈을 설정해야 할 때.
- ✓에이전트를 만들기 전에 필요한 PuerTS 패키지가 설치되었는지 확인하고 싶을 때.
스킬 링크
https://github.com/Tencent/puerts/blob/master/unity/skills/puerts-agent-development/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Unity 프로젝트에 플레이어를 돕는 LLM 에이전트를 만들어 주세요. 고유 시스템 프롬프트와 스킬도 함께 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 필요한 PuerTS 패키지가 설치되어 있는지 확인한 뒤, 에이전트 파일을 Unity Resources 폴더 안 어디에 둘지 묻습니다. 이후 프롬프트, 스킬, 내장 모듈을 안내하며, 내장 모듈의 언어 선택도 함께 진행합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
PuerTS Agent Development Guide
This skill provides the complete guide for developing LLM agents based on the PuerTsAgent framework.
⚠️ Important — Required Packages: This framework depends on PuerTS core, v8, and agent packages. Before proceeding, you must check the Unity project's
Packages/manifest.jsonto verify that the following packages are installed:
com.tencent.puerts.corecom.tencent.puerts.v8com.tencent.puerts.agentIf any of these packages are missing, they must be installed first before using this skill. you MUST first invoke the "Install PuerTS for Unity" skill to AUTO complete the setup.
⚠️ Prerequisite: Before using this skill to create or modify an agent, you must know the agent's resource directory path under Unity
Resources/(e.g.,maze-runner,editor-assistant). If the user has not provided this path, ask the user whichResources/subdirectory to use before proceeding. All agent files (system-prompt, skills, builtins) are organized under this path.
⚠️ Builtin Language Choice: When creating builtin modules, you must ask the user whether they want to write builtins in TypeScript or JavaScript:
- TypeScript → Create a dedicated TS project (with
package.json,tsconfig.json,esbuild.mjs) whose build output (outdir) points toAssets/Resources/<agent-name>/builtins/. See TypeScript Project Setup for Builtins section below.- JavaScript → Write
.mjsfiles directly inAssets/Resources/<agent-name>/builtins/.
Overview
In this framework, an agent's behavior and capabilities are entirely defined by files in a resource directory (Resource Root). Different resource directories represent different agents — Unity editor assistants, in-game AI characters, or any role you need.
Key Concept: Both
system-prompt.md.txtand files underskills/are essentially prompts (natural language instructions for the LLM). The only difference is their loading strategy:
system-prompt.md.txt— Always present in context (persistent). Put prompts here that are needed for most tasks.skills/*.md.txt— Loaded on demand by the LLM vialoadSkill. Put prompts here that are not needed for every task — they are loaded only when the LLM determines they are relevant.
Creating an Agent
Initialize an agent in C# via its resource path:
var agent = new AgentScriptManager();
agent.Initialize("maze-runner", () =>
{
Debug.Log("Maze runner agent is ready!");
});
The first parameter of Initialize is the resource directory path under Unity Resources/. The framework loads the full agent definition from this directory:
system-prompt.md.txt— Role definition (System Prompt)skills/— Domain skill documents (loaded on demand, optional)builtins/— Built-in helper modules (executable JS modules)
Example Directory Structure
Resources/maze-runner/
├── system-prompt.md.txt # Role definition (System Prompt)
├── skills/ # Domain skills (loaded on demand, optional)
└── builtins/ # Built-in modules (loaded on demand)
├── maze-control.mjs # Maze movement and status query
└── screenshot.mjs # Screenshot to observe the maze
All resource files are placed in Unity's Resources/ directory.
File extension convention: Unity
Resourcesdoes not support.mdand.mjsas TextAsset, so:
- Markdown files use
.md.txtsuffix- JS module files use
.mjssuffix
1. System Prompt — Role Definition
Purpose
system-prompt.md.txt defines the agent's identity, personality, capabilities, and behavioral rules. It is injected at the beginning of the LLM's system prompt and is the core of the agent's "persona."
This is a persistent prompt — it is always present in the LLM's context for every conversation turn. Therefore, put only the most frequently used instructions here — things the agent needs for the majority of its tasks. Avoid stuffing rarely-used domain knowledge here, as it permanently consumes context tokens.
File Location
<resource-root>/system-prompt.md.txt
Format
Plain text / Markdown format, write role definition directly, no front-matter needed.
Example — Editor A
자주 묻는 질문
어떤 패키지가 필요한가요?
Unity 프로젝트에 PuerTS core, v8, agent 패키지가 필요합니다.
내장 모듈을 TypeScript로 쓸 수 있나요?
네, 스킬은 내장 모듈을 TypeScript로 쓸지 JavaScript로 쓸지 묻습니다.
에이전트 파일은 어디에 두나요?
직접 고른 Unity Resources 디렉터리 아래의 폴더에 둡니다.
상세 정보
작성자의 원본 설명
Guide for developing LLM agents based on PuerTsAgent framework — covers resource directory structure, system-prompt, skills, builtin modules, and best practices.
repo: Tencent/puerts
인기도
- GitHub 스타
- 6.3k
- 순위
- #14378
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.